LinuxQuestions.org
Review your favorite Linux distribution.
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 03-20-2022, 04:36 PM   #1
PartiZan
Member
 
Registered: Mar 2022
Location: Chicago
Distribution: RHEL, Slackware
Posts: 38

Rep: Reputation: 3
stable/current bug reports


After I uninstall ca-certificates, broken links are not removed under /etc/ssl/certs
 
Old 03-20-2022, 04:44 PM   #2
PartiZan
Member
 
Registered: Mar 2022
Location: Chicago
Distribution: RHEL, Slackware
Posts: 38

Original Poster
Rep: Reputation: 3
When I explicitly install package from patches using "slackpkg install", the dialog shows me both versions, old and patched new one.

For example:
slackpkg install openssl-1.1.1n-x86_64-1_slack15.0

The dialog shows me two packages:
openssl-1.1.1m-x86_64-1
openssl-1.1.1n-x86_64-1_slack15.0

I would expect to see the only new patched version, which I explicitly specified in "slackpkg install"

Last edited by PartiZan; 03-20-2022 at 05:01 PM.
 
Old 03-20-2022, 05:07 PM   #3
JayByrd
Member
 
Registered: Aug 2021
Location: Seattle, WA
Distribution: Slackware
Posts: 302

Rep: Reputation: 310Reputation: 310Reputation: 310Reputation: 310
Quote:
Originally Posted by PartiZan View Post
When I explicitly install package from patches using "slackpkg install", the dialog shows me both versions, old and patched new one.

For example:
slackpkg install openssl-1.1.1n-x86_64-1_slack15.0

The dialog shows me two packages:
openssl-1.1.1m-x86_64-1
openssl-1.1.1n-x86_64-1_slack15.0

I would expect to see the only new patched version, which I explicitly specified in "slackpkg install"
If this is what you expect, then you need to use "upgrade", not "install".

When you use "upgrade," the older package will be removed before installing the new one.

Last edited by JayByrd; 03-20-2022 at 05:08 PM. Reason: missing word.
 
1 members found this post helpful.
Old 03-20-2022, 05:13 PM   #4
PartiZan
Member
 
Registered: Mar 2022
Location: Chicago
Distribution: RHEL, Slackware
Posts: 38

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by JayByrd View Post
If this is what you expect, then you need to use "upgrade", not "install".

When you use "upgrade," the older package will be removed before installing the new one.
Yes, but what if I don't have some package on the system and want to install it. Using bash-completion I pick the latest patched version, hit enter and the dialog offers me old package too. This is wrong/weird behavior of slackpkg script.

Last edited by PartiZan; 03-20-2022 at 05:16 PM.
 
Old 03-20-2022, 05:21 PM   #5
JayByrd
Member
 
Registered: Aug 2021
Location: Seattle, WA
Distribution: Slackware
Posts: 302

Rep: Reputation: 310Reputation: 310Reputation: 310Reputation: 310
Quote:
Originally Posted by PartiZan View Post
Yes, but what if I don't have some package on the system and want to install it. Using bash-completion I pick the latest patched version, hit enter and the dialog offers me old package too. This is wrong/weird behavior of slackpkg script.
So decline the offer and simply uncheck the older one. It's not wrong, and, to my knowledge, it's how it has always worked.
 
Old 03-20-2022, 05:22 PM   #6
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,409

Rep: Reputation: 4142Reputation: 4142Reputation: 4142Reputation: 4142Reputation: 4142Reputation: 4142Reputation: 4142Reputation: 4142Reputation: 4142Reputation: 4142Reputation: 4142
Quote:
Originally Posted by PartiZan View Post
Yes, but what if I don't have some package on the system and want to install it. Using bash-completion I pick the latest patched version, hit enter and the dialog offers me old package too. This is wrong/weird behavior of slackpkg script.
bash-completion never completes package names
 
Old 03-20-2022, 05:24 PM   #7
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,152

Rep: Reputation: 7323Reputation: 7323Reputation: 7323Reputation: 7323Reputation: 7323Reputation: 7323Reputation: 7323Reputation: 7323Reputation: 7323Reputation: 7323Reputation: 7323
Quote:
upgradepkg --reinstall --install-new packagename.txz
But, if you want to purposely install a package and not replace the old, e.g., a kernel, then just use,
Quote:
installpkg packagename.txz

Last edited by cwizardone; 03-20-2022 at 05:26 PM.
 
Old 03-20-2022, 05:28 PM   #8
PartiZan
Member
 
Registered: Mar 2022
Location: Chicago
Distribution: RHEL, Slackware
Posts: 38

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by marav View Post
bash-completion never completes package names
It does.

15.0 version: type "slackpkg install openssl" and hit TAB. You'll see two versions.

Last edited by PartiZan; 03-20-2022 at 05:34 PM.
 
Old 03-20-2022, 05:29 PM   #9
PartiZan
Member
 
Registered: Mar 2022
Location: Chicago
Distribution: RHEL, Slackware
Posts: 38

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by JayByrd View Post
So decline the offer and simply uncheck the older one. It's not wrong, and, to my knowledge, it's how it has always worked.
I can, but this is against of logic and common sense to offer old package as well, when I requested new one.

Last edited by PartiZan; 03-20-2022 at 05:31 PM.
 
Old 03-20-2022, 05:30 PM   #10
PartiZan
Member
 
Registered: Mar 2022
Location: Chicago
Distribution: RHEL, Slackware
Posts: 38

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by cwizardone View Post
But, if you want to purposely install a package and not replace the old, e.g., a kernel, then just use,
I'm talking about ap/slackpkg
 
Old 03-20-2022, 05:33 PM   #11
JayByrd
Member
 
Registered: Aug 2021
Location: Seattle, WA
Distribution: Slackware
Posts: 302

Rep: Reputation: 310Reputation: 310Reputation: 310Reputation: 310
Quote:
Originally Posted by PartiZan View Post
I can, but this is against of logic to offer old package when I requested new one.
"Against of logic" ???

Your "logic" is against of/for/by prepositions.

What a joke. I'm through with you.
 
1 members found this post helpful.
Old 03-20-2022, 06:12 PM   #12
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,409

Rep: Reputation: 4142Reputation: 4142Reputation: 4142Reputation: 4142Reputation: 4142Reputation: 4142Reputation: 4142Reputation: 4142Reputation: 4142Reputation: 4142Reputation: 4142
Quote:
Originally Posted by PartiZan View Post
It does.

15.0 version: type "slackpkg install openssl" and hit TAB. You'll see two versions.
ok, I see

there is no issue with slackpkg
but it's only because of bash-completion
Code:
      install | reinstall | upgrade | blacklist | download)
            _filedir
            COMPREPLY+=($(compgen -W 'a ap d e f k kde kdei l n t tcl x
                xap xfce y' -- "$cur"))
            COMPREPLY+=($(cut -f 6 -d\  "${WORKDIR}/pkglist" 2>/dev/null |
                command grep "^$cur"))
            return
it checks repositories (a, ap, d ...)
where openssl-1.1.1m is
Code:
http://ftp.slackware.com/pub/slackware/slackware64-15.0/slackware64/n/openssl-1.1.1m-x86_64-1.txz
and also pkglist
where openssl-1.1.1n is
Code:
# grep openssl-1.1.1 /var/lib/slackpkg/pkglist
slackware64 openssl 1.1.1n x86_64 1 openssl-1.1.1n-x86_64-1 ./slackware64/n txz
 
Old 03-20-2022, 06:33 PM   #13
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,409

Rep: Reputation: 4142Reputation: 4142Reputation: 4142Reputation: 4142Reputation: 4142Reputation: 4142Reputation: 4142Reputation: 4142Reputation: 4142Reputation: 4142Reputation: 4142
Quote:
Originally Posted by PartiZan View Post
After I uninstall ca-certificates, broken links are not removed under /etc/ssl/certs
Yes
symlink are created by /usr/sbin/update-ca-certificates
Code:
add() {
  CERT="$1"
  PEM="$ETCCERTSDIR/$(basename "$CERT" .crt | sed -e 's/ /_/g' \
                                                  -e 's/[()]/=/g' \
                                                  -e 's/,/_/g').pem"
  if ! test -e "$PEM" || [ "$(readlink "$PEM")" != "$CERT" ]
  then
    ln -sf "$CERT" "$PEM"
    echo "+$PEM" >> "$ADDED"
  fi
  # Add trailing newline to certificate, if it is missing (#635570)
  sed -e '$a\' "$CERT" >> "$TEMPBUNDLE"
}
So, if you remove ca-certificates (apart from the fact that I don't see the point)
you must run the command again, but you can't because /usr/sbin/update-ca-certificates is a part of the package ca-certificates :-)
 
1 members found this post helpful.
Old 03-20-2022, 06:34 PM   #14
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,409

Rep: Reputation: 4142Reputation: 4142Reputation: 4142Reputation: 4142Reputation: 4142Reputation: 4142Reputation: 4142Reputation: 4142Reputation: 4142Reputation: 4142Reputation: 4142
issue #1 : solved
issue #2 : solved

happy ?
 
Old 03-20-2022, 06:43 PM   #15
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by PartiZan View Post
When I explicitly install package from patches using "slackpkg install", the dialog shows me both versions, old and patched new one.

For example:
slackpkg install openssl-1.1.1n-x86_64-1_slack15.0

The dialog shows me two packages:
openssl-1.1.1m-x86_64-1
openssl-1.1.1n-x86_64-1_slack15.0

I would expect to see the only new patched version, which I explicitly specified in "slackpkg install"
slackpkg is giving you the ability to install the original package or the patched package. I see nothing wrong with that. It's no different than what someone is presented when browsing through 15.0's mirror. You'll have the original package under slackware{64}/ and any changes under patches/.

slackpkg upgrade-all is the one that has the logic built in to show you replaced stock packages with newer ones within patches/. Why should bash-completion have that logic? With slackpkg install, you can either install the stock or patched version and it's presenting you both options. Bash completion shouldn't be deciding which one you want to install.
 
  


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
KDE x64 current bug reports fulalas Slackware 36 10-12-2021 01:16 AM
How stable is -Current compared to Stable? bulletfreak Slackware 7 08-01-2016 06:25 PM
Stable 13 kernel vs Current kernel in Stable system linus72 Slackware 6 04-01-2010 07:45 AM
[BUG] Current pkgtools installpkg bug jazzor Slackware 7 04-16-2009 05:30 AM
How to submit bug reports to Mandrakesoft? registering Mandriva 2 06-04-2004 09:32 AM

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

All times are GMT -5. The time now is 02:47 PM.

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