LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   slackpkg vs. third-party package repository (https://www.linuxquestions.org/questions/slackware-14/slackpkg-vs-third-party-package-repository-4175427364/)

ponce 05-01-2013 12:34 PM

GPG check is not working ATM: I've tried the latest version (rc2) and notified of this zerouno.

If you want to use my personal repository until slackpkg+ gets fixed, disable GPG checking in /etc/slackpkg/slackpkg.conf.

Consider also that my repositories are made of the packages I use on my installations, built with what I need: if you need only some stuff and not the whole it's up to you to check for dependencies for single packages on SBo (some are built using also optional ones).

And be advised also that everything available there is up for grabs but with no warranty (especially if not used on a slackware full install) as it's meant just for my personal use (and, generally, works for me).

zerouno 05-01-2013 04:40 PM

:doh: a very very small, but very very fatal bug!!! (I forgot a '$' before CHECKGPG)

rc3 release solve also a bug that deny to use a local slackware mirror.


Slackpkg+ is moved on http://slakfinder.org/slackpkg+/

ponce 05-02-2013 12:21 AM

I found that the GPG check cannot work with my repository, because inside /usr/libexec/slackpkg/core-functions.sh there's this block
Code:

        case $ARCH in                                                                                                                                                       
                i386|i486|i586|i686)                                                                                                                                       
                        ARCH=[i]*[3456x]86[^_]*                                                                                                                             
                        SLACKKEY=${SLACKKEY:-"Slackware Linux Project <security@slackware.com>"}                                                                           
                        PKGMAIN=${PKGMAIN:-slackware}                                                                                                                       
                ;;                                                                                                                                                         
                x86-64|x86_64|X86-64|X86_64)                                                                                                                               
                        ARCH=x86[_64]*                                                                                                                                     
                        SLACKKEY=${SLACKKEY:-"Slackware Linux Project <security@slackware.com>"}                                                                           
                        PKGMAIN=${PKGMAIN:-slackware64}                                                                                                                     
                ;;                                                                                                                                                         
                s390)                                                                                                                                                       
                        ARCH=s390                                                                                                                                           
                        # Slack390 didn't have signed packages                                                                                                             
                        CHECKGPG=off                                                                                                                                       
                        PKGMAIN=${PKGMAIN:-slackware}                                                                                                                       
                ;;                                                                                                                                                         
                arm*)                                                                                                                                                       
                        ARCH=arm[v5tel]*                                                                                                                                   
                        SLACKKEY=${SLACKKEY:-"ARMedslack Security (ARMedslack Linux Project Security) <security@armedslack.org>"}                                           
                        PKGMAIN=${PKGMAIN:-slackware}                                                                                                                       
                ;;                                                                                                                                                         
                powerpc|ppc)                                                                                                                                               
                        ARCH=powerpc                                                                                                                                       
                        SLACKKEY=${SLACKKEY:-"Slackintosh-Project Sign <slackdev@workaround.ch>"}                                                                           
                        PKGMAIN=${PKGMAIN:-slackintosh}                                                                                                                     
                ;;                                                                                                                                                         
                *)                                                                                                                                                         
                        ARCH=none                                                                                                                                           
                ;;                                                                                                                                                         
        esac

and my key is not signed by "Slackware Linux Project <security@slackware.com>".

maybe it's better to not include my repo in /etc/slackpkg/slackpkgplus.conf.

bartgymnast 05-02-2013 04:55 AM

I was wondering some things.
Are you purely going to make the 3rd party repositories accessable.
Or are you also thinking about adding some features ?

I was thinking about the following to name 2.

- search in the description of packages,
- search the packages that aren't in the repositories but are installed

zerouno 05-02-2013 05:05 AM

slackpkg+ was bird to add 3rd party repositories support, and slackpkg 1.0 will do only this.

I dont known what will do slackpkg 2.0; I dont known if I will have time to devel it.
For now you can use slakfinder.org to a good search and then use slackpkg+ to install.

ponce 05-02-2013 06:25 AM

Quote:

Originally Posted by ponce (Post 4943128)
I found that the GPG check cannot work with my repository, because inside /usr/libexec/slackpkg/core-functions.sh there's this block
...
maybe it's better to not include my repo in /etc/slackpkg/slackpkgplus.conf.

Ignore this, GPG checks works fine, it's me being an arsehole: I had a default key for signing specified in ~/.gnupg/gpg.conf different from the one I was using in ~/.genrpc and the gen_repos_files script was signing the stuff with my old default key regardless of the one specified in its configuration file.
I'll update signatures soon in my repos.

phenixia2003 05-02-2013 10:12 AM

1 Attachment(s)
Hello,

Another code suggestion for file-search. You will find the patch for slackpkg+ 0.9rc3 in attachment. Here is a sample :

Code:

slackpkg file-search qt 

DONE

The list below shows the packages that contains "qt" file.

[ Status          ] [ Repository              ] [ Package                                  ]
  installed                                        kde-runtime-4.8.5-x86_64-1               
  installed                                        kdeartwork-4.8.5-x86_64-1               
  installed                                        kdevelop-pg-qt-1.0.0-x86_64-1           
  installed                                        marble-4.8.5-x86_64-1                   
  installed                                        smokeqt-4.8.5-x86_64-1                   
  installed                                        PyQt-4.9.1-x86_64-3                     
  installed                                        QScintilla-2.6.1-x86_64-3               
  installed                                        akonadi-1.7.2-x86_64-1                   
  installed                                        libdbusmenu-qt-0.9.2-x86_64-2           
  installed                                        phonon-4.6.0-x86_64-1                   
  installed                                        polkit-qt-1-0.103.0-x86_64-1             
  installed                                        qca-2.0.2-x86_64-1                       
  installed                                        qca-cyrus-sasl-2.0.0_beta3-x86_64-1     
  installed                                        qca-gnupg-2.0.0_beta3-x86_64-1           
  installed                                        qca-ossl-2.0.0_beta3-x86_64-2           
  installed                                        qt-4.8.2-x86_64-4                       
  installed                                        qtscriptgenerator-0.2.0-x86_64-1         
  installed                                        scim-1.4.14-x86_64-2                     
  installed                                        scim-bridge-0.4.16-x86_64-5             
  uninstalled                                      mplayerplug-in-3.55-x86_64-1             
  uninstalled                                      recordmydesktop-0.3.8.1-x86_64-3         
  installed          multilib                    qt-compat32-4.8.2-x86_64-4compat32       
  uninstalled          alienbob                    calibre-0.9.28-x86_64-1alien             
  uninstalled          alienbob                    gecko-mediaplayer-1.0.7-x86_64-1alien   
  uninstalled          alienbob                    recordmydesktop-0.3.8.1-x86_64-3alien   
  uninstalled          alienbob                    teamspeak-client-3.0.10-x86_64-1alien   

You can search specific packages using "slackpkg search package".


Hope this helps.

Greetings.

--
SeB

fl0 05-02-2013 11:53 PM

Quote:

Originally Posted by ponce (Post 4942796)
GPG check is not working ATM: I've tried the latest version (rc2) and notified of this zerouno.

If you want to use my personal repository until slackpkg+ gets fixed, disable GPG checking in /etc/slackpkg/slackpkg.conf.

Consider also that my repositories are made of the packages I use on my installations, built with what I need: if you need only some stuff and not the whole it's up to you to check for dependencies for single packages on SBo (some are built using also optional ones).

And be advised also that everything available there is up for grabs but with no warranty (especially if not used on a slackware full install) as it's meant just for my personal use (and, generally, works for me).

Hi,

sure, i know that the repository is primary for you and there is no warrenty.

with the new slackpkg+ version, my error is fixed, thx

regards fl0

zerouno 05-03-2013 08:34 AM

Slackpkg+ is now under github and under dedicated repository.

So to upgrade slackpkg+ you only need to add in slackpkgplus.conf

MIRRORPLUS['slackpkgplus']=http://slakfinder.org/slackpkg+/

then launch
slackpkg update gpg
slackpkg update

then
slackpkg upgrade slackpkg+
or
slackpkg upgrade-all

Code:

# slackpkg search slackpkg

DONE

The list below shows all packages with name matching "slackpkg".

[ Status          ] [ Repository              ] [ Package                                  ]
  installed                                        slackpkg-2.82.0-noarch-8                 
  upgrade              slackpkgplus                slackpkg+-0.9rc2-noarch-1mt --> slackpkg+-0.9rc3-noarch-1mt

there are no other update for now. I've to solve a minor bug, but I've no time now.

zerouno 05-03-2013 05:12 PM

pushed a patch that solve 'slackpkg search slackpkg'

now the prefix is upcase, so the file-search patch need to be adapted.

phenixia2003 05-05-2013 05:31 AM

1 Attachment(s)
Hello,

Quote:

Originally Posted by zerouno (Post 4944446)
pushed a patch that solve 'slackpkg search slackpkg'

now the prefix is upcase, so the file-search patch need to be adapted.

Adapted the patch for "file-search" following your changes. The new patch is in attachment. It was created using this slackpkgplus.sh version.


Greetings.

--
SeB

zerouno 05-05-2013 09:45 AM

version 0.9.1 released

Alien Bob 06-01-2013 09:54 AM

The PKGS_PRIORITY keyword is not working for me. I have this in my slackpkgplus.conf:
Code:

PKGS_PRIORITY=( restricted:vlc )
but this seems to be ignored.

By accident I still had the older vlc-2.0.6 package in my "alienbob" repository, and slackpkg would offer an "upgrade" from my manually installed 2.0.7 to that 2.0.6 version in the "alienbob" repo even though it should give priority to the 2.0.7 version in the "restricted" repository.
Code:

# slackpkg search vlc

DONE

The list below shows all packages with name matching "vlc".

[ Status          ] [ Repository              ] [ Package                                  ]
  installed          alienbob                    phonon-vlc-0.6.0-x86_64-1alien           
  installed          alienbob                    npapi-vlc-20130408-x86_64-1alien         
  upgrade              alienbob                    vlc-2.0.7-x86_64-1alien --> vlc-2.0.6-x86_64-2alien 
  installed          restricted                  npapi-vlc-20130408-x86_64-1alien         
  installed          restricted                  vlc-2.0.7-x86_64-1alien                 

You can search specific files using "slackpkg file-search file".

Eric

Alien Bob 06-01-2013 10:01 AM

Update: I think this was caused by having multiple PKGS_PRIORITY lines in slackpkgplus.conf... only the value for the last variable definitions was kept because new variable definitions overrule the older ones.

I changed this to a single line for PKGS_PRIORITY with multiple definitions, like this:
Code:

PKGS_PRIORITY=( multilib:.* restricted:vlc restricted:ffmpeg )
ald now "slackpkg upgrade-all" no longer wants to "upgrade" from vlc-2.0.7 to vlc-2.0.6. Problem solved.

Eric

chess 06-29-2013 10:14 PM

This is very interesting -- I was thinking about maybe making the msb packages (http://slackware.org.uk/msb/) compatible with slackpkg+ but I'm not sure what exactly needs to be changed. And it also looks like we have to separate copies of GPG.TXT, FILELIST.TXT and other metadata type files duplicated in each architecture's directory?

Edit: We already use Eric's gen_repo script but any suggestions on best practice for repo layout in regards to slackpkg+ would be appreciated. Thanks.


All times are GMT -5. The time now is 08:45 AM.