From owner-freebsd-multimedia@FreeBSD.ORG Mon Dec 31 15:00:00 2007 Return-Path: Delivered-To: multimedia@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 54F3116A41A for ; Mon, 31 Dec 2007 15:00:00 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from services.ipt.ru (services.ipt.ru [194.62.233.110]) by mx1.freebsd.org (Postfix) with ESMTP id 1106413C457 for ; Mon, 31 Dec 2007 15:00:00 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from bb.ipt.ru ([194.62.233.89]) by services.ipt.ru with esmtp (Exim 4.54 (FreeBSD)) id 1J9LVA-000MJd-83; Mon, 31 Dec 2007 17:20:24 +0300 To: Jens Schweikhardt References: <20071231121804.GA1275@schweikhardt.net> From: Boris Samorodov Date: Mon, 31 Dec 2007 17:18:47 +0300 In-Reply-To: <20071231121804.GA1275@schweikhardt.net> (Jens Schweikhardt's message of "Mon\, 31 Dec 2007 13\:18\:05 +0100") Message-ID: <20555208@bb.ipt.ru> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: multimedia@FreeBSD.org Subject: Re: [PATCH] for multimedia/linux-realplayer (extract with rpm2cpio.pl fails) X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Dec 2007 15:00:00 -0000 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@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