adding a directory tree to package source

Jon Turney jon.turney@dronecode.org.uk
Sun Sep 20 12:26:11 GMT 2026


On 10/09/2026 01:00, Andrew Schulman via Cygwin-apps wrote:
> On Wed, 29 Jul 2026 21:17:18 +0100, in gmane.os.cygwin.applications you wrote:
> 
>> On 28/07/2026 17:55, Andrew Schulman via Cygwin-apps wrote:
>>> For fish I have a directory structure of Cygwin-specific files that I need to
>>> have copied into the source tree:
>>>
>>> $ git ls
>>> Cygwin/etc/fish/conf.d/00_PATH.fish
>>> Cygwin/etc/fish/conf.d/01_fish_variables.fish
>>> Cygwin/etc/fish/conf.d/cygwin.fish
>>> Cygwin/usr/share/fish/vendor_completions.d/mount.fish
>>> Cygwin/usr/share/fish/vendor_completions.d/umount.fish
>>> Cygwin/usr/share/fish/vendor_functions.d/fish_is_root_user.fish
>>> Cygwin/usr/share/fish/vendor_functions.d/sudo.fish
>>> fish.cygport
>>>
>>> Is there a supported way to do this? I've tried multiple ways, and all of them
>>> fail.
>>
>> Thanks for doing this investigation.
>>
>> Yeah, it seems this needs a bit of work to have the desired functionality.
> 
> Finally getting back to this. With a small patch to cygport (below), I can do
> this with CYGWIN_FILES:
> 
>    CYGWIN_FILES=Cygwin
> 
> With the patch below, cygport will copy in either files or directories in
> CYGWIN_FILES (instead of only files as now) into the source package. Then in
> src_install() I can just copy the files to the destination:
> 
>    cp -r ${C}/Cygwin/* ${D}
> 
> With the patch this works locally on my host, and in scallywag the build error
> "cp -r not specified" [1] shows that it should work there too. I request that
> the patch below be merged into cygport.
Applied in 0.37.9. Thanks!



More information about the Cygwin-apps mailing list