LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 01-10-2023, 06:20 PM   #1561
USUARIONUEVO
Senior Member
 
Registered: Apr 2015
Posts: 2,338

Rep: Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930

Quote:
Originally Posted by marav View Post
Hi, USUARIONUEVO

Have you looked at what /sbin/upgradepkg actually does?
The only think i looked is when install/upgrade ca-certificates out of default / i need make a manual intervention.

ROOT=$MYDIR upgradepkg ca-certificates , does the upgrade but ...........


Code:
# We don't want to run this from the installer because we've got a script
# that runs it after all the packages are installed. But if we do run it,
# we should chroot into the target partition to make sure the updates are
# done in the correct location (and not on the calling partition):
if [ ! -r /usr/lib/setup/setup ]; then
  chroot . /usr/sbin/update-ca-certificates --fresh 1> /dev/null 2> /dev/null
fi
The afterinstall tasks never work ... no see $ROOT

I think all packages with doinst files, fails when --root or ROOT= are used as argument.

I think the correct are

Quote:
if [ ! -r $ROOT/usr/lib/setup/setup ]; then
chroot . $ROOT/usr/sbin/update-ca-certificates --fresh 1> /dev/null 2> /dev/null
fi
I need every update manually execute

update-ca-certificates

when i installed out of default /

ssl certificates under /etc/ssl/certs never upgraded if no manual intervention.

Sorry for my very bad english , hope i exposed correctly the --root ROOT usage problem when "after install/upgrade" tasks need to execute with a doinst file.

A good exmaple is when you have a live system and need to mantain , need a real system installed to make this type of after install tasks , to get the files and package in the live system.

The doinst problem when use an extra argumento "root=" ,is nothing new , its a very old problem.

Last edited by USUARIONUEVO; 01-10-2023 at 06:33 PM.
 
3 members found this post helpful.
Old 01-10-2023, 08:32 PM   #1562
glennmcc
Member
 
Registered: Jan 2021
Location: North Jackson, Ohio (USA)
Distribution: slackware64-15.0
Posts: 526

Rep: Reputation: 302Reputation: 302Reputation: 302Reputation: 302
Thanks for the head's up... I did not even know about this option
nor that it did not work "as advertised".

--- clipped from 'man upgradepkg' ---

To upgrade in a directory other than / (such as /mnt):

ROOT=/mnt upgradepkg package.txz (or .tbz, .tgz, .tlz)
___________________________________________________________________
 
Old 01-10-2023, 11:48 PM   #1563
prejudices_mars
Member
 
Registered: Feb 2022
Distribution: Slackware
Posts: 79

Rep: Reputation: 49
We need a good GUI password manager for KDE/QT users, volkerdi please add this

KeepassXC : https://github.com/keepassxreboot/keepassxc
 
1 members found this post helpful.
Old 01-11-2023, 12:25 AM   #1564
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,528

Rep: Reputation: 3361Reputation: 3361Reputation: 3361Reputation: 3361Reputation: 3361Reputation: 3361Reputation: 3361Reputation: 3361Reputation: 3361Reputation: 3361Reputation: 3361
Quote:
Originally Posted by USUARIONUEVO View Post
The only think i looked is when install/upgrade ca-certificates out of default / i need make a manual intervention.

ROOT=$MYDIR upgradepkg ca-certificates , does the upgrade but ...........


Code:
# We don't want to run this from the installer because we've got a script
# that runs it after all the packages are installed. But if we do run it,
# we should chroot into the target partition to make sure the updates are
# done in the correct location (and not on the calling partition):
if [ ! -r /usr/lib/setup/setup ]; then
  chroot . /usr/sbin/update-ca-certificates --fresh 1> /dev/null 2> /dev/null
fi
The afterinstall tasks never work ... no see $ROOT

I think all packages with doinst files, fails when --root or ROOT= are used as argument.

...

I need every update manually execute
Well, the file /usr/lib/setup/setup exists only in the installer's initrd and it's the installer script.

So, the chrooting is executed only when the package installation is not made from installer, where's another way to update the ca-certificates, at final. And the chroot command it's correct, because it's executed AFTER chrooting.

Now, it's debatable if there is a real use case when the user should use the installer's initrd as rescue system and to install/upgrade fully the ca-certificates in a target system. IF yes, then probably Slackware should ship a real alternate "rescue" initrd with no installer included. After all, those initrds are quite small in the economy of the installation media.

HOWEVER, I believe that what Master Fulalas wants is impossibile with the current design of the Slackware PKGTOOLS. Because those tools are designed to work over a fully installed system in the target and he wants to get a nice tree, with all package files prepared in the /tmp/module-ca-certificates when he executes as example:
Code:
installpkg -root /tmp/module-ca-certificates /path/to/ca-certificates-20221205-noarch-2_slack15.0.txz
WHY? Because this /usr/sbin/update-ca-certificates is a script, supposed to be executed by Bash, and there on /tmp/module-ca-certificates is no Bash installed.

True, there are solutions, BUT I believe that those solutions should be made by the developers of the Slackware derived distributions.

For example, to generate those stand-alone trees of installed packages, the Porteus may use a modified installpkg which do chroot in the target system before executing the install/doinst.sh script and to make a Porteus modules generator which binds the / (system root) to the target directory under an UNIONFS, so the installation of package would be exactly like in the real system, BUT they can grab the files of that particular XZM module only. However, this is not our business, but theirs.

BUT, I for one, I do NOT think that Slackware itself should (or it should be modified to) support the Porteus quirks, for example.

Of course, I do not exclude the case when they donate an indecent amount of moneys to our BDFL, big enough to make him to reserve a week or two for writing a custom tailored PKGTOOLS and makemod for them.

Last edited by LuckyCyborg; 01-11-2023 at 01:08 AM.
 
Old 01-11-2023, 05:25 AM   #1565
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,387

Rep: Reputation: 4108Reputation: 4108Reputation: 4108Reputation: 4108Reputation: 4108Reputation: 4108Reputation: 4108Reputation: 4108Reputation: 4108Reputation: 4108Reputation: 4108
NetworkManager 1.40.10
Code:
* Fix the evaluation of the autoconnect retries.
* nm-cloud-setup now preserves addresses added externally.
* Ensure that dnsmasq is stopped after changing the dns backend and
  restarting the service.
* Fix honoring an explicit DHCPv6 DUID with dhclient.
* Other various fixes.
https://gitlab.freedesktop.org/Netwo...-/tags/1.40.10
 
Old 01-11-2023, 03:29 PM   #1566
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,387

Rep: Reputation: 4108Reputation: 4108Reputation: 4108Reputation: 4108Reputation: 4108Reputation: 4108Reputation: 4108Reputation: 4108Reputation: 4108Reputation: 4108Reputation: 4108
Rust 1.66.1

Code:
Rust 1.66.1 fixes Cargo not verifying SSH host keys when cloning dependencies or registry indexes with SSH. 
This security vulnerability is tracked as CVE-2022-46176, and you can find more details in the advisory.
https://blog.rust-lang.org/2023/01/10/Rust-1.66.1.html
 
Old 01-11-2023, 04:42 PM   #1567
USUARIONUEVO
Senior Member
 
Registered: Apr 2015
Posts: 2,338

Rep: Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930
I only write cause changelog say "patched" ,but i think not true.

Make a folder , and send ca-certificates to install on this folder, you see how de certificates are not generated under FOLDER/etc/ssl/certs , package installs IN YOUR folder , but no afterinstall tasks works., but doinst not work when use --root or ROOT=MYFOLDER , thats all.

I understand perfectly if some tool are not present on DESTDIR folder , some things cant work , but why ? if the tools required to the actions are under / as you say example bash ... i have /bin/bash , action are posible, but the afterinstall tasks no respect like DESTDIR ..

Repair or not , i know the limitations since years , and i can live with this ... in my case on a installed system or live system , execute de doinst tasks and get the generated files to put inside my custom folder.

And as a final question , why exists the parameter --root or ROOT= if not 100x100 viable ? other way is put a variable ROOT on the update-ca-certificates script to generate the ssl certs under MYFOLDER/etc/ssl/certs when use --root parameter.

In all cases i think the root parameter is not 100% working.

Can write what you want ...

installpkg or upgradepkg --root YOURFOLDER ca-certicates NEVER do the ssl certs , you can test easily , no write more arround this i konow the problems and i know how to solve , but "patch" are not true from the changelog , cause not 100% --root parameter work.

Last edited by USUARIONUEVO; 01-11-2023 at 04:43 PM.
 
1 members found this post helpful.
Old 01-11-2023, 05:47 PM   #1568
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,387

Rep: Reputation: 4108Reputation: 4108Reputation: 4108Reputation: 4108Reputation: 4108Reputation: 4108Reputation: 4108Reputation: 4108Reputation: 4108Reputation: 4108Reputation: 4108
Quote:
Originally Posted by USUARIONUEVO View Post
In all cases i think the root parameter is not 100% working.
That's not true
update-ca-certificates is 0% working with the --root parameter


EDIT:
ok I get it

It doesn't make sense to install ssl certs in your home folder
the doinst.sh for update-ca-certificates contains "chroot .", it means that "." became your root partition, and assumes that you have a full system installed in it
You can't chroot into your home $FOLDER directory unless you have a system tree in that directory

Last edited by marav; 01-12-2023 at 01:10 AM.
 
Old 01-12-2023, 08:00 AM   #1569
drumz
Member
 
Registered: Apr 2005
Location: Oklahoma, USA
Distribution: Slackware
Posts: 906

Rep: Reputation: 697Reputation: 697Reputation: 697Reputation: 697Reputation: 697Reputation: 697
Quote:
Originally Posted by USUARIONUEVO View Post
I only write cause changelog say "patched" ,but i think not true.

Make a folder , and send ca-certificates to install on this folder, you see how de certificates are not generated under FOLDER/etc/ssl/certs , package installs IN YOUR folder , but no afterinstall tasks works., but doinst not work when use --root or ROOT=MYFOLDER , thats all.

I understand perfectly if some tool are not present on DESTDIR folder , some things cant work , but why ? if the tools required to the actions are under / as you say example bash ... i have /bin/bash , action are posible, but the afterinstall tasks no respect like DESTDIR ..

Repair or not , i know the limitations since years , and i can live with this ... in my case on a installed system or live system , execute de doinst tasks and get the generated files to put inside my custom folder.

And as a final question , why exists the parameter --root or ROOT= if not 100x100 viable ? other way is put a variable ROOT on the update-ca-certificates script to generate the ssl certs under MYFOLDER/etc/ssl/certs when use --root parameter.

In all cases i think the root parameter is not 100% working.

Can write what you want ...

installpkg or upgradepkg --root YOURFOLDER ca-certicates NEVER do the ssl certs , you can test easily , no write more arround this i konow the problems and i know how to solve , but "patch" are not true from the changelog , cause not 100% --root parameter work.
I think the command you are looking for is

Code:
explodepkg
The point of installpkg is to install a package onto your system. Not extract the contents into a random directory.

Code:
$ man installpkg

INSTALLPKG(8)                   System Manager's Manual                   INSTALLPKG(8)

NAME
       installpkg - install Slackware packages.

SYNOPSIS
       installpkg  [ --warn ] [ --md5sum ] [ --root /otherroot ] [ --infobox ] [ --menu
       ] [ --terse ] [ --terselength <length> ] [ --ask ] [ --priority  ADD|REC|OPT|SKP
       ] [ --tagfile /somedir/tagfile ] [ --threads <number> ] [ --no-overwrite ] pack‐
       agename [ packagename2 ...  ]

DESCRIPTION
       installpkg installs single or multiple *.txz (or .tbz, .tgz, .tlz) binary  pack‐
       ages designed for use with the Slackware Linux distribution onto your system.
 
Old 01-12-2023, 09:48 AM   #1570
garpu
Senior Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 1,566

Rep: Reputation: 905Reputation: 905Reputation: 905Reputation: 905Reputation: 905Reputation: 905Reputation: 905Reputation: 905
Quote:
Originally Posted by prejudices_mars View Post
We need a good GUI password manager for KDE/QT users, volkerdi please add this

KeepassXC : https://github.com/keepassxreboot/keepassxc
Alien Bob's already got a package and a slackbuild for it.
 
2 members found this post helpful.
Old 01-13-2023, 12:26 AM   #1571
Lanius
LQ Newbie
 
Registered: Dec 2022
Location: Poland
Distribution: OpenSUSE MicroOS
Posts: 22

Rep: Reputation: 23
I'm not sure if it was requested before, but if Vim could be built with 'with-x' option, that could really come in handy. Unless there is a reason this option is left out I'm not aware of.
 
1 members found this post helpful.
Old 01-13-2023, 12:40 AM   #1572
Windu
Member
 
Registered: Aug 2021
Distribution: Arch Linux, Debian, Slackware
Posts: 591

Rep: Reputation: Disabled
Quote:
Originally Posted by Lanius View Post
I'm not sure if it was requested before, but if Vim could be built with 'with-x' option, that could really come in handy. Unless there is a reason this option is left out I'm not aware of.
There's "vim-gvim" package in XAP for that.
 
1 members found this post helpful.
Old 01-13-2023, 03:03 AM   #1573
Lanius
LQ Newbie
 
Registered: Dec 2022
Location: Poland
Distribution: OpenSUSE MicroOS
Posts: 22

Rep: Reputation: 23
Quote:
Originally Posted by Windu View Post
There's "vim-gvim" package in XAP for that.
I need Vim built with +clipboard, and without that I cannot copy to or (more importantly) from Vim to system clipboard. I feel it's not that unique use case unless I'm missing something here.

Gvim is GUI for Vim, it doesn't change the fact that it hasn't the mentioned build option.
 
1 members found this post helpful.
Old 01-13-2023, 03:15 AM   #1574
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,528

Rep: Reputation: 3361Reputation: 3361Reputation: 3361Reputation: 3361Reputation: 3361Reputation: 3361Reputation: 3361Reputation: 3361Reputation: 3361Reputation: 3361Reputation: 3361
Quote:
Originally Posted by Lanius View Post
I need Vim built with +clipboard, and without that I cannot copy to or (more importantly) from Vim to system clipboard. I feel it's not that unique use case unless I'm missing something here.

Gvim is GUI for Vim, it doesn't change the fact that it hasn't the mentioned build option.
So, you want Slackware to make Vim dependent on X11?

This will mean also that Vim will not work anymore in a Linux (or remote) console, right? What could go wrong with this?

Last edited by LuckyCyborg; 01-13-2023 at 03:19 AM.
 
Old 01-13-2023, 04:39 AM   #1575
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,816

Rep: Reputation: 1493Reputation: 1493Reputation: 1493Reputation: 1493Reputation: 1493Reputation: 1493Reputation: 1493Reputation: 1493Reputation: 1493Reputation: 1493
Quote:
Originally Posted by Lanius View Post
I cannot copy from Vim to system clipboard
Try pressing SHIFT simultaneously.
 
  


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
Apache 2.4 requests to non-SSL site with "Upgrade-Insecure-Requests: 1" and no trailing / get redirected to default site owendelong Linux - Server 2 06-22-2021 02:08 PM
[SOLVED] Requests for -current (20151216) rworkman Slackware 3441 12-28-2017 03:50 PM

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

All times are GMT -5. The time now is 10:46 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