Page 4 of 4

Clarification needed

Posted: Sun 25 Feb 2018, 15:22
by mikeslr
hamoudoudou: "Packages to install: 24
Total download size: 71Mb
Approximate disk space needed for installation: 215Mb
You need more disk space to install the following package" Emphasis supplied.

At that point did puppy-get terminate, download the debs anyway, or something else?

What space is puppy-get measuring? The amount of available RAM in Puppy's "Merge-file system"? The unused space in a SaveFile/Folder?

Using pet-get is it possible to download and not install? Download to a folder external to "Puppy-Space" in order to use the debs to create an SFS? Delete duplicate debs whose files are already part of one's system before installation/creation of an SFS?

mikesLr

puppy-get just gives info not enough place.

Posted: Sun 25 Feb 2018, 16:49
by hamoudoudou
A puppy-get just gives info not enough place. process terminated, has to be lauched again , what is ok
B The unused space in a SaveFile/Folder
C Negative. to be verified
D Dowloaded stuff can be removed after aplications were installed, that is nice. Then you can do an SFS with them before removing
Not verified. (Where are they ?)
More accurate answers later.. My purpose is to find a tool that dowload apps better than PPM, not a different way. XenialDog Does it .
My Questions (i am used to find my answers alone) mistfire is a gentleman, never he let me with unanwered questions :
updating database is half an hour for artfulpup. Done. Better to update for each pupsave, i want to copy past the database.. Where is it stored ?

"Logical entities must not be multiplied beyond necessity." Nice ! Some VIP fail with usual process, then they think that the process is bad.

Posted: Mon 26 Feb 2018, 11:09
by mistfire
Some clarifications. puppy-get estimates total disk space used by the target package and compares it with free disk space of a drive (full install/save folder) or free space remaining in savefile.

Can we add repositories to fit with those used by XenialDog

Posted: Tue 27 Feb 2018, 05:02
by hamoudoudou
/root/.packages/pkg-master-db
That was the info i was looking for..
Can we add repositories to fit with those used by XenialDog ?

Posted: Tue 27 Feb 2018, 07:20
by mistfire
@hamoudoudou yes it is just edit the PPM repo and package list information. puppy-get relies on PPM files

Posted: Tue 27 Feb 2018, 07:53
by drunkjedi
Hi mistfire,
Just a curious question, why not add original apt-get to puppy?
The DebianDog, XenialDog have it I believe.
And they aren't much bigger than Xenialpup.

I say it purely as a user that I am.
I have no idea how many loops and tricks you have to go through to achieve it.

Apt-get, why not. Yet tried by Josejp2424.

Posted: Tue 27 Feb 2018, 09:34
by hamoudoudou
Like slim slacko was different, and succesfull, puppy-get has to produce results different vs
PPM, to give a reason to exist.
Apt-get, why not. Yet tried by Josejp2424... hum his apt-get is far from to get good results
Apt-get was in jejy69 puppy (available in my tool case at home)
pupjibaro jessie synaptic click the blue

Posted: Tue 27 Feb 2018, 09:50
by mistfire
@drunkendeji I really want to add apt-get puppy however it was too bloated and it has many dependencies. The principle behind puppy-get was just a recursion to scan the dependencies needed to download

file pkg-master-db copied to another pupsave

Posted: Tue 27 Feb 2018, 09:57
by hamoudoudou
The following packages will be downloaded:
1. gpaint_0.3.3-6.1_i386.deb (717K)

Packages to install: 1
Total download size: 0Mb
Approximate disk space needed for installation: 2Mb

Press any key to continue or type 'x' to exit

Searching download links for gpaint_0.3.3-6.1_i386.deb ...
Download link found: gpaint_0.3.3-6.1_i386.deb

Initializing download: http://archive.ubuntu.com/ubuntu/pool/u ... 1_i386.deb
File size: 106568 bytes
Opening output file gpaint_0.3.3-6.1_i386.deb
Starting download

[ 0%] .......... .......... .......... .......... .....
Connection 0 finished
,,,,,,,,,, ,,,,,,,,,, ,,,,,,,,,, ,,,,,,,,,, ,,,,,..... [ 200,2KB/s]
[ 48%] ..
Connection 2 finished
,,........ .......... ........
Connection 3 finished
,,,,,,,,,, ,,,,,,,,,, ,,,,,,,,.. .......... .......... [ 129,1KB/s]
[ 96%] ....

Downloaded 104,1 Kilobyte in 0 seconds. (131,25 KB/s)

Package downloaded: gpaint_0.3.3-6.1_i386.deb
Installing gpaint_0.3.3-6.1_i386.deb ...
nohup: appending output to nohup.out
Installation sucessful: gpaint_0.3.3-6.1_i386.deb (Category: Graphic)
Fixing menu entries...
Generating /root/.jwmrc...
/usr/sbin/puppy-get: line 287: gtk-update-icon-cache: command not found

Press any key to purge downloaded package or type 'x' to keep the packages

Posted: Tue 04 Sep 2018, 02:23
by aaaaa
Woofce will get rid of the multi arch symlink soon
This will cause a conflict with external scripts and stuff
...but this patch fixes compatibility with woofce:

puppy-get-woofce_no_multiarch_symlink.patch

Code: Select all

--- puppy-get-orig	2018-09-03 19:28:36.000000000 +0800
+++ puppy-get	2018-09-03 19:43:32.000000000 +0800
@@ -1761,34 +1761,37 @@
  fi
 done
 
-#121217 it seems that this problem is occurring in other modes (13 reported)...
-#121123 having a problem with multiarch symlinks in full-installation...
-#it seems that the symlink is getting replaced by a directory.
-if [ "$DISTRO_ARCHDIR" ];then #in /etc/rc.d/DISTRO_SPECS. 130112 change test from DISTRO_ARCHDIR. 130114 revert DISTRO_ARCHDIR_SYMLINKS==yes.
-  if [ -d /usr/lib/${DISTRO_ARCHDIR} ];then
-   if [ ! -h /usr/lib/${DISTRO_ARCHDIR} ];then
-    cp -a -f --remove-destination /usr/lib/${DISTRO_ARCHDIR}/* /usr/lib/
-    sync
-    rm -r -f /usr/lib/${DISTRO_ARCHDIR}
-    ln -s ./ /usr/lib/${DISTRO_ARCHDIR}
-   fi
-  fi
-  if [ -d /lib/${DISTRO_ARCHDIR} ];then
-   if [ ! -h /lib/${DISTRO_ARCHDIR} ];then
-    cp -a -f --remove-destination /lib/${DISTRO_ARCHDIR}/* /lib/
-    sync
-    rm -r -f /lib/${DISTRO_ARCHDIR}
-    ln -s ./ /lib/${DISTRO_ARCHDIR}
-   fi
-  fi
-  if [ -d /usr/bin/${DISTRO_ARCHDIR} ];then
-   if [ ! -h /usr/bin/${DISTRO_ARCHDIR} ];then
-    cp -a -f --remove-destination /usr/bin/${DISTRO_ARCHDIR}/* /usr/bin/
-    sync
-    rm -r -f /usr/bin/${DISTRO_ARCHDIR}
-    ln -s ./ /usr/bin/${DISTRO_ARCHDIR}
-   fi
-  fi
+# woofce: NO_MULTIARCH_SYMLINK=1 (DISTRO_SPECS)
+if [ -z "$NO_MULTIARCH_SYMLINK" ] ; then
+	#121217 it seems that this problem is occurring in other modes (13 reported)...
+	#121123 having a problem with multiarch symlinks in full-installation...
+	#it seems that the symlink is getting replaced by a directory.
+	if [ "$DISTRO_ARCHDIR" ];then #in /etc/rc.d/DISTRO_SPECS. 130112 change test from DISTRO_ARCHDIR. 130114 revert DISTRO_ARCHDIR_SYMLINKS==yes.
+	  if [ -d /usr/lib/${DISTRO_ARCHDIR} ];then
+	   if [ ! -h /usr/lib/${DISTRO_ARCHDIR} ];then
+		cp -a -f --remove-destination /usr/lib/${DISTRO_ARCHDIR}/* /usr/lib/
+		sync
+		rm -r -f /usr/lib/${DISTRO_ARCHDIR}
+		ln -s ./ /usr/lib/${DISTRO_ARCHDIR}
+	   fi
+	  fi
+	  if [ -d /lib/${DISTRO_ARCHDIR} ];then
+	   if [ ! -h /lib/${DISTRO_ARCHDIR} ];then
+		cp -a -f --remove-destination /lib/${DISTRO_ARCHDIR}/* /lib/
+		sync
+		rm -r -f /lib/${DISTRO_ARCHDIR}
+		ln -s ./ /lib/${DISTRO_ARCHDIR}
+	   fi
+	  fi
+	  if [ -d /usr/bin/${DISTRO_ARCHDIR} ];then
+	   if [ ! -h /usr/bin/${DISTRO_ARCHDIR} ];then
+		cp -a -f --remove-destination /usr/bin/${DISTRO_ARCHDIR}/* /usr/bin/
+		sync
+		rm -r -f /usr/bin/${DISTRO_ARCHDIR}
+		ln -s ./ /usr/bin/${DISTRO_ARCHDIR}
+	   fi
+	  fi
+	fi
 fi
 
 #flush unionfs cache, so files in pup_save layer will appear "on top"...
puppy-get uses /tmp/pup_event_sizefreem and woofce no longer creates that file
That issue is fixed by:

puppy-get_woofce_functions_x.patch

Code: Select all

--- puppy-get-orig	2018-09-03 19:28:36.000000000 +0800
+++ puppy-get	2018-09-03 20:32:33.000000000 +0800
@@ -1045,8 +1045,18 @@
 
 diskspace=`expr $totalsize \* 3`
 
-SIZEFREEM=`cat /tmp/pup_event_sizefreem | head -n 1` #100821 bug in Lucid 5.1, file had two identical lines.
-FREEMEMK=`expr $SIZEFREEM \* 1024`
+if [ -f /tmp/pup_event_sizefreem ] ; then
+	SIZEFREEM=`cat /tmp/pup_event_sizefreem | head -n 1` #100821 bug in Lucid 5.1, file had two identical lines.
+	FREEMEMK=`expr $SIZEFREEM \* 1024`
+else
+	# woofce's /etc/rc.d/functions_x
+	if [ -e /etc/rc.d/functions_x ] ; then
+		. /etc/rc.d/functions_x
+		SIZEFREEM=$(fx_personal_storage_free_mb)
+		SIZEFREEK=$(( $SIZEFREEM * 1024))
+		FREEMEMK=$SIZEFREEK
+	fi
+fi
 
 echo -e "\nPackages to install: $(expr $CNT8 - 1)"
 echo "Total download size: $(expr $totalsize / 1024)Mb"
How to apply the patches.. place the files in the same location as puppy-get and run:

Code: Select all

patch puppy-get < puppy-get-woofce_no_multiarch_symlink.patch 
patch puppy-get < puppy-get_woofce_functions_x.patch 

Posted: Wed 24 Apr 2019, 10:23
by mistfire
puppy-get 2.0 released

Changes:
* Improved package installation and removal
* Works on newer puppy version