Discussion
Loading...

Post

Log in
  • About
  • Code of conduct
  • Privacy
  • About Bonfire
Vagrant Cascadian
Vagrant Cascadian
@vagrantc@floss.social  ·  activity timestamp 3 days ago

One of my favorite features of #Guix is "guix shell PACKAGE" to install a package in a throwaway environment, without worrying about building up cruft with installed packages.

I recently used this ugly hack on #Debian from a packaging directory with minimal dependencies:

sbuild -d UNRELEASED -c sid --add-depends=presenterm --starting-build-commands='%SBUILD_SHELL'

I already have sbuild installed; this costs me nothing!

I can experiment with packages from Unstable on my Stable system!

  • Copy link
  • Flag this post
  • Block
Simon Josefsson
Simon Josefsson
@jas@fosstodon.org replied  ·  activity timestamp 2 days ago

@vagrantc How does it differ from a throw-away container environment? podman run -it —rm debian:unstable

  • Copy link
  • Flag this comment
  • Block
Vagrant Cascadian
Vagrant Cascadian
@vagrantc@floss.social replied  ·  activity timestamp 2 days ago

@jas

Main difference that leaps out at me is I do not have podman installed and am not versed in the use of podman, so not in a position to say much. :)

  • Copy link
  • Flag this comment
  • Block
josch
josch
@josch@floss.social replied  ·  activity timestamp 2 days ago

@vagrantc If you have sbuild installed, you probably also have mmdebstrap installed. If so, you can try this: mmdebstrap --include=${yourpkg} --chrooted-customize-hook=bash unstable /dev/null

  • Copy link
  • Flag this comment
  • Block
Vagrant Cascadian
Vagrant Cascadian
@vagrantc@floss.social replied  ·  activity timestamp 2 days ago

@josch

Although you seem to have leaked the secrets about --chrooted-customize-hook ... they are not documented in the mmdebstrap man page! *gasp*

  • Copy link
  • Flag this comment
  • Block
Vagrant Cascadian
Vagrant Cascadian
@vagrantc@floss.social replied  ·  activity timestamp 2 days ago

@josch That is nice!

I just have to remember to pass:

--aptopt='acquire:http:proxy ...'

To use my apt-cacher-ng setup to speed up the package downloads...

And then it seems about as fast as the tarball approach, given that you still have to download and install the extra dependencies anyways...

  • Copy link
  • Flag this comment
  • Block

A small Bonfire corner on the internet

This is a small personal instance of Bonfire in the Fediverse.

A small Bonfire corner on the internet: About · Code of conduct · Privacy ·
Bonfire social · 1.0.1 no JS en
Automatic federation enabled
Log in
  • Explore
  • About
  • Code of Conduct