apt-mirror: contains ubuntu settings, not rebuilt correctly?

Hi. I was going through reproducible build logs of Trisquel packages, as you would normally do on a Saturday evening, and stumbled on a diff for the apt-mirror package, see diffoscope output:

https://debdistutils.gitlab.io/reproduce/trisquel/diffoscope/apt-mirror/0.5.4-1+11.0trisquel3/index.html

As you can see, the /etc/apt/mirror.list file differs, and indeed here is what happens on my aramo system:

jas@kaka:~$ sudo apt-get install apt-mirror
...
Läs:1 http://ftp.acc.umu.se/mirror/trisquel/packages aramo/main amd64 apt-mirror all 0.5.4-1+11.0trisquel3 [14,6 kB]
...
jas@kaka:~$ cat /etc/apt/mirror.list 
############# config ##################
#
# set base_path    /var/spool/apt-mirror
#
# set mirror_path  $base_path/mirror
# set skel_path    $base_path/skel
# set var_path     $base_path/var
# set cleanscript $var_path/clean.sh
# set defaultarch  <running host architecture>
# set postmirror_script $var_path/postmirror.sh
# set run_postmirror 0
set nthreads     20
set _tilde 0
#
############# end config ##############

deb http://archive.ubuntu.com/ubuntu jammy main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu jammy-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu jammy-updates main restricted universe multiverse
#deb http://archive.ubuntu.com/ubuntu jammy-proposed main restricted universe multiverse
#deb http://archive.ubuntu.com/ubuntu jammy-backports main restricted universe multiverse

deb-src http://archive.ubuntu.com/ubuntu jammy main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu jammy-security main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu jammy-updates main restricted universe multiverse
#deb-src http://archive.ubuntu.com/ubuntu jammy-proposed main restricted universe multiverse
#deb-src http://archive.ubuntu.com/ubuntu jammy-backports main restricted universe multiverse

clean http://archive.ubuntu.com/ubuntu
jas@kaka:~$ 

The helper script is here:

https://gitlab.trisquel.org/trisquel/package-helpers/-/blob/aramo/helpers/make-apt-mirror

And the debian/rules settings are here:

https://git.launchpad.net/ubuntu/+source/apt-mirror/tree/debian/rules

Notice this part:

DIST ?= $(shell lsb_release -si)
...
	sed "s#@CODENAME@#$(CODENAME)#" debian/$(DIST)-mirror.list > debian/apt-mirror/etc/apt/mirror.list

This suggests that the content of Trisquel-mirror.list from

https://gitlab.trisquel.org/trisquel/package-helpers/-/blob/aramo/helpers/DATA/apt-mirror/Trisquel-mirror.list

should have been put into the binary apt-mirror package, if the DIST variable is set correctly to Trisquel, as I'm hoping it should be for packages built for Trisquel? I'm rebuilding the package on a Trisquel system so it populates it properly.

Was Trisquel's apt-mirror binary package built on a Ubuntu system?

Rebuilding the package on a Trisquel system should fix the binary apt-mirror package to use Trisquel settings.

Alternatively, just patch the package to unconditionally use the Trisquel mirror list regardless of platform it is built on. It seems a bit odd that packages behave different depending on which platform it is built on,. OTOH, this seems intentional because it does the right thing inside Debian and Ubuntu.

/Simon

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information