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 
>DragonFly
>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
>Organization:
>Environment:
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
>Description:
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:

http://lists.gnu.org/archive/html/bison-patches/2010-03/msg00018.html

This is the same bug as is described in

http://www.netbsd.org/cgi-bin/query-pr-single.pl?number=43098
>How-To-Repeat:
Build the latest git xserver from

http://cgit.freedesktop.org/

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:

http://www.netbsd.org/cgi-bin/query-pr-single.pl?number=43098

git xserver builds.
>Fix:
Use the same fix as in

http://www.netbsd.org/cgi-bin/query-pr-single.pl?number=43098

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

--- lib/spawn.in.h.orig 2010-05-10 15:42:18 +0000
+++ lib/spawn.in.h
@@ -110,6 +110,7 @@ typedef struct
 
 
 /* Flags to be set in the `posix_spawnattr_t'.  */
+#if !@HAVE_POSIX_SPAWN@
 #if @REPLACE_POSIX_SPAWN@
 /* 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_SETSCHEDPARAM      0x10
 # define POSIX_SPAWN_SETSCHEDULER       0x20
 #endif
+#endif /* HAVE_POSIX_SPAWN */
 /* A GNU extension.  Use the next free bit position.  */
 #define POSIX_SPAWN_USEVFORK \
   ((POSIX_SPAWN_RESETIDS | (POSIX_SPAWN_RESETIDS - 1)                   \



Home | Main Index | Thread Index | Old Index