[aur-general] AUR hook: "missing source files"
Hi all, I wrote a package for the Coverity [1] scan build tool, but they require manual download of their tarball, hidden behind a login [2]. Because of that, my `source` array contains a filename with no URL, as you're meant to download it manually and build the package afterwards. When trying to upload my package to the AUR, its hook rejects it, citing "missing source file": remote: error: The following error occurred when parsing commit remote: error: f468427b563a71e81656a849b1145166be3449ec: remote: error: missing source file: cov-analysis-linux32-7.7.0.4.tar.gz remote: error: hook declined to update refs/heads/master To aur@aur.archlinux.org:cov-analysis ! [remote rejected] master -> master (hook declined) error: failed to push some refs to 'aur@aur.archlinux.org:cov-analysis' I can bypass that check by adding an empty file that will fail checksum check when the user tries to use it, but I'd prefer no file to be there, so it's clear to the user that they need to download the file using the provided URL. I've pushed it on my GitHub [3] in the mean time, so you can have a look and tell me if I'm doing something dumb :] Cheers, Eric [1]: https://scan.coverity.com/ [2]: https://scan.coverity.com/download [3]: https://github.com/1ace/cov-analysis
I can bypass that check by adding an empty file that will fail checksum check when the user tries to use it, but I'd prefer no file to be there, so it's clear to the user that they need to download the file using the provided URL.
the same applies to the games from the humblebundles, where you purchase the game separately. look at at PKGBUILD with at -hib suffix, the common procedure is to add a download agent, that just emits a warning about the necessity to download manually. hth. georg
On Mon, 2 May 2016 17:14:08 +0100 Eric Engestrom <eric@engestrom.ch> wrote:
Hi all,
I wrote a package for the Coverity [1] scan build tool, but they require manual download of their tarball, hidden behind a login [2]. Because of that, my `source` array contains a filename with no URL, as you're meant to download it manually and build the package afterwards.
When trying to upload my package to the AUR, its hook rejects it, citing "missing source file":
remote: error: The following error occurred when parsing commit remote: error: f468427b563a71e81656a849b1145166be3449ec: remote: error: missing source file: cov-analysis-linux32-7.7.0.4.tar.gz remote: error: hook declined to update refs/heads/master To aur@aur.archlinux.org:cov-analysis ! [remote rejected] master -> master (hook declined) error: failed to push some refs to 'aur@aur.archlinux.org:cov-analysis'
I can bypass that check by adding an empty file that will fail checksum check when the user tries to use it, but I'd prefer no file to be there, so it's clear to the user that they need to download the file using the provided URL.
I've pushed it on my GitHub [3] in the mean time, so you can have a look and tell me if I'm doing something dumb :]
Cheers, Eric
[1]: https://scan.coverity.com/ [2]: https://scan.coverity.com/download [3]: https://github.com/1ace/cov-analysis
Simply use a "file://" prefix in the source array.
On Mon, May 02, 2016 at 11:39:14AM -0500, Doug Newgard wrote:
Simply use a "file://" prefix in the source array.
Thanks, worked like a charm! https://aur.archlinux.org/packages/cov-analysis For those wondering, the hook seems to only be interested in the .SRCINFO, so I didn't have to modify the PKGBUILD at all.
participants (3)
-
Doug Newgard
-
Eric Engestrom
-
G. Schlisio