Page 81 of 143

Re: PPM Improvement vs. flash-drive installation fixes

Posted: Wed 18 Apr 2012, 00:16
by rerwin
playdayz,
If you are considering adding the PPM improvement to lupu528, please wait. I see that some of the modified scripts are ones that I modified to make flash-drive installations work (in patch-8).

I will attempt to merge the code for the 3 impacted scripts. I will also check for conflicts with the other affected scripts, compared to lupu's versions.

I think I should do this anyway, to provide a safe pet-package version for lupu528. I have not ported all of the woof mods to those scripts (installpkg.sh, installpreview.sh, pkg_chooser.sh), to avoid unnecessary surprises.
Richard

Re: PPM Improvement vs. flash-drive installation fixes

Posted: Wed 18 Apr 2012, 02:03
by shinobar
rerwin wrote:playdayz,
If you are considering adding the PPM improvement to lupu528, please wait. I see that some of the modified scripts are ones that I modified to make flash-drive installations work ( in patch-8 ).
@rerwin
As for the PPM, i hope you review my most recent one, petget-20120331.pet:
http://www.murga-linux.com/puppy/viewtopic.php?t=73829

Me too, will check your PPM in the patch-8.

Posted: Wed 18 Apr 2012, 03:16
by rerwin
shinobar,
So the development of the PPM improvements continues. When I made my changes for flash drive installations, I decided to avoid integrating the significant dependency corrections, because they were too much for me to take responsibility for as we are trying to finalize lupu (in some sense). I think playdayz wants to avoid a struggle to get it right in lupu, at least to avoid doing it before the fixes go into woof. I want to make only fixes that appear safe, that don't potentially add new problems.

I will let playdayz make the call about that. If mavrothal's PPM improvements depend on that recent dependency code, then things get complicated. But if he decides to take all of the PPM improvements, I can merge my relatively small changes into whatever you two end up with.
Richard

PPM correction for lupu

Posted: Wed 18 Apr 2012, 05:00
by shinobar
rerwin wrote:When I made my changes for flash drive installations, I decided to avoid integrating the significant dependency corrections, because they were too much for me to take responsibility for as we are trying to finalize lupu (in some sense).
Okey, i propose a small patch against your patch-8. I hope you understand what i intend.

Code: Select all

# diff petget-rerwin-patch-8 petget-shinobar-patch-8
diff petget-rerwin-patch-8/pkg_chooser.sh petget-shinobar-patch-8/pkg_chooser.sh
20a21
> LANG_USER=$LANG	# shinobar
269a271
> LANG=$LANG_USER	# shinobar
diff petget-rerwin-patch-8/removepreview.sh petget-shinobar-patch-8/removepreview.sh
87a88
>      rm -f "/initrd/pup_rw${ONESPEC}"	# 25mar12 shinobar: forgot this
100,101c101,102
<  else #120103 shinobar: PUPMODE=2
<   cat /root/.packages/${DB_pkgname}.files | grep -v '/$' | xargs rm -f #/ on end, it is a directory entry.
---
>  else #120103 shinobar: PUPMODE=2 #21jan12 shinobar: allow space chars in the path
>   grep -v '/$' /root/.packages/${DB_pkgname}.files | while  read ONESPEC; do rm -f "$ONESPEC"; done

Posted: Wed 18 Apr 2012, 06:05
by mavrothal
playdayz wrote:
You may also want to consider this PPM improvement that allows searching multiple repos with multiple terms (eg video edit). Given the Luci/Ubuntu extended repos may be more useful than in any other puppy.
There is also a Lupu-compatible pet that also includes the pupy-common and puppy-noarch repos,
This works for me on first test mavrothal It is necessary to restart PPM after adding repos, I think.
Yes. In contrast to quickpet, ppm does not auto-restart when you change preferences. You must do it manually for the changes to take effect.

Posted: Wed 18 Apr 2012, 07:15
by James C
Just a quick report that I manually upgraded a frugal install from 528.004 to 528.005 with no problems .Everything previously installed and modified was persistent.

Posted: Wed 18 Apr 2012, 13:00
by vtpup
Sulu installed frugal on ext2 partition.
New Acer Aspire 5348-2365
Dual boot Win7

Wirelesss works out of the box (didn't on Lupu 528 v5, or Wary. Does on Racy 5.3)

Alsa sound works out of the box (didn't on Lupu 528 v5, does on Wary and Racy)

Downloaded Seamonkey 2.8, Libre Office, Acrobat 9.3, Gimp 2.6.

Problems found so far:

Only screen dimming Fn keys not working (works on Racy 5.3, though keys reversed)

Looks really good so far!

Posted: Wed 18 Apr 2012, 13:32
by playdayz
Sulu installed frugal on ext2 partition.
New Acer Aspire 5348-2365
Dual boot Win7

Wirelesss works out of the box (didn't on Lupu 528 v5, or Wary. Does on Racy 5.3)

Alsa sound works out of the box (didn't on Lupu 528 v5, does on Wary and Racy)
Thanks vtpup. That's great news. It looks like there might be a place for Sulu. Do you have a new computer by any chance, say, in the last year?

Posted: Wed 18 Apr 2012, 14:33
by prehistoric
Just checked the lucid puppy news page, and it still refers to 5.2.8.004. Should we consider 005 released?

I would recommend that people upgrading start with a new installation and move personal files, to avoid confusion in PPM. You can get everything up to date, but it isn't going to happen automagically. I just installed the latest lupu version (15) of Iron on this machine. A previous installation insisted that 13 was latest. I'm still not sure why reconfiguring PPM caused it to download the package list for UbuntuMultiverse and UbuntuUniverse, which were not checked as repositories I wanted.

Posted: Wed 18 Apr 2012, 14:42
by humblesoul
I've never trusted ppm suggestions and always searched the net for latest whatever. Not sure why. Just do.

Posted: Wed 18 Apr 2012, 16:03
by playdayz
A previous installation insisted that 13

It is necessary to "Update Lupu PPM" in order to see the latest. It does not happen automatically, but each release will have what is the latest *at that time* It is easy to update: Quickpet -> More Pets -> Update Lupu PPM.

There is an Iron 18 now--it skipped 16 and 17 because they did not work correctly in my testing. http://diddywahdiddy.net/Puppy500/Iron-18-Lucid.pet
Just checked the lucid puppy news page, and it still refers to 5.2.8.004. Should we consider 005 released?
Yes. I am just lazy. LupuNews is updated now.
I'm confused.
.+1
Great to have so many choices of 528-05 but why all mixed up in the same thread?
Yes. I understand. Here's the Grand Plan. In the first message of this thread Lupu/Libre and Lupu Plus/Libre will be listed and explained. Three-Headed Dog will continue to have its own thread. I don't know yet what to do about Sulu--it would have its own thread if it is viable.

It would be done by now but after Lupu Plus was released we made the breakthrough about getting the Help to work so that requires a new Lupu Plus which is coming very soon. And then I got sidetracked making Sulu.

Posted: Wed 18 Apr 2012, 16:38
by humblesoul
I'm no code monkey and therefore know not of what I ask, but could ppm connect to the net upon activation to update itself? It connects to download...

Posted: Wed 18 Apr 2012, 20:26
by mavrothal
humblesoul wrote:I'm no code monkey and therefore know not of what I ask, but could ppm connect to the net upon activation to update itself? It connects to download...
If you add the following at the top of /usr/local/petget/pkg_chooser.sh, immediately after the comments, will do the trick

Code: Select all

THISPID=$!
REPODATE=`find /root/.packages/ -ctime -7 | grep official`
if [ "$REPODATE" = "" ] ;then
 Xdialog  --buttons-style text --title "$(gettext 'Repo Update')" --ok-label "$(gettext 'Update')" --cancel-label "$(gettext 'Not now')"  --yesno "$(gettext 'Your repositories are more than one week old. \nDo you want to update them before you go on?')" 0 0
 case $? in 
 0) rxvt -bg yellow -title 'download databases' -e /usr/local/petget/0setup
   kill $THISPID
   exec /usr/local/petget/pkg_chooser.sh
   ;;
 *) echo "$(gettext 'Going on with old repos')" ;;
 esac
fi
Of course some monkeying is needed for that :P

Posted: Wed 18 Apr 2012, 20:59
by Jasper
Hi mavrothal,

I tried your solution in your post immediately above in Slacko 5.3.1 and it did not seem to work.

Hopefully it is OK that I may I ask here if it might reasonably be expected to work in any other Puppies?

My regards

Posted: Wed 18 Apr 2012, 21:14
by playdayz
If you add the following at the top of /usr/local/petget/pkg_chooser.sh, immediately after the comments, will do the trick
Oh, this will work only if your (mavrothal) changes have been installed???

Posted: Wed 18 Apr 2012, 21:20
by mavrothal
Jasper wrote:Hi mavrothal,

I tried your solution in your post immediately above in Slacko 5.3.1 and it did not seem to work.

Hopefully it is OK that I may I ask here if it might reasonably be expected to work in any other Puppies?

My regards
In what sense?
If anyone of the official repos has been changed/updated in the last week will not offer to update any of them.
If you want to update every time change the line

Code: Select all

REPODATE=`find /root/.packages/ -ctime -7 | grep official`
to

Code: Select all

REPODATE= 
I just do not think is necessary to do it every time.

Oh, this will work only if your (mavrothal) changes have been installed???
No. This is independent from the rest. However, I would recommend to update at least 0setup because the Luci version is the older all-or-nothing version of the script, and updating the ubuntu repos is not really necessary and a rather lengthy process (I'm not sure if slako 5.3.1 had this woof update. 5.3.2.7 does)

Posted: Wed 18 Apr 2012, 22:30
by Jasper
Hi again mavrothal,

Thank you for your code and your help. It is working now.

My regards to playdayz as well

Posted: Wed 18 Apr 2012, 22:58
by vtpup
playdayz wrote:
Sulu installed frugal on ext2 partition.
New Acer Aspire 5348-2365
Dual boot Win7

Wirelesss works out of the box (didn't on Lupu 528 v5, or Wary. Does on Racy 5.3)

Alsa sound works out of the box (didn't on Lupu 528 v5, does on Wary and Racy)
Thanks vtpup. That's great news. It looks like there might be a place for Sulu. Do you have a new computer by any chance, say, in the last year?
Yes playdayz this one is one week old. Ordered through Walmart for $349. I did that after reading a bunch of reviews, all of them positive except for the fact that performance was modest on Windows 7 especially with all the crippled ware that comes with it.

That didn't phase me at all, since I knew Puppy was in its future. This is ten times the machine I'm used to, -- for one thing dual proc, 4 gigs mem, 320 gig HD DVD burner, 16" widescreen HDTV out etc. so with Racy or now Sulu it's far more powerful than my desktop or my various Thinkpads.

For less than I've spent in the past on used computers.

Looking forward to wringing out Sulu on it. I know you aren't supporting it, but we'll find a way around most problems sooner or later. Thanks so much for making this available!

Posted: Thu 19 Apr 2012, 00:17
by rerwin
shinobar,
Thanks for providing the updates to the patch-8 components.

Code: Select all

diff petget-rerwin-patch-8/removepreview.sh petget-shinobar-patch-8/removepreview.sh
87a88
>      rm -f "/initrd/pup_rw${ONESPEC}"   # 25mar12 shinobar: forgot this
Although I understand the rest of your changes, the above appears to change Barry's design of the uninstall process.

I infer from the wary version of removepreview.sh that his intent is to replace the file copy in the top (pup_rw) layer. Your addition appears to undo that replacement. But I recognize that removing it exposes the version just obtained from the lower layer, accomplishing the same goal as the replacement technique. But there is probably logic elsewhere that depends on the old file being copied to the top layer.

I am nervous about adding that removal before Barry endorses that design change.

Here is what I put in the attached patch-8a-delta package:

Code: Select all

diff /root/lupu528-IU002_rerwin_patch-8/usr/local/petget/pkg_chooser.sh pkg_chooser.sh
20a21
> LANG_USER=$LANG   #120418 shinobar
269a271
> LANG=$LANG_USER   #120418 shinobar

Code: Select all

diff /root/lupu528-IU002_rerwin_patch-8/usr/local/petget/removepreview.sh removepreview.sh 
19a20
> #120121 shinobar: allow space chars in the "files" list paths.
101c102
<   cat /root/.packages/${DB_pkgname}.files | grep -v '/$' | xargs rm -f #/ on end, it is a directory entry.
---
>   grep -v '/$' /root/.packages/${DB_pkgname}.files | while  read ONESPEC; do rm -f "$ONESPEC"; done #120121 shinobar
In the first diff listing, would you prefer a different date for the fix?

If you concur with my version of your changes, they could be considered for addition to the new lupuplus. I have not tested them myself, so depend on your assessment. Thanks.
Richard

Posted: Thu 19 Apr 2012, 00:23
by don570
I made a fork of pmirror to improve it.
I tested it in Lucid Puppy.


http://murga-linux.com/puppy/viewtopic. ... 168#621168

________________________________________