LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-30-2020, 06:57 AM   #1
zdolar
Member
 
Registered: Jul 2009
Location: Slovenija
Distribution: Slackware
Posts: 177

Rep: Reputation: 38
upgradepkg installed package as new


Hi!

For a long time I'm using
Code:
upgradepkg --reinstall --install-new
for upgrade of packages I compiled.
For others (system, alien, ktown..) I use slackpkg+.

Recently I was surprised when I found:
/var/lib/pkgtools//packages/zoneminder-1.34.14-x86_64-GIT-20200520_ZD
/var/lib/pkgtools//packages/zoneminder-1.34.15-x86_64-GIT-20200522_ZD
/var/lib/pkgtools//packages/zoneminder-1.35.4-x86_64-GIT-20200604_ZD
/var/lib/pkgtools//packages/zoneminder-1.35.5-x86_64-GIT-20200730_ZD
on my test machine.

What could be the reason for the above? Does upgradepkg consider a minor package version change as a new package and so install a new version as a totally different program?
So far I did not notice such behavior of upgradepkg.
Using oldpkg%newpkg notation would be unnecessary complication.
 
Old 07-30-2020, 07:03 AM   #2
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
the name of a Slackware package is composed of different alphanumeric variables, separated by dashes ("-"), like $PKGNAM-$VERSION-$ARCH-$BUILD$TAG
what happens to you probably does because the $BUILD$TAG of your packages contains a dash too and this confuses pkgtools: the rule is that any of the above variables besides $PKGNAM shouldn't contain dashes.
you should use a slightly different $BUILD$TAG, like "GIT_20200730_ZD" (or even better "20200730_GIT_ZD", where BUILD=20200730_GIT and TAG=_ZD) and you won't have any problem.

Last edited by ponce; 07-30-2020 at 07:41 AM.
 
1 members found this post helpful.
Old 07-30-2020, 07:43 AM   #3
zdolar
Member
 
Registered: Jul 2009
Location: Slovenija
Distribution: Slackware
Posts: 177

Original Poster
Rep: Reputation: 38
Thank you Ponce.

I thought I've made a mistake in a package naming.

And off topic - thank you for your package repository. Have you considered to offer you build scripts to public? Would be very helpful, as you compile packages, not be found elsewhere.

Regards.
 
Old 07-30-2020, 08:12 AM   #4
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
Quote:
Originally Posted by zdolar View Post
Have you considered to offer you build scripts to public? Would be very helpful, as you compile packages, not be found elsewhere.
sorry, are you speaking about this?

https://github.com/Ponce/slackbuilds
 
Old 07-30-2020, 08:18 AM   #5
zdolar
Member
 
Registered: Jul 2009
Location: Slovenija
Distribution: Slackware
Posts: 177

Original Poster
Rep: Reputation: 38
no, that:
http://ponce.cc/slackware/slackware64-current/
 
Old 07-30-2020, 08:42 AM   #6
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
Quote:
Originally Posted by zdolar View Post
the packages that you can find in the packages subdirectory (be sure to read the README.txt inside!) are built using the above repository.
the other directories in the link you posted contain mainly old stuff.
 
Old 07-30-2020, 08:47 AM   #7
zdolar
Member
 
Registered: Jul 2009
Location: Slovenija
Distribution: Slackware
Posts: 177

Original Poster
Rep: Reputation: 38
Quote:
Originally Posted by ponce View Post
the packages that you can find in the packages subdirectory (be sure to read the README.txt inside!) are built using the above repository.
the other directories in the link you posted contain mainly old stuff.
Thanks for explanation
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] No package 'x11' found No package 'xext' found No package 'xdamage' found No package 'xfixes' found No package 'x11-xcb' found Jigsaw Linux From Scratch 14 02-23-2021 08:35 PM
[SOLVED] If a file in a package has a link elsewhere, does upgradepkg retain it? RandomTroll Slackware 7 10-01-2019 01:02 PM
[SOLVED] why does /sbin/upgradepkg install a package twice? dederon Slackware 9 09-25-2015 01:52 AM
upgrade with upgradepkg --install-new why? boneyard Slackware 8 09-11-2010 05:02 PM
How do you deal with .new files after upgradepkg? onedingo Slackware 4 07-12-2006 08:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration