You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is tricky to implement, because slave alternatives are configured in the postinst maintainer script, i.e. via update-alternatives calls in arbitrary shell script. It would be brittle to parse that shell script without running it, not to mention that its behavior might depend on the package actually being installed.
It seems like the only solution is to actually install the package and then introspect the alternatives database, e.g. /var/lib/dpkg/alternatives/vi.
The patch is now live in piuparts and reflected in a number of (but not all) logfiles, see e.g. /srv/piuparts.debian.org/htdocs/sid/pass/vim-nox_2:8.0.0197-3.log:
I implemented support and verified my changes by running debiman with and without the new -alternatives_dir flag, then generating rwmaps and diffing them:
I made a mistake yesterday by only specifying -force_rerender, but what we needed was -force_reextract, as the links are created when extracting packages.
I’m currently doing another run with -force_reextract, which should finish today and then be distributed to the static mirrors. I’ll check back in tomorrow morning.
Activity
stapelberg commentedon Jan 10, 2017
One thing worth investigating is whether one could install packages in a Linux user namespace to reasonably well sandbox the installation.
stapelberg commentedon Jan 11, 2017
I’ve filed a feature request against piuparts: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=850917
stapelberg commentedon Apr 17, 2017
The patch is now live in piuparts and reflected in a number of (but not all) logfiles, see e.g.
/srv/piuparts.debian.org/htdocs/sid/pass/vim-nox_2:8.0.0197-3.log:Next up: making Debiman read these logs and parse the command lines.
stapelberg commentedon May 17, 2017
I implemented support and verified my changes by running debiman with and without the new
-alternatives_dirflag, then generating rwmaps and diffing them:The diff only contains expected additions, which verifies the change works as expected.
I’ll try cleaning up, pushing and deploying this tomorrow.
stapelberg commentedon May 19, 2017
I made a mistake yesterday by only specifying
-force_rerender, but what we needed was-force_reextract, as the links are created when extracting packages.I’m currently doing another run with
-force_reextract, which should finish today and then be distributed to the static mirrors. I’ll check back in tomorrow morning.add debiman-piuparts-distill
stapelberg commentedon May 20, 2017
This is now live. I’ll still need to set up automated updates of the piuparts data files.
jeffmcjunkin commentedon Aug 19, 2017
Should
README.mebe updated to reflect this issue being closed?stapelberg commentedon Aug 19, 2017
Thanks for the hint. The automated updates of the data files aren’t done yet. Let me reopen the bug until this is fixed, then also update the README.
stapelberg commentedon Aug 31, 2017
Status update: automated updates are now in place.
https://piuparts.debian.org/for-manpages.d.o/ is still missing buster.json.gz (I’ve asked Holger to pull a corresponding change).
Once that file appears, I’ll push a change to update the README.
TobiX commentedon Jul 19, 2018
Is this why psql is missing? https://manpages.debian.org/stretch/postgresql-client-9.6/index.html (Or is that a new bug?)
stapelberg commentedon Jul 20, 2018
Thanks for the report. psql(1) is missing because of a logic bug in that infrastructure. I filed #106 for that.