tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

realtime scheduling patches for cdrtools



Hi -
to get cdrtools built on -current NetBSD (which has
realtime scheduling support functions in librt)
I'd suggest the appended patches.
They are not yet completely sufficient to build on
NetBSD as it looks now, but rt support is fresh and
could still be rearranged a bit - see my posting to
tech-userlevel.

Could you check whether the patches do any damage
on other systems?

best regards
Matthias





-------------------------------------------------------------------
-------------------------------------------------------------------
Forschungszentrum Jülich GmbH
52425 Jülich

Sitz der Gesellschaft: Jülich
Eingetragen im Handelsregister des Amtsgerichts Düren Nr. HR B 3498
Vorsitzende des Aufsichtsrats: MinDir'in Bärbel Brumme-Bothe
Geschäftsführung: Prof. Dr. Achim Bachem (Vorsitzender),
Dr. Ulrich Krafft (stellv. Vorsitzender), Dr. Sebastian M. Schmidt
-------------------------------------------------------------------
-------------------------------------------------------------------

? buildlog
Index: distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/sysutils/cdrtools/distinfo,v
retrieving revision 1.12
diff -u -r1.12 distinfo
--- distinfo    15 Jan 2008 22:45:11 -0000      1.12
+++ distinfo    16 Jan 2008 20:27:03 -0000
@@ -14,3 +14,6 @@
 SHA1 (patch-ch) = 65397614fe196709b26a789bdd34ed6776b4ef46
 SHA1 (patch-ci) = ff0d14544b0958f581a37c1b007fae581f871021
 SHA1 (patch-cj) = 6be6bb13345a5bfe8c2f9cce6090b40e7b44a258
+SHA1 (patch-da) = b8397e4e60a9348cb454ea96cd53e1566f3c49d3
+SHA1 (patch-db) = 06a3abff4c087c45223b53339dff02256e81f4b3
+SHA1 (patch-dc) = b5c6ad5428ce15e2c86cbaa401ef274af1880641
Index: patches/patch-da
===================================================================
RCS file: patches/patch-da
diff -N patches/patch-da
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-da    16 Jan 2008 20:27:03 -0000
@@ -0,0 +1,63 @@
+$NetBSD$
+
+revert probing order so that libposix4/librt implementations
+are preferred over libc
+
+--- conf/configure.orig        2008-01-16 19:30:38.000000000 +0100
++++ conf/configure
+@@ -14169,14 +14169,14 @@ done
+ 
+ LIBS="$ac_save_LIBS"
+ 
+-echo $ac_n "checking for clock_gettime in -lc""... $ac_c" 1>&6
+-echo "configure:14174: checking for clock_gettime in -lc" >&5
+-ac_lib_var=`echo c'_'clock_gettime | sed 'y%./+-%__p_%'`
++echo $ac_n "checking for clock_gettime in -lposix4""... $ac_c" 1>&6
++echo "configure:14174: checking for clock_gettime in -lposix4" >&5
++ac_lib_var=`echo posix4'_'clock_gettime | sed 'y%./+-%__p_%'`
+ if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+   echo $ac_n "(cached) $ac_c" 1>&6
+ else
+   ac_save_LIBS="$LIBS"
+-LIBS="-lc  $LIBS"
++LIBS="-lposix4  $LIBS"
+ cat > conftest.$ac_ext <<EOF
+ #line 14182 "configure"
+ #include "confdefs.h"
+@@ -14204,7 +14204,7 @@ LIBS="$ac_save_LIBS"
+ fi
+ if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
+   echo "$ac_t""yes" 1>&6
+-  lib_rt=""
++  lib_rt="-lposix4"
+ else
+   echo "$ac_t""no" 1>&6
+ echo $ac_n "checking for clock_gettime in -lrt""... $ac_c" 1>&6
+@@ -14245,14 +14245,14 @@ if eval "test \"`echo '$ac_cv_lib_'$ac_l
+   lib_rt="-lrt"
+ else
+   echo "$ac_t""no" 1>&6
+-echo $ac_n "checking for clock_gettime in -lposix4""... $ac_c" 1>&6
+-echo "configure:14250: checking for clock_gettime in -lposix4" >&5
+-ac_lib_var=`echo posix4'_'clock_gettime | sed 'y%./+-%__p_%'`
++echo $ac_n "checking for clock_gettime in -lc""... $ac_c" 1>&6
++echo "configure:14250: checking for clock_gettime in -lc" >&5
++ac_lib_var=`echo c'_'clock_gettime | sed 'y%./+-%__p_%'`
+ if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+   echo $ac_n "(cached) $ac_c" 1>&6
+ else
+   ac_save_LIBS="$LIBS"
+-LIBS="-lposix4  $LIBS"
++LIBS="-lc  $LIBS"
+ cat > conftest.$ac_ext <<EOF
+ #line 14258 "configure"
+ #include "confdefs.h"
+@@ -14280,7 +14280,7 @@ LIBS="$ac_save_LIBS"
+ fi
+ if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
+   echo "$ac_t""yes" 1>&6
+-  lib_rt="-lposix4"
++  lib_rt=""
+ else
+   echo "$ac_t""no" 1>&6
+ fi
Index: patches/patch-db
===================================================================
RCS file: patches/patch-db
diff -N patches/patch-db
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-db    16 Jan 2008 20:27:03 -0000
@@ -0,0 +1,13 @@
+$NetBSD$
+
+--- cdda2wav/Makefile.orig     2008-01-16 19:46:23.000000000 +0100
++++ cdda2wav/Makefile
+@@ -24,7 +24,7 @@ HFILES=              cdda2wav.h interface.h semshm.h
+               sndconfig.h scsi_cmds.h lowlevel.h byteorder.h mycdrom.h \
+               base64.h sha.h mmsystem.h cd_text.c cd_extra.c \
+               defaults.h version.h
+-LIBS=         -lrscg -lscg $(LIB_VOLMGT) -lparanoia -ldeflt -lschily 
$(SCSILIB) $(EXTRALIB) $(LIB_SOCKET)
++LIBS=         -lrscg -lscg $(LIB_VOLMGT) -lparanoia -ldeflt -lschily 
$(SCSILIB) $(EXTRALIB) $(LIB_SOCKET) $(LIB_RT)
+ XMK_FILE=     Makefile.man Makefile.rd cdda2ogg.mk1
+ # cdda2ogg.mk1 fehlt noch für make rel
+ 
Index: patches/patch-dc
===================================================================
RCS file: patches/patch-dc
diff -N patches/patch-dc
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-dc    16 Jan 2008 20:27:03 -0000
@@ -0,0 +1,13 @@
+$NetBSD$
+
+--- cdrecord/Makefile.orig     2008-01-16 19:52:17.000000000 +0100
++++ cdrecord/Makefile
+@@ -42,7 +42,7 @@ HFILES=              cdrecord.h iso9660.h auheader.h
+               ../include/scg/scgio.h ../include/scg/scsidefs.h \
+               ../include/scg/scsireg.h ../include/scg/scsitransp.h
+ #LIBS=                -lschily $(LIB_SOCKET)
+-LIBS=         -lrscg -lscg $(LIB_VOLMGT) -ledc_ecc -ldeflt -lschily 
$(SCSILIB) $(LIB_SOCKET)
++LIBS=         -lrscg -lscg $(LIB_VOLMGT) -ledc_ecc -ldeflt -lschily 
$(SCSILIB) $(LIB_SOCKET) $(LIB_RT)
+ XMK_FILE=     Makefile.man Makefile.dfl Makefile.doc
+ 
+ 


Home | Main Index | Thread Index | Old Index