Skip to content

Cleanup usrlocalpackage #475

Merged
merged 2 commits into from
Jul 2, 2025
Merged

Cleanup usrlocalpackage #475

merged 2 commits into from
Jul 2, 2025

Conversation

donald
Copy link
Collaborator

@donald donald commented Jul 2, 2025

After #474 several packages were discovered, which had both, a .profile file and an alias.
Some of these exist only in /usr/local/package/admin/lib but not in this repository (wild files on distmaster).
Looking more systematically at /usr/local/package/admin/lib, more packages were found which don't exist in this repository.

  • Import all .profile files into this repository, which are not yet here
  • Remove all .profile files which are obsolete, because the package name is an alias.

Note, that removing files from this repository and running "make install" does not remove the files from the system. There is no "uninstall"-feature which might be a reason the wild files existed in some cases. So after this is merged, the files need to be removed from /usr/local/package/admin/lib manually.

Import wild files from /usr/local/package/admin/lib into this
repository.

Note, that obs-studio.profile was installed "-rw-rw---- 1 root root" so
it was not functional for a normal user.

Note, that some of these files will be removed in the next commit.
Remove .profile files which are obsolete, because the package name is
defined as an alias in admin/config:

    ant=apache-ant-1.10.12-0
    cuda=cuda-11
    jdk-7=jdk-7u80
    jdk-7u80=jdk-7u80-1
    meme=meme-5.1.1-0
    mono=mono-6.10.0-0
    node=node-22
    pymol=pymol-open-source-3.1.0-0
    python3=python-3
@donald donald changed the title Cleanup usrlocapackage Cleanup usrlocalpackage Jul 2, 2025
@donald donald merged commit 1329c3a into master Jul 2, 2025
@thomas
Copy link
Contributor

thomas commented Jul 2, 2025

Just pulled mxtools. removed /usr/local/package/admin/lib, then got the profiles remade. But then I still get:

#> make install
create /usr/local/package/lib/jdk-7u80-1.profile
/usr/local/package/lib/jdk-7u80-1.profile: No such file or directory
#ls -la /usr/local/package/lib/jdk-7u80*
-rw-r--r-- 1 root root 26 Feb 27  2017 /usr/local/package/lib/jdk-7u80-0.profile
lrwxrwxrwx 1 root root 18 Feb 27  2017 /usr/local/package/lib/jdk-7u80.profile -> jdk-7u80-1.profile

@donald
Copy link
Collaborator Author

donald commented Jul 2, 2025

Argh

@thomas
Copy link
Contributor

thomas commented Jul 2, 2025

Hmmm und auf chastise und privateidaho kommt jetzt nach dem test:

#/bin/python3 -VV
Python 3.4.3

und nicht

#/bin/python3 -VV
Python 3.12.8 (main, Jan  6 2025, 13:15:47) [GCC 12.3.0]

@donald
Copy link
Collaborator Author

donald commented Jul 2, 2025

Pushed b6e88a8 ("fixup! fixup! usrlocalpackage: Fix package type change") onto master branch. I hope, nobody will ever see this :-)

@donald
Copy link
Collaborator Author

donald commented Jul 2, 2025

buczek@rtfm:~/git/mxtools (master)$ git pull
Already up to date.
buczek@rtfm:~/git/mxtools (master)$ sudo rm -rf /usr/local/package/admin/lib/*
buczek@rtfm:~/git/mxtools (master)$ sudo make install
removed '/usr/local/package/admin/makebin'
'usrlocalpkg/admin/makebin' -> '/usr/local/package/admin/makebin'
'usrlocalpkg/admin/lib/ANNOTATE.profile' -> '/usr/local/package/admin/lib/ANNOTATE.profile'
'usrlocalpkg/admin/lib/OpenRA.profile' -> '/usr/local/package/admin/lib/OpenRA.profile'
'usrlocalpkg/admin/lib/R-devel.profile' -> '/usr/local/package/admin/lib/R-devel.profile'
[...]
buczek@rtfm:~/git/mxtools (master)$ python -V
Python 3.12.8
buczek@rtfm:~/git/mxtools (master)$ sudo make install
buczek@rtfm:~/git/mxtools (master)$ 

@thomas
Copy link
Contributor

thomas commented Jul 2, 2025

Just checked on privateidaho...
All quiet now.
And yes, the more recent python is back (Or not :)

Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants