Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 20 Jul 2019, 20:02
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » System
Puppy Package Manager (modified) v3.0
Post new topic   Reply to topic View previous topic :: View next topic
Page 5 of 6 [86 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6 Next
Author Message
mikeslr


Joined: 16 Jun 2008
Posts: 3209
Location: 500 seconds from Sol

PostPosted: Thu 02 May 2019, 14:47    Post subject:  

FWIW, under Xenialpup64 I opened /usr/local/petget/pkg_chooser.sh in geany. It says it's version 2.0.

Couldn't figure any other way as command line told me nothing.
Back to top
View user's profile Send private message 
rockedge


Joined: 11 Apr 2012
Posts: 1129
Location: Connecticut, United States

PostPosted: Fri 03 May 2019, 13:25    Post subject:  

after installation on a Bionic32-v8 the PPM fails to function correctly. The PPM starts and the gui runs but the package search function does nothing and eventually a combination will work and show packages which when selected do not appear in the lower window and can not be installed
Back to top
View user's profile Send private message Visit poster's website 
mistfire

Joined: 04 Nov 2008
Posts: 1156
Location: PH

PostPosted: Fri 17 May 2019, 18:29    Post subject:  

Thanks @rockedge. I will try to figure it out the problem.
Back to top
View user's profile Send private message 
rockedge


Joined: 11 Apr 2012
Posts: 1129
Location: Connecticut, United States

PostPosted: Fri 17 May 2019, 18:40    Post subject:  

@mistfire

Nice!! I use it and would like to include it in some remasters
Back to top
View user's profile Send private message Visit poster's website 
greengeek


Joined: 20 Jul 2010
Posts: 5584
Location: Republic of Novo Zelande

PostPosted: Thu 30 May 2019, 11:51    Post subject:  

For some reason I can't access Google drive. Any other links elsewhere i could try?
cheers!
Back to top
View user's profile Send private message 
ally


Joined: 19 May 2012
Posts: 1912
Location: lincoln, uk

PostPosted: Thu 30 May 2019, 13:02    Post subject:  

http://archive.org/download/Puppy_Linux_Forum_Pets/ppm-mod-3.0.pet

Smile
Back to top
View user's profile Send private message Visit poster's website 
greengeek


Joined: 20 Jul 2010
Posts: 5584
Location: Republic of Novo Zelande

PostPosted: Thu 30 May 2019, 13:18    Post subject:  

ally wrote:
http://archive.org/download/Puppy_Linux_Forum_Pets/ppm-mod-3.0.pet
Thanks Ally!
Here is how the PPM3 looks for me on Slacko 5.6 derivative:

Icon missing and 3x OK buttons - unclear what they do. Also says PPM V2 rather than V3. Am i seeing the same as others see?

Will test functionality more over next few days.

One thing I liked about PPM1 was the ability to select "search all repositories". I don't see that option in PPM2 or PPM3.
PPM3_experimental.jpg
 Description   
 Filesize   26.89 KB
 Viewed   243 Time(s)

PPM3_experimental.jpg

Back to top
View user's profile Send private message 
Mike Walsh


Joined: 28 Jun 2014
Posts: 5156
Location: King's Lynn, UK.

PostPosted: Thu 30 May 2019, 13:38    Post subject:  

GG:-

I think you'll find that the 'search all repositories' thing is enabled automatically now. In other words, it's the default behaviour, as opposed to the way it used to work.


Mike. Wink

_________________
MY 'PUPPY' PACKAGES

Back to top
View user's profile Send private message 
OscarTalks


Joined: 05 Feb 2012
Posts: 1985
Location: London, England

PostPosted: Fri 31 May 2019, 15:48    Post subject:  

All of the directories and sub-directories in the package have the SGID bit in Properties showing as checked. Not sure if this is a problem but it is not normal and installing the package will overwrite the system directories in the same way.

The version number can easily be changed, it is defined near the top of the /usr/local/petget/pkg_chooser.sh script. Edit this to show the correct version in the window.
ppm-mod-dirs-sgid.jpg
 Description   Unusual to see the SGID bit checked like this ??
 Filesize   116.04 KB
 Viewed   200 Time(s)

ppm-mod-dirs-sgid.jpg

ppm-mod-version.jpg
 Description   Version number edited. Icons OK in remastered Wheezy
 Filesize   74.83 KB
 Viewed   200 Time(s)

ppm-mod-version.jpg


_________________
Oscar in England

Back to top
View user's profile Send private message 
s243a

Joined: 02 Sep 2014
Posts: 1945

PostPosted: Sun 16 Jun 2019, 03:15    Post subject:  

I think this pet is missing some files -- which I'll have to copy from x-slacko slim'. For instance I don't have the following:
Code:

/usr/local/petget/configure.sh: line 209: /var/local/petget/si_category: No such file or directory
/usr/local/petget/configure.sh: line 214: /var/local/petget/bb_category: No such file or directory
/usr/local/petget/configure.sh: line 218: /var/local/petget/ui_choice: No such file or directory
/usr/local/petget/configure.sh: line 226: /var/local/petget/nt_category: No such file or directory
/usr/local/petget/configure.sh: line 232: /var/local/petget/rd_category: No such file or directory
/usr/local/petget/configure.sh: line 237: /var/local/petget/nd_category: No such file or directory

and I'm also missing:
Code:

/usr/local/bin/ppm: line 788: /usr/sbin/indexgen.sh: No such file or directory


I also had to copy the following file from x-slacko slim:
Code:

/usr/sbin/printcols

/woof-next/woof-code/rootfs-packages/ppm-mod-3.0_patch/usr/sbin

Note that I am doing this on a custom build system and I first didn't install the standard puppy package manager. Some comments that I have start at the following post:
http://murga-linux.com/puppy/viewtopic.php?p=1030382#1030382

Edit: Anyway, I'll add these missing files to my system tomorrow and see if I can get it working Smile

_________________
Find me on minds and on pearltrees.
Back to top
View user's profile Send private message Visit poster's website 
s243a

Joined: 02 Sep 2014
Posts: 1945

PostPosted: Sun 16 Jun 2019, 11:05    Post subject:  

Here is some debugging output:
Code:

+ grep -v '^$' /tmp/petget-proc/petget_installed_patterns
+ mv -f /tmp/petget-proc/petget_installed_patterns-tmp /tmp/petget-proc/petget_installed_patterns
+ fprPTN='s%$%|devuan-ascii-contrib%'
++ cut -f 1,4,5 -d '|'
++ grep --file=/tmp/petget-proc/petget_installed_patterns -v /tmp/petget-proc/petget_fltrd_repo_a-z0-9_Desktop_Anytype_Packages-devuan-ascii-contrib
++ sed -e 's%$%|devuan-ascii-contrib%'
+ FPR='|devuan-ascii-contrib'
+ '[' '|devuan-ascii-contrib' = '|devuan-ascii-contrib' ']'
+ echo -n ''
+ '[' -f /tmp/petget-proc/petget/filterpkgs.results.tmp ']'
+ IFS=
+ read -r line
+ [[ -n '' ]]
+ mv -f /tmp/petget-proc/petget/filterpkgs.results.tmp /tmp/petget-proc/petget/filterpkgs.results
mv: cannot stat '/tmp/petget-proc/petget/filterpkgs.results.tmp': No such file or directory
+ /usr/local/petget/postfilterpkgs.sh


The related code (around line 158 to 180of /usr/local/petget/filterpkgs.sh):
Code:

FPR="`grep --file=/tmp/petget-proc/petget_installed_patterns -v /tmp/petget-proc/petget_fltrd_repo_${PKG_FIRST_CHAR}_${fltrCATEGORY}_${xDEFGUIFILTER}_Packages-${fltrREPO_TRIAD} | cut -f 1,4,5 -d '|' | sed -e "$fprPTN"`"
if  [ "$FPR" = "|${fltrREPO_TRIAD}" ];then
 echo -n "" > /tmp/petget-proc/petget/filterpkgs.results #nothing.
else
 echo "$FPR" > /tmp/petget-proc/petget/filterpkgs.results
fi

if [ -f /tmp/petget-proc/petget/filterpkgs.results.tmp ]; then
 rm -f /tmp/petget-proc/petget/filterpkgs.results.tmp
fi

while IFS='' read -r line || [[ -n $line ]]
   do

      pkgname=`echo "$line" | cut -f 1 -d "|"`
      reponame=`echo "$line" | cut -f 4 -d "|"`
      
      echo "$line|$pkgname#$reponame" >> /tmp/petget-proc/petget/filterpkgs.results.tmp
      
   done < /tmp/petget-proc/petget/filterpkgs.results
   
mv -f /tmp/petget-proc/petget/filterpkgs.results.tmp /tmp/petget-proc/petget/filterpkgs.results

#...'pkgname|category|description|repo-triad' has been written to /tmp/petget-proc/petget/filterpkgs.results for main gui.

#120515 post-filter /tmp/petget-proc/petget/filterpkgs.results.post according to EXE,DEV,DOC,NLS checkboxes...
/usr/local/petget/postfilterpkgs.sh


Note that the following patter looks wrong:to me:
Code:

+ fprPTN='s%$%|devuan-ascii-contrib%'

because of the -contrib at the end. I think this because this wouldn't be a general pattern and instead only refers to a specific repo.

_________________
Find me on minds and on pearltrees.
Back to top
View user's profile Send private message Visit poster's website 
s243a

Joined: 02 Sep 2014
Posts: 1945

PostPosted: Mon 17 Jun 2019, 07:14    Post subject:  

The following code doesn't seem to be being executed but I'm flagging it because the space before the extension looks wrong to me:..but perhaps this is due to something I don't know about ash.

lines 216 to 226 /usr/local/petget/0setup
Code:

      xDLFILE="`basename $DLFILE .gz`" #actually it's a tarball: core.db.tar.gz, extra.db.tar.gz, community.db.tar.gz
      rm -rf sandbox0 2>/dev/null
      mkdir sandbox0
      cd sandbox0
      tar xzf "../$DLFILE"
      RETSTAT=$?
      cd ..
      if [ $RETSTAT -eq 0 ];then
       rm -f "$DLFILE"
       xxDLFILE="`basename $DLFILE .db.tar.gz`" #this will be core, extra, community  130306


I personally would use curly brackets instead of spaces like:
Code:

xxDLFILE="`basename ${DLFILE}.db.tar.gz`" #this will be core, extra,

but this isn't even necessary becauses dots (i.e. ".") aren't part of variable names.

_________________
Find me on minds and on pearltrees.
Back to top
View user's profile Send private message Visit poster's website 
s243a

Joined: 02 Sep 2014
Posts: 1945

PostPosted: Mon 17 Jun 2019, 07:27    Post subject:  

Nothing looks wrong in the following code, I'm just trying to follow the process on how the repo file gets filtered.

From:
Line#68 to #74 of /usr/local/petget/filterpkgs.sh
Code:

#which repo...
FIRST_DB="`ls -1 /root/.packages/repo/Packages-${DISTRO_BINARY_COMPAT}-${DISTRO_COMPAT_VERSION}* | head -n 1 | rev | cut -f 1 -d '/' | rev | cut -f 2-4 -d '-'`"
fltrREPO_TRIAD="$FIRST_DB" #ex: slackware-12.2-official
#or, a selection was made in the main gui (pkg_chooser.sh)...
[ -f /tmp/petget-proc/petget/current-repo-triad ] && fltrREPO_TRIAD="`cat /tmp/petget-proc/petget/current-repo-triad`"

REPO_FILE="`find /root/.packages -type f -name "Packages-${fltrREPO_TRIAD}*" | head -n 1`"


Note that in current-repo-triad, I have the following value, "devuan-ascii-contrib", but this will very depending on which DB one has selected. Also note that the repo files are located in /var/packages/repo. Find will find these because it searches recursively.

_________________
Find me on minds and on pearltrees.
Back to top
View user's profile Send private message Visit poster's website 
s243a

Joined: 02 Sep 2014
Posts: 1945

PostPosted: Mon 17 Jun 2019, 07:34    Post subject:  

Going down a further the code which sets the variable "FLTRD_REPO" doesn't seem to be being called. This suggests to me that either DISTRO_BINARY_COMPAT isn't being exported or DISTRO_SPECS isn't being scourced, if I call, pkg_chooser.sh directly. Here is the code that should set "FLTRD_REPO"

Line #89 to #103 of /usr/local/petget/filterpkgs.sh
Code:

#find pkgs in db starting with $PKG_FIRST_CHAR and by distro and category...
#each line: pkgname|nameonly|version|pkgrelease|category|size|path|fullfilename|dependencies|description|
#optionally on the end: compileddistro|compiledrelease|repo| (fields 11,12,13)
#filter the repo pkgs by first char and category, also extract certain fields...
#w017 filter out all 'lib' pkgs, too many for gtkdialog (ubuntu/debian only)...
#w460 filter out all 'language-' pkgs, too many (ubuntu/debian)...
if [ ! -f /tmp/petget-proc/petget_fltrd_repo_${PKG_FIRST_CHAR}_${fltrCATEGORY}_${xDEFGUIFILTER}_Packages-${fltrREPO_TRIAD} ];then
 case $DISTRO_BINARY_COMPAT in
  ubuntu|debian|devuan|raspbian)
   FLTRD_REPO="`printcols $REPO_FILE 1 2 3 5 10 6 9 | grep -v -E '^lib|^language\\-' | grep -i "^[${PKG_FIRST_CHAR}]" | grep "$categoryPATTERN" | grep -i ${EXCPARAM} -E "$guiPTN" | sed -e 's%||$%|unknown|%'`" #130330  130331 ignore case.
  ;;
  *)
   FLTRD_REPO="`printcols $REPO_FILE 1 2 3 5 10 6 9 | grep -i "^[${PKG_FIRST_CHAR}]" | grep "$categoryPATTERN" | grep -i ${EXCPARAM} -E "$guiPTN" | sed -e 's%||$%|unknown|%'`" #130330  130331 ignore case.
  ;;
 esac

_________________
Find me on minds and on pearltrees.
Back to top
View user's profile Send private message Visit poster's website 
wiak

Joined: 11 Dec 2007
Posts: 1485
Location: not Bulgaria

PostPosted: Mon 17 Jun 2019, 08:01    Post subject:  

@s243a:

You don't seem to be getting much response from whoever wrote the code. I thought you were going to be using sc0ttman's pkg, but is this a fork of PPM by mistfire?

wiak

_________________
Tiny Linux Blog: http://www.tinylinux.info/
Check Firmware: www.murga-linux.com/puppy/viewtopic.php?p=1022797
tinycore/slitaz: http://www.murga-linux.com/puppy/viewtopic.php?p=990130#990130
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 5 of 6 [86 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » System
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1066s ][ Queries: 13 (0.0242s) ][ GZIP on ]