LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 10-16-2013, 04:54 PM   #166
Raveriux
Member
 
Registered: Jul 2013
Location: Lithuania
Distribution: Slackware64 14, Slackware64 -current, Maemo
Posts: 80

Rep: Reputation: Disabled

Also dont remember to put x86 or x86_64 directory for Alien Bob ktown
 
Old 10-16-2013, 11:24 PM   #167
chess
Member
 
Registered: Mar 2002
Location: 127.0.0.1
Distribution: Slackware, OpenBSD, FreeBSD
Posts: 728

Rep: Reputation: 168Reputation: 168
@zerono: MATE SlackBuilds repositories for 14.0 and 14.1:

Code:
msb: http://slackware.org.uk/msb/14.0/1.6/x86/
msb: http://slackware.org.uk/msb/14.0/1.6/x86_64/
msb: http://slackware.org.uk/msb/14.1/1.6/x86/
msb: http://slackware.org.uk/msb/14.1/1.6/x86_64/
Thanks!
 
Old 10-21-2013, 09:44 AM   #168
zerouno
Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 276

Rep: Reputation: 84
Quote:
Version 1.0rc2 - 21/Oct/2013
- Looks like we get a slackpkg+ 1.0 release candidate 2... but things are
pretty much nailed down at this point. Please test and report any last
- Updated some repository to 14.1
I could not resist
 
2 members found this post helpful.
Old 10-22-2013, 10:36 AM   #169
zerouno
Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 276

Rep: Reputation: 84
I want to add that script in /usr/doc/slackpkg+-*

the idea is that isn't really explicit how to setup slackpkg+ to add multilib support.

I tested it only a few (I do not use the alienbob multilib ).

/usr/doc/slackpkg+-*/setupmultilib.sh
Code:
#!/bin/bash

ISX64=$(ls /var/log/packages/aaa_base-*-x86_64-*|wc -l)
if [ $ISX64 -ne 1 ];then
  echo "Slackware multilib's are only supported from slackware x86_64!"
  exit 1
fi
SVER=$(grep -v ^\# /etc/slackpkg/mirrors|sed -r 's,^.*/slackware64-(current|14.1|14.0|13.37|13.0)/,\1,'|head -1)
if [ -z "$SVER" ];then
  echo "Which slackware version do you have? (current/14.1/14.0/13.37/13.0)"
  read $SVER
fi
if ! echo $SVER|egrep -q '^(current|14.1|14.0|13.37|13.0)$';then
  echo "Invalid slackware version ($SVER)"
  exit 1
fi

if grep -q -e '^PKGS_PRIORITY=.* multilib:\.\* .*$' -e '^MIRRORPLUS..multilib..=.*multilib.*' /etc/slackpkg/slackpkgplus.conf;then
  echo "slackpkg+ seem to be already configured for multilib support. Would you deconfigure it? (y/N)"
  read ANS
  if [ "$ANS" == "y" -o "$ANS" == "Y" ];then
    cp /etc/slackpkg/slackpkgplus.conf /etc/slackpkg/slackpkgplus.conf.backup
    sed -i -r \
      -e 's/^PKGS_PRIORITY=(.*) multilib:\.\* (.*)$/PKGS_PRIORITY=\1 \2/' \
      -e 's/^(PKGS_PRIORITY=\( +\).*)$/#\1/' \
      -e 's/^(MIRRORPLUS..multilib..=.*multilib.*)$/#\1/' \
      -e 's/^REPOPLUS=(.*) multilib (.*)/REPOPLUS=\1 \2/' \
      -e 's/^(REPOPLUS=\( +\).*)$/#\1/' /etc/slackpkg/slackpkgplus.conf
    echo "multilib support deconfigured from slackpkg+. You need now to remove installed packages (using slackpkg)."
    echo "Do you want to remove it now? (y/N)"
    read ANS
    if [ "$ANS" == "y" -o "$ANS" == "Y" ];then
      slackpkg update
      slackpkg upgrade gcc glibc
      slackpkg remove multilib
      echo "Multilib removed!!"
      exit 0
    else
      echo "To remove installed packages type:"
      echo "# slackpkg update"
      echo "# slackpkg upgrade gcc glibc"
      echo "# slackpkg remove multilib"
      exit 0
    fi
  else
    echo "Aborted"
    exit 1
  fi
fi

echo "Would you setup slackpkg+ to add multilib support? (y/N)"
read ANS
if [ "$ANS" == "y" -o "$ANS" == "Y" ];then
  MULTILIBREPO="MIRRORPLUS['multilib']="$(grep -m1 '> multilib: ' repositories.txt|awk '{print $3}'|sed "s/{.*}/$SVER/")
  cp /etc/slackpkg/slackpkgplus.conf /etc/slackpkg/slackpkgplus.conf.backup
  if grep -q ^PKGS_PRIORITY= /etc/slackpkg/slackpkgplus.conf;then
    sed -i -r -e 's/^PKGS_PRIORITY=\( (.*) \)/PKGS_PRIORITY=( multilib:.* \1 )/' /etc/slackpkg/slackpkgplus.conf
  else
    sed -i -r -e 's/^(REPOPLUS=.*)$/PKGS_PRIORITY=( multilib:.* )\n\1/' /etc/slackpkg/slackpkgplus.conf
  fi
  sed -i -r -e 's|^(REPOPLUS=.*)$|\1\n'"$MULTILIBREPO|" /etc/slackpkg/slackpkgplus.conf
  sed -i.backup -r -e 's/^(\[0-9\]\+compat32)$/\#\1/' /etc/slackpkg/blacklist
  echo "slackpkg+ is now configured for multilib support."
  echo "Do you want install then multilib now? (y/N)"
  read ANS
  if [ "$ANS" == "y" -o "$ANS" == "Y" ];then
    slackpkg update
    slackpkg upgrade multilib
    slackpkg install multilib
    echo "Multilib installed"
  else
    echo "To install multilib type:"
    echo "# slackpkg update"
    echo "# slackpkg upgrade gcc glibc"
    echo "# slackpkg remove multilib"
  fi
  echo "To keep multilib updated, simply type:"
  echo "# slackpkg upgrade-all"
  if [ "$SVER" == "current" ];then
    echo "Remember... When you see NEW packages with 'slackpkg install-new' command,"
    echo "you may need to install the related multilib package"
  fi
  exit 0
else
  echo "Aborted"
  exit 1
fi
please, test it before slackware 14.1 is released!
 
Old 10-28-2013, 07:46 AM   #170
zerouno
Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 276

Rep: Reputation: 84
rc3 released
 
Old 10-28-2013, 08:37 AM   #171
Raveriux
Member
 
Registered: Jul 2013
Location: Lithuania
Distribution: Slackware64 14, Slackware64 -current, Maemo
Posts: 80

Rep: Reputation: Disabled
Quote:
Originally Posted by zerouno View Post
rc3 released
with code name "zerouno strikes again"
 
Old 11-06-2013, 06:02 AM   #172
zerouno
Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 276

Rep: Reputation: 84
Can someone test that patch before I insert it in slackpkg+ (that is rc)

Code:
--- zdialogplus.sh     2013-11-06 10:34:21.831730648 +0100
+++ zdialogplus.sh      2013-11-06 11:51:05.902978757 +0100
@@ -26,9 +26,21 @@
                        for i in $1; do
                                BASENAME=$(cutpkg $i)
                                PKGFOUND=$(grep -m1 -e "^${BASENAME}-[^-]\+-\(noarch\|fw\|${ARCH}\)" $TMPDIR/tmplist)
+                               PKGCURRVER=$(echo $i|rev|cut -f3- -d-|rev|sed 's/-/ /g')
+                               PKGFOUNDVER=$(echo $PKGFOUND|rev|cut -f3- -d-|rev|sed 's/-/ /g')
+                               ONOFFTMP=off
+                               if [ $(echo -e "$PKGCURRVER\n$PKGFOUNDVER"|sort -n|md5sum|awk '{print $1}') == $(echo -e "$PKGCURRVER\n$PKGFOUNDVER"|md5sum|awk '{print $1}') ];then
+                                 NEWER="OLD"
+                               else
+                                 NEWER="NEW"
+                                 if [ "$ONOFF" == "on" ];then
+                                   ONOFFTMP=on
+                                 fi
+                               fi
+
                                 REPOPOS=$(grep -m1 " $(echo $i|sed 's/\.t.z//') "  $TMPDIR/pkglist|awk '{print $1}'|sed 's/SLACKPKGPLUS_//')
 
-                               echo "$i \"$REPOPOS\" $ONOFF \"currently installed: $PKGFOUND\"" >>$TMPDIR/dialog.tmp
+                               echo "$i \"($NEWER) $REPOPOS\" $ONOFFTMP \"currently installed: $PKGFOUND\"" >>$TMPDIR/dialog.tmp
                        done
                        HINT="--item-help"
                else
@@ -52,7 +64,7 @@
                        awk '{ NF=3 ; print $0 }' $TMPDIR/dialog2.tmp > $TMPDIR/dialog.tmp
                        HINT=""
                fi
-               cat $TMPDIR/dialog.tmp|xargs dialog --title $2 --backtitle "slackpkg $VERSION" $HINT --checklist "Choose packages to $2:" 19 70 13 2>$TMPDIR/dialog.out
+               cat $TMPDIR/dialog.tmp|xargs dialog --title $2 --backtitle "slackpkg $VERSION" $HINT --checklist "Choose packages to $2:" 19 75 17 2>$TMPDIR/dialog.out
                case "$?" in
                        0|123)
                                dialog --clear

the results should be:
Code:
┌────────────────────────────────upgrade──────────────────────────────────┐
│ Choose packages to upgrade:                                             │  
│ ┌─────────────────────────────────────────────────────────────────────┐ │  
│ │  [ ] chromium-30.0.1599.66-x86_64-1sl.txz           (OLD) slacky    │ │  
│ │[*] libreoffice-4.1.3-x86_64-1alien.txz            (NEW) alienbob  │ │  
│ │[*] libreoffice-l10n-it-4.1.3-x86_64-1alien.txz    (NEW) alienbob  │ │  
│ │[*] libreoffice-mozplugin-4.1.3-x86_64-1alien.txz  (NEW) alienbob  │ │  
│ │  [ ] libvdpau-0.5-x86_64-1sl.txz                    (OLD) slacky    │ │  
│ │  [ ] tightvnc-1.3.10-x86_64-1gv.txz                 (OLD) salixos   │ │  
│ │                                                                     │ │  
│ │                                                                     │ │  
│ │                                                                     │ │  
│ │                                                                     │ │  
│ │                                                                     │ │  
│ │                                                                     │ │  
│ │                                                                     │ │  
├─│                                                                     │─┤  
│ └───────────────────<  OK  >───────────<Cancel>───────────────────────┘ │  
└─────────────────────────────────────────────────────────────────────────┘
slackpkg TRY to detect if the package is newer of the installed package (may fail) and deselect it by default if it is older.

detection may fail on packages as 1.2 vs. 1.12 ( 2 is alphabetically after 12; that problem may be partially solved in a future review).
I may decide to disallow the check if it is from the official slackware repository.
 
Old 11-06-2013, 06:09 AM   #173
Raveriux
Member
 
Registered: Jul 2013
Location: Lithuania
Distribution: Slackware64 14, Slackware64 -current, Maemo
Posts: 80

Rep: Reputation: Disabled
Maybe better aproach would be to write somewhere in the dialog "installed: version". or not?
 
Old 11-06-2013, 06:13 AM   #174
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,384

Rep: Reputation: Disabled
Please do not add version comparison checks to the script, or at least leave it disabled by default when you add this.

Your change to the script goes against the way Slackware looks at package upgrades: Slackware does not care if a version is older or newer. That is a strength, not a weakness. Just like the lack of dependency checks is a strength, not a weakness.

Also you will not be able to be 100% accurate on version checks.
Suppose a developer releases a beta version of his software and calls the version "1.0b". Then he releases his stable release and calls it "1.0". Your algorithm would incorrectly consider "1.0b" as a higher version than "1.0".

Eric
 
2 members found this post helpful.
Old 11-06-2013, 06:21 AM   #175
zerouno
Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 276

Rep: Reputation: 84
The user can see the version in the last line of screen.
Insert the version inline enlarge the dialog out-of-screen (you must put also the build version), and the user must to check manually all packages listed.

I already tried it.

(however the patch contains a bug )

Code:
│ │[ ] chromium-30.0.1599.66-x86_64-1sl.t(31.0.1608.1-x86_64-1i7sl) slac│ │ 
│ │[ ] libvdpau-0.5-x86_64-1sl.txz       (0.7-x86_64-1i7sl) slacky      │ │
│ │[*] tightvnc-1.3.10-x86_64-1gv.txz    (1.3.10-x86_64-1) salixos      │ │
or
Code:
│ │[*] chromium-30.0.1599.66-x86_64-1sl.txz  (31.0.1608.1) slacky    │ │
│ │   [ ] libvdpau-0.5-x86_64-1sl.txz           (0.7) slacky            │ │
│ │[*] tightvnc-1.3.10-x86_64-1gv.txz        (1.3.10) salixos        │ │
note that tightvnc differs only for build version.
 
Old 11-06-2013, 06:28 AM   #176
zerouno
Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 276

Rep: Reputation: 84
Quote:
Originally Posted by Alien Bob View Post
Please do not add version comparison checks to the script, or at least leave it disabled by default when you add this.
I will add an entry in slackpkgplus.conf

Quote:
Your change to the script goes against the way Slackware looks at package upgrades: Slackware does not care if a version is older or newer. That is a strength, not a weakness. Just like the lack of dependency checks is a strength, not a weakness.
Quote:
Originally Posted by zerouno
I may decide to disallow the check if it is from the official slackware repository.
yes, some slackware upgrades are 'downgrade'

Quote:
Also you will not be able to be 100% accurate on version checks.
I will try to increase the accuratation, but I may add an entry in slackpkgplus.conf that does not de-check by default then package if it is older.

Quote:
Suppose a developer releases a beta version of his software and calls the version "1.0b". Then he releases his stable release and calls it "1.0". Your algorithm would incorrectly consider "1.0b" as a higher version than "1.0".
yes, is better in a future beta and/or in a development branch. The rc is freezed.
 
Old 11-06-2013, 06:38 AM   #177
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 1,902

Rep: Reputation: 963Reputation: 963Reputation: 963Reputation: 963Reputation: 963Reputation: 963Reputation: 963Reputation: 963
Quote:
Originally Posted by zerouno View Post
I will add an entry in slackpkgplus.conf
IMHO, You would be better off just not doing it, so that slackpkg+ is not wildly different from the other Slackware tools.
 
4 members found this post helpful.
Old 11-06-2013, 07:01 AM   #178
gegechris99
Member
 
Registered: Oct 2005
Location: France
Distribution: Slackware 14.1 64bit
Posts: 735
Blog Entries: 3

Rep: Reputation: 81
Quote:
Originally Posted by ruario View Post
IMHO, You would be better off just not doing it, so that slackpkg+ is not wildly different from the other Slackware tools.
+1. slackpkg+ is a very useful addition to any Slacker's toolbox. It fits perfectly with the KISS philosophy of the distro.

So when listing potential upgrades, just let the user decide what to upgrade.

My 2 cts.
 
Old 11-06-2013, 07:33 AM   #179
zerouno
Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 276

Rep: Reputation: 84
changes discharged!


I was thinking for a method, even without the autodeselect and only for third-party repositories, to show the user quickly if a third-party package is newer or older without having to compare one by one, and maybe leave him choose to install or not.

In practice I have, in my system, a series of packages that are newer than those found in the configured repositories, and each upgrade-all I get that packages listed.
I do not blacklist them because I would have no more any update notifications, but in the meantime I have to deselect them every time.

And when there are big updates (today I've updated ktown) it can miss to deselect one, so start a downgrade.


But evidently the functionality should be thought best to reduce the intrusiveness and maintain the philosophy of slackware.
 
2 members found this post helpful.
Old 11-06-2013, 08:13 AM   #180
kikinovak
Senior Member
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: Slackware, Slackware64
Posts: 1,954

Original Poster
Rep: Reputation: 973Reputation: 973Reputation: 973Reputation: 973Reputation: 973Reputation: 973Reputation: 973Reputation: 973
@zerouno: slackpkg+ is just perfect as is. As far as I'm concerned, you should be given a "Handy Slackware Tool Of The Year Award" for it. Anyway, I've added a big THANK YOU note in my repository (http://www.microlinux.fr/slackware/README.txt).

The only thing that's left to do is correct a few typos, but that's all.

Keep up the good work.

Niki
 
1 members found this post helpful.
  


Reply

Tags
slackpkg


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
Holding a package update from slackpkg gazj Slackware 2 01-25-2011 05:58 PM
Where can I find a 3rd Party Repository for RHEL 5? tightlikethat Linux - Newbie 3 02-27-2010 09:46 PM
Best 3rd Party RPM Repository for FC9 kromberg Fedora 11 11-13-2008 09:04 PM
Package Kit Error-- "Cannot retrieve repository metadata (repomd.xml) for repository" mbvpixies78 Linux - Newbie 11 08-22-2008 08:20 PM
3rd party package managers? crontab Slackware 3 10-06-2007 11:34 AM


All times are GMT -5. The time now is 06:54 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration