[PATCH] for multimedia/linux-realplayer (extract with
rpm2cpio.pl fails)
Boris Samorodov
bsam at ipt.ru
Mon Dec 31 07:00:00 PST 2007
On Mon, 31 Dec 2007 13:18:05 +0100 Jens Schweikhardt wrote:
> I tried installing the latest mplayer with optional RealPlayer support.
> This failed during extraction phase where rpm2cpio.pl is used and not
> found; it appears this perl script has been replaced by a binary named
> rpm2cpio which should be used in the Makefile.
I'm not sure what did you mean. The port archivers/rpm2cpio hadn't
been touched for a year and it surely installs rpm2cpio.pl (look at
the port's Makefile):
-----
...
PLIST_FILES= bin/rpm2cpio.pl
...
do-install:
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin/${PORTNAME}.pl
...
-----
While the file rpm2cpio belongs to the very different port and
installed as a linux_base port dependency:
-----
bb% pkg_info -W `which rpm2cpio`
/usr/local/bin/rpm2cpio was installed by package rpm-3.0.6_13
-----
> This patch did the trick
> for me:
> Index: Makefile
> ===================================================================
> RCS file: /home/ncvs/ports/multimedia/linux-realplayer/Makefile,v
> retrieving revision 1.52
> diff -u -r1.52 Makefile
> --- Makefile 24 Oct 2007 23:36:12 -0000 1.52
> +++ Makefile 31 Dec 2007 12:06:17 -0000
> @@ -18,7 +18,7 @@
> MAINTAINER= multimedia at FreeBSD.org
> COMMENT= Linux RealPlayer 10 from RealNetworks
>
> -EXTRACT_DEPENDS= rpm2cpio.pl:${PORTSDIR}/archivers/rpm2cpio
> +EXTRACT_DEPENDS= rpm2cpio:${PORTSDIR}/archivers/rpm2cpio
> RUN_DEPENDS= ${LINUXBASE}/usr/lib/libgtk-x11-2.0.so.0:${PORTSDIR}/x11-toolkits/linux-gtk2
>
> WRKSRC= ${WRKDIR}/usr/local/RealPlayer
> @@ -64,7 +64,7 @@
> do-extract:
> @${MKDIR} ${WRKDIR}
> @set -x; for f in ${_DISTFILES}; do\
> - cd ${WRKDIR}; rpm2cpio.pl ${DISTDIR}/$$f | \
> + cd ${WRKDIR}; rpm2cpio ${DISTDIR}/$$f | \
> ${CPIO} -idm --quiet; \
> done
>
WBR
--
Boris Samorodov (bsam)
Research Engineer, http://www.ipt.ru Telephone & Internet SP
FreeBSD committer, http://www.FreeBSD.org The Power To Serve
More information about the freebsd-multimedia
mailing list