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 Sat 26 Jul 2014, 01:23
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Projects
Pdebthing DEB downloader and packager 005
Moderators: Flash, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 2 of 3 [32 Posts]   Goto page: Previous 1, 2, 3 Next
Author Message
playdayz


Joined: 25 Apr 2008
Posts: 3788

PostPosted: Sun 29 Aug 2010, 14:25    Post subject:  

Quote:
You can use Pdebthing to download DEB packages with all, but ALL their dependencies.

This worries me just a bit. We do not want to duplicate libraries and other dependencies that are already present in Lucid Puppy. Probably you have already accounted for that.
Very often in my experience, Ubuntu will report dependencies that are extreme. For instance, it reports Midori as needing 74MB of dependencies. However, someone built (maybe me I can't remember) a Midori with Ubuntu binaries that "only" needs 39MB. Then the shared Midori that technosaurus built in Puppy only needs 17MB--and that is the same version of midori and close to the same webkit.

Most of the time in building packages from Ubuntu they need some manual tweaking and adjustment. I don't want to sound discouraging though--the more good packages for Lucid puppy the better! So, make them and post them for testing and let's go forward. Thanks.
Back to top
View user's profile Send private message 
reckrhodes

Joined: 30 May 2007
Posts: 116

PostPosted: Sun 29 Aug 2010, 23:13    Post subject:  

hi Iguleder,

So sorry for being late in my response. I am now very happy to report that i finally got to create a supertux.pet and sfs.

For now, i am trying to create sfs or pets of the following program: gbrainy, gcompris and openoffice. I am very happy and impress with the Pdebthing.

Thank you so much for your help.
Back to top
View user's profile Send private message 
Iguleder


Joined: 11 Aug 2009
Posts: 1870
Location: Israel, somewhere in the beautiful desert

PostPosted: Mon 30 Aug 2010, 04:14    Post subject:  

playdayz wrote:
This worries me just a bit. We do not want to duplicate libraries and other dependencies that are already present in Lucid Puppy.


I'll answer with a quote.

Quote:
- A setting called "downloadInstalled", can be either "true" or "false": if set to "false", packages that come with your Puppy won't be downloaded.


No duplicates. I guess you haven't read the whole thing.

playdayz wrote:
Very often in my experience, Ubuntu will report dependencies that are extreme.


That's because Ubuntu (like any other major desktop distro) turns everything on and compiles packages with all optional features. There's nothing you can do about this, just compile your own package with your choice of features and dependencies.

And it's your choice - either a non-functioning Ubuntu package with missing dependencies or a bigger but working package, that's something you can achieve with Pdebthing.

playdayz wrote:
Most of the time in building packages from Ubuntu they need some manual tweaking and adjustment..


In this case, you're wrong. It takes time to get all the dependencies of an Ubuntu package and it's sort of impossible if you do that manually. The manual tweaks I do are editing of .desktop files, fonts and configuration files in extreme cases. Not a big problem.

playdayz wrote:
I don't want to sound discouraging though


Oh, too bad.

_________________
My homepage
Back to top
View user's profile Send private message Visit poster's website MSN Messenger 
ICQ Number 
stu90


Joined: 25 Feb 2010
Posts: 1401
Location: England. Dell Inspiron 1501. Dpup

PostPosted: Wed 01 Sep 2010, 10:52    Post subject:  

If anyone is interested i have made a GUI for Pdebthing - I didn't know how to add option for folder name change (can use right click Rename) so you only need to use the terminal for making the .pet dir2pet or alien2puppy.
Last edited by stu90 on Thu 02 Sep 2010, 08:19; edited 1 time in total
Back to top
View user's profile Send private message 
Iguleder


Joined: 11 Aug 2009
Posts: 1870
Location: Israel, somewhere in the beautiful desert

PostPosted: Wed 01 Sep 2010, 14:14    Post subject:  

Cool stuff, stu90! Smile

I'll change Pdebthing's behavior and make it rename all "stuff" directories after the first package mentioned in config/packages, I think it makes sense to assume the most important package goes first. For instance, if you want Amarok, you won't call the package "xine-lib", because that's just a dependency, you want Amarok and not xine. Then you'll be able to make a package creation button, dir2pet or dir2sfs Wink

Also, I can call dir2sfs and dir2pet from a fourth and final script that does the actual packaging Very Happy

Additionally, I have a plan to fix all rear-corner case issues. For example, there's no check whether the extraction of the extracted package lists worked, because it makes sense to assume that if the download succeeded (that's something it does verify), the archive is valid. I'll add all those checks, error message and exit codes. Once we have that, I'll write a wrapper script that calls all four scripts.

This way you get verbosity and things are simpler. It also makes GUIzation of Pdebthing simpler and more friendly.

Ummm ... that was the ambitious me again, nevermind.

_________________
My homepage
Back to top
View user's profile Send private message Visit poster's website MSN Messenger 
ICQ Number 
stu90


Joined: 25 Feb 2010
Posts: 1401
Location: England. Dell Inspiron 1501. Dpup

PostPosted: Thu 02 Sep 2010, 08:17    Post subject:  

That sounds great Iguleder Cool

Edit:
I have updated the GUI in the Script 1download section there is now a 'Remove Debs' button this will delete some of the .deb files Ubuntu always seems to want to install, i have built several pets with these .deb deleted and they seem to work ok with out them but if not sure just ignore the 'Remove debs' option.
GUI is in /root/pdebthing4GUI directory.

http://www.smokey01.com/stu90/pdeb4+GUI.pet

Back to top
View user's profile Send private message 
Iguleder


Joined: 11 Aug 2009
Posts: 1870
Location: Israel, somewhere in the beautiful desert

PostPosted: Thu 21 Oct 2010, 13:37    Post subject:  

Uploaded 005, replying to bump the thread.

This time it's compatible with both Ubuntu and Debian and has lots of improvements. Smile

Can be used with 5.2 or Puppy Squeeze.

_________________
My homepage
Back to top
View user's profile Send private message Visit poster's website MSN Messenger 
ICQ Number 
ocpaul20

Joined: 31 Jan 2008
Posts: 189
Location: Right on top of CERN

PostPosted: Fri 22 Oct 2010, 05:12    Post subject:  

I know this is a very basic question but how do you know what package names to put in?

I have done
#ldd xchm
linux-gate.so.1 => (0xffffe000)
libwx_gtk2u_aui-2.8.so.0 => not found
libwx_gtk2u_xrc-2.8.so.0 => not found
libwx_gtk2u_qa-2.8.so.0 => not found
libwx_gtk2u_html-2.8.so.0 => not found
libwx_gtk2u_adv-2.8.so.0 => not found
libwx_gtk2u_core-2.8.so.0 => not found
libwx_baseu_xml-2.8.so.0 => not found
libwx_baseu_net-2.8.so.0 => not found
libwx_baseu-2.8.so.0 => not found
libchm.so.1 => not found
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb76bc000)
libm.so.6 => /lib/libm.so.6 (0xb7695000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7676000)
libpthread.so.0 => /lib/libpthread.so.0 (0xb765e000)
libc.so.6 => /lib/libc.so.6 (0xb7515000)
/lib/ld-linux.so.2 (0xb77c2000)

So I assume that the package names are the bit at the front
linux-gate
libwx
libchm

and for the found ones:
libstdc++
libm
libgcc_s
libpthread
libc
ld-linux

Is that correct please?
Back to top
View user's profile Send private message 
Iguleder


Joined: 11 Aug 2009
Posts: 1870
Location: Israel, somewhere in the beautiful desert

PostPosted: Fri 22 Oct 2010, 05:19    Post subject:  

According to packages.debian.org, you need libwxgtk2.8-0 and libchm1. The numbers may vary between Debian versions or between Debian and Ubuntu, though.

Why don't you use "xchm"? You can download it with all its dependencies.

_________________
My homepage
Back to top
View user's profile Send private message Visit poster's website MSN Messenger 
ICQ Number 
ocpaul20

Joined: 31 Jan 2008
Posts: 189
Location: Right on top of CERN

PostPosted: Fri 22 Oct 2010, 06:33    Post subject:  

Thats what I am trying to do. To download xchm for use with a PHP manual. However, I may be being a bit thick here, I thought I had to add the package names into the 'packages' file so that Pdebthing would do its stuff and download all the dependencies for me. Dont I have to do that?

I have run 0setup and I get lots of 404 errors but the script seems to have finished OK and it downloaded quite a bit of stuff.. How do we know if it encountered serious errors? Is there a log file?

OK, got xchm working as an sfs now, after a bit of fiddling around merging some directories etc. There are still some errors when it starts up and the bookmarks dont work somehow. Maybe there is still stuff not quite right, but it displays the chm file OK in the main window and is usable, but not good enough to offer as an sfs to others.

I used Pdebthing and that seemed to work alright. Thanks.
Back to top
View user's profile Send private message 
Iguleder


Joined: 11 Aug 2009
Posts: 1870
Location: Israel, somewhere in the beautiful desert

PostPosted: Fri 22 Oct 2010, 12:53    Post subject:  

Just put "xchm" in config/packages, that's all you need. Pdebthing will download the dependencies, you don't need to do that. That's the whole point of having such tool Smile

Pdebthing doesn't have a log, but it does have a file named "failed.txt" that contains the names of packages it failed to download.

_________________
My homepage
Back to top
View user's profile Send private message Visit poster's website MSN Messenger 
ICQ Number 
ocpaul20

Joined: 31 Jan 2008
Posts: 189
Location: Right on top of CERN

PostPosted: Fri 22 Oct 2010, 18:17    Post subject:  

Quote:
Remember, dependencies are handled automatically. You do not need to specify them, Pdebthing will detect them for you. Just put the names of the packages you want, Pdebthing will take care of the rest.
Ahh, so when you say this, you really mean put the name of the executable in 'packages' file. I see. Yes, that makes a lot more sense, thanks. It may be worthwhile changing this on the first post to make it perfectly clear to thickos like me ! Smile

I will post the issues that came up with xchm in another thread, since they are to with that and not Pdebthing.

So as a side issue (which is unnecessary now) and just for information, how do we determine the name of the package from the dependency lists given by ldd ?
Back to top
View user's profile Send private message 
Iguleder


Joined: 11 Aug 2009
Posts: 1870
Location: Israel, somewhere in the beautiful desert

PostPosted: Sat 23 Oct 2010, 05:12    Post subject:  

This isn't rocket science, I just go to packages.debian.org and search by package contents. That gives you package names according to their contents.

Usually if you see "liblol.so.9" and "librofl.so.0.0.0.0.0.1", it's librofl and liblol (just an example), but sometimes the Debian folks add numbers to the package name (for example, liblol9) so you need to search.

_________________
My homepage
Back to top
View user's profile Send private message Visit poster's website MSN Messenger 
ICQ Number 
ocpaul20

Joined: 31 Jan 2008
Posts: 189
Location: Right on top of CERN

PostPosted: Sat 23 Oct 2010, 08:08    Post subject:  

Ok, thanks for your help.
Back to top
View user's profile Send private message 
stu90


Joined: 25 Feb 2010
Posts: 1401
Location: England. Dell Inspiron 1501. Dpup

PostPosted: Wed 24 Nov 2010, 13:20    Post subject:  

Thanks for update to 005 Iguleder - i haven't made any pets for a while, will have a go later tonight when i have some more internet bandwidth Cool

cheers.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 2 of 3 [32 Posts]   Goto page: Previous 1, 2, 3 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Puppy Projects
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0844s ][ Queries: 13 (0.0044s) ][ GZIP on ]