VectorLinux
November 22, 2014, 05:55:16 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Visit our home page for VL info. To search the old message board go to http://vectorlinux.com/forum1. The first VL forum is temporarily offline until we can find a host for it. Thanks for your patience.
 
Now powered by KnowledgeDex.
   Home   Help Search Login Register  
Please support VectorLinux!
Pages: [1]
  Print  
Author Topic: building a package [solved]  (Read 771 times)
davidlondonuk
Member
*
Posts: 55


« on: November 02, 2010, 12:47:26 am »

I want to be build a vector package for mnemosyne, which is a pyqt based app and comes with a 'setup.py' install script, so as root you do:

python setup.py

and it install the package. VL 6 std has all the deps covered so it should be very easy to install this package, there is no compiling to do either.

There are a few pieces of software (printer drive is a good example) where you just want to install a number of files to various places in the file system. You could this with a bash script to install and un-install but surely there is an easy way to just create a VL package?

Vpackager seems to only work with the 'make;make install' kind of setup so maybe there is an easy way to create a makefile to do this?

Thanks for any help,

David

Solution Thanks tooth & sixforty took your advice and it worked well. I used sbbuilder after looking at some sites to get started. Sbuilder built the mnemosyne package, after I installed it failed to run. After checking the python error message at the command line (module PIL missing) it was just a matter of installing python imaging with gslapt and mnemosyne is up and running. I built this on VL 6 Std gold, but it is not a virgin install according to the advice, I have openoffice etc installed. So will see how it goes with more complex 'make;make install' packages where there will be configuration and compilation.

If anyone wants this package I have the tlz build v 1.2.2.

« Last Edit: November 02, 2010, 10:21:15 pm by davidlondonuk » Logged
toothandnail
Tester
Vectorian
****
Posts: 2527


« Reply #1 on: November 02, 2010, 01:30:14 am »

The easiest way to create a Vector Linux package is to install sbbuilder (current version for VL6.0 is 0.4.12.2) and use it. It can create packages for most things, though the build it generates will always require some editing (descriptions, source link, packager name, etc.).

Using sbbuilder has the advantage of creating a package that (should) meet Vector Linux packaging requirements, and allows easy installation and removal using the normal package management tools.

You can install it from Gslapt or slapt-get, then run 'sbbuilder --man' to find out how to use it for different package types.

Paul.
« Last Edit: November 02, 2010, 01:31:59 am by toothandnail » Logged
davidlondonuk
Member
*
Posts: 55


« Reply #2 on: November 02, 2010, 10:51:59 am »

Thanks tooth, I just checked and sbbuilder was installed when I installed VL 6, so I will be checking that out, it saves a lot of hassle if you can just build a package and install or uninstall.

 
Logged
roarde
Vectorian
****
Posts: 541


move the needle


« Reply #3 on: November 02, 2010, 05:46:05 pm »

Two things: mind that the dependency for PyQt is for PyQt 3.x; though not stated more specifically on mnemosyne's website, you probably can't -- and definitely shouldn't -- use PyQt 4.x. Your PyQt major version is probably the same as that of any KDE applications you have installed.

Second, sbbuilder does leave some fiddling to do before one gets to the coda in this case. The script generated by sbbuilder is intended to be altered before use, indeed gives some commented hints on how one might do so. Generating a script with sbbuilder is worth the time, as it will give very good info whether you alter and use that script, or write one yourself. Among others, include the option --type="python".

Oh, yeah:  sbbuilder --manual. If you'd like for that to come up as "man sbbuilder", as root do   sbbuilder --manual | gzip > /usr/share/man/cat1/sbbuilder.1.gz .

I had a go at this with sbbuilder. Though it looks to be easier than other things I've been working on, I gave up when warned a Python script was missing. My plate is full, and though I'd like to have mnemosyne I haven't seen it so don't miss it.

It's always nice when someone who's familiar with an application does the initial packaging and testing. Hope you will see this through, but don't sweat it.

I did find a package for Zenwalk, but I suspect it's for 64-bit.
Logged

Robert
VL STD 7.1 RC2.3, icewmvmods
toothandnail
Tester
Vectorian
****
Posts: 2527


« Reply #4 on: December 04, 2010, 08:36:33 am »


<snip>

I did find a package for Zenwalk, but I suspect it's for 64-bit.

Sorry, didn't notice this earlier. A Zenwalk package will not be for 64-bit  - there is no 64-bit version of Zenwalk.

However, Zenwalk tends to be pretty cutting edge, so you need to watch out what dependencies may be needed - many will probably not be compatible with VL6.0.

Paul.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!