rpm2txz and slackpkg blacklist
I installed a few programs via converting there rpm to slackware pkgs with rpm2txz and installpkg name-of-program.txz. When I run slackpkg clean-system, it obviously wants to remove those packages. Therefore, I added the names of those packages to /etc/slackpkg/blacklist. While this always works for all packages that I build from slackbuilds.org, it does not work for slackpkgs generated by rpm2txz.
So, i.e., I installed rustdesk, when I now run 'slackpkg clean-system' it want to remove 'rustdesk-1.1.9-fedora28-centos8'. Adding any of the following lines to /etch/slackpg/blacklist did not prevent this: Code:
rustdesk-1.1.9-fedora28-centos8 |
rpm2txz is outputting an improper formatted package name.
Rename the package from rustdesk-1.1.9-fedora28-centos8.txz to rustdesk-1.1.9-fedora28_centos8.txz. Note the underscore between fedora28_centos8 replacing the dash. Then run upgradepkg rustdesk-1.1.9-fedora28-centos8.txz%rustdesk-1.1.9-fedora28_centos8.txz Code:
mv rustdesk-1.1.9-fedora28-centos8.txz rustdesk-1.1.9-fedora28_centos8.txz |
Use the -n option to rpm2txz to get a correct package name.
Code:
rpm2txz -n rustdesk-1.1.9-fedora28-centos8.rpm |
Ok, a similar thing happend again. I downloaded the chess engine stockfish from slackbuilds.org and made a manual version up (replacing the version number 14.1 with 15.1). It compiles fine and builds
Code:
/tmp/stockfish-15.1-x86-64-modern-1_SBo.tgz Code:
stockfish Code:
/etc/slackpkg/blacklist Code:
slackpkg clean-system |
It's packagename-version-architecture-buildnumber.tgz. Start reading from the end backwards. You have stockfish-15.1-x86-64-modern-1_SBo.tgz:
buildnumber: 1_SBo architecture: modern version: 64 packagename: stockfish-15.1-x86 You could rename it to stockfish-15.1-x86_64-modern_1_SBo.tgz (only three dashes): buildnumber: modern_1_SBo architecture: x86_64 version: 15.1 packagename: stockfish Slackpkg needs the architecture part set correctly. It should be x86_64 for the 64-bit slackware or noarch if the package is independent of the architecture. |
Quote:
Slackware package names are formatted like so: Code:
NAME-VERSION-ARCH-TAG Code:
TAG=1_SBo I don't know why a SlackBuild from SBo would produce such a package name. Are you sure you used it correctly? For comparison, here is a properly formatted package name from SBo I have installed: zoom-linux-5.13.3.651-x86_64-1_SBo Code:
TAG=1_SBo |
I'm guessing you uncommented the line that sets ARCH to "x86-64-modern"?
Code:
# More optimized, but may not run on all x86_64 hardware |
Quote:
Code:
make build ARCH=x86-64-modern COMP=gcc |
All times are GMT -5. The time now is 08:25 AM. |