Skip to contentSkip to conversation

RFC: feature request - wrap sources

DISCUSSION Robert Schuster 3 participants 5 messages Dec 21, 2007

lore
Share & tools
lore
#0 lore raw

Hi all,
I have a feature request that should help dealing with those source tarballs which do not contain a proper top level directory. The idea is to allow to add a parameter 'wrap' to the SRC_URI entry denoting the source tarball. If it is present (and 1) the unpacker creates a directory named ${P} and unpacks the tarball therein.

This would make it unneccessary to change S for such packages and furthermore the work directory is not cluttered with files and folders from inside the source tarball.

Like it? (Any pointer where such code should be put?)

Regards
Robert

#1 lore raw
Quoted 11 lines · Robert Schuster

I have a feature request that should help dealing with those source tarballs which do not contain a proper top level directory. The idea is to allow to add a parameter 'wrap' to the SRC_URI entry denoting the source tarball. If it is present (and 1) the unpacker creates a directory named ${P} and unpacks the tarball therein.

This would make it unneccessary to change S for such packages and furthermore the work directory is not cluttered with files and folders from inside the source tarball.

Like it? (Any pointer where such code should be put?)

Would it not be simpler just to specify an attribute like unpacksubdir which you could set to ${PN}-${PV}?

That way you have a generic and simpler solution?

Cheers,

Richard

#2 lore raw
Quoted 7 lines · Richard Purdie
Quoted 6 lines · Robert Schuster

I have a feature request that should help dealing with those source tarballs which do not contain a proper top level directory. The idea is to allow to add a parameter 'wrap' to the SRC_URI entry denoting the source tarball. If it is present (and 1) the unpacker creates a directory named ${P} and unpacks the tarball therein.

Quoted 8 lines
Quoted 5 lines

This would make it unneccessary to change S for such packages and furthermore the work directory is not cluttered with files and folders from inside the source tarball.

Like it? (Any pointer where such code should be put?)

Would it not be simpler just to specify an attribute like unpacksubdir which you could set to ${PN}-${PV}?

Specifying the directory to be created would be nice. However one of my idea was that by using such a mechanism S would be correct.

Would it be possible to automatically set S to ${WORKDIR}/<anything> if unpacksubdir=<anything> is used? If so we could have genericity and saving boilerplate code. :)

Regards
Robert

#3 lore raw

Hello Robert,

Quoted 14 lines · you
Quoted 13 lines · Richard Purdie
Quoted 11 lines · Robert Schuster

I have a feature request that should help dealing with those source tarballs which do not contain a proper top level directory. The idea is to allow to add a parameter 'wrap' to the SRC_URI entry denoting the source tarball. If it is present (and 1) the unpacker creates a directory named ${P} and unpacks the tarball therein.

This would make it unneccessary to change S for such packages and furthermore the work directory is not cluttered with files and folders from inside the source tarball.

Like it? (Any pointer where such code should be put?)

Quoted 8 lines
Quoted 2 lines

Would it not be simpler just to specify an attribute like unpacksubdir which you could set to ${PN}-${PV}?

Specifying the directory to be created would be nice. However one of my idea was that by using such a mechanism S would be correct.

Would it be possible to automatically set S to ${WORKDIR}/<anything> if unpacksubdir=<anything> is used? If so we could have genericity and saving boilerplate code. :)

Why, instead, S has default value of "${WORKDIR}/${P}", so just fit
unpacksubdir up to that. And that unpacksubdir is yet stuff to implement AFAIU.

Quoted 2 lines

Regards
Robert

Signature · 2 lines
Best regards,
 Paul                            mailto:[email protected]
#4 lore raw
Quoted 8 lines · Paul Sokolovsky
Quoted 6 lines · you
Quoted 3 lines · Richard Purdie

On Fri, 2007-12-21 at 09:34 +0100, Robert Schuster wrote:
Would it not be simpler just to specify an attribute like unpacksubdir which you could set to ${PN}-${PV}?

Specifying the directory to be created would be nice. However one of my idea was that by using such a mechanism S would be correct.

Quoted 7 lines
Quoted 3 lines

Would it be possible to automatically set S to ${WORKDIR}/<anything> if unpacksubdir=<anything> is used? If so we could have genericity and saving boilerplate code. :)

Why, instead, S has default value of "${WORKDIR}/${P}", so just fit
unpacksubdir up to that. And that unpacksubdir is yet stuff to implement AFAIU.

This was my intent although I perhaps didn't make it very clear. If you specify "unpacksubdir=${P}" (P = ${PN}-${PV}) the default for WORKDIR would just work and wouldn't need to be changed.

Cheers,

Richard