VectorLinux

The nuts and bolts => Multimedia & Games => Topic started by: aulus on February 17, 2009, 08:33:37 am

Title: Wine Doors In VL
Post by: aulus on February 17, 2009, 08:33:37 am
First off let me briefly introduce myself. I have been using linux for several years now and have tried just about all the major distributions. I have been thinking of switching to slackware but the lack of support for dependency resolution always held me back. So now i'm using vector for the first time.

In previous distrobutions I would always install wine doors to help with windows programs in wine. When I first tried to install it in vector I found that the usual dependency program called orange was not installed. Orange is a program that extracts cab files from self extracting installers. After searching for quite some time and trying to convert and install various packages I finally found the orange program and it's libraries in a package that when converted to .tgz would install and function in vector.

I downloaded the packages from debian.org. Here is the link with the search results. http://packages.debian.org/search?keywords=orange. I then used the program alien to convert it to a .tgz package. I installed both the dev libraries and the standard libraries but I don't think the dev libraries required.

There was one other dependency not installed called rsvg. This one was easier. A quick google search revealed that the packages gnome-python-desktop and dbus-python that can be installed from gslapt resolved that dependency. With the dependency's now installed I installed wine-doors from the source and it's working. And I must say it runs at least 10 times faster then it ever did on suse or ubuntu.

Oh by the way, I still have the .tgz packages I created to install orange if anyone is interested I could submit them to the user repository or something like that.
Title: Re: Wine Doors In VL
Post by: caitlyn on February 17, 2009, 08:50:23 am
Converted packages are not suitable for the repository.  Repository submissions must have a build script.  We'd almost certainly want it built from source. 

If we included packages without source code and build scripts in the repo Vector Linux would no longer be compliant with the GPL.  That's someplace we definitely don't want to go.
Title: Re: Wine Doors In VL
Post by: aulus on February 17, 2009, 08:55:39 am
Ok that makes since. Is there somewhere else I could submit them to help out anyone else trying to get this working?
Title: Re: Wine Doors In VL
Post by: aulus on February 17, 2009, 09:15:50 am
Oh I forgot to include a link to the orange source for those that may want it. Here it is. http://www.ailab.si/orange/downloads.asp.
Title: Re: Wine Doors In VL
Post by: caitlyn on February 17, 2009, 12:20:41 pm
There is no place to submit packages that don't meet Vector Linux packaging standards.  If you have your own website you could certainly post a link and nobody would object.

If you would like to see a standards compliant package built you could post in the New Package Requests section of the forum.

I, personally, don't use anything for/from Windows so I have no need for wine or any extensions to wine like this.  We do have a volunteer packager, though, that builds each and every release of wine for the repository.  He might very well be interested and pick up on your request if you post in the New Package Requests section.   That would be the route I'd suggest.
Title: Re: Wine Doors In VL
Post by: kc1di on February 17, 2009, 01:23:13 pm
Oh I forgot to include a link to the orange source for those that may want it. Here it is. http://www.ailab.si/orange/downloads.asp.

Hi aulus , I package the VL wine package and will work on one for doors soon. Unless you want to learn how then I'd be glad to help you
Dave
Title: Re: Wine Doors In VL
Post by: aulus on February 17, 2009, 06:02:29 pm
I wouldn't mind learning how. But the source code for the orange dependency looks more confusing then the others because it appears to be plain source code without the extra stuff normally lincluded in linux source packages.
Title: Re: Wine Doors In VL
Post by: Masta on February 17, 2009, 06:34:12 pm
You're in for a treat, it's not as hard as it first seems.
Also wanted to say thanks for the effort of trying to make something that could go into the repository (if it met standards of course). There's a lot of things not in there, and instead of just jotting a request into the package section of the forum, you took the initiative and time to at least attempt a package. That's cool.

I'm sure my fellow Mainer will be very good at getting you started on building packages that meet requirements.  :) Anytime you need help, just ask.

Thanks for offering help to aulus on packages kc1di
Title: Re: Wine Doors In VL
Post by: caitlyn on February 17, 2009, 07:46:30 pm
I think Masta misunderstood me but he makes a great point:  If you want to learn how to package for Vector Linux your efforts would be warmly welcomed.  We always need and welcome more volunteer packagers.

Dave, thanks again for offering to help.
Title: Re: Wine Doors In VL
Post by: aulus on February 17, 2009, 08:58:50 pm
Well I try to help when ever I can. All the programming I know is self taught and I must say i've only learned php so far but have wanted to learn a little programming for linux but was never sure where to start. Any advice you can offer would be welcome.
Title: Re: Wine Doors In VL
Post by: kc1di on February 18, 2009, 03:51:35 am
Hi again ,

Here is your first assignment.. (Note I'm quite busy at work right now so this may not happen fast but hang in there - Dave)

Please read the following pages Written by Kidd I think:
ftp://64.50.238.52/.1/vectorlinux/docs/packaging/index.html

Then make sure you have a clean Partition to package in.  with no nvidia drivers loaded. and minimal number of extra programs or packages installed. make it as clean as possible.

Make a Directory on this partition call it anything you like I call mine packaging. this is where you'll store the packages you are working on.

Let me know when you get that done and your ready to proceed.
Dave :)


Title: Re: Wine Doors In VL
Post by: aulus on February 18, 2009, 09:34:29 am
Ok i've read the page and the 2 scripts and I think I understand most of what the scripts are doing. I will likely have some questions once I start building my first package. Also I am at work now so can't setup the clean install yet but will prob use the script to install a chroot path of vl light when I get home.

One question though. These instructions are assuming the source code you download has the standard files like the configure script. What do you do if the program you want to build is like orange and doesn't have those? Is that a whole seperate lesson? Oh also If you like you can send me pm's instead of posting each instruction on the forum. Unless you want all the steps available to everyone.
Title: Re: Wine Doors In VL
Post by: kc1di on February 18, 2009, 10:19:57 am
Let me know when you are able to partition and are ready.. One tools that's just become available is a little python Script developed by   rbistolfi  & kidd:  it's called sbbuilder and greatly simplifies the making of your SlackBuild Script. so once your partition is up and ready make sure sbbuilder is installed.  The latest version can be found here:  this version is  not in the Repro yet, but adds more functionality than the one that is.

http://drop.io/k3woxwp
 (http://drop.io/k3woxwp)
I'll explain how to run SlackBuild for non standard builds a little later. 
Will keep going here so others can learn too. unless there is a complaint about that , it may also give other packagers the ability to chime in I make many mistakes still, so their help may be of great value.


Title: Re: Wine Doors In VL
Post by: aulus on February 18, 2009, 05:47:26 pm
Ok i'm home and am downloading the light edition image file now. I'll have a chroot folder setup in a few min and will be ready. I do have sb builder installed now.
Title: Re: Wine Doors In VL
Post by: aulus on February 18, 2009, 06:07:46 pm
Ok my chroot directory is now created and i'm ready for the next step.
Title: Re: Wine Doors In VL
Post by: kc1di on February 18, 2009, 06:54:53 pm
Ok lets start with a simple package

go to this page and download a program gpsk31
http://www.qsl.net/pg4i/download/ (http://www.qsl.net/pg4i/download/)

Download the tar.gz and put a copy in your chroot.

the open a terminal and cd to the location.  once there you'll use sbbuilder

like this sbbuilder  --package=gpsk31 --verison=0.5 --user= (your user name)  <hit enter>

This should make a new folder <gpsk31>  click on it you'll see one called 0.5 click on that you'll see one called src clicking on that and there should be a file call gpsk31.SlackBuild (this is your SlackBuild Script)
open it with mouse pad or other editor  your going to scroll down to an area in the file that looks like
Code: [Select]
|-----handy-ruler------------------------------------------------------|
pcb: pcb (utility for creating printed circut boards)
pcb: Pcb is an interactive printed circuit layout system for X-windows.
pcb: Produces very professional output, but does not contain an autorouter
pcb: or something similar. Good documentation and examples included.
pcb:
pcb:
pcb:
pcb: License: GPL
pcb: Authors: danmc, djdelorie, haceaton
pcb: Website: http://sourceforge.net/projects/pcb/




#----------------------------------------
BUILDDATE: Wed Feb 18 01:08:55 UTC 2009/code]

Only it will be blank that is it will have $NAME: in each line.. you'll enter a short description of your pack in the line wiht (      )   in this case (a psk31 soundcard modem)
$NAME:  <Long Discription goes here>
$NAME:  <Long Discription > In this case say something like  a psk31 sound card modem based on GTK.


In the line that say License: it should read in this case GPL
in the line that says author : it should be PG4I
and the line that Says Website: you'll enter http://www.qsl.net/pg4i/download/

Then save the file.

let me know when you have this script finished.
Dave

Title: Re: Wine Doors In VL
Post by: aulus on February 18, 2009, 07:31:19 pm
OK so the author should be the name of the organization that wrote the program if applicable and the website should be where the source can be downloaded. Only question is why is License GPL when the copying file in the source says it's under a GNU license.
Title: Re: Wine Doors In VL
Post by: uelsk8s on February 18, 2009, 09:38:36 pm
there is a new built in shortcut in sbbuilder
sbbuilder --user=Yourname --link=http://www.qsl.net/pg4i/download/gpsk31-0.5.tar.gz
this takes the name and version from the link AND adds the link into the SB script so it will be downloaded when the script is ran.
Title: Re: Wine Doors In VL
Post by: kc1di on February 19, 2009, 03:23:55 am
OK so the author should be the name of the organization that wrote the program if applicable and the website should be where the source can be downloaded. Only question is why is License GPL when the copying file in the source says it's under a GNU license.

To answer your question (Also Thanks Ules for the tip)

GPL is known actually as GNU/GPL we shorten it to just GPL. sometimes you'll find LGPL and a few may also be under BSD

Now if you gotten this far saved the file. You need to copy the gpsk31-0.5-tar.gz file into the src folder.
once that's done your ready to build it. 
In a terminal su to root > then cd to the /gpks31/0.5/src folder in this folder type the following  # sh ./gpsk31.SlackBuild
the script you created should run.  if all goes well and it finishes without any cofigure errors or make errors you'll find a few new files in the /gpks31/0.5 folder you'll have a Slackrequired file a slackdiscription file and a .tlz package the .tlz is the official VL package.  you can install this package by right clickon it and selecting the install pkg prompt. 

If the script runs and you get an error that you need such and such a file.. go to gslapt see if it's available and install it and run the script again.  If that dependency is not available in gslapt you would have to go find it's source code (Google is your friend here) and build that package and install it first.  then re-run the build script for what ever program your building. 

If this all works we will move on.
let me know.
Title: Re: Wine Doors In VL
Post by: lm8 on February 19, 2009, 04:37:44 am
This is a great thread for people interested in packaging.  Only problem is, don't know if they'll be able to find it unless they're following these posts.  Could some of this be moved to a How To document or maybe add a link to this thread from the 'Packages and Building from Source' thread already in the How To section of the forum?

Also, can't help wondering if I'm the only one doing sneaker net.  Maybe there's an easier way to do it, but for anyone trying to sneaker net sbbuilder onto their machine, here's what I did.  I downloaded the .tlz file and also needed the Template Toolkit for Perl to get it to run.  (Hoping the .tlz file will be updated with the latest additions to sbbuilder soon.)  I downloaded the Template Toolkit in tarball form from the CPAN web site (repository for Perl functions).  To install:
Code: [Select]
./configure
perl Makefile.pl
make
make install
Then you can 'installpkg sbbuilder-0.4.11.4-noarch-1vl60.tlz' (or whatever the latest version name of the tlz file is).
If there's an easier way to sneaker net this, would be curious to know.
Title: Re: Wine Doors In VL
Post by: kc1di on February 19, 2009, 05:43:31 am
This is a great thread for people interested in packaging.  Only problem is, don't know if they'll be able to find it unless they're following these posts.  Could some of this be moved to a How To document or maybe add a link to this thread from the 'Packages and Building from Source' thread already in the How To section of the forum?

Also, can't help wondering if I'm the only one doing sneaker net.  Maybe there's an easier way to do it, but for anyone trying to sneaker net sbbuilder onto their machine, here's what I did.  I downloaded the .tlz file and also needed the Template Toolkit for Perl to get it to run.  (Hoping the .tlz file will be updated with the latest additions to sbbuilder soon.)  I downloaded the Template Toolkit in tarball form from the CPAN web site (repository for Perl functions).  To install:
Code: [Select]
./configure
perl Makefile.pl
make
make install
Then you can 'installpkg sbbuilder-0.4.11.4-noarch-1vl60.tlz' (or whatever the latest version name of the tlz file is).
If there's an easier way to sneaker net this, would be curious to know.

Thanks Im8 will post a link in How To: Packaging for VL. may turn this into a how to if it comes out Ok..

cheers ,
dave
Title: Re: Wine Doors In VL
Post by: aulus on February 19, 2009, 05:55:13 am
Ok the only message I got that I was wondering about is the following:

No symbolic links were found, so we won't make an installation script.
You can make your own later in ./install/doinst.sh and rebuild the
package if you like.

Despite this message there were no errors and I was able to install the package and run the program from the menu. Here is the package I created.
Title: Re: Wine Doors In VL
Post by: kc1di on February 19, 2009, 06:13:44 am
Ok the only message I got that I was wondering about is the following:

No symbolic links were found, so we won't make an installation script.
You can make your own later in ./install/doinst.sh and rebuild the
package if you like.

Despite this message there were no errors and I was able to install the package and run the program from the menu. Here is the package I created.

Congratulations you've just packaged your first package for VL
Now we will work on Orange. But won't be until later tonight. I'm At work at the moment and won't have access to my packaging machine until after work.
Title: Re: Wine Doors In VL
Post by: rbistolfi on February 19, 2009, 06:27:53 am
This is a great thread for people interested in packaging.  Only problem is, don't know if they'll be able to find it unless they're following these posts.  Could some of this be moved to a How To document or maybe add a link to this thread from the 'Packages and Building from Source' thread already in the How To section of the forum?

Also, can't help wondering if I'm the only one doing sneaker net.  Maybe there's an easier way to do it, but for anyone trying to sneaker net sbbuilder onto their machine, here's what I did.  I downloaded the .tlz file and also needed the Template Toolkit for Perl to get it to run.  (Hoping the .tlz file will be updated with the latest additions to sbbuilder soon.)  I downloaded the Template Toolkit in tarball form from the CPAN web site (repository for Perl functions).  To install:
Code: [Select]
./configure
perl Makefile.pl
make
make install
Then you can 'installpkg sbbuilder-0.4.11.4-noarch-1vl60.tlz' (or whatever the latest version name of the tlz file is).
If there's an easier way to sneaker net this, would be curious to know.


In 5.9 the easiest way to install TT would be

Code: [Select]
cpan Template
Cpan will ask a few questions the first time as a setup wizard, and then will process the package and its dependencies. In VL6 its all installed by default.
Title: Re: Wine Doors In VL
Post by: Joe1962 on February 19, 2009, 06:58:19 am
IIRC, I sort of started the trend to use those last 3 description lines in slack-desc (authors, license, website) as I had used that for my template for a while before we had that discussion (ancient history, lol). What I wanted to point out was not my involvement, but rather that we used the full name of the licenses instead of the short version, as in:

Code: [Select]
rtorrent: License: GNU GENERAL PUBLIC LICENSE, Version 2, June 1991
rtorrent: Authors: Jari Sundell <jaris@ifi.uio.no>
rtorrent: Website: http://libtorrent.rakshasa.no/
Title: Re: Wine Doors In VL
Post by: Masta on February 19, 2009, 12:08:45 pm
yeah :)
Title: Re: Wine Doors In VL
Post by: toothandnail on February 19, 2009, 12:45:33 pm
Something I find useful when building packages is a log file. Maybe that function could be added to sbbuilder. Anyhow, what I do at present is this (I tend to make my slackbuilds executable before use anyway):

Code: [Select]
./somepackage.Slackbuild 2>&1 | tee build-somepackage.log
Done that way, I have a log of any errors that occur during the build, and can check things like warnings and configure options at leisure when the build is finished. If I do hit an error, it gives me a record of not only where the error hit, but also what was being done just before the error.

paul.

Title: Re: Wine Doors In VL
Post by: kc1di on February 19, 2009, 01:23:12 pm
Thanks Paul,
That's a very good Idea :)
Title: Re: Wine Doors In VL
Post by: Windozer on February 19, 2009, 06:44:56 pm
Thanks Dave and all - and to aulus for starting this.

will be following closely as I'm learning how to package too.

Keep up the good works!

- Howard

PS might I suggest that the powers that be rename this thread (to say "learning to package") and move it to a place more suitable than under multimedia & games?
Title: Re: Wine Doors In VL
Post by: aulus on February 19, 2009, 06:55:04 pm
I second the moving the thread and renaming it has extended on my original topic. Also I like the error log idea. Much easier to check for errors then scrolling up in your terminal. Plus in some cases your terminal might cut off part of it.
Title: Re: Wine Doors In VL
Post by: kc1di on February 20, 2009, 03:24:07 am
Sorry Got caught up in work last night and didn't get a chance to continue.

Next step will be to build All the deps that you'll need for Orange and any other deps you'll need for Windows-Doors.  some will be straight forward regular builds.  Some will require tweaking of the build script.
This has become very easy as long as you have installed the latest version of Sbbuilder.

Open terminal and type sbbuilder --manual (read the manual, it is very good pay particular attention to the section on --type.) Now we are going to add one more step in the building of the packages say it a python script and no ./config or make file exists.  Which is what you'll find in PyQwt which is one of the deps for Orange.  you simply add the following too your sbbuilder line.

sbbuilder --package=PyQwt --version=0.1.6 --user= <yourusername> --type=python --link=<address where file can be found>  Then when it builds your script it will replace the ./config section with python setup.py 

you will then be able to build the python package.. give it a try and see if it works for you.

Dave

P.S. (after you have built your dep packages installed them and tested the final wine-doors package don't forget to go back and remove everything from your packaging partition and clean it out again. that way the next time you build a package you won't get false dependencies.)

Title: Re: Wine Doors In VL
Post by: aulus on February 20, 2009, 05:56:58 am
how do I install a package to my chroot directory instead of my main folder?
Title: Re: Wine Doors In VL
Post by: kc1di on February 20, 2009, 06:44:49 am
how do I install a package to my chroot directory instead of my main folder?

One of you Other Packagers want to chime in here I'm on the road today Thanks- Dave

Title: Re: Wine Doors In VL
Post by: uelsk8s on February 20, 2009, 07:17:06 am
how do I install a package to my chroot directory instead of my main folder?
installpkg -R /path/to/chroot pkgname.tlz
Title: Re: Wine Doors In VL
Post by: aulus on February 20, 2009, 10:55:39 am
Thanks I'll give that a go as soon as I have time to build the packages.
Title: Re: Wine Doors In VL
Post by: aulus on February 20, 2009, 11:41:55 am
Ok another question. The SIP package required for PyQt is under a private license allowing rights to reproduce. What would I put under license in my build script? Private?
Title: Re: Wine Doors In VL
Post by: kc1di on February 20, 2009, 01:19:34 pm
Ok another question. The SIP package required for PyQt is under a private license allowing rights to reproduce. What would I put under license in my build script? Private?

Can you send me the web site of the sip software thanks

Title: Re: Wine Doors In VL
Post by: aulus on February 20, 2009, 01:36:46 pm
I actually downloaded it from a sourceforge link but here is the link from the manufacturer. http://www.riverbankcomputing.com/software/sip/download.
Title: Re: Wine Doors In VL
Post by: kc1di on February 20, 2009, 02:02:28 pm
I Think I'd just call it SIP license agreement.
Title: Re: Wine Doors In VL
Post by: uelsk8s on February 20, 2009, 02:06:40 pm
sip is already in the repo
sip-4.7.9-i586-1vl60 [inst=yes]: sip (tool for generating Python bindings for C and C++ libraries.)
Title: Re: Wine Doors In VL
Post by: kc1di on February 20, 2009, 02:13:07 pm
Thanks Uelsk8s,
Title: Re: Wine Doors In VL
Post by: blurymind on February 21, 2009, 01:09:27 am
hi...I've compiled and packaged liborange and all its dependencies. I also made a wine-doors slackbuild. Its all in my slack contrib. I can't package wine-doors because it wants gnome-python-desktop  ,which drags the whole gnome desktop with all its deps- I just dont have enough hd space to install it and i dont want to polute my packaging system.

So, just wait for liborange and its deps to get to the testing repository...and then download this slackbuild and try it

dont forget to install these too before you try the slackbuild:
cabextract >= 1.2 | wine >= 1.1.14 | liborange >= 0.4 | gnome-python-desktop >= 2.22.0 | pycairo >= 1.4.12 | lxml >= 2.15
Title: Re: Wine Doors In VL
Post by: caitlyn on February 21, 2009, 10:09:49 am
I'll have these packages in the testing repo this afternoon.  I'm doing VL 5.9 repo maintenance at the moment but I will be doing 6.0 very shortly.

Title: Re: Wine Doors In VL
Post by: aulus on February 21, 2009, 10:41:52 am
Your download file wouldn't extract and I was almost done with what I started building so I finished but it's not working and i'm not sure why. I built a package for numpy, pyqt, pyqwt, orange, and wine-doors. I also installed wine, cabextract, dbus-python, gnome-python-desktop, and pycairo before building the wine-doors package. The packages don't generate an error when installing but don't appear to have installed. Also when I build the package with the script it is not making a required file. Here is the link to what I have made so far. http://eagled2.net/data/wine-doors-packs.tar.gz. I will try making it again using your dependency collection but would like to know what i'm doing wrong.
Title: Re: Wine Doors In VL
Post by: kc1di on February 21, 2009, 11:02:41 am
I don't know what has gone wrong but yor numpy.tlz file is one 3.5kb  it should be something on the order of 1.5 MB in size.  winedoors looks very small also. will look further time permitting.
dave
Title: Re: Wine Doors In VL
Post by: blurymind on February 21, 2009, 01:31:37 pm
look in the terminal - it will tell you what you are missing.

I also have a mistake in the script. Deps shouldnt be sepparated with a |

as for numpy- i've built it and its 1.4 mb. I know from experience that it works. Tested it.

also,the slackbuild wont tell you if it didnt go right.You have to check that by yourself. If there is no slack-required,that means that the package didnt build.
Title: Re: Wine Doors In VL
Post by: caitlyn on February 21, 2009, 01:48:25 pm
If there is no slack-required,that means that the package didnt build.

That's certainly true in this case but not in all cases.  Some packages have no dependencies.  A slack-desc should be there for every package.
Title: Re: Wine Doors In VL
Post by: aulus on February 23, 2009, 12:34:54 pm
Sorry I was busy this weekend. I will try again in the next couple of days.
Title: Re: Wine Doors In VL
Post by: henryxcrudos on September 11, 2009, 04:06:50 am
Hi again ,

Here is your first assignment.. (Note I'm quite busy at work right now so this may not happen fast but hang in there - Dave)

Please read the following pages Written by Kidd I think:
ftp://64.50.238.52/.1/vectorlinux/docs/packaging/index.html

Would these documents be available somewhere else? I cannot access them... Many thanks in advance!
Title: Re: Wine Doors In VL
Post by: uelsk8s on September 11, 2009, 06:48:41 am
http://vectorlinux.osuosl.org/docs/packaging/
Title: Re: Wine Doors In VL
Post by: stretchedthin on September 12, 2009, 09:53:05 am
Sorry, can't test it at my end without starting an account. For what it is worth I have briefly used pokerstars, which worked pretty flawlessly under wine. Couldn't make me a better poker player.  Also if you search the wine app database for poker there seems to be lots to choose from that are rated gold or better.  Did not see Fortune Poker on the list at all.
Oh, and there is PokerTH in the repositories now. Just for practice.
Title: Wine Doors In VL
Post by: aboniup75 on September 24, 2009, 01:05:26 pm
Try to install it separately or better install wine-doors. With wine-doors you can install DirectX very easily...and many other apps...Just do as root "urpmi wine-doors"
Title: Re: Wine Doors In VL
Post by: GrannyGeek on September 24, 2009, 06:57:46 pm
urpmi is a command for Mandriva, I  believe. It won't work in VectorLinux.

Wine now includes winecfg, which does allow a lot of easy customization for various programs.
--GrannyGeek