pkgsrc-Bugs archive

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

pkg/26604: nologinmsg does not build under Linux (patch included)



>Number:         26604
>Category:       pkg
>Synopsis:       nologinmsg does not build under Linux (patch included)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Aug 09 11:09:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Roland Illig
>Release:        
>Organization:
>Environment:
System: Linux wwid 2.4.22-1-k7 #5 Sat Oct 4 14:11:12 EST 2003 i686 GNU/Linux
Architecture: i686

        
>Description:
nologinmsg uses several C functions that are not included in glibc (for
example: strlcpy, getprogname). The patch makes nologinmsg build with
libnbcompat.

>How-To-Repeat:
        
>Fix:

--- Makefile    18 Apr 2004 04:28:39 -0000      1.2
+++ Makefile    9 Aug 2004 10:31:20 -0000
@@ -10,6 +10,8 @@
 COMMENT=       More functional native binary replacement for /sbin/nologin
 
 USE_BUILDLINK3=        yes
+LIBS.Linux+=   -lnbcompat
+MAKE_FLAGS+=   LDADD="${LIBS:Q}"
 
 post-patch:
        ${MV} ${WRKSRC}/nologinmsg.8 ${WRKSRC}/nologinmsg.8.1
@@ -19,4 +21,8 @@
        ${SED} -e 's|/usr/local/etc|${PKG_SYSCONFDIR}|g'        \
                        ${WRKSRC}/pathnames.h.1 > ${WRKSRC}/pathnames.h
 
+.include "../../mk/bsd.prefs.mk"
+.if ${OPSYS} == "Linux"
+.include "../../pkgtools/libnbcompat/buildlink3.mk"
+.endif
 .include "../../mk/bsd.pkg.mk"
>Release-Note:
>Audit-Trail:
>Unformatted:



Home | Main Index | Thread Index | Old Index