site  contact  subhomenews

Fix for cpp and gcc pulled into easy.sfs

November 07, 2025 — BarryK

Fascinating what turns up, when we think just about all the bugs are found. This is not a bug, just undesirable. The 'x11-xserver-utils' package is builtin. However, it has dependency 'cpp', which brings in a long chain of dependencies, including gcc. This was brought to my attention by this post from vtpup:

https://forum.puppylinux.com/viewtopic.php?p=159615#p159615

cpp, gcc, etc., should only be in the devx sfs.

I investigated and found that the 'xrdb' utility in x11-xserver-utils is the culprit. This utility is used in two places in Easy, in /root/.xinitrc and /usr/local/sfsget/dir2sfs. But, in both cases it is executed with the "-nocpp" commandline option. That means we don't need that cpp dep.

I implemented a fix by opening up the x11-xserver-utils .deb and removing "cpp" dep then rebuild it. Found a how-to here:

https://serverfault.com/questions/250224/how-do-i-get-apt-get-to-ignore-some-dependencies/859394#859394

This was done:

# apt-get download x11-xserver-utils
Get:1 http://devuan.dcc.uchile.cl/merged excalibur/main amd64 x11-xserver-utils amd64 7.7+11 [163 kB]
Fetched 163 kB in 4s (45.3 kB/s)
W: Download is performed unsandboxed as root as file '/mnt/sda1/temp2/x11-xserver-utils_7.7+11_amd64.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
# dpkg-deb -x x11-xserver-utils_7.7+11_amd64.deb dir1
# dpkg-deb --control x11-xserver-utils_7.7+11_amd64.deb dir1/DEBIAN
...edited dir1/DEBIAN/control, removed cpp dep and changed version to 9:999.0
# dpkg -b dir1 x11-xserver-utils_999.0_amd64.deb
dpkg-deb: building package 'x11-xserver-utils' in 'x11-xserver-utils_999.0_amd64.deb'.

This new .deb was placed in builtin/deb-local/x86_64 in woofQ2 and added to builtin/deb-local/deb-x86_64-list. Then removed from builtin/deb/deb-list

Package 'acpi-support' has x11-xserver-utils dependency, so gave that the same treatment, removed that dep and put it into deb-local folder.

Also gave them high version number, so that apt will not try and upgrade them.

It will be interesting to see how much the easy.sfs file gets reduced.   

Tags: easy