Wrap binary in scrip to set some variables
Hi all I'm maintaining a port (graphics/ipe) and the newest version needs a variable set. The way I would solve this is to rename the binary (and move it out of PATH), create a script instead with the original and let the script set the variable. Is this the way to go or should I rather do something else? If yes, how would I do so. Do a 'mv' in the Makefile and put the script in files/? Best Regards Troels Kofoed Jacobsen ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: libthr on current breaks some ports
Manfred Antar n...@pozo.com writes: The new addition to Makefile on /lib/libthr -Wl,-znodlopen Breaks php4 and mhash on my current 1386 If they try to dlopen() libthr, they're already broken. I'm sure other ports that use it are broken too as can't load the lib. I doubt it. DES -- Dag-Erling Smørgrav - d...@des.no ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: OpenOffice.org packages
Sorry I'm little unused to mailinglists, and in mutt I have to cc manually - Forwarded message from Aldis Berjoza killasmur...@gmail.com - Date: Fri, 27 Nov 2009 13:11:45 +0200 From: Aldis Berjoza killasmur...@gmail.com To: Scot Hetzel swhet...@gmail.com Subject: Re: OpenOffice.org packages * Scot Hetzel swhet...@gmail.com [26.11.2009. @04:39:19 -0600]: On 11/26/09, Gary Kline kl...@thought.org wrote: Looks like all the OpenOffice ports have a line like this: JAVA_VENDOR=freebsd bsdjava openjdk Okay, so what does this mean I'm going to have to find and build from java-land from Sun? Anything?? It defines which java ports are allowed to satisfy the java build/run dependancy. According to /usr/ports/Mk/bsd.java.mk, any one of these ports will satisfy the dependancy on java. freebsd java/diablo-jdk15, java/diablo-jdk16 bsdjava java/jdk13 thru java/jdk16 openjdk6 java/openjdk6 If you install openjdk6 before building Open Office, it will use openjdk6 and you won't need to download any files from Sun. Scot I've reated OOO packages http://forums.freebsd.org/showthread.php?t=8639 for now they are available at my temp ftp server ftp://83.241.11.135 I've just build openjdk6, removed jdk and diablo-jdk. OpenOffice works :D -- Aldis Berjoza *** MĒKLĒJU DARBU :D *** Tev ir vienreizēja iespēja iegūt labu darbinieku IT sfērā, ar lielu motivāciju pilnveidoties un apgūt jaunas zināšanas CV: http://www.cv.lv/client/fullcv.php?cv_id=3227015 nepalaid garām :D My public GPG key: http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0x7ED573D3 - End forwarded message - -- Aldis Berjoza *** MĒKLĒJU DARBU :D *** Tev ir vienreizēja iespēja iegūt labu darbinieku IT sfērā, ar lielu motivāciju pilnveidoties un apgūt jaunas zināšanas CV: http://www.cv.lv/client/fullcv.php?cv_id=3227015 nepalaid garām :D My public GPG key: http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0x7ED573D3 pgpX7U1Hzz8sG.pgp Description: PGP signature
does istgt works on -CURRENT ?
Hi Sergey, It seems that it doesn´t effect FreeBSD 9.0 only. I tried it on FreeBSD 8.0. And I get the same error. I have FreeBSD 8.0 x64 Release installed and than created a zpool, not updated, and had with zfs created a target. After that I installed istgt with the ports. Made the same configuration as u, besides the IP-Address ;), and got this failure by starting istgt: Starting istgt. Istgt version 0.2 (20090428) Istgt_lu.c:1213:istgt_lu_add_unit: ***ERROR*** LU1: LUN0: format error Istgt_lu.c:1473:istgt_lu_init: ***ERROR*** lu_add_unit() failed Istgt.c:1247:main: ***ERROR*** istgt_lu_init() failed /usr/local/etc/rc.d/istgt: WARNING: failed to start istgt Have someone an idea? Greetings Daniel Hi Daisuke Aoyama and list I'm trying run iSCSI target on my -CURRENT box %uname -a FreeBSD current.domain 9.0-CURRENT FreeBSD 9.0-CURRENT #6 r198480: Tue Nov 3 10:03:09 EET 2009 root at current.domain:/usr/obj/usr/src/sys/KERN amd64 %pkg_info -xI istgt istgt-20090428 An iSCSI target for FreeBSD 7.x with ZFS %zfs upgrade This system is currently running ZFS filesystem version 3. All filesystems are formatted with the current version. %zpool upgrade This system is currently running ZFS pool version 13. All pools are formatted using this version. Now my actions Step-by-step: # zfs create tank/share/target # zfs set mountpoint=none tank/share/target # zfs set quota=20G tank/share/target # cd /usr/local/etc/istgt # cp auth.conf.sample auth.conf # cp istgt.conf.sample istgt.conf # cp istgtcontrol.conf.sample istgtcontrol.conf my server`s IP is 192.168.9.249 I made some changes on istgt.conf: 1) section [PortalGroup1]: Portal DA1 192.168.2.36:3260 - Portal DA1 192.168.9.249:3260 2) sections [LogicalUnit1]: LUN0 Storage /tank/iscsi/istgt-disk1 10G - LUN0 Storage /tank/share/target Now I'm trying start istgt: # /usr/local/etc/rc.d/istgt onestart istgt version 0.2 (20090428) istgt_lu.c:1213:istgt_lu_add_unit: ***ERROR*** LU1: LUN0: format error istgt_lu.c:1473:istgt_lu_init: ***ERROR*** lu_add_unit() failed istgt.c:1247:main: ***ERROR*** istgt_lu_init() failed /usr/local/etc/rc.d/istgt: WARNING: failed to start istgt where I'm wrong? ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: libthr on current breaks some ports
On Fri, Nov 27, 2009 at 11:40:44AM +0100, Dag-Erling Sm??rgrav wrote: Manfred Antar n...@pozo.com writes: The new addition to Makefile on /lib/libthr -Wl,-znodlopen Breaks php4 and mhash on my current 1386 If they try to dlopen() libthr, they're already broken. As an absolute minimum, you get non-working errno, because libraries loaded after libthr reference libthr threaded errno, while libc still uses global errno. Once, I spent several hours searching for the memory corruption only to realize this. I'm sure other ports that use it are broken too as can't load the lib. I doubt it. DES -- Dag-Erling Sm??rgrav - d...@des.no ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org pgpiWZQFudRSb.pgp Description: PGP signature
Re: libthr on current breaks some ports
At 02:40 AM 11/27/2009, Dag-Erling Smørgrav wrote: Manfred Antar n...@pozo.com writes: The new addition to Makefile on /lib/libthr -Wl,-znodlopen Breaks php4 and mhash on my current 1386 If they try to dlopen() libthr, they're already broken. I'm sure other ports that use it are broken too as can't load the lib. I doubt it. DES -- Dag-Erling Smørgrav - d...@des.no -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. OK Here are some of the errors I get Just rebuild /usr/ports/graphics/gd ldd /usr/local/lib/libgd.so.4 /usr/local/lib/libgd.so.4: /libexec/ld-elf.so.1: /usr/local/lib/libgd.so.4: Unexpected inconsistency: dependency libthr.so.3 not found /usr/local/lib/libgd.so.4: exit status 1 Just rebuild /usr/ports/security/mhash ldd /usr/local/lib/libmhash.so /usr/local/lib/libmhash.so: /libexec/ld-elf.so.1: /usr/local/lib/libmhash.so: Unexpected inconsistency: dependency libthr.so.3 not found /usr/local/lib/libmhash.so: exit status 1 Both of these have --with-LDFLAGS=${PTHREAD_LIBS} in the Makefile. == || n...@pozo.com || || Ph. (415) 681-6235 || == -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: libthr on current breaks some ports
On Fri, Nov 27, 2009 at 08:36:36AM -0800, Manfred Antar wrote: At 02:40 AM 11/27/2009, Dag-Erling Sm??rgrav wrote: Manfred Antar n...@pozo.com writes: The new addition to Makefile on /lib/libthr -Wl,-znodlopen Breaks php4 and mhash on my current 1386 If they try to dlopen() libthr, they're already broken. I'm sure other ports that use it are broken too as can't load the lib. I doubt it. DES -- Dag-Erling Sm??rgrav - d...@des.no -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. OK Here are some of the errors I get Just rebuild /usr/ports/graphics/gd ldd /usr/local/lib/libgd.so.4 /usr/local/lib/libgd.so.4: /libexec/ld-elf.so.1: /usr/local/lib/libgd.so.4: Unexpected inconsistency: dependency libthr.so.3 not found /usr/local/lib/libgd.so.4: exit status 1 Just rebuild /usr/ports/security/mhash ldd /usr/local/lib/libmhash.so /usr/local/lib/libmhash.so: /libexec/ld-elf.so.1: /usr/local/lib/libmhash.so: Unexpected inconsistency: dependency libthr.so.3 not found /usr/local/lib/libmhash.so: exit status 1 Both of these have --with-LDFLAGS=${PTHREAD_LIBS} in the Makefile. This is a real regression, but limited to ldd/LD_TRACE_LOADED_OBJECTS functionality. The following quick fix worked for me. diff --git a/libexec/rtld-elf/rtld.c b/libexec/rtld-elf/rtld.c index 320aa85..508a786 100644 --- a/libexec/rtld-elf/rtld.c +++ b/libexec/rtld-elf/rtld.c @@ -1571,7 +1571,8 @@ do_load_object(int fd, const char *name, char *path, struct stat *sbp, object_add_name(obj, name); obj-path = path; digest_dynamic(obj, 0); -if (obj-z_noopen (flags RTLD_LO_DLOPEN)) { +if (obj-z_noopen (flags (RTLD_LO_DLOPEN | RTLD_LO_TRACE)) == + RTLD_LO_DLOPEN) { dbg(refusing to load non-loadable \%s\, obj-path); _rtld_error(Cannot dlopen non-loadable %s\n, obj-path); munmap(obj-mapbase, obj-mapsize); @@ -2006,6 +2007,8 @@ dlopen(const char *name, int mode) lo_flags = RTLD_LO_DLOPEN; if (mode RTLD_NOLOAD) lo_flags |= RTLD_LO_NOLOAD; +if (ld_tracing != NULL) + lo_flags |= RTLD_LO_TRACE; objlist_init(initlist); diff --git a/libexec/rtld-elf/rtld.h b/libexec/rtld-elf/rtld.h index 6f51d7d..875e84b 100644 --- a/libexec/rtld-elf/rtld.h +++ b/libexec/rtld-elf/rtld.h @@ -242,8 +242,9 @@ typedef struct Struct_Obj_Entry { dlsym. */ /* Flags for load_object(). */ -#defineRTLD_LO_NOLOAD 0x01/* dlopen() specified RTLD_NOLOAD */ -#defineRTLD_LO_DLOPEN 0x02/* load_object() called from dlopen(). */ +#defineRTLD_LO_NOLOAD 0x01/* dlopen() specified RTLD_NOLOAD. */ +#defineRTLD_LO_DLOPEN 0x02/* Load_object() called from dlopen(). */ +#defineRTLD_LO_TRACE 0x04/* Only tracing. */ /* * Symbol cache entry used during relocation to avoid multiple lookups pgp5UsmerF8pA.pgp Description: PGP signature
kdebindings4 make install fails on latest upgrade
make install failure : [ 97%] Built target python_module_PyKDE4_soprano Scanning dependencies of target compile_python_files [ 97%] Built target compile_python_files Scanning dependencies of target kpythonpluginfactory_automoc [ 97%] Built target kpythonpluginfactory_automoc Scanning dependencies of target kpythonpluginfactory [ 98%] Building CXX object python/pykde4/kpythonpluginfactory/CMakeFiles/kpythonpluginfactory.dir/kpythonpluginfactory_automoc.o [100%] Building CXX object python/pykde4/kpythonpluginfactory/CMakeFiles/kpythonpluginfactory.dir/kpythonpluginfactory.o /usr/ports/devel/kdebindings4-python- pykde4/work/kdebindings-4.3.3/python/pykde4/kpythonpluginfactory/kpythonpluginfactory.cpp: In function 'QLibrary* LoadPythonLibrary()': /usr/ports/devel/kdebindings4-python- pykde4/work/kdebindings-4.3.3/python/pykde4/kpythonpluginfactory/kpythonpluginfactory.cpp:301: error: 'RTLD_NOLOAD' was not declared in this scope *** Error code 1 Stop in /usr/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.3. *** Error code 1 Stop in /usr/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.3. *** Error code 1 Stop in /usr/ports/devel/kdebindings4-python- pykde4/work/kdebindings-4.3.3/python/pykde4. *** Error code 1 Stop in /usr/ports/devel/kdebindings4-python-pykde4. *** Error code 1 Stop in /usr/ports/devel/kdebindings4-python. *** Error code 1 Stop in /usr/ports/devel/kdebindings4. *** Error code 1 Stop in /usr/ports/devel/kdebindings4. dns1# pwd /usr/ports/devel/kdebindings4 ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
[Call For Testing] New version - aMSN-0.98.1
Hi folks, I would like to invite everyone to test the newest version of aMSN. This version has support for video conferencing and audio conferencing, is using tk and tcl 8.6 with support for threads. The tarball style ports can be downloaded at: http://people.freebsd.org/ ~ sylvio/amsn-0.98.1.tar.gz Some screens: http://people.freebsd.org/~sylvio/amsn-0.98.1.png http://people.freebsd.org/~sylvio/amsn_with_voice.png Thank you all. Regards, Sylvio Cesar. ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: libthr on current breaks some ports
Sorry, just my .0002 USD On Fri, 27 Nov 2009, Manfred Antar wrote: At 02:40 AM 11/27/2009, Dag-Erling Sm??rgrav wrote: Manfred Antar n...@pozo.com writes: The new addition to Makefile on /lib/libthr -Wl,-znodlopen Breaks php4 and mhash on my current 1386 If they try to dlopen() libthr, they're already broken. I'm sure other ports that use it are broken too as can't load the lib. I doubt it. DES -- Dag-Erling Sm??rgrav - d...@des.no -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. OK Here are some of the errors I get Just rebuild /usr/ports/graphics/gd ldd /usr/local/lib/libgd.so.4 /usr/local/lib/libgd.so.4: /libexec/ld-elf.so.1: /usr/local/lib/libgd.so.4: Unexpected inconsistency: dependency libthr.so.3 not found /usr/local/lib/libgd.so.4: exit status 1 Just rebuild /usr/ports/security/mhash ldd /usr/local/lib/libmhash.so /usr/local/lib/libmhash.so: /libexec/ld-elf.so.1: /usr/local/lib/libmhash.so: Unexpected inconsistency: dependency libthr.so.3 not found /usr/local/lib/libmhash.so: exit status 1 Both of these have --with-LDFLAGS=${PTHREAD_LIBS} in the Makefile. Just rebuild audio/faad - result precisely the same. Besides, ALL of the already installed ports are affected: ldd /usr/local/lib/lib*.so|grep libthr gives either the same or libthr.so.3 = not found (0x0) What is the worst, X does not load (display just freezes and the only way out is to turn a box off - fortunately, ACPI does work here). Result: as it is, my system (it's a desktop so ports are essential) is rendered unusable. Fortunately, installworld backs up old ld-elf.so.1 so replacing linker saves from this disaster. WBR, Vladimir ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org