pkgsrc-Bugs archive

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

pkg/26869: pkgsrc/time/phoon fails to compile on IRIX 5.3 (and maybe others)



>Number:         26869
>Category:       pkg
>Synopsis:       pkgsrc/time/phoon fails to compile on IRIX 5.3 (and maybe 
>others)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Sep 06 19:00:01 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Georg Schwarz
>Release:        current pkgsrc
>Organization:
>Environment:
IRIX lorenz 5.3 08031225 IP20 mips
>Description:
Compiling pkgsrc/time/phoon fails on IRIX 5.3 due to BSD being defined. IRIX is 
a SysV-style OS.
>How-To-Repeat:

>Fix:
patch the phoon Makefile to comment out the respective define (adapt the 
existing patch)

--- Makefile.orig1      Mon Sep  6 20:45:10 2004
+++ Makefile    Mon Sep  6 20:45:21 2004
@@ -5,7 +5,7 @@
 
 INSTALL = install
 
-DEFINES =      -DBSD
+#DEFINES =     -DBSD
 #DEFINES =     -DSYSV
 
 CFLAGS +=      $(DEFINES)



Then add the following lines to the package Makefile:

--- Makefile.orig       Mon Sep  6 20:45:52 2004
+++ Makefile    Mon Sep  6 20:53:39 2004
@@ -12,4 +12,10 @@
 
 WRKSRC=                ${WRKDIR}/phoon
 
+.include "../../mk/bsd.prefs.mk"
+.if ${OPSYS} == "IRIX"
+MAKEFLAGS+=    DEFINES=-DSYSV
+.else
+MAKEFLAGS+=    DEFINES=-DBSD
+.endif
 .include "../../mk/bsd.pkg.mk"


Other OSes (Solaris?) might also better be SYSV than BSD, too.


>Release-Note:
>Audit-Trail:
>Unformatted:



Home | Main Index | Thread Index | Old Index