NetBSD Problem Report #29031
From jewell@MIT.EDU Fri Jan 21 00:48:37 2005
Return-Path: <jewell@MIT.EDU>
Received: from south-station-annex.mit.edu (SOUTH-STATION-ANNEX.MIT.EDU [18.72.1.2])
by narn.netbsd.org (Postfix) with ESMTP id 6067D63B400
for <gnats-bugs@gnats.netbsd.org>; Fri, 21 Jan 2005 00:48:37 +0000 (UTC)
Message-Id: <20050121004318.1E5F8436F30@quiteria.zlz.net>
Date: Thu, 20 Jan 2005 19:43:18 -0500 (EST)
From: "Darrin B.Jewell" <dbj@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: "Darrin B.Jewell" <dbj@netbsd.org>
Subject: pkgsrc-2004Q4 broke INSTALL_UNSTRIPPED for lang/ocaml
>Number: 29031
>Category: pkg
>Synopsis: pkgsrc-2004Q4 broke INSTALL_UNSTRIPPED for lang/ocaml
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Jan 21 00:49:00 +0000 2005
>Closed-Date: Fri Mar 18 18:18:09 +0000 2005
>Last-Modified: Fri Mar 18 18:21:01 +0000 2005
>Originator: Darrin B. Jewell
>Release: pkgsrc-2004Q4 updated via cvs ~20050120T1819Z
>Organization:
>Environment:
System: Darwin Quiteria 7.7.0 Darwin Kernel Version 7.7.0: Sun Nov 7 16:06:51 PST 2004; root:xnu/xnu-517.9.5.obj~1/RELEASE_PPC Power Macintosh powerpc
Architecture: powerpc
Machine: Power Macintosh
>Description:
When attempting to build pkgsrc/lang/ocaml on macos 10.3.7,
it fails with the following error in the log:
install -c -s -o root -g wheel -m 555 labltktop /usr/pkg/lib/ocaml/labltk
strip: the __LINKEDIT segment does not cover the end of the file (can't be processed) in: /usr/pkg/lib/ocaml/labltk/labltktop
This problem did not occur on pkgsrc-2004Q3
If I manually put INSTALL_UNSTRIPPED=yes on the bmake command
line or inside the Makefile before the "../../mk/bsd.prefs.mk" include
then it will complete the install.
I theorize that tv may have broken it when he commited this change:
http://mail-index.netbsd.org/pkgsrc-changes/2004/10/13/0044.html
>How-To-Repeat:
Attempt to install the ocaml package on macos from the pkgsrc-2004Q4 branch
>Fix:
>Release-Note:
>Audit-Trail:
From: Todd Vierling <tv@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: PR/29031 CVS commit: pkgsrc/mk
Date: Fri, 18 Mar 2005 18:16:35 +0000 (UTC)
Module Name: pkgsrc
Committed By: tv
Date: Fri Mar 18 18:16:35 UTC 2005
Modified Files:
pkgsrc/mk: bsd.pkg.mk
pkgsrc/mk/platform: AIX.mk BSDOS.mk Darwin.mk DragonFly.mk FreeBSD.mk
IRIX.mk Interix.mk Linux.mk NetBSD.mk OSF1.mk OpenBSD.mk SunOS.mk
UnixWare.mk
Log Message:
Fix a gleaming illustration of why using YES/NO variables everywhere
possible, just for the sake of doing so, is not a good thing to do:
The platform files define _STRIPFLAG_* to determine whether to strip things.
But since this is included in bsd.prefs.mk, ".if ..." checks cannot take
things set in the Makefile into account. So convert INSTALL_UNSTRIPPED=YES
to a defined/undefined variable check in bsd.pkg.mk, and use the :D:U idiom
in the _STRIPFLAG_* variables.
This should fix PR pkg/28772 and PR pkg/29031.
To generate a diff of this commit:
cvs rdiff -r1.1599 -r1.1600 pkgsrc/mk/bsd.pkg.mk
cvs rdiff -r1.11 -r1.12 pkgsrc/mk/platform/AIX.mk \
pkgsrc/mk/platform/OpenBSD.mk
cvs rdiff -r1.7 -r1.8 pkgsrc/mk/platform/BSDOS.mk \
pkgsrc/mk/platform/Darwin.mk pkgsrc/mk/platform/FreeBSD.mk \
pkgsrc/mk/platform/NetBSD.mk pkgsrc/mk/platform/UnixWare.mk
cvs rdiff -r1.9 -r1.10 pkgsrc/mk/platform/DragonFly.mk \
pkgsrc/mk/platform/IRIX.mk pkgsrc/mk/platform/Linux.mk \
pkgsrc/mk/platform/SunOS.mk
cvs rdiff -r1.24 -r1.25 pkgsrc/mk/platform/Interix.mk
cvs rdiff -r1.2 -r1.3 pkgsrc/mk/platform/OSF1.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->closed
State-Changed-By: tv@netbsd.org
State-Changed-When: Fri, 18 Mar 2005 18:18:09 +0000
State-Changed-Why:
Fixed. I "introduced" the problem, and I've put in a workaround-fix.
From: Todd Vierling <tv@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: PR/29031 CVS commit: pkgsrc/lang/ocaml
Date: Fri, 18 Mar 2005 18:17:07 +0000 (UTC)
Module Name: pkgsrc
Committed By: tv
Date: Fri Mar 18 18:17:07 UTC 2005
Modified Files:
pkgsrc/lang/ocaml: Makefile.common
Log Message:
With mk/ fix for PR pkg/29031, the _STRIPFLAG_* hack is no longer needed.
To generate a diff of this commit:
cvs rdiff -r1.3 -r1.4 pkgsrc/lang/ocaml/Makefile.common
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
>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.