LinuxQuestions.org
Help answer threads with 0 replies.
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-13-2016, 04:07 PM   #1
zerouno
Member
 
Registered: Oct 2009
Location: Italy
Distribution: Slackware
Posts: 637

Rep: Reputation: 192Reputation: 192
BUG slackpkg upgrade does not work with $ROOT


I tried
Code:
# ROOT=/rootfs slackpkg -dialog=off upgrade wget

Checking local integrity... DONE
Looking for wget in package list. Please wait... DONE

wget-1.14-i486-3_slack14.1.txz

Total package(s): 1

Do you wish to upgrade selected packages (Y/n)? n
wget-1.14-i486-3_slack14.1.txz
is already installed, so slackpkg should presents nothing.


pkglist.awk intend a package as local if after first '/' there is the 'var' word.


This should solve: slackpkg-root-upgrade-patch.txt.
I tried it on a slackware-current host (slackpkg-2.82.0-noarch-16) that contains a slackware-14.1 chrooted
Code:
--- core-functions.sh-orig      2016-01-13 21:48:23.016726727 +0100
+++ core-functions.sh   2016-01-13 21:48:59.025276558 +0100
@@ -560,9 +560,9 @@
 
        grep -vE "(^#|^[[:blank:]]*$)" ${CONF}/blacklist > ${TMPDIR}/blacklist
        if echo $CMD | grep -q install ; then
-               ls -1 $ROOT/var/log/packages/* | awk -f /usr/libexec/slackpkg/pkglist.awk > ${TMPDIR}/tmplist
+    ( cd $ROOT ; ls -1 ./var/log/packages/* ) | awk -f /usr/libexec/slackpkg/pkglist.awk > ${TMPDIR}/tmplist
        else
-               ls -1 $ROOT/var/log/packages/* | awk -f /usr/libexec/slackpkg/pkglist.awk | applyblacklist > ${TMPDIR}/tmplist
+    ( cd $ROOT ; ls -1 ./var/log/packages/* ) | awk -f /usr/libexec/slackpkg/pkglist.awk | applyblacklist > ${TMPDIR}/tmplist
        fi
        cat ${WORKDIR}/pkglist | applyblacklist > ${TMPDIR}/pkglist
 
Old 01-15-2016, 03:18 PM   #2
Rinndalir
Member
 
Registered: Sep 2015
Posts: 733

Rep: Reputation: Disabled
You may want to also send to slackware maintaineer.
 
Old 01-15-2016, 03:30 PM   #3
zerouno
Member
 
Registered: Oct 2009
Location: Italy
Distribution: Slackware
Posts: 637

Original Poster
Rep: Reputation: 192Reputation: 192
Latest time I have reported a bug I wrote here and the fix was released in a few days, so I posted here now.

How I can report it to mantainers?
 
Old 01-15-2016, 06:29 PM   #4
zerouno
Member
 
Registered: Oct 2009
Location: Italy
Distribution: Slackware
Posts: 637

Original Poster
Rep: Reputation: 192Reputation: 192
small bug in the patch.

Code:
( cd $ROOT ; ls -1 ./var/log/packages/* )
should be
Code:
( cd $ROOT/ ; ls -1 ./var/log/packages/* )
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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] Salome-Meca doesn't work after slackpkg upgrade-all theCapitain Slackware 4 01-03-2016 11:12 AM
[SOLVED] slackpkg upgrade-all does not work, tells me I need checksum file Altiris Slackware - ARM 5 07-22-2015 11:07 AM
slackpkg bug or confusion? brooko Slackware 2 02-05-2014 05:19 PM
[SOLVED] bug in slackpkg search? swatnio Slackware 9 05-27-2013 08:14 PM
[SOLVED] Just ran 'slackpkg upgrade-all'..... Now X windows doesn't work. v.segfault wolf2600 Slackware 14 01-23-2011 07:47 AM

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

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