pkgsrc-Bugs archive

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

pkg/45252: devel/pcc-libs: wrong PLIST for NetBSD and debian



>Number:         45252
>Category:       pkg
>Synopsis:       devel/pcc-libs: wrong PLIST for NetBSD and debian
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sun Aug 14 12:00:00 +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




Home | Main Index | Thread Index | Old Index