FS#46359 - Cannot omit source files
Attached to Project:
AUR web interface
Opened by David Manouchehri (Manouchehri) - Sunday, 20 September 2015, 02:40 GMT
Last edited by Lukas Fleischer (lfleischer) - Sunday, 20 September 2015, 08:59 GMT
Opened by David Manouchehri (Manouchehri) - Sunday, 20 September 2015, 02:40 GMT
Last edited by Lukas Fleischer (lfleischer) - Sunday, 20 September 2015, 08:59 GMT
|
Details
In a few of my AUR packages, I cannot include the source
files because they're paid proprietary software.
In the AUR3 I would just submit the package without the source files included, but now with the AUR4, the post-hook declines it. ~/tmp/labview-2010 > git push Counting objects: 2, done. Delta compression using up to 4 threads. Compressing objects: 100% (2/2), done. Writing objects: 100% (2/2), 239 bytes | 0 bytes/s, done. Total 2 (delta 1), reused 0 (delta 0) remote: error: The following error occurred when parsing commit remote: error: b081c1ca56db0ccc61910d86c7165e8c1fc17947: remote: error: missing source file: labview-2010-appbuild-10.0.0-1.i386.rpm remote: error: hook declined to update refs/heads/master To ssh+git://aur@aur.archlinux.org/labview-2010.git ! [remote rejected] master -> master (hook declined) error: failed to push some refs to 'ssh+git://aur@aur.archlinux.org/labview-2010.git' My current "fix" is to include a 0 byte file for each missing source. The issue with this approach is that one of two things happens: #1. The end-user gets confused as to why all the source files are the incorrect hash. It also breaks all AUR helpers. #2. If I opt to put 'SKIP' for all my checksums, then I can show the end-user a warning message with prepare() if the sources are still 0 byte files. (Example at https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=labview-2010-rte#n44) The issue with this is that I have to re-implement makepkg's hash checking if I want to verify that the user actually did copy the right source files over. |
This task depends upon
Closed by Lukas Fleischer (lfleischer)
Sunday, 20 September 2015, 08:59 GMT
Reason for closing: Won't fix
Additional comments about closing: Using file:// solves the issue.
Sunday, 20 September 2015, 08:59 GMT
Reason for closing: Won't fix
Additional comments about closing: Using file:// solves the issue.
file:// isn't a default in makepkg, is it..?
Doesn't seem to help though, my commits are still being declined by the hook even with file://.
The last commit is 60c77deb, which currently has no problem being pushed to the AUR. https://aur.archlinux.org/cgit/aur.git/commit/?h=labview-2010
https://github.com/Manouchehri/AUR-labview-2010/commits/master
Are you still getting exactly the same error?
So the tl;dr version of this is that with the AUR4 you now need to include file:// for non-included local files.