Re: Troubles building m4 from pkgsrc
Just FYI: this has been committed to the pkgsrc-current tree on the 29th of April. -- Gergo Szakal MD [EMAIL PROTECTED] University Of Szeged, HU Faculty Of General Medicine /* Please do not CC me with replies, thank you. */
Re: Troubles building m4 from pkgsrc
Steve O'Hara-Smith wrote: not sure what to do about actual makefile diffs, etc... Tricky - but patching the diffs isn't necessary LOCALPATCHES can contain patches that apply to the file as patched by the standard patches. this was meant to read more like: not sure what to do about patches to the Makefiles themselves I definitely wasn't trying to advocate patching-patches
Re: Troubles building m4 from pkgsrc
On Sat, 26 Apr 2008 17:48:44 -0700 (PDT) Matthew Dillon [EMAIL PROTECTED] wrote: : :Even with this on 1.13.0-DEVELOPMENT (on pkgbox) I get: : :cc -std=gnu99 -O2 -Wl,-R/home/reed/pkg/lib -o m4 m4.o builtin.o debug.o :eval.o format.o freeze.o input.o macro.o output.o path.o symtab.o :stackovf.o ../lib/libm4.a -lm :../lib/libm4.a(freadahead.o): In function `freadahead': :freadahead.c:(.text+0x5): undefined reference to `__sreadahead' :*** Error code 1 That function should exist in libc now. My M4 patch for pkgsrc Can it be slipped into Preview please ? -- C:WIN | Directable Mirror Arrays The computer obeys and wins.| A better way to focus the sun You lose and Bill collects. |licences available see |http://www.sohara.org/
Re: Troubles building m4 from pkgsrc
Steve O'Hara-Smith wrote: That function should exist in libc now. My M4 patch for pkgsrc Can it be slipped into Preview please ? I just slipped -Preview to HEAD. cheers simon
Re: Troubles building m4 from pkgsrc
Matthew Dillon wrote: It's a temporary solution until we can come up with a way to propogate our own pkgsrc tree but also keep it automatically synchronized with the master, so we can incorporate needed patches without creating a mess for our users. not sure I mentioned it before, but : anyone have any experience using $LOCALPATCHES ? (http://www.netbsd.org/docs/pkgsrc/components.html#components.patches.sources) seems like we could use this for in-package code related fixes.. not sure what to do about actual makefile diffs, etc... maybe the pkgsrc folks would not be opposed to adding some kind of makefile-check-warning into whatever mechanism handles $LOCALPATCHES e.g. if $LOCALPATCHES/mypackage/Makefile warn about presence of overriding makefile or potentially .include it ... of course, brings up the whole which-df-branch to match which-pkgsrc-branch thing again..
Troubles building m4 from pkgsrc
I'm getting an odd error message while trying to build m4 (as a dependency of xfce4)from pkgsrc, and would appreciate advice: = Bootstrap dependency digest=20010302: found digest-20070803 === Checking for vulnerabilities in m4-1.4.11nb1 === Building for m4-1.4.11nb1 /usr/pkg/bin/bmake all-recursive Making all in . Making all in examples Making all in lib /usr/pkg/bin/bmake all-am cc -std=gnu99 -I. -O2 -MT freadahead.o -MD -MP -MF .deps/freadahead.Tpo -c -o freadahead.o freadahead.c freadahead.c:82:3: error: #error Please port gnulib freadahead.c to your platform! Look at the definition of fflush, fread, ungetc on your system, then report this to bug-gnulib. *** Error code 1 Stop. bmake: stopped in /usr/pkgsrc/devel/m4/work/m4-1.4.11/lib *** Error code 1 Stop. bmake: stopped in /usr/pkgsrc/devel/m4/work/m4-1.4.11/lib *** Error code 1 Stop. bmake: stopped in /usr/pkgsrc/devel/m4/work/m4-1.4.11 *** Error code 1 Stop. bmake: stopped in /usr/pkgsrc/devel/m4/work/m4-1.4.11 *** Error code 1 Stop. bmake: stopped in /usr/pkgsrc/devel/m4 *** Error code 1 Stop. bmake: stopped in /usr/pkgsrc/devel/m4
Re: Troubles building m4 from pkgsrc
Andre LeClaire wrote: I'm getting an odd error message while trying to build m4 (as a dependency of xfce4)from pkgsrc, and would appreciate advice: This is FAQ already ;). You need to upgrade your DragonFly to 1.12.2 (or HEAD) and apply patch to pkgrsc tree: http://apollo.backplane.com/DFlyMisc/pkgsrc-devel-m4.patch -- Hasso Tepper
Re: Troubles building m4 from pkgsrc
Hasso Tepper wrote: Andre LeClaire wrote: I'm getting an odd error message while trying to build m4 (as a dependency of xfce4)from pkgsrc, and would appreciate advice: This is FAQ already ;). You need to upgrade your DragonFly to 1.12.2 (or HEAD) and apply patch to pkgrsc tree: http://apollo.backplane.com/DFlyMisc/pkgsrc-devel-m4.patch Yes, that did the trick! I'm already running 1.12.2, but obviously missed the info about the patch. Thanks! Andre
Re: Troubles building m4 from pkgsrc
:Yes, that did the trick! I'm already running 1.12.2, but obviously :missed the info about the patch. : :Thanks! : :Andre It's a temporary solution until we can come up with a way to propogate our own pkgsrc tree but also keep it automatically synchronized with the master, so we can incorporate needed patches without creating a mess for our users. -Matt Matthew Dillon [EMAIL PROTECTED]
Re: Troubles building m4 from pkgsrc
This is FAQ already ;). You need to upgrade your DragonFly to 1.12.2 (or HEAD) and apply patch to pkgrsc tree: Is there any way to build/use it on before 1.12.2? I am asking because normally pkgsrc should work on older platforms (especially when that required version is only a few days old) and not require the platform itself to be updated. http://apollo.backplane.com/DFlyMisc/pkgsrc-devel-m4.patch Even with this on 1.13.0-DEVELOPMENT (on pkgbox) I get: cc -std=gnu99 -O2 -Wl,-R/home/reed/pkg/lib -o m4 m4.o builtin.o debug.o eval.o format.o freeze.o input.o macro.o output.o path.o symtab.o stackovf.o ../lib/libm4.a -lm ../lib/libm4.a(freadahead.o): In function `freadahead': freadahead.c:(.text+0x5): undefined reference to `__sreadahead' *** Error code 1 I was about to submit to m4-patches list, but want to make sure are correct first. pkgsrc also has another DragonFly specific fix at bsd-fflush.c to replace lib/fflush.c. I don't know status of that for GNU m4. Jeremy C. Reed
Re: Troubles building m4 from pkgsrc
: :Even with this on 1.13.0-DEVELOPMENT (on pkgbox) I get: : :cc -std=gnu99 -O2 -Wl,-R/home/reed/pkg/lib -o m4 m4.o builtin.o debug.o :eval.o format.o freeze.o input.o macro.o output.o path.o symtab.o :stackovf.o ../lib/libm4.a -lm :../lib/libm4.a(freadahead.o): In function `freadahead': :freadahead.c:(.text+0x5): undefined reference to `__sreadahead' :*** Error code 1 That function should exist in libc now. My M4 patch for pkgsrc call that function (its not part of the vendor M4), because our struct FILE is opaque so there is no way to implement it directly in M4 (nor should we, M4's stdio code is an abomination, they should have just rolled their own). -Matt Matthew Dillon [EMAIL PROTECTED]
Re: Troubles building m4 from pkgsrc
On Sat, 26 Apr 2008, Matthew Dillon wrote: :Even with this on 1.13.0-DEVELOPMENT (on pkgbox) I get: : :cc -std=gnu99 -O2 -Wl,-R/home/reed/pkg/lib -o m4 m4.o builtin.o debug.o :eval.o format.o freeze.o input.o macro.o output.o path.o symtab.o :stackovf.o ../lib/libm4.a -lm :../lib/libm4.a(freadahead.o): In function `freadahead': :freadahead.c:(.text+0x5): undefined reference to `__sreadahead' :*** Error code 1 That function should exist in libc now. My M4 patch for pkgsrc call that function (its not part of the vendor M4), because our struct FILE is opaque so there is no way to implement it directly in M4 (nor should we, M4's stdio code is an abomination, they should have just rolled their own). I don't see on pkgbox yet. Also I didn't past the earlier warning for above: cc -std=gnu99 -I. -O2 -MT freadahead.o -MD -MP -MF .deps/freadahead.Tpo -c -o freadahead.o freadahead.c freadahead.c: In function 'freadahead': freadahead.c:83: warning: implicit declaration of function '__sreadahead' What is the way to handle this for older DragonFly? (Why isn't __sferror defined like it is on other BSDs?) Jeremy C. Reed
Re: Troubles building m4 from pkgsrc
:I don't see on pkgbox yet. : :Also I didn't past the earlier warning for above: : :cc -std=gnu99 -I. -O2 -MT freadahead.o -MD -MP -MF :.deps/freadahead.Tpo -c -o freadahead.o freadahead.c :freadahead.c: In function 'freadahead': :freadahead.c:83: warning: implicit declaration of function '__sreadahead' : : :What is the way to handle this for older DragonFly? :(Why isn't __sferror defined like it is on other BSDs?) : : Jeremy C. Reed Our FILE is opaque, even if __sferror were defined, it wouldn't help. pkgbox has the latest sources, but the last build/installworld was in late February, before this change went in. -Matt