LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-2011, 03:54 PM   #1
phenixia2003
Member
 
Registered: May 2006
Location: France
Distribution: Slackware
Posts: 299

Rep: Reputation: 179Reputation: 179
Talking [ANN] compat32pkg-1.3.110319 is out !


Hello Slackers,

I come today with a new version of compat32pkg, which corrects the design flaw pointed out by tobyl here, includes a new feature,
and, the latest revision of the configuration file for the "layer-32", which comes with the latest changes made by Eric Hameleers
to the "32-bit part of the multilib".

You can grab this new revision at compat32pkg's website or using this direct link.

________________________________________

So, compat32pkg had a design flaw ?

Yes, that's right !

In fact, the update mechanism was designed to search updates for installed packages only, which, in the case of the "layer-32", was
an error. This was corrected in this new revision, and, now, the update mechanism for the "layer-32", recognizes as an update :
(1) any new version of any installed package of the "32-bit part of the multilib", and, (2) any package of the "32-bit part of the multilib"
which is not installed, nor blacklisted, nor excluded. This implies that any addition (of package) into the configuration file for the "layer-32"
is handled as an update.

So, if we try this new compat32pkg, in mode --list-updates for example, on a slackware whose the "layer-32" is not fully installed, it will report
the found updates which includes a certain amount of new packages, like below:

Code:
$ compat32pkg --mirror @WorldWide-13.1 --list-updates layer-32

compat32pkg ver. 1.3.110319 (stable)

(INFO) No default mirror was defined in configuration's script /etc/compat32pkg/compat32pkg.conf
[--list-updates] Started on Sun Mar 20 12:24:05 2011                                               
[--list-updates]   Using mirror ftp://mirrors.kernel.org/slackware/slackware-13.1
[--list-updates]   Local system is Slackware/x86_64 version 13.1.0
[--list-updates]   Mirrored system is Slackware/i486 version 13.1
[--list-updates]   Slackware-32 packages will be stored into /var/cache/compat32pkg/slackware-32
[--list-updates]   compat32 packages will be stored into /var/cache/compat32pkg/compat-32
[--list-updates]   Configuration file for "layer-32" : /etc/compat32pkg/multilib-32bit-packages.lst version 1.3.110319
                                                                                     
[--list-updates]   13 update(s) were found [ 6 package(s) to upgrade, 7 package(s) to add ] (1,674 sec.)

[ package-basename                 ] [ installed version                ]     [ update version                   ]
  aaa_elflibs                          ** NOT INSTALLED **                -->   13.1 build 1                    
  bzip2                                1.0.5 build 1                      -->   1.0.6 build 1_slack13.1         
  cups                                 1.4.4 build 1_slack13.1            -->   1.4.5 build 2_slack13.1         
  expat                                2.0.1 build 1                      -->   2.0.1 build 2_slack13.1         
  openssl                              0.9.8n build 1                     -->   0.9.8r build 1_slack13.1        
  openssl-solibs                       0.9.8n build 1                     -->   0.9.8r build 1_slack13.1        
  seamonkey-solibs                     2.0.6 build 1_slack13.1            -->   2.0.12 build 1_slack13.1        
  gst-plugins-base                     ** NOT INSTALLED **                -->   0.10.29 build 1                 
  gst-plugins-good                     ** NOT INSTALLED **                -->   0.10.22 build 1                 
  gstreamer                            ** NOT INSTALLED **                -->   0.10.29 build 1                 
  libieee1284                          ** NOT INSTALLED **                -->   0.2.11 build 2                  
  libusb                               ** NOT INSTALLED **                -->   1.0.6 build 1                   
  sane                                 ** NOT INSTALLED **                -->   1.0.21 build 1                  

[--list-updates] Ended on Sun Mar 20 12:24:09 2011
This new version of compat32pkg comes also with the new feature --layer 32-config, which allows, when needed, updating of configuration file for the "layer-32"
to the latest revision available on an updates-site dedicated to compat32pkg.

This was designed so that users can take advantage of any changes made to the "layer-32" as quickly and as easily as possible.

For example, to test whether the installed configuration file for the "layer-32" is up to date, compat32pkg will have to be used this way :

Code:
$ compat32pkg --layer-32-config check-update

$ compat32pkg --layer-32-config check-update http://3rd-party.compat32pkg.updates-sites.url
Here is an example of the output of this feature when an update is available :

Code:
$ compat32pkg --layer-32-config check-update

compat32pkg ver. 1.3.110319 (stable)

(INFO) No default mirror was defined in configuration's script /etc/compat32pkg/compat32pkg.conf
[--layer-32-config] Started on Sun 20 Mar 2011 08:33:27 PM CET
[--layer-32-config]   Working in mode check-update
[--layer-32-config]   Local configuration file for "layer-32" is multilib-32bit-packages.lst version 1.3.110317

[--layer-32-config]   Using updates-site http://sourceforge.net/projects/compat32pkg/files/updates-site
[--layer-32-config]     -> Available configuration file for "layer-32" is multilib-32bit-packages.lst version 1.3.110319   

[--layer-32-config]   An update is available.

[--layer-32-config] -------------------------------------------------------------------
[--layer-32-config] !                 Changes since revision 1.2.110112                 !
[--layer-32-config] !-------------------------------------------------------------------!
[--layer-32-config] !    Package          ! Note       !       affected multilib        !
[--layer-32-config] !                     !            !   13.0   !   13.1   ! -current !
[--layer-32-config] !---------------------+------------+----------+----------+----------!
[--layer-32-config] ! a/util-linux        ! added (1)  !          !          !    X     !
[--layer-32-config] !---------------------+------------+----------+----------+----------!
[--layer-32-config] ! l/libmpc            ! added      !          !          !    X     !
[--layer-32-config] !---------------------+------------+----------+----------+----------!
[--layer-32-config] ! l/libpcap           ! added      !          !          !    X     !
[--layer-32-config] !---------------------+------------+----------+----------+----------!
[--layer-32-config] ! l/libsndfile        ! added      !          !          !    X     !
[--layer-32-config] !---------------------+------------+----------+----------+----------!
[--layer-32-config] ! l/libieee1284       ! added      !    X     !    X     !    X     !
[--layer-32-config] !---------------------+------------+----------+----------+----------!
[--layer-32-config] ! l/libusb            ! added      !    X     !    X     !    X     !
[--layer-32-config] !---------------------+------------+----------+----------+----------!
[--layer-32-config] ! l/gstreamer         ! added      !    X     !    X     !    X     !
[--layer-32-config] !---------------------+------------+----------+----------+----------!
[--layer-32-config] ! l/gst-plugins-base  ! added      !    X     !    X     !    X     !
[--layer-32-config] !---------------------+------------+----------+----------+----------!
[--layer-32-config] ! l/gst-plugins-good  ! added      !          !    X     !    X     !
[--layer-32-config] -------------------------------------------------------------------
[--layer-32-config] (1) util-linux-ng was renamed util-linux. However as this package
[--layer-32-config] is not available for 13.0 and 13.1, util-linux-ng remains into
[--layer-32-config] the file that describes the "layer-32" for compatibility reason.

[--layer-32-config] Ended on Sun 20 Mar 2011 08:33:35 PM CET

When an update is available, compat32pkg will have to be used as below to upgrade the installed configuration file for "layer-32" to the latest revision :

Code:
$ compat32pkg --layer-32-config update

$ compat32pkg --layer-32-config update http://3rd-party.compat32pkg.updates-sites.url
Here is an example of updating the configuration file for "layer-32" :

Code:
$ compat32pkg --layer-32-config update

compat32pkg ver. 1.3.110319 (stable)

(INFO) No default mirror was defined in configuration's script /etc/compat32pkg/compat32pkg.conf
[--layer-32-config] Started on Sun 20 Mar 2011 08:34:45 PM CET
[--layer-32-config]   Working in mode update
[--layer-32-config]   Local configuration file for "layer-32" is multilib-32bit-packages.lst version 1.3.110317

[--layer-32-config]   Using updates-site http://sourceforge.net/projects/compat32pkg/files/updates-site
[--layer-32-config]     -> Available configuration file for "layer-32" is multilib-32bit-packages.lst version 1.3.110319   

[--layer-32-config]   An update is available.

[--layer-32-config] -------------------------------------------------------------------
[--layer-32-config] !                 Changes since revision 1.2.110112                 !
[--layer-32-config] !-------------------------------------------------------------------!
[--layer-32-config] !    Package          ! Note       !       affected multilib        !
[--layer-32-config] !                     !            !   13.0   !   13.1   ! -current !
[--layer-32-config] !---------------------+------------+----------+----------+----------!
[--layer-32-config] ! a/util-linux        ! added (1)  !          !          !    X     !
[--layer-32-config] !---------------------+------------+----------+----------+----------!
[--layer-32-config] ! l/libmpc            ! added      !          !          !    X     !
[--layer-32-config] !---------------------+------------+----------+----------+----------!
[--layer-32-config] ! l/libpcap           ! added      !          !          !    X     !
[--layer-32-config] !---------------------+------------+----------+----------+----------!
[--layer-32-config] ! l/libsndfile        ! added      !          !          !    X     !
[--layer-32-config] !---------------------+------------+----------+----------+----------!
[--layer-32-config] ! l/libieee1284       ! added      !    X     !    X     !    X     !
[--layer-32-config] !---------------------+------------+----------+----------+----------!
[--layer-32-config] ! l/libusb            ! added      !    X     !    X     !    X     !
[--layer-32-config] !---------------------+------------+----------+----------+----------!
[--layer-32-config] ! l/gstreamer         ! added      !    X     !    X     !    X     !
[--layer-32-config] !---------------------+------------+----------+----------+----------!
[--layer-32-config] ! l/gst-plugins-base  ! added      !    X     !    X     !    X     !
[--layer-32-config] !---------------------+------------+----------+----------+----------!
[--layer-32-config] ! l/gst-plugins-good  ! added      !          !    X     !    X     !
[--layer-32-config] -------------------------------------------------------------------
[--layer-32-config] (1) util-linux-ng was renamed util-linux. However as this package
[--layer-32-config] is not available for 13.0 and 13.1, util-linux-ng remains into
[--layer-32-config] the file that describes the "layer-32" for compatibility reason.
                                                                                                                     
[--layer-32-config]   Backing up of previous version into /etc/compat32pkg/multilib-32bit-packages.lst.bak_20110320
[--layer-32-config]   Configuration file for "layer-32" updated to revision 1.3.110319

[--layer-32-config] Ended on Sun 20 Mar 2011 08:34:54 PM CET
Hoping this release will be as useful as possible ...

Cheers !

--
SeB

Last edited by phenixia2003; 03-28-2011 at 05:48 AM. Reason: updated the direct link, so that it points to the latest build (ie 4_SeB)
 
Old 03-21-2011, 08:32 PM   #2
chrisretusn
Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware
Posts: 508

Rep: Reputation: Disabled
Thanks!

For those upgrading, don't forget to check those *.new config files, like I did.
 
Old 03-24-2011, 04:29 PM   #3
tobyl
Member
 
Registered: Apr 2003
Location: uk
Distribution: slackware current
Posts: 743

Rep: Reputation: 51
SeB,

Nice work!
I have not tested to destruction, but as far as I can tell, the new version works flawlessly.
I used compat32pkg to install the recent updates, and also removed a package to see if compat32pkg could inform me of the missing package, and it was successful.
I didn't prove the config update because I had already updated.

chrisretusn: when using slackpkg, you are automatically reminded of .new files, keeping current on -current has never been easier.

tobyl
 
Old 03-24-2011, 07:36 PM   #4
chrisretusn
Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware
Posts: 508

Rep: Reputation: Disabled
Quote:
Originally Posted by tobyl View Post
chrisretusn: when using slackpkg, you are automatically reminded of .new files
Yes but, upgrading compat32pkg package does not involve running slackpkg.

Yes I know I can run "slackpkg new-config" after running "upgradepkg compat32pkg".

In my excitement to test out the new compat32pkg I simply forgot to merge the changes to the configuration files and first (listing) run of comat32pkg did not show as expected. That is the reason for the moment.
 
Old 03-25-2011, 07:24 AM   #5
phenixia2003
Member
 
Registered: May 2006
Location: France
Distribution: Slackware
Posts: 299

Original Poster
Rep: Reputation: 179Reputation: 179
Hello,

Quote:
Originally Posted by tobyl View Post
Nice work!
I have not tested to destruction, but as far as I can tell, the new version works flawlessly.
I used compat32pkg to install the recent updates, and also removed a package to see if compat32pkg could inform me of the missing package, and it was successful.
Pleased to see that all is doing well !


Quote:
Originally Posted by tobyl View Post
I didn't prove the config update because I had already updated.
You can (safely) test this by doing one of the following:
  • remove (or rename) /etc/compat32pkg/multilib-32bit-packages.lst
  • remove the version information (ie given in first line) into /etc/compat32pkg/multilib-32bit-packages.lst
  • change the version information into /etc/compat32pkg/multilib-32bit-packages.lst. If you set this version to an older one (ie < 1.3.110319),
    the update mechanism should tell you that an update is available, otherwise it should not.

I made the update mechanism for this file as simple as possible. On the "updates-site" there must be two files. (1) the latest revision of
multilib-32bit-packages.lst, and (2) an information file called multilib-32bit-packages.lst.infos which must contains the following data :
  1. The version number of the "new" multilib-32bit-packages.lst given into a field named "version" as below :
    Code:
             version = 1.3.110601
  2. The md5sum of the "new" multilib-32bit-packages.lst given into a field named "version" as below :
    Code:
             md5sum = 6f7d19e164201754d28a66c59913afed
  3. The description of changes since the previous revision, given into lines starting by a character ":", as below :
    Code:
               :This is the description of changes since the previous revision of the file
               :that describes the layer-32.
               :  + package X was added. This does not affect the multilib for 13.0

The default "updates-site" is at http://sourceforge.net/projects/comp...s/updates-site. The "alternate updates-site" at
http://compat32pkg.sourceforge.net/updates-site (clicking on this will give you a 403 error) can be passed in argument
of layer-32-config as below:

Code:
  $ compat32pkg --layer-32-config check-update http://compat32pkg.sourceforge.net/updates-site
____________________

Quote:
Originally Posted by chrisretusn View Post
For those upgrading, don't forget to check those *.new config files, like I did.
Well, I wanted to add something into the "doinst.sh" to prevent that kind of problem, but, I changed my mind
at the last time because I thought I was the only one to forgot to check this.


Cheers !
--
SeB
 
Old 03-25-2011, 07:55 AM   #6
chrisretusn
Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware
Posts: 508

Rep: Reputation: Disabled
I'm willing to bet we are not alone.
 
Old 03-27-2011, 02:02 PM   #7
phenixia2003
Member
 
Registered: May 2006
Location: France
Distribution: Slackware
Posts: 299

Original Poster
Rep: Reputation: 179Reputation: 179
Hello,

An update is available for the file that describes the layer-32. Users of 1.3.110319 can check-update/update
for this one as below :

Code:
compat32pkg --layer-32-config check-update
compat32pkg --layer-32-config update
P.S:there's a tiny bug into the code that extract informations about latest update. So you're going to see
some truncated lines into the description of changes made since the latest revision. I will publish a new
revision of compat32pkg (1.3.110319 build 4) tomorrow.


P.S: Well, the 1.3.110319 build 4 is now online.

--
SeB

Last edited by phenixia2003; 03-28-2011 at 05:55 AM. Reason: notification about availability of 1.3.110319 build 4
 
  


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] compat32pkg - .conf.new Warnings ? kjhambrick Slackware 2 03-02-2011 05:18 AM
[ANN] compat32pkg 1.2.110112 phenixia2003 Slackware 6 02-25-2011 05:31 AM
[ANN] gem2tgz 1.0 cycojesus Slackware 2 02-23-2011 07:15 AM
First release of compat32pkg. A simple tool for managing package to format compat32.. phenixia2003 Slackware 12 09-24-2010 08:02 AM
Hello from Ann Arbor joemac LinuxQuestions.org Member Intro 1 01-19-2010 08:30 PM


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