Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 213287 - PlayOnLinux ebuild request
Summary: PlayOnLinux ebuild request
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Default Assignee for New Packages
URL: http://www.playonlinux.com/en/
Whiteboard: [sunrise]
Keywords: EBUILD, InOverlay
: 217364 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-03-13 16:28 UTC by manwe
Modified: 2010-12-24 18:52 UTC (History)
14 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
first stab at ebuild. (playonlinux-2.7.2_beta.ebuild,1.02 KB, text/plain)
2008-05-14 21:41 UTC, Mike Weissman
Details
first stab at ebuild. with fixed dependencies (playonlinux-2.7.2_beta.ebuild,1.25 KB, text/plain)
2008-05-14 21:50 UTC, Mike Weissman
Details
Ebuild for playonlinux-3.0.1 (playonlinux-3.0.1.ebuild,1.00 KB, text/plain)
2008-06-01 13:59 UTC, Mounir Lamouri (volkmar) (RETIRED)
Details
Ebuild for playonlinux-3.0.2 (playonlinux-3.0.2.ebuild,1.94 KB, text/plain)
2008-06-10 23:45 UTC, Mounir Lamouri (volkmar) (RETIRED)
Details
Cleaned ebuild (playonlinux-3.0.2.ebuild,2.23 KB, text/plain)
2008-06-11 22:56 UTC, Mounir Lamouri (volkmar) (RETIRED)
Details
Updated ebuild : 3.0.5 (playonlinux-3.0.5.ebuild,2.24 KB, text/plain)
2008-06-19 23:07 UTC, Mounir Lamouri (volkmar) (RETIRED)
Details
Updated ebuild : 3.0.7 (playonlinux-3.0.7.ebuild,2.24 KB, text/plain)
2008-06-26 17:22 UTC, Mounir Lamouri (volkmar) (RETIRED)
Details
Updated ebuild : 3.1.0 (playonlinux-3.1.0.ebuild,2.41 KB, text/plain)
2008-09-11 21:45 UTC, manwe
Details
Updated and fixed ebuild : 3.1 (playonlinux-3.1.ebuild,2.53 KB, text/plain)
2008-09-15 14:40 UTC, Mounir Lamouri (volkmar) (RETIRED)
Details
playonlinux 3.2.2 ebuild (playonlinux-3.2.2.ebuild,2.53 KB, text/plain)
2009-01-03 22:23 UTC, Mounir Lamouri (volkmar) (RETIRED)
Details
Ebuild for playonlinux-3.3 (playonlinux-3.3.ebuild,2.47 KB, text/plain)
2009-01-25 00:50 UTC, Mounir Lamouri (volkmar) (RETIRED)
Details
Ebuild for playonlinux-3.3.1 (playonlinux-3.3.1.ebuild,2.47 KB, text/plain)
2009-02-18 23:14 UTC, Mounir Lamouri (volkmar) (RETIRED)
Details
Ebuild for playonlinux-3.4 (playonlinux-3.4.ebuild,2.47 KB, text/plain)
2009-04-04 17:01 UTC, Mounir Lamouri (volkmar) (RETIRED)
Details
Ebuild for playonlinux-3.8.7 (playonlinux-3.8.7.ebuild,3.16 KB, text/plain)
2010-12-24 18:23 UTC, (RETIRED)
Details
Ebuild for playonlinux-3.8.7 (playonlinux-3.8.7.ebuild,3.16 KB, text/plain)
2010-12-24 18:47 UTC, (RETIRED)
Details
Ebuild for playonlinux-3.8.7 (playonlinux-3.8.7.ebuild,3.16 KB, text/plain)
2010-12-24 18:52 UTC, (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description manwe 2008-03-13 16:28:48 UTC
Great software. It's set of scripts to easily configure wine (fonts, directx, etc.) and install tens of games. Ebuild should be quite easy. There's no compilation. POL depends on wxpython (python, wxGTK, GTK+) and lynx. 

Reproducible: Always

Steps to Reproduce:
Comment 1 Jan Kundrát (RETIRED) gentoo-dev 2008-04-14 19:30:34 UTC
*** Bug 217364 has been marked as a duplicate of this bug. ***
Comment 2 Mike Weissman 2008-05-14 21:40:43 UTC
Attached an attempt at an ebuild..definitely needs some work, seeming as it wouldn't work outside my chroot. I guess i can say i at least say i took a stab at it... and there isn't any documentation on their website...

A few caveats though:
1. Had to patch wxpython, as per http://bugs.gentoo.org/show_bug.cgi?id=219238
2. LICENSE FILE is missed spell in "src" download, had to add a temp fix for that.
3. Issue initial $DISPLAY issue, with the installer not detecting X Display
4. The actual installer wouldn't work outside a chroot. 

my emerge --info:
Portage 2.1.5_rc10 (default/linux/x86/2008.0, gcc-4.2.3, glibc-2.7-r2, 2.6.24-gentoo-r4 i686)
=================================================================
System uname: 2.6.24-gentoo-r4 i686 Intel(R) Pentium(R) D CPU 2.80GHz
Timestamp of tree: Wed, 14 May 2008 14:35:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.4.4-r6, 2.5.2-r3
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.4
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.62
sys-devel/automake:  1.7.9-r1, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.25-r2
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe -fomit-frame-pointer -g -ggdb"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/sudoers /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache collision-protect distlocks metadata-transfer nostrip parallel-fetch sandbox sfperms strict test unmerge-orphans userfetch userpriv"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ "
LDFLAGS=""
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/myebuilds"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl alsa apache2 avi bash-completion bzip2 cli compat cracklib crypt cups dbcpalsa dbus dri firefox ftp gdbm gpm hal iconv intel isdnlog java java5 java6 jbdc jboss jpeg kde logitech mailwrapper midi mp3 mpeg mudflap mysql ncurses nls nptl nptlonly ntp nvidia odbc opengl openmp pam pcre perl png postgres pppd python qt3 qt4 rar readline reflection sdk session spl ssl svg tcpd tiff tomcat truetype unicode vim vim-completion vim-syntax vim-with-x x86 xml xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Mike Weissman 2008-05-14 21:41:17 UTC
Created attachment 153169 [details]
first stab at ebuild.
Comment 4 Mike Weissman 2008-05-14 21:47:43 UTC
Comment on attachment 153169 [details]
first stab at ebuild. 

><HTML><HEAD/><BODY><PRE># Copyright 1999-2008 Gentoo Foundation
># Distributed under the terms of the GNU General Public License v2
># $Header: $
>
>inherit games
>
>
>DESCRIPTION="It's a set of scripts to easily configure wine (fonts, directx,
>etc.) and install tens of games."
>HOMEPAGE="http://www.playonlinux.com/en"
>
>SRC_URI="http://www.playonlinux.com/script_files/PlayOnLinux/2.7.2/PlayOnLinux_2.7.2.tar.gz"
>
>LICENSE="GPL"
>SLOT="0"
>KEYWORDS="~x86"
>IUSE=""
>
>S="${WORKDIR}/playonlinux"
>
>DEPEND="dev-lang/python
>                x11-libs/wxGTK
>                x11-libs/gtk+
>                www-client/lynx
                 app-arch/unzip
                 app-arch/cabextract
                 sys-devel/binutils
                 x11-terms/xterm
                 app-emulation/wine
                 media-gfx/imagemagick
                 app-arch/lzma-utils"
>RDEPEND="${DEPEND}
>                dev-python/wxpython
>"
>
>src_unpack() {
>        unpack ${A}
>        cd "${S}"
>}
>
>src_install() {
>        cd "${S}"
>        ./playonlinux || die "install failed"
>        einfo "Fix for License miss spelling"
>                        addpredict "${S}"
>                        addread "${S}"
>                        mv LICENCE LICENSE
>
>        dodoc CHANGELOG LICENSE || die "doc failed"
>}
></PRE></BODY></HTML>
Comment 5 Mike Weissman 2008-05-14 21:50:30 UTC
Created attachment 153171 [details]
first stab at ebuild. with fixed dependencies
Comment 6 Mike Weissman 2008-05-15 13:58:51 UTC
After some further testing and determination i figure a few things out and got a few other things not to work...Here is where i am left:

(Working on a better ebuild)

1. once i got the application to install outside chroot, i couldn't get any of the text to show up in the app, so i have no idea what it was saying. 

2. Getting some errors on printf invalid usage, RGB GLX Visual, and Xlib

3. no clue why you stated lynx was a decency for this app.   

still gonna try and work this out...

-Mike
Comment 7 Mounir Lamouri (volkmar) (RETIRED) gentoo-dev 2008-06-01 13:59:11 UTC
Created attachment 155099 [details]
Ebuild for playonlinux-3.0.1

I've made an update for playonlinux ebuild for 3.0.1 release that came out recently.
I was also seeking why lynx was on dependency and I found that : http://www.playonlinux.com/en/topic-904-Cant_start_playonlinux.html

Finaly, I add the ebuild to the Sunrise Overlay, here : http://overlays.gentoo.org/svn/proj/sunrise/sunrise/games-util/playonlinux/playonlinux-3.0.1.ebuild
Comment 8 Mike Weissman 2008-06-02 13:03:31 UTC
same issues that were in previous version in x86:

1. If you don't have DISPLAY set as an environmental variable it fails on :
Error: unable to open display localhost:0.0
2. No text is showing up on setup wizard, following errors get spit out:

 File "/usr/lib/python2.5/string.py", line 290, in split
    return s.split(sep, maxsplit)
AttributeError: 'NoneType' object has no attribute 'split'

Also that link your included regarding lynx is not exactly a reason, it's just someone saying you need to have it for it to work, ie. emulating exactly what the poster stated.  I know this might sound a bit annoying but mysterious dependencies bother me. I guess it just sheds light on the lack of software documentation. 

wxGTK dependency needs to be changed to >=x11-libs/WxGtk-2.8 because of what was  stated in the post you included. 

-mike
Comment 9 Mounir Lamouri (volkmar) (RETIRED) gentoo-dev 2008-06-02 14:29:28 UTC
(In reply to comment #8)
> same issues that were in previous version in x86:
> 
> 1. If you don't have DISPLAY set as an environmental variable it fails on :
> Error: unable to open display localhost:0.0
> 2. No text is showing up on setup wizard, following errors get spit out:
> 
>  File "/usr/lib/python2.5/string.py", line 290, in split
>     return s.split(sep, maxsplit)
> AttributeError: 'NoneType' object has no attribute 'split'
> 
> Also that link your included regarding lynx is not exactly a reason, it's just
> someone saying you need to have it for it to work, ie. emulating exactly what
> the poster stated.  I know this might sound a bit annoying but mysterious
> dependencies bother me. I guess it just sheds light on the lack of software
> documentation. 
> 
> wxGTK dependency needs to be changed to >=x11-libs/WxGtk-2.8 because of what
> was  stated in the post you included. 
> 
> -mike
> 

Actualy, I've the same problems. I only updated the ebuild and I was thinking the older one was working but it is not... So, I'm going to seek why
Comment 10 Mike Weissman 2008-06-03 15:22:29 UTC
A few things for a bit more investigating:

1. installer is failing also due to lack of permission on /dev/graphiccard for me /dev/nvidiactl; inserting an sandbox function for addpredict /dev/nvidiactl fixed it for me ; but that is only on a case to case basis
2. in the ${WORKDIR}/playonlinux/python/lib/lng.py they are using 'string' as a variable name: 
locale_test = string.split(locale_[0],"_") and also it looks like local_[0] isn't a string. 

I guess a work around would maybe be, if (locale_[0] == None): locale_[0] = '', not sure about this, i will test a few things.

-Mike

Comment 11 Mounir Lamouri (volkmar) (RETIRED) gentoo-dev 2008-06-10 23:45:38 UTC
Created attachment 156303 [details]
Ebuild for playonlinux-3.0.2

Actualy, there were many mistakes. Some from initial creator of the ebuild (playonlinux script is not an installation) and other from playonlinux team (the python error).
New version (3.0.2) fixes error so i've done a _working_ ebuild for playonlinux.

However, I'm still not entirely sure about dependencies.
Comment 12 Mounir Lamouri (volkmar) (RETIRED) gentoo-dev 2008-06-11 22:56:01 UTC
Created attachment 156433 [details]
Cleaned ebuild

Cleaned ebuild has been added to sunrise overlay.
If you are not used to overlays, you can install playonlinux with these commands :

emerge -av layman
echo "source /usr/portage/local/layman/make.conf" >> /etc/make.conf
echo "games-util/playonlinux ~x86" >> /etc/portage/package.keywords
layman -f -a sunrise
emerge -av playonlinux
Comment 13 manwe 2008-06-14 23:26:48 UTC
Works on 64bit. You can add ~amd64 keyword.
Comment 14 Mounir Lamouri (volkmar) (RETIRED) gentoo-dev 2008-06-19 23:07:07 UTC
Created attachment 157685 [details]
Updated ebuild : 3.0.5

I have added -* and ~amd64 keywords.
Actually, ~x86-fbsd should be tested coz it's a keyword of wine (wine is -* ~amd64 ~x86 ~x86-fbsd so playonlinux can't have more keywords).
No one could test it ?

~amd64 has not been added to sunrise because wine is hard masked in nomultilib profile (an amd64 profile) and playonlinux should be too but profile is not supported in portage overlays :(
Comment 15 Mounir Lamouri (volkmar) (RETIRED) gentoo-dev 2008-06-26 17:22:14 UTC
Created attachment 158535 [details]
Updated ebuild : 3.0.7

Here is an ebuild for the new playonlinux release (3.0.7).

Also on sunrise but without ~amd64 flag (see post below)
Comment 16 manwe 2008-09-11 21:45:30 UTC
Created attachment 165219 [details]
Updated ebuild : 3.1.0

Another version
Comment 17 Mounir Lamouri (volkmar) (RETIRED) gentoo-dev 2008-09-15 14:40:40 UTC
Created attachment 165491 [details]
Updated and fixed ebuild : 3.1

manwe, your ebuild had some problems :
- the official release version is not 3.1.0 but 3.1,
- the new release add a daemon and your ebuild does not install it.
Comment 18 Matija "hook" Šuklje 2009-01-03 11:28:26 UTC
3.2.2 is out.
Comment 19 Mounir Lamouri (volkmar) (RETIRED) gentoo-dev 2009-01-03 22:23:41 UTC
Created attachment 177276 [details]
playonlinux 3.2.2 ebuild

New ebuild.
Actually, no changes since the previous version.
Comment 20 Raphael Dehousse 2009-01-08 20:41:58 UTC
(In reply to comment #19)
> Created an attachment (id=177276) [edit]
> playonlinux 3.2.2 ebuild
> 
> New ebuild.
> Actually, no changes since the previous version.
> 

Could you also add it in sunrise please ?
Thanks !
Comment 21 Mounir Lamouri (volkmar) (RETIRED) gentoo-dev 2009-01-09 12:47:15 UTC
(In reply to comment #20)
> Could you also add it in sunrise please ?
> Thanks !
> 

I've just add it to sunrise (rev 7593). It should be available in a few days.
Comment 22 Mounir Lamouri (volkmar) (RETIRED) gentoo-dev 2009-01-25 00:50:09 UTC
Created attachment 179617 [details]
Ebuild for playonlinux-3.3
Comment 23 Mounir Lamouri (volkmar) (RETIRED) gentoo-dev 2009-02-18 23:14:48 UTC
Created attachment 182487 [details]
Ebuild for playonlinux-3.3.1

Version bump
Comment 24 Mounir Lamouri (volkmar) (RETIRED) gentoo-dev 2009-04-04 17:01:49 UTC
Created attachment 187310 [details]
Ebuild for playonlinux-3.4

Version bump.
(bumped in gentoo sunrise overlay too)
Comment 25 Tomáš Chvátal (RETIRED) gentoo-dev 2009-04-04 17:04:40 UTC
This ebuild is in sunrise overlay, its maintainer will add the direct link to this bug when it gets reviewed.
Comment 26 Alan Hourihane 2009-05-13 15:01:07 UTC
playonlinux needs a bump to 3.5. Thanks.
Comment 27 Mounir Lamouri (volkmar) (RETIRED) gentoo-dev 2009-05-16 10:51:45 UTC
The ebuild has been added into the tree : app-emulation/playonlinux
Keyworded ~x86. If you want another keyword, please open a new bug for it.

The ebuild has been bumped to 3.5 in the process (Thanks Alan for the reminder). For next version bump request, please file a new bug.
Comment 28 (RETIRED) 2010-12-24 18:23:34 UTC
Created attachment 257972 [details]
Ebuild for playonlinux-3.8.7
Comment 29 (RETIRED) 2010-12-24 18:47:09 UTC
Created attachment 257973 [details]
Ebuild for playonlinux-3.8.7
Comment 30 (RETIRED) 2010-12-24 18:52:35 UTC
Created attachment 257975 [details]
Ebuild for playonlinux-3.8.7