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 

Include Xandros version in DEB packages

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


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

PostPosted: Tue Mar 27, 2007 3:14 pm    Post subject: Include Xandros version in DEB packages Reply with quote

Since there are a number of us making DEB packages now, and there are 4 different versions of Xandros out there now, it occurs to me that we should put the Xandros version the DEB was compiled for in the package name. This came to mind the other day when it was (accidentally) suggested that someone install a package I compiled for X4 on X3. So, perhaps we should include Xandros version in the package name so it's visible at a glance, like so:

someapp-1.2.5_X4_i386.deb

someapp-1.2.5_X3_i386.deb

someapp-1.2.5_X2_i386.deb

This would make it clear which version of Xandros the package is intended for.

It would be good if we all did this the same way. Comments or suggestions?

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
papabearak
Xandrosianding
Xandrosianding


Joined: 05 Aug 2005
Posts: 718
Location: Arizona, USA

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

I agree, Jim. Although I personally am in no imminent danger of creating any debs myself, I hope those who do so will adopt the convention you outlined. It could prevent a few fatal errors, always a good thing in my book. Ben Smile
_________________

Using Klikit-Linux ver. 0.1-8, all day, every day.
Check out Xandros Wiki - Lots of good stuff
http://geekconnection.pbwiki.com/Xandros%20Wiki%20Resource%20Page
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
Arne Anka
Xanspiration
Xanspiration


Joined: 21 Mar 2004
Posts: 4186
Location: Stockholm, Sweden

PostPosted: Tue Mar 27, 2007 5:37 pm    Post subject: Re: Include Xandros version in DEB packages Reply with quote

jimallyn wrote:

someapp-1.2.5_X4_i386.deb

someapp-1.2.5_X3_i386.deb

someapp-1.2.5_X2_i386.deb


This breakes the Debian policy concerning version numbering ( http://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-Version ). Better use something like

someapp-1.2.5-1X4_i386.deb

someapp-1.2.5-1X3_i386.deb

someapp-1.2.5-1X2_i386.deb

where 1.2.5 is the upstream version and -1X3 is your package revision. The reason I added 1 in front of X2, X3 and X4 is because if you fix packaging errors in future you may want to increase the package revision (e.g. -2X4, -3X4 etc.) rather than the upstream version the package is based on since its still the same.
Back to top
View user's profile Send private message
jimallyn
Site Admin
Site Admin


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

PostPosted: Tue Mar 27, 2007 5:45 pm    Post subject: Re: Include Xandros version in DEB packages Reply with quote

Arne Anka wrote:
This breakes the Debian policy concerning version numbering


That's why I asked for comments and suggestions! Thanks, Arne.

Anyone else got comments or suggestions?

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 5:45 pm    Post subject: Reply with quote

Good advice to us deb building noobs! Razz
_________________
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: Tue Mar 27, 2007 6:16 pm    Post subject: Reply with quote

The most important part of building packages is trying to keep the wrong users from installing the packages in the first place.. Dependencies really help in that regard, because if the system doesn't have the necessary dependencies, the package simply won't install...

On packages using checkinstall, the best thing is to declare the target audience.. If someone installs the package after being told it won't work on their version of Xandros, well-- its kind of their own fault.. If it wasn't declared, that's the author's fault.. Please edit any posts with packages built using checkinstall and include the target audience..

My personal routine involves a few steps before releasing a package... Sometimes I bend 'em a bit, but for the most part I follow this protocol.

1. Build the package with what dependencies you know the user will need (mmmm, yeah, kinda have to have the package Smile ) .
2. Fire up vmware, and install the package on the most stripped down version of Xandros that is allowed by the installer. (For the image, you will want to make a snapshot of the install after rebooting the OS twice inside vmware). If it bombs, click the 'revert to snapshot' option in VMWare to restore your 'minimal Xandros install' image and go to step 1. If it installs OK and doesn't unintentionally break anything, in the process, go to step 3.
3. Run the program and see if any libraries are needed. If it runs well, click the 'revert to snapshot' option in VMWare to restore your 'minimal Xandros install' image and go to step 8. If it does not, go to step 4.
4. Install the necessary packages to satisfy all of the program's functions.
5. Make a list of those libraries and the packages they come from. Also click the 'revert to snapshot' option in VMWare to restore your 'minimal Xandros install' image.
6. Rebuild the package.
7. Go to 2.
8. Upload your file (yay!)
9. Carefully prepare your post, including the target audience for the package, any known issues, and how to undo the changes caused by the package (if applicable).
10. Make available time for first installers to comment on the file.. If there are issues, fix them asap. For those with busy work days, choose off days to release your packages.
_________________


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:48 pm    Post subject: Reply with quote

Thanks for the handy step by step process! Very Happy
_________________
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
scott
Xandrosianding
Xandrosianding


Joined: 24 Jan 2003
Posts: 786
Location: West Chicago,Il

PostPosted: Tue Apr 10, 2007 5:17 pm    Post subject: Reply with quote

redrum: This is a little off topic for this thread. Were you able to get VMware tools to install though XN? I just installed 4.0+SP1. I'm showing VMware tools installed in expert alien but VMware tells me it's not installed. To I need to do this using the tar option? This sounds like a very good way to try out new things and such.
Thanks Scott
_________________
[img]http://img406.imag
eshack.us/img406/1995/tuxclockdp6.jpg[/img]

Dual booting Xandros 4.1 and Klikit 1.5a
http://www.scrollsawart.com
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: Wed Apr 11, 2007 3:31 am    Post subject: Reply with quote

You have to run vmware-config.pl as root to get vmware to work after installing the rpm... Go with the default options (hit enter like a chicken pecks the ground and it should give you a workable install...) Kernel-headers and c++ development tools must be installed as well..

If you have gotten it to work but you just want to add the vmware-tools package, to be honest I have no idea as it seems unnecessary to do the task at hand. In other words, I don't use them, and have found no use for them...

Hope this helps.
_________________


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
scott
Xandrosianding
Xandrosianding


Joined: 24 Jan 2003
Posts: 786
Location: West Chicago,Il

PostPosted: Wed Apr 11, 2007 7:05 am    Post subject: Reply with quote

Thanks redrum the light bulb finally went on in this old head off mine, installed the headers and c++ then installed from the console su. I guess you are right about not needing it for just test and building things. I'm on a laptop so thought it would be nice to have a full screen at 1280X800, for some reason it didn't work to get this resolution. It worked with XP in VM.
I'm sure glad I read your post, there is somethings I want to try but was afraid to, now I don't care if I hose this VM, do have a snapshot of the setup.
_________________
[img]http://img406.imag
eshack.us/img406/1995/tuxclockdp6.jpg[/img]

Dual booting Xandros 4.1 and Klikit 1.5a
http://www.scrollsawart.com
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