Subject: [PATCH] multimedia/mencoder and wrong paths
To: None <pkgsrc-users@netbsd.org>
From: Rumko <rumcic@gmail.com>
List: pkgsrc-users
Date: 12/15/2007 14:09:46
--nextPart4993165.fRlxmsyluB
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8Bit
=> Automatic manual page handling
pkg_create: can't stat
`/usr/obj/pkgsrc/multimedia/mencoder/work.vkernel/.destdir/usr/pkg/bin/mencoder'
pkg_create: can't stat
`/usr/obj/pkgsrc/multimedia/mencoder/work.vkernel/.destdir/usr/pkg/man/man1/mencoder.1'
===> Building binary package for mencoder-1.0rc9nb5
Creating package /usr/pkgsrc/packages/All/mencoder-1.0rc9nb5
Using SrcDir value of /usr/pkg
pkg_create: can't stat
`/usr/obj/pkgsrc/multimedia/mencoder/work.vkernel/.destdir/usr/pkg/bin/mencoder'
pkg_create: can't stat
`/usr/obj/pkgsrc/multimedia/mencoder/work.vkernel/.destdir/usr/pkg/man/man1/mencoder.1'
pkg_create: lstat failed for file bin/mencoder: No such file or directory
*** Error code 2
Makefile.common in multimedia/mplayer-share defines "PKG_DESTDIR_SUPPORT=
user-destdir", but the Makefile in mencoder doesn't use ${DESTDIR}. Attached
patch fixes this.
--nextPart4993165.fRlxmsyluB
Content-Type: text/x-diff; name="mencoder.patch"
Content-Transfer-Encoding: 8Bit
Content-Disposition: attachment; filename="mencoder.patch"
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/multimedia/mencoder/Makefile,v
retrieving revision 1.34
diff -u -p -r1.34 Makefile
--- Makefile 13 Sep 2007 19:16:02 -0000 1.34
+++ Makefile 15 Dec 2007 13:06:10 -0000
@@ -16,13 +16,13 @@ MANCOMPRESSED_IF_MANZ= 1
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/mencoder ${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/mencoder ${DESTDIR}${PREFIX}/bin
if [ X"${MANZ}" = X"" ]; then \
- ${LN} -s -f ${PREFIX}/${PKGMANDIR}/man1/mplayer.1 \
- ${PREFIX}/${PKGMANDIR}/man1/mencoder.1; \
+ ${LN} -s -f ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/mplayer.1 \
+ ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/mencoder.1; \
else \
- ${LN} -s -f ${PREFIX}/${PKGMANDIR}/man1/mplayer.1.gz \
- ${PREFIX}/${PKGMANDIR}/man1/mencoder.1.gz; \
+ ${LN} -s -f ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/mplayer.1.gz \
+ ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/mencoder.1.gz; \
fi
.include "../../multimedia/mplayer-share/Makefile.depends"
--nextPart4993165.fRlxmsyluB--