| View previous topic :: View next topic |
| Author |
Message |
geekydude Xandrosianschwing
Joined: 29 May 2005 Posts: 2513 Location: Portland, OR
|
Posted: Mon Mar 26, 2007 1:40 pm Post subject: How to convert Ubuntu packages to Xandros packages? |
|
|
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?  _________________ geekydude
registered Linux user number 410045.
The source will be with you...always.... |
|
| Back to top |
|
 |
jimallyn Site Admin

Joined: 31 Jan 2003 Posts: 8195 Location: Wenatchee, Washington, USA
|
Posted: Mon Mar 26, 2007 3:29 pm Post subject: |
|
|
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 |
|
 |
geekydude Xandrosianschwing
Joined: 29 May 2005 Posts: 2513 Location: Portland, OR
|
Posted: Mon Mar 26, 2007 4:57 pm Post subject: |
|
|
I can locate the sources and work with them, but the KDE 3.5 stuff is what kills me.  _________________ geekydude
registered Linux user number 410045.
The source will be with you...always.... |
|
| Back to top |
|
 |
redrum Xandros Community Moderator

Joined: 05 Apr 2004 Posts: 2765 Location: Rapid City, South Dakota
|
Posted: Mon Mar 26, 2007 11:58 pm Post subject: |
|
|
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 |
|
 |
geekydude Xandrosianschwing
Joined: 29 May 2005 Posts: 2513 Location: Portland, OR
|
Posted: Tue Mar 27, 2007 2:50 pm Post subject: |
|
|
| 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.
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 |
|
 |
jimallyn Site Admin

Joined: 31 Jan 2003 Posts: 8195 Location: Wenatchee, Washington, USA
|
Posted: Tue Mar 27, 2007 3:06 pm Post subject: |
|
|
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 |
|
 |
geekydude Xandrosianschwing
Joined: 29 May 2005 Posts: 2513 Location: Portland, OR
|
Posted: Tue Mar 27, 2007 4:24 pm Post subject: |
|
|
some. but now all. _________________ geekydude
registered Linux user number 410045.
The source will be with you...always.... |
|
| Back to top |
|
 |
jimallyn Site Admin

Joined: 31 Jan 2003 Posts: 8195 Location: Wenatchee, Washington, USA
|
Posted: Tue Mar 27, 2007 5:15 pm Post subject: |
|
|
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 |
|
 |
redrum Xandros Community Moderator

Joined: 05 Apr 2004 Posts: 2765 Location: Rapid City, South Dakota
|
Posted: Tue Mar 27, 2007 6:30 pm Post subject: |
|
|
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 |
|
 |
geekydude Xandrosianschwing
Joined: 29 May 2005 Posts: 2513 Location: Portland, OR
|
Posted: Tue Mar 27, 2007 6:42 pm Post subject: |
|
|
| 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 |
|
 |
|