Freight fails to build orig.tar.bz2 sources
My dev1-miro deb packages Freight repo contains, at the time of posting this, only one source and looks like this:
on-local-machine-soon-on-CroatiaFidelis.hr$ ls -ABRgo foss/dev1-miro /var/www/html/foss/dev1-miro: total 24 drwxr-xr-x 8 4096 2018-03-29 21:26 dists -rw-r--r-- 1 5615 2018-03-29 21:26 keyring.gpg drwxr-xr-x 3 4096 2018-03-29 14:30 pool -rw-r--r-- 1 7563 2018-03-29 21:26 pubkey.gpg /var/www/html/foss/dev1-miro/dists: total 24 lrwxrwxrwx 1 29 2018-03-29 21:26 ceres -> ceres-20180329212608331698302 drwxr-xr-x 3 4096 2018-03-29 21:02 ceres-20180329210209486181229 drwxr-xr-x 3 4096 2018-03-29 21:10 ceres-20180329211039987495443 drwxr-xr-x 3 4096 2018-03-29 21:16 ceres-20180329211604903319624 drwxr-xr-x 3 4096 2018-03-29 21:21 ceres-20180329212123114942853 drwxr-xr-x 3 4096 2018-03-29 21:23 ceres-20180329212318431625546 drwxr-xr-x 4 4096 2018-03-29 21:26 ceres-20180329212608331698302 /var/www/html/foss/dev1-miro/dists/ceres-20180329210209486181229: total 4 drwxr-xr-x 2 4096 2018-03-29 21:02 .refs /var/www/html/foss/dev1-miro/dists/ceres-20180329210209486181229/.refs: total 0 /var/www/html/foss/dev1-miro/dists/ceres-20180329211039987495443: total 4 drwxr-xr-x 2 4096 2018-03-29 21:10 .refs /var/www/html/foss/dev1-miro/dists/ceres-20180329211039987495443/.refs: total 0 /var/www/html/foss/dev1-miro/dists/ceres-20180329211604903319624: total 4 drwxr-xr-x 2 4096 2018-03-29 21:16 .refs /var/www/html/foss/dev1-miro/dists/ceres-20180329211604903319624/.refs: total 0 /var/www/html/foss/dev1-miro/dists/ceres-20180329212123114942853: total 4 drwxr-xr-x 2 4096 2018-03-29 21:21 .refs /var/www/html/foss/dev1-miro/dists/ceres-20180329212123114942853/.refs: total 0 /var/www/html/foss/dev1-miro/dists/ceres-20180329212318431625546: total 4 drwxr-xr-x 2 4096 2018-03-29 21:23 .refs /var/www/html/foss/dev1-miro/dists/ceres-20180329212318431625546/.refs: total 0 /var/www/html/foss/dev1-miro/dists/ceres-20180329212608331698302: total 16 drwxr-xr-x 3 4096 2018-03-29 21:26 main drwxr-xr-x 3 4096 2018-03-29 21:26 .refs -rw-r--r-- 1 1377 2018-03-29 21:26 Release -rw-r--r-- 1 659 2018-03-29 21:26 Release.gpg /var/www/html/foss/dev1-miro/dists/ceres-20180329212608331698302/main: total 4 drwxr-xr-x 2 4096 2018-03-29 21:26 source /var/www/html/foss/dev1-miro/dists/ceres-20180329212608331698302/main/source: total 12 -rw-r--r-- 1 206 2018-03-29 21:26 Release -rw-r--r-- 1 1994 2018-03-29 21:26 Sources -rw-r--r-- 1 888 2018-03-29 21:26 Sources.gz /var/www/html/foss/dev1-miro/dists/ceres-20180329212608331698302/.refs: total 4 drwxr-xr-x 2 4096 2018-03-29 21:26 main /var/www/html/foss/dev1-miro/dists/ceres-20180329212608331698302/.refs/main: total 28 -rw-r--r-- 2 4448 2018-03-29 14:33 bindechexascii_0.0+20140524.git7dcd86-4.debian.tar.xz -rw-r--r-- 2 1850 2018-03-29 14:32 bindechexascii_0.0+20140524.git7dcd86-4.dsc -rw-r--r-- 2 13071 2018-03-29 14:33 bindechexascii_0.0+20140524.git7dcd86.orig.tar.bz2 /var/www/html/foss/dev1-miro/pool: total 4 drwxr-xr-x 3 4096 2018-03-29 14:30 ceres /var/www/html/foss/dev1-miro/pool/ceres: total 4 drwxr-xr-x 3 4096 2018-03-29 14:30 main /var/www/html/foss/dev1-miro/pool/ceres/main: total 4 drwxr-xr-x 3 4096 2018-03-29 14:30 b /var/www/html/foss/dev1-miro/pool/ceres/main/b: total 4 drwxr-xr-x 2 4096 2018-03-29 21:26 bindechexascii /var/www/html/foss/dev1-miro/pool/ceres/main/b/bindechexascii: total 36 -rw-r--r-- 1 7208 2018-03-29 14:30 bindechexascii_0.0+20140524.git7dcd86-4_amd64.deb -rw-r--r-- 2 4448 2018-03-29 14:33 bindechexascii_0.0+20140524.git7dcd86-4.debian.tar.xz -rw-r--r-- 2 1850 2018-03-29 14:32 bindechexascii_0.0+20140524.git7dcd86-4.dsc -rw-r--r-- 2 13071 2018-03-29 14:33 bindechexascii_0.0+20140524.git7dcd86.orig.tar.bz2 on-local-machine-soon-on-CroatiaFidelis.hr$
Of course, by the time most visitors read this topic, there will likely be a few more packages, along with the bindechexascii binary, for perusal/download (the bindechexascii_0.0+20140524.git7dcd86-4_amd64.deb is there, but it's not regularly useable (with apt-get), no Packages, no Release for it, for some reason).
Deliberately currently just that one source package, to be able to more easily pinpoint the issue, and get is solved sooner.
I had installed Freight maybe a fortnight ago and yesterday, after I patched the simple bindechexascii, from Devuan/Debian sources (not from upstream), mostly for purposes of testing my Freight installation, I had no problem, at least in those tries, adding the binary deb to my Freight repo and building the repo with it with freight cache.
But after adding the sources, which itself went fine, I had issue with building my repo with the sources.
These went fine:
$ freight-add bindechexascii_0.0+20140524.git7dcd86-4.dsc apt/ceres $ freight-add bindechexascii_0.0+20140524.git7dcd86.orig.tar.bz2 apt/ceres $ freight-add bindechexascii_0.0+20140524.git7dcd86-4.debian.tar.xz apt/ceres
But I stumbled upon:
$ freight-cache apt/ceres
I kept getting this error:
# [freight] skipping invalid Debian source package bindechexascii_0.0+20140524.git7dcd86-4.dsc
I found that the script /usr/lib/freight/apt.sh of my installation produced that string.
And, longer story short, after I temporarily patched it, I was able to build the repo with my bindechexascii sources.
I will name it, for uploading it here to explain the (likely) bug usr_lib_freight_apt.sh.0.3.11.txt
(I am giving those the .txt extension so they can be viewed straight in a browser as well.)
I'm only attempting some developing yet, so my patch is only a proof of concept else I would request a pull with Freight developers on their repo right away... Instead, I have to go the slow way of preparing it here for opening an issue there.
So, that being the /usr/lib/freight/apt.sh of my installation, only after I patched it with usr_lib_freight_apt.sh.0.3.11_PATCH.txt, I was able to successfully run freight cache, and it then looked like this:
$ freight-cache apt/ceres ls -l /var/lib/dev1-miro/apt/ceres/./bindechexascii_0.0+20140524.git7dcd86.orig.tar.bz2 -rw-r--r-- 1 mr mr 13071 2018-03-29 14:33 /var/lib/dev1-miro/apt/ceres/./bindechexascii_0.0+20140524.git7dcd86.orig.tar.bz2 ls -l /var/lib/dev1-miro/apt/ceres/./bindechexascii_0.0+20140524.git7dcd86-4.debian.tar.xz -rw-r--r-- 1 mr mr 4448 2018-03-29 14:33 /var/lib/dev1-miro/apt/ceres/./bindechexascii_0.0+20140524.git7dcd86-4.debian.tar.xz just next: skipping invalid Debian source package bindechexascii_0.0+20140524.git7dcd86-4.dsc # [freight] adding bindechexascii_0.0+20140524.git7dcd86-4.dsc to pool # [freight] adding bindechexascii_0.0+20140524.git7dcd86.orig.tar.bz2 to pool # [freight] adding bindechexascii_0.0+20140524.git7dcd86-4.debian.tar.xz to pool apt_cache_source "ceres" "/var/cache/dev1-miro/dists/ceres-20180329212608331698302" "bindechexascii_0.0+20140524.git7dcd86-4.dsc" "main" "bindechexascii_0.0+20140524.git7dcd86-4.dsc"
Next, and not here, the talk about this apparent bug (to me at least) on the issue that has already been opened, and I posted at:
.orig.tar.xz source tarballs not added to the cache pool #24
---
The files necessary for this study are listed in:
usr_lib_freight_apt.sh.0.3.11.txt usr_lib_freight_apt.sh.0.3.11_PATCH.txtand verify to: ls-1.sum signed by: ls-1.sum.asc