![](https://secure.gravatar.com/avatar/6b456e02554810d5abbf8cd39b8c848d.jpg?s=120&d=mm&r=g)
On 2019-04-04 15:51, Alan Mizrahi wrote:
Hi,
When building ports, sometimes source tarballs have names that could collide with other ports.
I don't remember it ever happening to me, but it was raised in Flyspray [1], and I guess it could happen.
To show it with a sample Pkgfile:
name=dotconf version=1.3 release=1 source=(https://github.com/williamh/$name/archive/v$version.zip)
So I made a patch that allows renaming the downloaded source files by using an associative array, like this:
name=dotconf version=1.3 release=1 declare -A \ source=([$name-$version.zip]=https://github.com/williamh/$name/archive/v$version.zip)
While being compatible with current Pkgfiles.
The patch is attached to Flyspray, along with alternative solutions proposed by other people.
I also have a patch that allows to continue building a port after it fails, instead of starting from the beginning. If this sounds interesting (and worthy of merging), please let me know.
Best regards,
Alan
There are other ways of dealing with github tarballs, however: https://crux.nu/Wiki/DealingWithGithub /Fredrik