Is there interest in an Arch32 Pup???

A home for all kinds of Puppy related projects
Message
Author
User avatar
peebee
Posts: 4370
Joined: Sun 21 Sep 2008, 12:31
Location: Worcestershire, UK
Contact:

#21 Post by peebee »

For testers - delta to +4 is available.

Many thanks to @Norgo for various fixes.

Significant problems encountered include changes in location for some Arch32 basic apps that are incompatible with Puppy
and
initiation routines which assume systemd

Progress has been made with GParted, Cups, FFMpeg and MPlayer (latter 2 recompiled/rebuilt for Arch32) and video drivers
ImageLxPup = Puppy + LXDE
Main version used daily: LxPupSc; Assembler of UPups, ScPup & ScPup64, LxPup, LxPupSc & LxPupSc64

User avatar
peebee
Posts: 4370
Joined: Sun 21 Sep 2008, 12:31
Location: Worcestershire, UK
Contact:

#22 Post by peebee »

For testers........ (pm if you want to test for links)

Delta to +5 is available

Not making much progress :( .......... things to investigate and find fixes for include:

- mounted drive icons on desktop
- PPM
- Gnome-mplayer dvd playing
Last edited by peebee on Fri 14 Feb 2020, 11:39, edited 1 time in total.
ImageLxPup = Puppy + LXDE
Main version used daily: LxPupSc; Assembler of UPups, ScPup & ScPup64, LxPup, LxPupSc & LxPupSc64

s243a
Posts: 2580
Joined: Tue 02 Sep 2014, 04:48
Contact:

#23 Post by s243a »

peebee wrote:For testers........

Delta to +5 is available

Not making much progress :( .......... things to investigate and find fixes for include:

- mounted drive icons on desktop
- PPM
- Gnome-mplayer dvd playing
How do I apply the deltas? I'm hoping to get a chance to look at this soon. :)
Find me on [url=https://www.minds.com/ns_tidder]minds[/url] and on [url=https://www.pearltrees.com/s243a/puppy-linux/id12399810]pearltrees[/url].

User avatar
peebee
Posts: 4370
Joined: Sun 21 Sep 2008, 12:31
Location: Worcestershire, UK
Contact:

#24 Post by peebee »

s243a wrote:How do I apply the deltas? I'm hoping to get a chance to look at this soon. :)
Put base +0 iso and delta in the same directory and click on the delta. A new +5 iso will be created. Click on the new iso to mount and open it and copy the new puppy****.sfs to your frugal install directory. Click on the iso again to dismount it. Reboot.
ImageLxPup = Puppy + LXDE
Main version used daily: LxPupSc; Assembler of UPups, ScPup & ScPup64, LxPup, LxPupSc & LxPupSc64

User avatar
rockedge
Posts: 1864
Joined: Wed 11 Apr 2012, 13:32
Location: Connecticut, United States
Contact:

#25 Post by rockedge »

I'm looking into the "it is mounted icon" issue as well also attempting to get the PPM to work....seems a url is being formed incorrectly....maybe...

darry19662018
Posts: 721
Joined: Sat 31 Mar 2018, 08:01
Location: Rakaia
Contact:

#26 Post by darry19662018 »

Nice to see this little retro program in there. Requires getdir to run - get it here: https://distro.ibiblio.org/puppylinux/p ... r-2006.pet

This is turning out to be a lovely Pup despite the issues mentioned here - so my thanks to Peebee for it. I hope PPM can be sorted I reached a blank trying to solve it.
Puppy Linux Wiki: [url]http://wikka.puppylinux.com/HomePage[/url]

[url]https://freemedia.neocities.org/[/url]

User avatar
recobayu
Posts: 387
Joined: Wed 15 Sep 2010, 22:48
Location: indonesia

#27 Post by recobayu »

Peebee, Where is the iso link?

darry19662018
Posts: 721
Joined: Sat 31 Mar 2018, 08:01
Location: Rakaia
Contact:

#28 Post by darry19662018 »

PM Peebee for that link.
Puppy Linux Wiki: [url]http://wikka.puppylinux.com/HomePage[/url]

[url]https://freemedia.neocities.org/[/url]

s243a
Posts: 2580
Joined: Tue 02 Sep 2014, 04:48
Contact:

#29 Post by s243a »

The file DISTRO_COMPAT_REPOS seems to be missing.

Here is some trace output:

Code: Select all

sandbox# bash -x /usr/local/petget/0setup 2>&1 | tee ~/0setup.log
...
+ . /root/.packages/DISTRO_COMPAT_REPOS
/usr/local/petget/0setup: line 39: /root/.packages/DISTRO_COMPAT_REPOS: No such file or directory
Find me on [url=https://www.minds.com/ns_tidder]minds[/url] and on [url=https://www.pearltrees.com/s243a/puppy-linux/id12399810]pearltrees[/url].

darry19662018
Posts: 721
Joined: Sat 31 Mar 2018, 08:01
Location: Rakaia
Contact:

#30 Post by darry19662018 »

Yes looked in ./packages folder and I can confirm DISTRO_COMPAT_REPOS is missing.
Puppy Linux Wiki: [url]http://wikka.puppylinux.com/HomePage[/url]

[url]https://freemedia.neocities.org/[/url]

s243a
Posts: 2580
Joined: Tue 02 Sep 2014, 04:48
Contact:

#31 Post by s243a »

I'm looking in /etc/DISTRO_SPECS and I see:
DISTRO_TARGETARCH=''

This is typically used in DISTRO_COMPAT_REPOS. For instance in dpup stretch we have:

Code: Select all

case "$DISTRO_TARGETARCH" in
	x86)    DBIN_ARCH=i386  ;;
	x86_64) DBIN_ARCH=amd64 ;;
esac
We actually want DBIN_ARCH=i686 or i486. See here.
https://32.arlm.tyzoid.com/

which I git from the mirror list. I'll assume that we want i486 for the widest compatibility, in which case we have:

Code: Select all

case "$DISTRO_TARGETARCH" in
	x86)    
            if [ "$DISTRO_BINARY_COMPAT" = arch ]; then
                DBIN_ARCH=i486 
            else
                DBIN_ARCH=i386  
            fi; ;;
	x86_64) DBIN_ARCH=amd64 ;;
esac
When we finish the DISTRO_COMPAT_REPOS file then we need to add it to woof-CE. For example:

woof-CE/woof-distro/x86/debian/stretch/DISTRO_COMPAT_REPOS-debian-stretch

It looks like there is a separate one for each distro release, so the above logic that I have might not be needed.
Find me on [url=https://www.minds.com/ns_tidder]minds[/url] and on [url=https://www.pearltrees.com/s243a/puppy-linux/id12399810]pearltrees[/url].

s243a
Posts: 2580
Joined: Tue 02 Sep 2014, 04:48
Contact:

#32 Post by s243a »

darry19662018 wrote:Yes looked in ./packages folder and I can confirm DISTRO_COMPAT_REPOS is missing.
Here's a rough draft on how I think it should look:

Code: Select all

...
PKG_DOCS_DISTRO_COMPAT="
z|https://32.arlm.tyzoid.com/${DBIN_ARCH}/core/core.db.tar.gz|Packages-arch-${DISTRO_COMPAT_VERSION}-core
z|https://32.arlm.tyzoid.com/${DBIN_ARCH}/community/community.db.tar.gz|Packages-arch-${DISTRO_COMPAT_VERSION}-community
z|https://32.arlm.tyzoid.com/${DBIN_ARCH}/extra/extra.db.tar.gz|Packages-arch-${DISTRO_COMPAT_VERSION}-extra
"
...
REPOS_DISTRO_COMPAT="
z|https://32.arlm.tyzoid.com|Packages-arch-${DISTRO_COMPAT_VERSION}-*
"
https://pastebin.com/SKpLWAk0

Click on the above link to see the full file. I'll test it now
Find me on [url=https://www.minds.com/ns_tidder]minds[/url] and on [url=https://www.pearltrees.com/s243a/puppy-linux/id12399810]pearltrees[/url].

s243a
Posts: 2580
Joined: Tue 02 Sep 2014, 04:48
Contact:

#33 Post by s243a »

In the version of DISTRO_COMPAT_REPOS, that I copied and modified from dpup stretch it was only looking for DISTRO_SPECS at ./DISTRO_SPECS. I modified this so that it also looks in /etc/DISTRO_SPECS

Code: Select all

if [ "$DISTRO_COMPAT_VERSION" = "" ] ; then
    if [ -f ./DISTRO_SPECS ]; then
      . ./DISTRO_SPECS
    elif [ -f /etc/DISTRO_SPECS ]; then
      . /etc/DISTRO_SPECS
    fi
fi
https://pastebin.com/SKpLWAk0

Anyway, calling the 0setup command with the file at the above link appears to update the repos for me. :). I'll now start the package manager with the ppm command and see if I can install anything.
Find me on [url=https://www.minds.com/ns_tidder]minds[/url] and on [url=https://www.pearltrees.com/s243a/puppy-linux/id12399810]pearltrees[/url].

s243a
Posts: 2580
Joined: Tue 02 Sep 2014, 04:48
Contact:

#34 Post by s243a »

We also apear to be missing the "sc_category" file:

Code: Select all

sandbox# ppm
/usr/local/bin/ppm: line 32: /var/local/petget/sc_category: No such file or directory
Find me on [url=https://www.minds.com/ns_tidder]minds[/url] and on [url=https://www.pearltrees.com/s243a/puppy-linux/id12399810]pearltrees[/url].

s243a
Posts: 2580
Joined: Tue 02 Sep 2014, 04:48
Contact:

#35 Post by s243a »

It looks like we need a vercmp command. Should we install such a package or write our own version of this command?

Code: Select all

/usr/local/petget/show_installed_version_diffs.sh: line 23: vercmp: command not found
some more errors:

Code: Select all

ls: cannot access '/tmp/petget_proc/*_pet_quietly': No such file or directory
ls: cannot access '/tmp/petget_proc/install_classic': No such file or directo
regarding the first error, I see the file, "install_pets_quietly" which looks like what might be intended. I think that install_classic, is supposed to come from a ppm drop down menu.

One more error:

Code: Select all

awk: fatal: cannot open file `/tmp/petget_proc/overall_pkg_size' for reading (No such file or directory)
I'll look into the last error first.
Last edited by s243a on Sat 15 Feb 2020, 07:44, edited 1 time in total.
Find me on [url=https://www.minds.com/ns_tidder]minds[/url] and on [url=https://www.pearltrees.com/s243a/puppy-linux/id12399810]pearltrees[/url].

s243a
Posts: 2580
Joined: Tue 02 Sep 2014, 04:48
Contact:

#36 Post by s243a »

I tried switching to step by step install and got the following error:

Code: Select all

/usr/local/petget/installpreview.sh: line 263: 0 + 22970.7 : syntax error: invalid arithmetic operator (error token is ".7 ")
Maybe we need to round or alternatively, use a tool that can handle decimals.

In other words replace:

Code: Select all

#INSTALLEDSIZEK=$(( $INSTALLEDSIZEK + $ADDSIZEK ))
with

Code: Select all

   INSTALLEDSIZEK=$(echo "$INSTALLEDSIZEK + $ADDSIZEK" | bc )
Find me on [url=https://www.minds.com/ns_tidder]minds[/url] and on [url=https://www.pearltrees.com/s243a/puppy-linux/id12399810]pearltrees[/url].

s243a
Posts: 2580
Joined: Tue 02 Sep 2014, 04:48
Contact:

#37 Post by s243a »

Starting at line #263 of /usr/local/petget/installpreview.sh

Code: Select all

   INSTALLEDSIZEK=$(echo "$INSTALLEDSIZEK + $ADDSIZEK" | bc )
   echo "$INSTALLEDSIZEK" > /tmp/petget_proc/petget_installedsizek
  done < $ONEDEPSLIST
  INSTALLEDSIZEK=`cat /tmp/petget_proc/petget_installedsizek`
 done
 MOREFRAMES="`cat /tmp/petget_proc/petget_moreframes`"
 
 INSTALLEDSIZEM=$(echo "$INSTALLEDSIZEK / 1024" | bc)
 MSGWARN2="$(gettext "If that looks OK, click the 'Install' button...")"
 testSIZEK=$(echo "$INSTALLEDSIZEK / 3" | bc )
 testSIZEK=$(echo "$INSTALLEDSIZEK + $testSIZEK" | bc)
 testSIZEK=$(echo "$testSIZEK + 8000" | bc)
 testSIZEK=$(printf "%.0f\n" $testSIZEK) #https://bits.mdminhazulhaque.io/linux/round-number-in-bash-script.html
 [ $testSIZEK -gt $SIZEFREEK ] && MSGWARN2="$(gettext "Not too good! recommend that you make more space before installing -- see 'Resize personal storage file' in the 'Utility' menu.")"
https://pastebin.com/tjp4axbB

I used bc for arithmetic operations instead of the shell built-ins. It allowed me to proceed further with the installation of firefox. I'll update this post once I see whether or not it has installed.

Edit: It seems to be installing firefox. For instance, I see that it installed the file list "colord-1.4.4+9+g1ce26da.files". colord is a dependency of firefox. If I look at one of the files (e.g. /usr/bin/colormgr), I see that it showed up in my save file. Installation, is taking a while because I'm testing this on a slow laptop (perhaps mostly due to I/O issues on my usb drive). I'll test it again on a different computer.

Edit 2: the ppm tells me that firefox-72.0.1 was sucesfully installed and that I'm missing the following two libraries:libgdk-3.so.0 and libgtk-3.so.0.I haven't tested firefox yet.
Last edited by s243a on Sat 15 Feb 2020, 07:51, edited 2 times in total.
Find me on [url=https://www.minds.com/ns_tidder]minds[/url] and on [url=https://www.pearltrees.com/s243a/puppy-linux/id12399810]pearltrees[/url].

s243a
Posts: 2580
Joined: Tue 02 Sep 2014, 04:48
Contact:

#38 Post by s243a »

So here is a summary, on how to get the ppm working. Copy the following two files:
/var/packages/DISTRO_COMPAT_REPOS
/usr/local/petget/installpreview.sh

(** These files should be copied by clicking on the raw button in pastebin, selecting all the text and using copy and paste. If you click the download button instead you'll have to fix the line endings. The second file already exists so copy the text into the existing file so that you keep the same premissions)

After adding/replacing these files, then run the command:

Code: Select all

/usr/local/petget/0setup
to update all repo db files. Now start the puppy package manger with the command, "ppm", you could alternativly start it via the menus but if you do this you won't have as much debugging information.

Search for the package you want, select the dropdown menu first so it says "step by step install" rather then "auto install". Now install the package.

P.S. If you want you can change 486 to 686 in DISTRO_COMPAT_REPOS

Edit: I'm actually surprised this this is working given that in DISTRO_SPECS we have DISTRO_TARGETARCH='' (see previous post)
Find me on [url=https://www.minds.com/ns_tidder]minds[/url] and on [url=https://www.pearltrees.com/s243a/puppy-linux/id12399810]pearltrees[/url].

User avatar
peebee
Posts: 4370
Joined: Sun 21 Sep 2008, 12:31
Location: Worcestershire, UK
Contact:

#39 Post by peebee »

Thanks for the testing / bug hunting :)

Here is what should have been in the build - false.gz

I will investigate why its not being included.

I'm using the pentium4 branch of Arch32 to build.

I will also investigate the absence of vercmp
Attachments
DISTRO_COMPAT_REPOS-arch-32-false.gz
(1.05 KiB) Downloaded 142 times
ImageLxPup = Puppy + LXDE
Main version used daily: LxPupSc; Assembler of UPups, ScPup & ScPup64, LxPup, LxPupSc & LxPupSc64

User avatar
mavrothal
Posts: 3096
Joined: Mon 24 Aug 2009, 18:23

#40 Post by mavrothal »

Hmmm, I wonder how you managed to build Archpup as Arch support has been removed from woof some time now.
As a result PPM, 0setup etc do not know how to handle Arch packages and databases.
Not sure how functional the removed code might still be, but using PPM from Tahrpup-6.0.5, (the last one with Arch support) might give an idea.
BTW RedHat/Scientific was also removed back then by Igu.
== [url=http://www.catb.org/esr/faqs/smart-questions.html]Here is how to solve your[/url] [url=https://www.chiark.greenend.org.uk/~sgtatham/bugs.html]Linux problems fast[/url] ==

Post Reply