NetBSD Problem Report #45252
From www@NetBSD.org Sun Aug 14 11:57:57 2011
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by www.NetBSD.org (Postfix) with ESMTP id B267263C796
for <gnats-bugs@gnats.NetBSD.org>; Sun, 14 Aug 2011 11:57:57 +0000 (UTC)
Message-Id: <20110814115756.B250E63BED8@www.NetBSD.org>
Date: Sun, 14 Aug 2011 11:57:56 +0000 (UTC)
From: kuehro@gmx.de
Reply-To: kuehro@gmx.de
To: gnats-bugs@NetBSD.org
Subject: devel/pcc-libs: wrong PLIST for NetBSD and debian
X-Send-Pr-Version: www-1.0
>Number: 45252
>Category: pkg
>Synopsis: devel/pcc-libs: wrong PLIST for NetBSD and debian
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: reed
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Sun Aug 14 12:00:00 +0000 2011
>Last-Modified: Mon Aug 15 21:17:46 +0000 2011
>Originator: Kai-Uwe Eckhardt
>Release: 5.1 i386
>Organization:
>Environment:
>Description:
bmake package-install fails with USE_DESTDIR and PKGSRC_DEVELOPER set to
yes on NetBSD 5.1 i386 and debian 6.0 amd64 because the PLIST contains the
wrong files for NetBSD and debian.
>How-To-Repeat:
Try to install devel/pcc-libs on NetBSD i386 (amd64 not supported) or
on debian 6.0 amd64. For debian add Linux-*-x86_64 to ONLY_FOR_PLATFORM
in the Makefile.
>Fix:
With the help of Jeremy C. Reed I found the following fixes, but this would result in a lot of different PLIST.OS files for all supported
platforms:
1) at the end of the Makefile add:
.include "../../mk/bsd.pkg.mk"
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "Linux"
MACHINE_GNU_PLATFORM:= ${MACHINE_GNU_PLATFORM}-gnu
.endif
2) PLIST would contain only the files common to all platforms:
lib/pcc/${MACHINE_GNU_PLATFORM}/${PKGVERSION}.RELEASE/include/float.h
lib/pcc/${MACHINE_GNU_PLATFORM}/${PKGVERSION}.RELEASE/include/iso646.h
lib/pcc/${MACHINE_GNU_PLATFORM}/${PKGVERSION}.RELEASE/include/libpcc_float.h
lib/pcc/${MACHINE_GNU_PLATFORM}/${PKGVERSION}.RELEASE/include/libpcc_limits.h
lib/pcc/${MACHINE_GNU_PLATFORM}/${PKGVERSION}.RELEASE/include/libpcc_stdarg.h
lib/pcc/${MACHINE_GNU_PLATFORM}/${PKGVERSION}.RELEASE/include/libpcc_stdbool.h
lib/pcc/${MACHINE_GNU_PLATFORM}/${PKGVERSION}.RELEASE/include/libpcc_stddef.h
lib/pcc/${MACHINE_GNU_PLATFORM}/${PKGVERSION}.RELEASE/include/limits.h
lib/pcc/${MACHINE_GNU_PLATFORM}/${PKGVERSION}.RELEASE/include/stdarg.h
lib/pcc/${MACHINE_GNU_PLATFORM}/${PKGVERSION}.RELEASE/include/stdbool.h
lib/pcc/${MACHINE_GNU_PLATFORM}/${PKGVERSION}.RELEASE/include/stddef.h
lib/pcc/${MACHINE_GNU_PLATFORM}/${PKGVERSION}.RELEASE/lib/libpcc.a
lib/pcc/${MACHINE_GNU_PLATFORM}/${PKGVERSION}.RELEASE/lib/libpccsoftfloat.a
3) PLIST.Linux
lib/pcc/${MACHINE_GNU_PLATFORM}/${PKGVERSION}.RELEASE/lib/crt0.o
lib/pcc/${MACHINE_GNU_PLATFORM}/${PKGVERSION}.RELEASE/lib/crt1.o
lib/pcc/${MACHINE_GNU_PLATFORM}/${PKGVERSION}.RELEASE/lib/crtbegin.o
lib/pcc/${MACHINE_GNU_PLATFORM}/${PKGVERSION}.RELEASE/lib/crtend.o
lib/pcc/${MACHINE_GNU_PLATFORM}/${PKGVERSION}.RELEASE/lib/crti.o
lib/pcc/${MACHINE_GNU_PLATFORM}/${PKGVERSION}.RELEASE/lib/crtn.o
lib/pcc/${MACHINE_GNU_PLATFORM}/${PKGVERSION}.RELEASE/lib/gcrt1.o
4) PLIST.NetBSD
lib/pcc/${MACHINE_GNU_PLATFORM}/${PKGVERSION}.RELEASE/lib/crtbegin.o
lib/pcc/${MACHINE_GNU_PLATFORM}/${PKGVERSION}.RELEASE/lib/crtend.o
5) PLIST.Darwin
lib/pcc/${MACHINE_GNU_PLATFORM}/${PKGVERSION}.RELEASE/lib/crt0.o
lib/pcc/${MACHINE_GNU_PLATFORM}/${PKGVERSION}.RELEASE/lib/crt1.o
lib/pcc/${MACHINE_GNU_PLATFORM}/${PKGVERSION}.RELEASE/lib/dylib1.o
lib/pcc/${MACHINE_GNU_PLATFORM}/${PKGVERSION}.RELEASE/lib/gcrt1.o
Tested on NetBSD 5.1 i386 and debian 6.0 amd64. The Darwin entries
are the contents of the original PLIST currently in pkgsrc.
Good luck,
Kai-Uwe
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->reed
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Mon, 15 Aug 2011 21:17:46 +0000
Responsible-Changed-Why:
reed agreed to handle it (thanks!)
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.