pkgsrc-Bugs archive

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

pkg/43285: pkgsrc bison 2.4.2 same POSIX spawn problem as GNU m4 for DragonFly

>Number:         43285
>Category:       pkg
>Synopsis:       pkgsrc bison 2.4.2 same POSIX spawn problem as GNU m4 for 
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon May 10 16:45:00 +0000 2010
>Originator:     David Shao
>Release:        DragonFly  2.7-DEVELOPMENT
DragonFly  2.7-DEVELOPMENT DragonFly v2.7.3.30.g6d4508-DEVELOPMENT #43: Sun May 
 9 09:55:37 PDT 2010     root@:/usr/obj/usr/src/sys/X86_64_GENERIC  x86_64
bison 2.4.2 on DragonFly is broken in the same way as for FreeBSD 8.x as 
described in the bison-patch mailing list:

This is the same bug as is described in
Build the latest git xserver from

One obtains the following build error:

      YACC   parser.c
    bison: m4 subprocess failed: Operation not permitted
    gmake[3]: *** [parser.c] Error 1

Using the below fix to the problem both for GNU m4 1.4.14 and bison 2.4.2 as is 
described in:

git xserver builds.
Use the same fix as in

That is, just enclose with #if using !@HAVE_POSIX_SPAWN@, the variable 
@HAVE_POSIX_SPAWN@ seemingly defined to be 1 in config.log.

--- lib/ 2010-05-10 15:42:18 +0000
+++ lib/
@@ -110,6 +110,7 @@ typedef struct
 /* Flags to be set in the `posix_spawnattr_t'.  */
 /* Use the values from the system, for better compatibility.  */
 /* But this implementation does not support AIX extensions.  */
@@ -122,6 +123,7 @@ typedef struct
 # define POSIX_SPAWN_SETSCHEDULER       0x20
+#endif /* HAVE_POSIX_SPAWN */
 /* A GNU extension.  Use the next free bit position.  */
   ((POSIX_SPAWN_RESETIDS | (POSIX_SPAWN_RESETIDS - 1)                   \

Home | Main Index | Thread Index | Old Index