Hi Chris, On Thu, 7 Sep 2023 22:47:05 +0100, Chris Carr <ranting...@gmail.com> wrote: > I would also like to build a nonfree package (to replace angband-audio, > which can safely be removed) – Angband ships with non-free graphical tiles > as well as non-free sounds. I can create a DFSG-free orig.tar.gz, and a > non-free one with the tiles and sounds. I can then configure debhelper to > detect the presence or absence of the non-free tarball and build either two > packages (angband and angband-data) or three (including the non-free one). > > But I don’t know how if that will render the *source* package non-free. I > and many others spent much of the late 2000s tracking down all the original > contributors and persuading them to re-licence their code under the GPL > (which wasn’t known when they wrote it), so it was a big achievement to get > Angband into main from 3.0. So I would like to keep the source package free > if possible, even if this means having to maintain two source packages > (which I don’t know how to do).
In this scenario, you need two completely separate source packages: one with a tarball containing only DFSG-free content, the other containing anything non-free (and potentially DFSG-free stuff as well, if it makes sense). This means separate packaging as well; at least that way you don’t have to worry about trying to detect whether you’re building the free or non-free package. Maintaining two source packages isn’t any harder than maintaining one, you just need to do it twice. And yes, that means two separate Salsa repos too (you could technically combine everything using branches, but that’s a recipe for mix-ups). Basically, the same situation as you have today with the separate angband and angband-audio source packages. > I have a number of questions about the packaging process (sbuild can’t > install imagemagick; dh_autoconf rewrites install-sh; version deps of libc > and sdl-mixer-dev have increased unnecessarily; many more) – would anyone > be willing to mentor me to get these things fixed? Feel free to ping me, or ask on debian-mentors. Regards, Stephen
pgpIY4EvARCjx.pgp
Description: OpenPGP digital signature