• Bug#1109132: sbuild: document how to use an apt proxy

    From Lucas Nussbaum@21:1/5 to All on Sat Jul 12 09:20:02 2025
    Package: sbuild
    Version: 0.89.3
    Severity: wishlist

    Hi,

    While refreshing my sbuild setup, I failed to find documentation on how
    to use an APT proxy together with unshare+mmdebstrap.

    Ideally there would be doc about:
    - specifying an APT proxy by URL
    - using auto-apt-proxy to auto-detect the proxy

    And it should be documented how to do that using command-line options,
    and in .config/sbuild/config.pl

    Regarding config.pl, maybe it can be solved by improving the example
    config.pl

    It looks like the following does what I need:
    $piuparts_opts = ['--bootstrapcmd=mmdebstrap --skip=check/empty --variant=minbase --include=auto-apt-proxy', '--no-eatmydata', '--distribution=%r', '--fake-essential-packages=systemd-sysv'];
    $unshare_mmdebstrap_extra_args = [
    "*" => ['--include=auto-apt-proxy']
    ];

    Best,

    Lucas

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Chris Hofstaedtler@21:1/5 to Lucas Nussbaum on Sat Jul 12 12:20:01 2025
    Hi Lucas,

    On Sat, Jul 12, 2025 at 09:08:28AM +0200, Lucas Nussbaum wrote:
    While refreshing my sbuild setup, I failed to find documentation on how
    to use an APT proxy together with unshare+mmdebstrap.

    Ideally there would be doc about:
    - specifying an APT proxy by URL
    - using auto-apt-proxy to auto-detect the proxy

    And it should be documented how to do that using command-line options,
    and in .config/sbuild/config.pl

    I think there is agreement that these common usecases should be
    documented in the manual pages, but it has not happened yet.

    For "APT proxy by URL", the config.pl fragment that currently gets advertised is:

    push @{$unshare_mmdebstrap_extra_args}, "*",
    ['--aptopt=Acquire::http { Proxy "http://127.0.0.1:3142"; }'];


    Hope this helps,
    Chris

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Johannes Schauer Marin Rodrigues@21:1/5 to All on Sat Jul 12 12:30:01 2025
    Quoting Chris Hofstaedtler (2025-07-12 12:12:13)
    On Sat, Jul 12, 2025 at 09:08:28AM +0200, Lucas Nussbaum wrote:
    While refreshing my sbuild setup, I failed to find documentation on how
    to use an APT proxy together with unshare+mmdebstrap.

    Ideally there would be doc about:
    - specifying an APT proxy by URL
    - using auto-apt-proxy to auto-detect the proxy

    And it should be documented how to do that using command-line options,
    and in .config/sbuild/config.pl

    I think there is agreement that these common usecases should be
    documented in the manual pages, but it has not happened yet.

    That is correct. I'm working on it. Sorry for the delay. I'm not at DebConf because these weeks it's exam season so I'm very busy... :(

    Thanks!

    cheers, josch
    --==============40137895018246365=MIME-Version: 1.0
    Content-Transfer-Encoding: 7bit
    Content-Description: signature
    Content-Type: application/pgp-signature; name="signature.asc"; charset="us-ascii"

    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCgAdFiEElFhU6KL81LF4wVq58sulx4+9g+EFAmhyNvQACgkQ8sulx4+9 g+GQIA/+I4LwVEnTTqW5TTVqBNMp0R5lrQ72H8OpAutSg+2KHY1GKb8a637rffUi Z9t/ZxbaEWx/DXjbvPuBC7EK0qQ8QCZKfLEg/HvIn0zHuZl3o5sf0esZxrGa+HCz GA7Y16asbxxq19EeijUxj/0nIu0vjiEUFOrxoBs07Z+mwto0L86sqbl4aRZsGfxN FsbOT6/0vEpjnBgTusEaRoPhRBHXECG3ZYZrSirht72AXZRcBmiVpoglFfD4hImH zlwbW2uNPPO2jq3VSE8AmJV1xhOcznwqsxqH/24eMrJ6b4XIT/nEAYOUTX22cyQS bpfl5RY8u5ndi6h9sT1ljCSFTY61aXjTBsXwOoIcmbSPWy9IvefUCbJbMUpjAesV QzJtIWHOJrhrNQHc8N0qntrOqpEB7WEmKWWnjv1uO6MZtEz9dWxG5+srOGeyA5LC H9J/2bAnUTAiimqwQ+1FbzCS4NJuChHMaJF7FgHJxM+MXJKabm1DDRqM4OoMuKdK IX7oXsHIJbnEwVh77W7W1pskiH/RiMYMe9Djq5BhxSJ//3RDOy/atK1QzFbeFEb1 ZClQTQ9Omy4D0F9ZSiCfLQbMCUMfQDcmeItyQzuwrjxN0bDAfXnBeba0iKPPwNBd i9rOSz8seXTOzhbSXvMLXAf48d9xl9wKw2if9ithHQtA/CMJuwM=
    =8gag
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)