puppy-get 2.0 beta

Under development: PCMCIA, wireless, etc.
Message
Author
User avatar
mikeslr
Posts: 3890
Joined: Mon 16 Jun 2008, 21:20
Location: 500 seconds from Sol

Clarification needed

#61 Post 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

hamoudoudou

puppy-get just gives info not enough place.

#62 Post 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.

mistfire
Posts: 1411
Joined: Wed 05 Nov 2008, 00:35
Location: PH

#63 Post 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.

hamoudoudou

Can we add repositories to fit with those used by XenialDog

#64 Post 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 ?
Attachments
synaptic.jpg
XenialDog repositories
(64.26 KiB) Downloaded 693 times

mistfire
Posts: 1411
Joined: Wed 05 Nov 2008, 00:35
Location: PH

#65 Post by mistfire »

@hamoudoudou yes it is just edit the PPM repo and package list information. puppy-get relies on PPM files

User avatar
drunkjedi
Posts: 882
Joined: Mon 25 May 2015, 02:50

#66 Post 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.

hamoudoudou

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

#67 Post 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
Attachments
screencast.jpg
Simple screen recorder including libavcodec ... 57
(79.16 KiB) Downloaded 682 times
Last edited by hamoudoudou on Tue 27 Feb 2018, 10:24, edited 3 times in total.

mistfire
Posts: 1411
Joined: Wed 05 Nov 2008, 00:35
Location: PH

#68 Post 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

hamoudoudou

file pkg-master-db copied to another pupsave

#69 Post 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

User avatar
aaaaa
Posts: 39
Joined: Tue 22 May 2018, 14:57

#70 Post 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 
Attachments
puppy-get-woofce_no_multiarch_symlink.patch_fake.gz
(2.56 KiB) Downloaded 300 times
puppy-get_woofce_functions_x.patch_fake.gz
(836 Bytes) Downloaded 328 times

mistfire
Posts: 1411
Joined: Wed 05 Nov 2008, 00:35
Location: PH

#71 Post by mistfire »

puppy-get 2.0 released

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

Post Reply