New comment by tornaria on void-packages repository https://github.com/void-linux/void-packages/pull/34030#issuecomment-981087871 Comment: > With regard to removing: > > ``` > 4 /usr/lib/sage-9.5.beta7/local/share/gap/bin/x86_64-pc-linux-gnu-default64-kv7 > ``` This is very strange. A couple of symlinks installed by the package in this directory are not removed. For some reason the `files.plist` is wrong, here's an excerpt: ``` file /usr/lib/sage-9.5.beta7/local/share/gap/bin/x86_64-pc-linux-gnu-default64-kv7/config.h mtime 1638070346 target /usr/lib/sage-9.5.beta7/local/share/gap/gen/config.h file /usr/lib/sage-9.5.beta7/local/share/gap/bin/x86_64-pc-linux-gnu-default64-kv7/gac mtime 1638070346 target al/bin/gac file /usr/lib/sage-9.5.beta7/local/share/gap/bin/x86_64-pc-linux-gnu-default64-kv7/gap mtime 1638070346 target al/bin/gap-bin file /usr/lib/sage-9.5.beta7/local/share/gap/bin/x86_64-pc-linux-gnu-default64-kv7/src mtime 1638070346 target /usr/lib/sage-9.5.beta7/local/share/gap/src ``` These are the four symlinks installed in this directory, but two of them are incorrectly reported Here are the relevant contents of the tarball: ``` $ tar tvf hostdir/binpkgs/sagemath/sagemath-9.5.beta7_1.x86_64.xbps | grep -e local/share/gap/bin/x86_64-pc-linux-gnu-default64-kv7 -e local/share/gap/ga -e local/bin/ga lrwxrwxrwx 0/0 0 2021-11-28 00:32 ./usr/lib/sage-9.5.beta7/local/share/gap/gap -> /usr/lib/sage-9.5.beta7/local/bin/gap-bin lrwxrwxrwx 0/0 0 2021-11-28 00:32 ./usr/lib/sage-9.5.beta7/local/share/gap/gac -> /usr/lib/sage-9.5.beta7/local/bin/gac lrwxrwxrwx 0/0 0 2021-11-28 00:32 ./usr/lib/sage-9.5.beta7/local/share/gap/bin/x86_64-pc-linux-gnu-default64-kv7/src -> ../../src lrwxrwxrwx 0/0 0 2021-11-28 00:32 ./usr/lib/sage-9.5.beta7/local/share/gap/bin/x86_64-pc-linux-gnu-default64-kv7/gap -> ../../gap lrwxrwxrwx 0/0 0 2021-11-28 00:32 ./usr/lib/sage-9.5.beta7/local/share/gap/bin/x86_64-pc-linux-gnu-default64-kv7/gac -> ../../gac lrwxrwxrwx 0/0 0 2021-11-28 00:32 ./usr/lib/sage-9.5.beta7/local/share/gap/bin/x86_64-pc-linux-gnu-default64-kv7/config.h -> ../../gen/config.h -rwxr-xr-x 0/0 2248752 2021-11-28 00:32 ./usr/lib/sage-9.5.beta7/local/bin/gap-bin -rwxr-xr-x 0/0 256 2021-11-28 00:32 ./usr/lib/sage-9.5.beta7/local/bin/gap -rwxr-xr-x 0/0 12559 2021-11-28 00:32 ./usr/lib/sage-9.5.beta7/local/bin/gac ``` Note that `../../src` and `../../gen/config.h` are ok (point to a directory and a file) while `../../gap` and `../../gac` point to other (absolute) symlinks. Is that the source of trouble? Maybe a bug in `xbps-create`?