tech-pkg archive

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

plist problems with destdir under darwin



Hi,

It seems that the shlib-dylib code to handle shared libs entries in
PLIST under darwin does not play well with destdir support.
I see the problem with, e.g. multimedia/xvidcore : it installs fine
without destdir, but fails with it.

Without destdir, i get:
=> Generating pre-install file lists
  D: /Volumes/Data/NetBSD/pkg/lib
  I: /Volumes/Data/NetBSD/pkg/lib/libxvidcore.4.dylib
  I: /Volumes/Data/NetBSD/pkg/lib/libxvidcore.a
  D: /Volumes/Data/NetBSD/pkg/include
  I: /Volumes/Data/NetBSD/pkg/include/xvid.h
/bin/rm -f /Volumes/Data/NetBSD/pkg/lib/libxvidcore.so.4
/bin/mv -f /Volumes/Data/NetBSD/pkg/lib/libxvidcore.so
/Volumes/Data/NetBSD/pkg/lib/libxvidcore.dylib
=> Automatic manual page handling
=> Generating post-install file lists
Full pathname symlink `/Volumes/Data/NetBSD/pkg/lib/libxvidcore.4.dylib' is 
target of `/Volumes/Data/NetBSD/pkg/lib/libxvidcore.dylib' - adjusting to 
`../lib/libxvidcore.4.dylib'
=> Registering installation for xvidcore-1.1.3
=> Checking file-check results for xvidcore-1.1.3

and with destdir:
=> Unwrapping files-to-be-installed.
===> Installing for xvidcore-1.1.3
=> Generating pre-install file lists
  D: /Volumes/Data/NetBSD/pkg/lib
  I: /Volumes/Data/NetBSD/pkg/lib/libxvidcore.4.dylib
  I: /Volumes/Data/NetBSD/pkg/lib/libxvidcore.a
  D: /Volumes/Data/NetBSD/pkg/include
  I: /Volumes/Data/NetBSD/pkg/include/xvid.h
/bin/rm -f
/Volumes/Data/NetBSD/obj/multimedia/xvidcore/work/.destdir/Volumes/Data/NetBSD/pkg/lib/libxvidcore.so.4
/bin/mv -f 
/Volumes/Data/NetBSD/obj/multimedia/xvidcore/work/.destdir/Volumes/Data/NetBSD/pkg/lib/libxvidcore.so
/Volumes/Data/NetBSD/obj/multimedia/xvidcore/work/.destdir/Volumes/Data/NetBSD/pkg/lib/libxvidcore.dylib
=> Automatic manual page handling
=> Generating post-install file lists
=> Checking file-check results for xvidcore-1.1.3
ERROR: ************************************************************
ERROR: The following files are in /Volumes/Data/NetBSD/pkg but not in the PLIST:
ERROR:
/Volumes/Data/NetBSD/obj/multimedia/xvidcore/work/.destdir/Volumes/Data/NetBSD/pkg/lib/libxvidcore.dylib
*** Error code 1

This package has a post-install target that cretes the dylib, with
.if ${OPSYS} == "Darwin"
post-install:
        ${RM} -f ${DESTDIR}${PREFIX}/lib/libxvidcore.so.4
        ${MV} -f ${DESTDIR}${PREFIX}/lib/libxvidcore.so 
${DESTDIR}${PREFIX}/lib/libxvidcore.dylib
.endif
Should this be changed for destdir ?

Cheers,
antoine

Attachment: pgp4xu44QkcUW.pgp
Description: PGP signature



Home | Main Index | Thread Index | Old Index