NetBSD Problem Report #46445
From tsutsui@ceres.dti.ne.jp Sat May 12 16:55:34 2012
Return-Path: <tsutsui@ceres.dti.ne.jp>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
by www.NetBSD.org (Postfix) with ESMTP id 81ED763B86B
for <gnats-bugs@gnats.NetBSD.org>; Sat, 12 May 2012 16:55:34 +0000 (UTC)
Message-Id: <201205121655.q4CGtoJw025704@mirage.localdomain>
Date: Sun, 13 May 2012 01:55:50 +0900 (JST)
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
Reply-To: tsutsui@ceres.dti.ne.jp
To: gnats-bugs@gnats.NetBSD.org
Cc: tsutsui@ceres.dti.ne.jp
Subject: emulators/simh has leftover patch files
X-Send-Pr-Version: 3.95
>Number: 46445
>Category: pkg
>Synopsis: emulators/simh has leftover patch files
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat May 12 17:00:01 +0000 2012
>Closed-Date: Sat May 26 13:51:57 +0000 2012
>Last-Modified: Sat May 26 13:51:57 +0000 2012
>Originator: Izumi Tsutsui
>Release: NetBSD 6.0_BETA
>Organization:
>Environment:
System: NetBSD/i386 6.0_BETA pkgsrc
Architecture: i386
Machine: i386
>Description:
patch-aa and patch-ad were removed from distinfo
---
diff -u -p -r1.16 -r1.17
--- pkgsrc/emulators/simh/distinfo 2011/11/11 19:50:54 1.16
+++ pkgsrc/emulators/simh/distinfo 2012/05/04 09:38:23 1.17
@@ -1,9 +1,7 @@
-$NetBSD: distinfo,v 1.16 2011/11/11 19:50:54 christos Exp $
+$NetBSD: distinfo,v 1.17 2012/05/04 09:38:23 hans Exp $
-SHA1 (simhv38-1.zip) = 5eac2f8e50be11600727983e05072690a7066702
-RMD160 (simhv38-1.zip) = f085c52ec92425f84f65b3f3605cb7aba8be7b32
-Size (simhv38-1.zip) = 2954982 bytes
-SHA1 (patch-aa) = 88567baeed5af2d834b105935ea1c8706dab1133
-SHA1 (patch-ab) = 85b36e3d92a2bfbd886dbb2e08a0af967edeb0bd
+SHA1 (simhv39-0.zip) = 1de3938f0dcb51d55b0e53aea8ae9769ccc57bdb
+RMD160 (simhv39-0.zip) = a464e7d1fc6d58dd23a3ef623c3c018d5d60b050
+Size (simhv39-0.zip) = 3103657 bytes
+SHA1 (patch-ab) = c82bb9a1ca5f149e994e1894a1753a99bccdec89
SHA1 (patch-ac) = 16673f3bb5c42cdfd0497cd1f0657cbbe3bbecdb
-SHA1 (patch-ad) = d4e0baa406b1426a6f8d39249484de61afd53474
---
but they are still in patches dir.
>How-To-Repeat:
cd pkgsrc/emulators/simh; make
:
:
===> Patching for simh-3.9.0
=> Applying pkgsrc patches for simh-3.9.0
**************************************
Ignoring patch file /usr/pkgsrc/emulators/simh/patches/patch-aa: no checksum found
**************************************
**************************************
Ignoring patch file /usr/pkgsrc/emulators/simh/patches/patch-ad: no checksum found
**************************************
===> Creating toolchain wrappers for simh-3.9.0
:
>Fix:
Not sure if removing them is okay. (build on NetBSD fails anyway)
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->hans
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Sat, 12 May 2012 17:44:53 +0000
Responsible-Changed-Why:
Over to updater.
From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/46445: emulators/simh has leftover patch files
Date: Sun, 13 May 2012 08:08:47 +0000
On Sat, May 12, 2012 at 05:00:02PM +0000, Izumi Tsutsui wrote:
> ===> Patching for simh-3.9.0
> => Applying pkgsrc patches for simh-3.9.0
> **************************************
> Ignoring patch file /usr/pkgsrc/emulators/simh/patches/patch-aa: no checksum found
> **************************************
> **************************************
> Ignoring patch file /usr/pkgsrc/emulators/simh/patches/patch-ad: no checksum found
> **************************************
> ===> Creating toolchain wrappers for simh-3.9.0
> :
>
> >Fix:
> Not sure if removing them is okay. (build on NetBSD fails anyway)
It builds ok for me...
--
David A. Holland
dholland@netbsd.org
From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/46445 CVS commit: pkgsrc/emulators/simh/patches
Date: Sat, 26 May 2012 02:50:53 +0000
Module Name: pkgsrc
Committed By: obache
Date: Sat May 26 02:50:53 UTC 2012
Removed Files:
pkgsrc/emulators/simh/patches: patch-ad
Log Message:
remove patch-ad, simh-3.9.0 contains this fix.
part of PR 46445.
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r0 pkgsrc/emulators/simh/patches/patch-ad
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/46445 CVS commit: pkgsrc/emulators/simh
Date: Sat, 26 May 2012 08:50:53 +0000
Module Name: pkgsrc
Committed By: obache
Date: Sat May 26 08:50:53 UTC 2012
Modified Files:
pkgsrc/emulators/simh: Makefile distinfo
pkgsrc/emulators/simh/patches: patch-aa
Log Message:
* Let gmake to find files in BUILDLINK_DIR
* honor PTHREAD_* flags.
* Pass CFLAGS/LDFLAGS to make
PR 46445, patch-aa is regenerated.
To generate a diff of this commit:
cvs rdiff -u -r1.35 -r1.36 pkgsrc/emulators/simh/Makefile
cvs rdiff -u -r1.17 -r1.18 pkgsrc/emulators/simh/distinfo
cvs rdiff -u -r1.9 -r1.10 pkgsrc/emulators/simh/patches/patch-aa
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Responsible-Changed-From-To: hans->obache
Responsible-Changed-By: obache@NetBSD.org
Responsible-Changed-When: Sat, 26 May 2012 08:51:26 +0000
Responsible-Changed-Why:
I'm handling
State-Changed-From-To: open->feedback
State-Changed-By: obache@NetBSD.org
State-Changed-When: Sat, 26 May 2012 08:52:57 +0000
State-Changed-Why:
I can build okay on NetBSD-5.1.2.
How to fail on your environment?
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
To: gnats-bugs@NetBSD.org
Cc: tsutsui@ceres.dti.ne.jp
Subject: Re: pkg/46445 (emulators/simh has leftover patch files)
Date: Sat, 26 May 2012 20:06:55 +0900
> Synopsis: emulators/simh has leftover patch files
:
> I can build okay on NetBSD-5.1.2.
> How to fail on your environment?
Fails NetBSD/i386 6.0_BETA (probably ports which have ldconfig(1)
and a.out compat support):
---
gcc -std=c99 -U__STRICT_ANSI__ -O2 -finline-functions -fgcse-after-reload -fpredictive-commoning -fipa-cp-clone -fno-unsafe-loop-optimizations -fno-strict-overflow -flto -fwhole-program -Wno-unused-result -I . -D_GNU_SOURCE -DHAVE_DLOPEN=so PDP1/pdp1_lp.c PDP1/pdp1_cpu.c PDP1/pdp1_stddev.c PDP1/pdp1_sys.c PDP1/pdp1_dt.c PDP1/pdp1_drm.c PDP1/pdp1_clk.c PDP1/pdp1_dcs.c scp.c sim_console.c sim_fio.c sim_timer.c sim_sock.c sim_tmxr.c sim_ether.c sim_tape.c -I PDP1 -o BIN/pdp1 -L/usr/lib -Wl,-R/usr/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -R/usr/pkg/lib -flto -fwhole-program
/var/tmp//ccsc35b7.o: In function `drm':
pdp1_drm.c:(.text+0x6e9): undefined reference to `fmod'
pdp1_drm.c:(.text+0x702): undefined reference to `fmod'
pdp1_drm.c:(.text+0x71b): undefined reference to `fmod'
pdp1_drm.c:(.text+0x734): undefined reference to `fmod'
gmake: *** [BIN/pdp1] Error 1
---
This is because simh/makefile override LIBPATH value
if ldconfig(1) returns any dirs:
---
LDSEARCH :=$(shell ldconfig -r | grep 'search directories' | awk '{print $$3}' | sed 's/:/ /g')
ifneq (,$(LDSEARCH))
LIBPATH := $(LDSEARCH)
endif
---
NetBSD doesn't have ldconfig(1) for ELF binaries,
but NetBSD's ldconfig(1) returns a.out compat paths
if a.out compat environment is prepared:
---
% ldconfig -r
/var/run/ld.so.hints:
search directories: /emul/aout/usr/local/lib:/emul/aout/usr/X11R6/lib
0:-lbfd.2.0 => /emul/aout//usr/lib/libbfd.so.2.0
1:-lbz2.0.0 => /emul/aout//usr/lib/libbz2.so.0.0
2:-lcrypt.0.0 => /emul/aout//usr/lib/libcrypt.so.0.0
---
Disabling the above ldconfig check fixes the problem.
---
--- makefile.orig 2012-04-23 07:28:04.000000000 +0000
+++ makefile
@@ -110,9 +110,12 @@ ifeq ($(WIN32),) #*nix Environments (&&
PCAPLIB = wpcap
LIBEXT = a
else
- LDSEARCH :=$(shell ldconfig -r | grep 'search directories' | awk '{print $$3}' | sed 's/:/ /g')
- ifneq (,$(LDSEARCH))
- LIBPATH := $(LDSEARCH)
+ # NetBSD's ldconfig is used only for old a.out binaries
+ ifneq (NetBSD,$(OSTYPE))
+ LDSEARCH :=$(shell ldconfig -r | grep 'search directories' | awk '{print $$3}' | sed 's/:/ /g')
+ ifneq (,$(LDSEARCH))
+ LIBPATH := $(LDSEARCH)
+ endif
endif
ifeq (usrpkglib,$(shell if $(TEST) -d /usr/pkg/lib; then echo usrpkglib; fi))
LIBPATH += /usr/pkg/lib
---
Responsible-Changed-From-To: obache->pkg-manager
Responsible-Changed-By: obache@NetBSD.org
Responsible-Changed-When: Sat, 26 May 2012 11:58:39 +0000
Responsible-Changed-Why:
I have no compat a.out environment.
State-Changed-From-To: feedback->open
State-Changed-By: obache@NetBSD.org
State-Changed-When: Sat, 26 May 2012 11:58:39 +0000
State-Changed-Why:
feedback provided.
From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/46445 CVS commit: pkgsrc/mk/tools
Date: Sat, 26 May 2012 13:09:55 +0000
Module Name: pkgsrc
Committed By: obache
Date: Sat May 26 13:09:55 UTC 2012
Modified Files:
pkgsrc/mk/tools: tools.NetBSD.mk
Log Message:
Only pick up /sbin/ldconfig as ldconfig tool for the case OBJECT_FMT=="a.out".
Fixes PR 46445.
To generate a diff of this commit:
cvs rdiff -u -r1.45 -r1.46 pkgsrc/mk/tools/tools.NetBSD.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: tsutsui@NetBSD.org
State-Changed-When: Sat, 26 May 2012 22:51:57 +0900
State-Changed-Why:
Confirmed fixed on NetBSD/i386 6.0_BETA with /emul/aout compat environment.
>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.