mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] extract tarballs with no toplevel directory
@ 2013-02-28 22:52 Jon Ringle
  2013-03-04 13:35 ` Michael Olbrich
  0 siblings, 1 reply; 2+ messages in thread
From: Jon Ringle @ 2013-02-28 22:52 UTC (permalink / raw)
  To: ptxdist


[-- Attachment #1.1: Type: text/plain, Size: 753 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 858 bytes --]

[-- Attachment #2: Type: text/plain, Size: 48 bytes --]

-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ptxdist] extract tarballs with no toplevel directory
  2013-02-28 22:52 [ptxdist] extract tarballs with no toplevel directory Jon Ringle
@ 2013-03-04 13:35 ` Michael Olbrich
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Olbrich @ 2013-03-04 13:35 UTC (permalink / raw)
  To: ptxdist

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:
<PKG>_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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-03-04 13:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-28 22:52 [ptxdist] extract tarballs with no toplevel directory Jon Ringle
2013-03-04 13:35 ` Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox