forums.xandros.com Forum Index forums.xandros.com
Xandros User Forums
 
 FAQFAQ   SearchSearch   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to convert Ubuntu packages to Xandros packages?

 
Post new topic   Reply to topic    forums.xandros.com Forum Index -> Packaging
View previous topic :: View next topic  
Author Message
geekydude
Xandrosianschwing


Joined: 29 May 2005
Posts: 2513
Location: Portland, OR

PostPosted: Mon Mar 26, 2007 1:40 pm    Post subject: How to convert Ubuntu packages to Xandros packages? Reply with quote

Does anybody know How to convert Ubuntu packages to Xandros packages?
The problem with these packages is they mostly rely on KDE 3.5.
I haven't figured out how to get them to behave with KDE 3.4.

Any Deb wizards out there know how to do this? Confused
_________________
geekydude
registered Linux user number 410045.

The source will be with you...always....
Back to top
View user's profile Send private message Send e-mail Visit poster's website
jimallyn
Site Admin
Site Admin


Joined: 31 Jan 2003
Posts: 8195
Location: Wenatchee, Washington, USA

PostPosted: Mon Mar 26, 2007 3:29 pm    Post subject: Reply with quote

You can build them with apt-get -b source <yourapp> as described by aldube here:

http://forums.xandros.com/viewtopic.php?t=21131

But how to get around the KDE 3.5 requirement, I do not know.

Jim
_________________
I refuse to live in a country like this - and I'm not leaving. - Michael Moore
Back to top
View user's profile Send private message
geekydude
Xandrosianschwing


Joined: 29 May 2005
Posts: 2513
Location: Portland, OR

PostPosted: Mon Mar 26, 2007 4:57 pm    Post subject: Reply with quote

jimallyn wrote:
You can build them with apt-get -b source <yourapp> as described by aldube here:

http://forums.xandros.com/viewtopic.php?t=21131

But how to get around the KDE 3.5 requirement, I do not know.

Jim


I can locate the sources and work with them, but the KDE 3.5 stuff is what kills me. Confused
_________________
geekydude
registered Linux user number 410045.

The source will be with you...always....
Back to top
View user's profile Send private message Send e-mail Visit poster's website
redrum
Xandros Community Moderator
Xandros Community Moderator


Joined: 05 Apr 2004
Posts: 2765
Location: Rapid City, South Dakota

PostPosted: Mon Mar 26, 2007 11:58 pm    Post subject: Reply with quote

The easiest way to see if a package will even work is to unpack the archive, delete any dependencies from the control file, rebuild it and then install it and see if it will work (I recommend using vmware and using a fresh Xandros install with a Snapshot so one can revert back to the snapshot if the program doesn't work... This keeps you from killing your own box)... If it doesn't it will usually complain about missing shared libraries. You can make symbolic links to existing libraries and sometimes 'trick' the program to use them instead... If that works, then you make a new package that includes the links and then write the dependencies in to reflect what is needed using version numbers that are relevant to Xandros...

Really, its best to recompile the programs from scratch, if possible, instead of repackaging another Distro's files. Obviously there are reasons to use this approach as well though...
_________________


Beware of the man who would deny you access to information,
for in his heart he dreams himself your master.
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
geekydude
Xandrosianschwing


Joined: 29 May 2005
Posts: 2513
Location: Portland, OR

PostPosted: Tue Mar 27, 2007 2:50 pm    Post subject: Reply with quote

redrum wrote:
The easiest way to see if a package will even work is to unpack the archive, delete any dependencies from the control file, rebuild it and then install it and see if it will work (I recommend using vmware and using a fresh Xandros install with a Snapshot so one can revert back to the snapshot if the program doesn't work... This keeps you from killing your own box)... If it doesn't it will usually complain about missing shared libraries. You can make symbolic links to existing libraries and sometimes 'trick' the program to use them instead... If that works, then you make a new package that includes the links and then write the dependencies in to reflect what is needed using version numbers that are relevant to Xandros...

Really, its best to recompile the programs from scratch, if possible, instead of repackaging another Distro's files. Obviously there are reasons to use this approach as well though...


I'm still a newbie at this, but how does one redo a package from scratch without .diff & .dsc files? or is there a way to obtain them from the original package?

I haven't learned the art of making my own files yet. Confused
I'm starting to get the hang of editing certain fields of control files though.
Now if I can just figure out how to make everything match...

I can trick some, and many I still don't understand what I'm doing enough to make it happen.

I'm gonna do like jimallyn, and take some serious reading time, and read some of the recommended documentation all the way through so I can get a better idea of what's going on when building debs.

I appreciate any help/advice given, as I don't quite "grok" this stuff yet.
_________________
geekydude
registered Linux user number 410045.

The source will be with you...always....
Back to top
View user's profile Send private message Send e-mail Visit poster's website
jimallyn
Site Admin
Site Admin


Joined: 31 Jan 2003
Posts: 8195
Location: Wenatchee, Washington, USA

PostPosted: Tue Mar 27, 2007 3:06 pm    Post subject: Reply with quote

geekydude, have you read the Debian New Maintainer's Guide yet? It does have some discussion of that.

Jim
_________________
I refuse to live in a country like this - and I'm not leaving. - Michael Moore
Back to top
View user's profile Send private message
geekydude
Xandrosianschwing


Joined: 29 May 2005
Posts: 2513
Location: Portland, OR

PostPosted: Tue Mar 27, 2007 4:24 pm    Post subject: Reply with quote

jimallyn wrote:
geekydude, have you read the Debian New Maintainer's Guide yet? It does have some discussion of that.

Jim


some. but now all.
_________________
geekydude
registered Linux user number 410045.

The source will be with you...always....
Back to top
View user's profile Send private message Send e-mail Visit poster's website
jimallyn
Site Admin
Site Admin


Joined: 31 Jan 2003
Posts: 8195
Location: Wenatchee, Washington, USA

PostPosted: Tue Mar 27, 2007 5:15 pm    Post subject: Reply with quote

I can see this will be a long learning process to master this stuff!

Jim
_________________
I refuse to live in a country like this - and I'm not leaving. - Michael Moore
Back to top
View user's profile Send private message
redrum
Xandros Community Moderator
Xandros Community Moderator


Joined: 05 Apr 2004
Posts: 2765
Location: Rapid City, South Dakota

PostPosted: Tue Mar 27, 2007 6:30 pm    Post subject: Reply with quote

One tool that works very well at allowing you to extract the contents of a .deb or .rpm file is already built into your system... The Xandros file manager.. Simply right-click the file, click open with, chose Xandros File Manager, and it will open the archive.

Then make a folder on the desktop, name it to the name of the package you intend to build (minus the .deb part) and open the folder.. In other words, if you have a package called folderarchive-x.x.x--i386.deb, make a folder called folderarchive-x.x.x--i386.deb.
Then copy the DEBIAN folder and the contents of the CONTENTS (but not the folder itself) to that folder... RPMS will not have the same structure as debs, so it is usally easier to convert the package with alien first and then use the converted archive as your reference.

To rebuild the package, cd to your Desktop and type dpkg -b folderarchive-x.x.x--i386 where folderarchive-x.x.x--i386 represents the name of the folder you made.. It will rebuild it then.. Pretty slick, huh?
_________________


Beware of the man who would deny you access to information,
for in his heart he dreams himself your master.
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
geekydude
Xandrosianschwing


Joined: 29 May 2005
Posts: 2513
Location: Portland, OR

PostPosted: Tue Mar 27, 2007 6:42 pm    Post subject: Reply with quote

redrum wrote:
One tool that works very well at allowing you to extract the contents of a .deb or .rpm file is already built into your system... The Xandros file manager.. Simply right-click the file, click open with, chose Xandros File Manager, and it will open the archive.

Then make a folder on the desktop, name it to the name of the package you intend to build (minus the .deb part) and open the folder.. In other words, if you have a package called folderarchive-x.x.x--i386.deb, make a folder called folderarchive-x.x.x--i386.deb.
Then copy the DEBIAN folder and the contents of the CONTENTS (but not the folder itself) to that folder... RPMS will not have the same structure as debs, so it is usally easier to convert the package with alien first and then use the converted archive as your reference.

To rebuild the package, cd to your Desktop and type dpkg -b folderarchive-x.x.x--i386 where folderarchive-x.x.x--i386 represents the name of the folder you made.. It will rebuild it then.. Pretty slick, huh?


You have made my day!

I'm assuming this works only if you have the correct dependencies installed to begin with...
_________________
geekydude
registered Linux user number 410045.

The source will be with you...always....
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forums.xandros.com Forum Index -> Packaging All times are GMT - 5 Hours
Page 1 of 1

 
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


Powered by phpBB © 2001, 2005 phpBB Group