NetBSD Problem Report #26604
Received: (qmail 15764 invoked by uid 605); 9 Aug 2004 11:08:09 -0000
Message-Id: <E1Bu7VO-0001PS-00@wwid.roland-illig.de>
Date: Mon, 09 Aug 2004 12:35:50 +0200
From: roland.illig@gmx.de
Sender: gnats-bugs-owner@NetBSD.org
Reply-To:
To: gnats-bugs@gnats.netbsd.org
Cc:
Subject: nologinmsg does not build under Linux (patch included)
X-Send-Pr-Version: 3.113.1
X-GNATS-Notify:
>Number: 26604
>Category: pkg
>Synopsis: nologinmsg does not build under Linux (patch included)
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: linux-pkg-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Aug 09 11:09:00 +0000 2004
>Closed-Date: Fri Sep 24 01:53:07 +0000 2004
>Last-Modified: Fri Sep 24 01:53:07 +0000 2004
>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:
Responsible-Changed-From-To: pkg-manager->linux-pkg-people
Responsible-Changed-By: cube
Responsible-Changed-When: Thu Aug 12 22:09:35 UTC 2004
Responsible-Changed-Why:
Linux-specific.
State-Changed-From-To: open->feedback
State-Changed-By: jschauma
State-Changed-When: Mon Aug 23 00:00:16 UTC 2004
State-Changed-Why:
I just applied a modified version of your patch - please update your
pkgsrc files and let me know if it works for you.
From: Jan Schaumann <jschauma@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: pr/26604 CVS commit: pkgsrc/shells/nologinmsg
Date: Sun, 22 Aug 2004 23:59:59 +0000 (UTC)
Module Name: pkgsrc
Committed By: jschauma
Date: Sun Aug 22 23:59:59 UTC 2004
Modified Files:
pkgsrc/shells/nologinmsg: Makefile distinfo
Log Message:
Make this build and install under Linux and IRIX, using ideas from
Roland Illig in PR pkg/26604.
To generate a diff of this commit:
cvs rdiff -r1.2 -r1.3 pkgsrc/shells/nologinmsg/Makefile
cvs rdiff -r1.1.1.1 -r1.2 pkgsrc/shells/nologinmsg/distinfo
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: feedback->closed
State-Changed-By: reed
State-Changed-When: Fri Sep 24 01:52:15 UTC 2004
State-Changed-Why:
It appears to be fixed. I tested myself also.
No feedback in a month from PR originator.
(By the way, why isn't the manpage installed?)
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.