pkgsrc-Bugs archive

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

pkg/30341: [PATCH] devel/nbitools assumes Sun C compiler on Solaris



>Number:         30341
>Category:       pkg
>Synopsis:       [PATCH] devel/nbitools assumes Sun C compiler on Solaris
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu May 26 10:55:00 +0000 2005
>Originator:     Idar Tollefsen
>Release:        nbitools-6.3nb2
>Organization:
Performance Design
>Environment:
SunOS lancaster 5.10 s10_72 sun4u sparc SUNW,Ultra-30
>Description:
devel/nbitools assumes that Sun's C compiler is to be used on SunOS
when major version is >= 5. That, of course, doesn't work for those
of us who doesn't have that compiler and uses GCC in stead.
>How-To-Repeat:
On SunOS >= 5 with GCC installed (and not Sun's C compiler installed)
go to devel/nbitools and try to build it.
>Fix:
Here's a patch against devel/nbitools/Makefile that fixes the problem.
Please note that getting nbitools to build on SunOS still requires
the patch proposed in pkg/27267.
-----------------------------------------------------

--- Makefile.orig       Thu May 26 12:08:07 2005
+++ Makefile    Thu May 26 12:19:35 2005
@@ -27,5 +27,9 @@
        @${MV} ${WRKSRC}/config/cf/site.def ${WRKSRC}/config/cf/site.def.orig
        @${SED} -e 's|^\(\#define[ \t]*ProjectRoot\).*|\1 ${PREFIX}|' \
                ${WRKSRC}/config/cf/site.def.orig > ${WRKSRC}/config/cf/site.def
+.if ${OPSYS} == "SunOS" && ${CC} == "gcc"
+       @${ECHO} "#define HasSunC NO" >> ${WRKSRC}/config/cf/host.def
+       @${ECHO} "#define HasGcc2 YES" >> ${WRKSRC}/config/cf/host.def
+.endif
 
 .include "../../mk/bsd.pkg.mk"




Home | Main Index | Thread Index | Old Index