Re: RFC: optional explicit mapping between orig component name and subdirectory
Bastien Roucaries <[email protected]> Sat, 06 Dec 2025 10:48:27 +0100
| Newsgroups | gmane.linux.debian.devel.dpkg.general |
|---|---|
| Message-ID | <2024109.fIoEIV5pvu@debian-ei> |
Le dimanche 16 novembre 2025, 03:56:00 heure normale d’Europe centrale Simon Richter a écrit : > Hi, > > I'd like to allow packages that have multiple source packages to unpack > them to arbitrary directories in the source tree instead of a fixed > mapping between the .orig archive name and the unpack directory. javascript will love to get this rouca > > The main use case would be orig archives that need to go into a > subdirectory -- we can't use a name like foo_1.orig-sub/dir.tar.xz for > obvious reasons. There are a few packages that use Git submodules in > this way, and I'd like to translate the submodules to separate orig > archives. > > The main benefit I see would be that this would allow me to make it more > visible that this package contains a vendored copy of imgui (and a few > others). Ideally, I'd like to do something like > > / .orig.tar.xz > /lib .orig-lib.tar.xz > /lib/imgui .orig-vendor-imgui.xz > > and, over time, turn it into a policy that vendored libraries should go > into ".orig-vendor-*" archives so they can be easily scanned for. > > Because there would be (mostly) an 1:1 mapping between archives and > submodules, each archive could be generated with git-archive, which > gives them an embedded reference, which should make it really easy to > scan the archive for potentially vulnerable vendored software, and at > the same time, these archives are easily reproducible, as git-archive > will recreate a bitwise identical stream when given the same parameters. > > For this, I'd like to add an extension to the dsc format to allow > overriding the unpack location for an .orig archive. If no override is > given, the old mapping would still apply (in the ngscopeclient case, > "lib" is just a normal subproject that's not vendored, and it goes into > a toplevel directory). > > Opinions? > > Simon >
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEXQGHuUCiRbrXsPVqADoaLapBCF8FAmkz+88ACgkQADoaLapB CF8MNQ//aBaYC1LKuKv2ir92EdDvwYBYHma0TRZm1mT+3ZUz4UMfzY3tpnamWyKK QtnZKGGRXnPwV6P6mqTthInvgBHBUt+9EFJsQchfN/WIb1GSy3I5YvMJ/eGK5rvF aYExBNQS8mqoXx1jFAK+aV6XtppbPh2YaZ0OTI965sim7Hft03LLnWXDoq0Hp77B vloD5kHw4iBKExeZ8vpM4+EOx8eicAubJLTh4VntzTDIEX7qn5ieGItIySwu1P47 ydH8HnSraEAgBU8bV0Nbup3LVDzwqdTxFeTBG5cK7ZnOgHx3yfrt60vVBonHnSef g5vlHeaANuAiTsqP+bOR34mpSS5VzFcZNo3r6x1azyZght4UTcC1DjNt0BkBc0GC T9FWnQ3qwpPPz7S4Pt72DDTA91Aq33+aIaD8HDQabEES5sE0eZ5EX0pQRrxU8xFh 89mgCqTXwDIFI4O7OoyK/O/FwRydBg3Hy9Aa3IF2Wj3WDfdXNj7XuPOMQbGkA7RA +o9oWcDW5amVtunSvE4RyMVFUWJ1XEgez1US9dfDkl3anou3wV8LsHf6mSglIKvi zD0rLpJWeQZIw4cvg0KLPTWCL14fEFOH5qCK797Fu1cjXVJUBqh822J8VE77Pa2I /LFTriP4TUgv3yVGM5C2T0NTX1/OOKEoPa1MQ/bLgXCryg9F6lU= =nl8V -----END PGP SIGNATURE-----