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 Tue 25 Nov 2014, 16:58
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
Making .pets problem
Moderators: Flash, Ian, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message
capicoso

Joined: 13 Jan 2012
Posts: 172
Location: Argentina

PostPosted: Wed 28 Mar 2012, 01:23    Post_subject:  Making .pets problem
Sub_title: Can't uninstall
 

Hi. I don't know if this is the correct place, i was looking around and this seemed to be the correct place, please move it if its not.
So i've made a few .pet packages. Ardour2, jack, and pd-l2ork. I'll start with the simplest one. Pd-l2ork. I download the source, ./configure, new2dir make install. Everything ok, i add the .desktop thing, specs... Pd-l2ork uses 5 or 6 dependencies, libtk, libtcl, libquicktime, etc. So i had some .debs of those dependencies and "undebed" them. And added them to the pd-l2ork directory, and then dir2pet. I install it and everything goes perfect. But when i go to ppm and choose to uninstall it, it says it uninstall it but it's there... all the files stay there. What am i doing wrong? Is that the correct way to add the dependencies?
Thanks
Back to top
View user's profile Send_private_message 
Karl Godt


Joined: 20 Jun 2010
Posts: 3972
Location: Kiel,Germany

PostPosted: Wed 28 Mar 2012, 02:34    Post_subject:  

For every package that installs, there is a /root/.packages/PKG_NAME.files text file, that should include all files in the pet . It does not list the dependencies files .

This .files files gets read while uninstalling .

You must uninstall all dependencies packages with their PKG_NAME.files one by one .

If your package name does not corrrespond with the PKG_NAME.files file , you'll have probs .

Make sure not to use too much special chars in your PKG_NAME.pet like

" §ŧ←my_«lovely»_rock'n'roll_with :SPACES: pet.pet " .

sed and grep might get confused .

The Puppy shell code mostly 90+% does not support filenames with spaces .

So " pet for whatever.pet" might leave a "pet.files" but not a "pet for whatever.files" in $HOME/.packages .
Back to top
View user's profile Send_private_message Visit_website 
capicoso

Joined: 13 Jan 2012
Posts: 172
Location: Argentina

PostPosted: Wed 28 Mar 2012, 08:40    Post_subject:  

Thank you, didn't know that.
Something weird happened tho, i think i messed it up when i was adding the name and description with that gui window that appears when making the dir2pet. My folder with the pet was named ie pd-l2ork-0.42.5-20111217 and so the pet. But when it asked me to name it in the gui window i typed PureData. So when i go to the ppm it looks like PureData-pd-l2ork-0.42.5-20111217, but the .files has the same name as the .pet. I renamed it and i could uninstall it. So i have to do it again and try to not change the name Razz . Thanks
Back to top
View user's profile Send_private_message 
Karl Godt


Joined: 20 Jun 2010
Posts: 3972
Location: Kiel,Germany

PostPosted: Wed 28 Mar 2012, 23:16    Post_subject:  

Yes; similar to this :

Quote:
Posted on 30 Dec 2011, 21:33 by K Godt
Other suggestions for petget
It encountered to me that i did rename a pkg.pet to something like
Lupu5pkg.pet .

The un-install did not work because the uninstall looks for the name from inside the pet but the pkg.name.files are from the outside.pet name .

+db_pkg_name=`echo "$DB_ENTRY" |cut -f 1 -d '|'`

+if [ "$db_pkg_name" != "$DLPKG_NAME" ];then

+DB_ENTRY=`echo "$DB_ENTRY" |sed "s#$db_pkg_name#$DLPKG_NAME#"`

+fi


Quote:
Posted on 31 Dec 2011, 18:28 by BarryK
PPM patch
Karl,
Thanks for that, I have applied your patch in Woof:

http://bkhome.org/fossil/woof2.cgi/info/ca4552d46d


http://bkhome.org/blog/?viewDetailed=02628

The whole patch :
petget does not check if db entry is same as pkg name
Back to top
View user's profile Send_private_message Visit_website 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0477s ][ Queries: 11 (0.0028s) ][ GZIP on ]