cygport: Adding arbitrary files to the src package

marco atzeri
Mon May 7 11:37:00 GMT 2012

On 5/7/2012 12:33 PM, Corinna Vinschen wrote:
> Hi Yaakov,
> assuming I'd like to add some arbitrary files to the source package, so
> that the -src package looks like this:
>    foo-3.4.5.tar.bz2
>    foo-3.4.5-1.cygport
>    foo-3.4.5-1.cygwin.patch
>    foo-3.4.5-1.src.patch
>    arbitrary-file-1
>    arbitrary-file-2
> The idea here is that the files are neither part of the sources, nor do
> I want the files to be part of the patches since they aren't patches.
> They are just some files which should show up in the source package for
> some dubious reason of my own.

2 possible ways:

1) as additional sources as SRC_URI accepts multiples files,

2) as dedicated patch as PATCH_URI accept multiple files.

On lapack I use both the two solutions, for different reason:



For you case PATCH_URI should be better (IMHO), as first case unlikely 
put the files in the right place and you will need to redefine 
"src_unpack_hook()" plus CYGPORT_USE_UNSTABLE_API=1
for moving them around.

> I looked into the __pkg_srcpkg() function in lib/pkg_pkg.cygpart, but
> I don't see any way to accomplish this.
> Corinna

More information about the Cygwin-apps mailing list