The officially official Devuan Forum!

You are not logged in.

#1 2024-07-20 20:26:34

delgado
Member
Registered: 2022-07-14
Posts: 212  

[SOLVED] Exaclibur: Targets of symbolic links in /usr/local/bin changed

Hi,

a way to have programs from /opt in the $PATH is to make symbolic links in a bin directory.
One day (begin of July) all link targets in /usr/local/bin changed from absolut paths to relative paths.
Most likely during an upgrade. On excalibur, not on daedalus.

cd /usr/local/bin
ls -l kpackage
kpackage -> /opt/trinity/bin/kpackage          # original
kpackage -> ../../../opt/trinity/bin/kpackage  # now

Why?

Offline

#2 2024-07-20 22:33:00

EDX-0
Member
Registered: 2020-12-12
Posts: 81  

Re: [SOLVED] Exaclibur: Targets of symbolic links in /usr/local/bin changed

probably because usrmerge was pulled by some update, testing and unstable require usrmerge while stable doesn't.

Offline

#3 2024-07-21 09:17:45

delgado
Member
Registered: 2022-07-14
Posts: 212  

Re: [SOLVED] Exaclibur: Targets of symbolic links in /usr/local/bin changed

Thanks fro the reply. The accident happened about three weeks ago. usrmerge was installed months ago, before switching to excalibur.

After more digging, I guess it was the package symlinks, or a "cleaning" job using it.
All symbolic links in /usr/local/bin (pointing to another directory) have the same updated timestamp. In my case "2024-07-01 19:25:17", or 20 seconds after installation of the package "symlinks".

# /var/log/dpkg.log
(...)
2024-07-01 19:16:23 startup packages configure
2024-07-01 19:24:58 startup archives unpack
2024-07-01 19:24:58 install symlinks:amd64 <none> 1.4-4
2024-07-01 19:24:58 status half-installed symlinks:amd64 1.4-4
2024-07-01 19:24:58 status triggers-pending man-db:amd64 2.12.1-2
2024-07-01 19:24:58 status unpacked symlinks:amd64 1.4-4
2024-07-01 19:24:58 startup packages configure
2024-07-01 19:24:58 configure symlinks:amd64 1.4-4 <none>
2024-07-01 19:24:58 status unpacked symlinks:amd64 1.4-4
2024-07-01 19:24:58 status half-configured symlinks:amd64 1.4-4
2024-07-01 19:24:58 status installed symlinks:amd64 1.4-4
2024-07-01 19:24:58 trigproc man-db:amd64 2.12.1-2 <none>
2024-07-01 19:24:58 status half-configured man-db:amd64 2.12.1-2
2024-07-01 19:24:59 status installed man-db:amd64 2.12.1-2
2024-07-02 15:23:51 startup archives unpack
(...)

package: symlinks
summary: scan/change symbolic links
version: 1.4-4
description: Symlinks scans directories for symbolic links and lists them on stdout. 
Each link is prefixed with a classification of relative, absolute, dangling, messy, lengthy or other_fs. . 
Symlinks can also convert absolute links (within the same filesystem) 
to relative links and can delete messy and dangling links.

Offline

#4 2024-08-10 10:54:58

delgado
Member
Registered: 2022-07-14
Posts: 212  

Re: [SOLVED] Exaclibur: Targets of symbolic links in /usr/local/bin changed

Today I looked at some back-up copies in /root/_backup/usr/local/bin/  ... and found symliks "corrected" too.
That's not funny!

apt purge symlinks

Offline

Board footer