From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-lb0-f178.google.com ([209.85.217.178]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1UBCLF-0004gq-Bw for ptxdist@pengutronix.de; Thu, 28 Feb 2013 23:52:46 +0100 Received: by mail-lb0-f178.google.com with SMTP id n1so1798385lba.37 for ; Thu, 28 Feb 2013 14:52:39 -0800 (PST) MIME-Version: 1.0 Date: Thu, 28 Feb 2013 17:52:39 -0500 Message-ID: From: Jon Ringle Subject: [ptxdist] extract tarballs with no toplevel directory Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============0994782292==" Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de --===============0994782292== Content-Type: multipart/alternative; boundary=bcaec5523b2667c14a04d6d0bfe2 --bcaec5523b2667c14a04d6d0bfe2 Content-Type: text/plain; charset=ISO-8859-1 Most source tarballs have a top level directory in the form of package-version, but I've run into one that doesn't conform to this standard practice. I'm trying to build a .make file for pugixml-1.2 ( http://pugixml.googlecode.com/files/pugixml-1.2.tar.gz), but there is no directory pugixml-1.2/ as the toplevel directory. Instead everything is in the ./ directory that you would expect to be in a pugixml-1.2/ directory. When ptxdist extracts it, it seems to find all the subdirectories that are at the top level, and puts them all together in a pugixml-1.2/ directory that it has created, which changes the file/directory structure that was originally in the tar ball to begin with, and the source does not build. How can I solve this? Thanks, Jon --bcaec5523b2667c14a04d6d0bfe2 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Most source tarballs have a top level directory in the form of package-vers= ion, but I've run into one that doesn't conform to this standard pr= actice.
I'm trying to build a .make file for pugixml-1.2 (http://pugixml.goo= glecode.com/files/pugixml-1.2.tar.gz), but there is no directory pugixm= l-1.2/ as the toplevel directory. Instead everything is in the ./ directory= that you would expect to be in a pugixml-1.2/ directory. When ptxdist extr= acts it, it seems to find all the subdirectories that are at the top level,= and puts them all together in a pugixml-1.2/ directory that it has created= , which changes the file/directory structure that was originally in the tar= ball to begin with, and the source does not build.

How can I solve this?

Thanks,
Jon
--bcaec5523b2667c14a04d6d0bfe2-- --===============0994782292== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- ptxdist mailing list ptxdist@pengutronix.de --===============0994782292==-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from ptx.hi.pengutronix.de ([2001:6f8:1178:2:5054:ff:fec0:8e10] ident=Debian-exim) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1UCVYP-000389-BM for ptxdist@pengutronix.de; Mon, 04 Mar 2013 14:35:45 +0100 Received: from mol by ptx.hi.pengutronix.de with local (Exim 4.72) (envelope-from ) id 1UCVYP-0006KR-B7 for ptxdist@pengutronix.de; Mon, 04 Mar 2013 14:35:45 +0100 Date: Mon, 4 Mar 2013 14:35:45 +0100 From: Michael Olbrich Message-ID: <20130304133545.GR5360@pengutronix.de> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Subject: Re: [ptxdist] extract tarballs with no toplevel directory Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de On Thu, Feb 28, 2013 at 05:52:39PM -0500, Jon Ringle wrote: > Most source tarballs have a top level directory in the form of > package-version, but I've run into one that doesn't conform to this > standard practice. > I'm trying to build a .make file for pugixml-1.2 ( > http://pugixml.googlecode.com/files/pugixml-1.2.tar.gz), but there is no > directory pugixml-1.2/ as the toplevel directory. Instead everything is in > the ./ directory that you would expect to be in a pugixml-1.2/ directory. > When ptxdist extracts it, it seems to find all the subdirectories that are > at the top level, and puts them all together in a pugixml-1.2/ directory > that it has created, which changes the file/directory structure that was > originally in the tar ball to begin with, and the source does not build. > > How can I solve this? Take a look at rules/ckermit.make. This package has the same problem. You just need to set: _STRIP_LEVEL := 0 Michael -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | -- ptxdist mailing list ptxdist@pengutronix.de