You are not logged in.

#1 2006-11-25 06:16:58

bgc1954
Member
From: Edmonton, AB, Canada
Registered: 2006-03-14
Posts: 1,160

Running wine in Arch64

Hi all,
Sorry if this has been addressed in the past but I didn't find it in my searches.  I am giving Arch64 a go after using Arch32 for a year or more as my main o/s.  I swapped my mb and cpu to an Asus K8V-MX and a Sempron 64.  So far I like Arch64 but have not gotten wine to run.  I don't really want to chroot my Arch32 and am wondering if there are other options?  I run Arch32 as well as about 20 different Linux variations on my slaved 250 Gb HD.  I need to run DVDshrink for my video compilations.  It works great in Arch32 and I would like to be able to run a 64 bit system full-time.  Any help would be appreciated.
Thanx


Time is a great teacher, but unfortunately it kills all its pupils ... - Louis Hector Berlioz

Offline

#2 2006-11-25 08:19:04

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Running wine in Arch64

bgc1954 wrote:

So far I like Arch64 but have not gotten wine to run.

You can't without some sort of chroot environment. There's simply no way around it. Wine64 (eventually when it works) will only run 64 bit binaries. Sucky!

Offline

#3 2006-11-25 17:27:13

bgc1954
Member
From: Edmonton, AB, Canada
Registered: 2006-03-14
Posts: 1,160

Re: Running wine in Arch64

You're right, it does suck.  I guess I'll just keep doing what I can in arch64 and chroot wine when I need it if that's my only option for now.


Time is a great teacher, but unfortunately it kills all its pupils ... - Louis Hector Berlioz

Offline

#4 2006-11-28 08:07:05

Noneus
Member
From: Munich
Registered: 2006-09-26
Posts: 118
Website

Re: Running wine in Arch64

I have wine running without chroot. Quite ugly though. I made some additional lib32-packages and simply installed the i686-wine pkg.

Offline

#5 2006-11-30 19:55:40

bgc1954
Member
From: Edmonton, AB, Canada
Registered: 2006-03-14
Posts: 1,160

Re: Running wine in Arch64

Noneus,
If you wouldn't mind I would be interested in more details like what lib32 packages you needed to get i686 wine to run.  Any info will be much appreciated.

Thanks


Time is a great teacher, but unfortunately it kills all its pupils ... - Louis Hector Berlioz

Offline

#6 2007-02-21 07:46:27

setti
Member
Registered: 2006-07-12
Posts: 20

Re: Running wine in Arch64

yep im interested too!

Offline

#7 2007-02-21 15:05:34

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Running wine in Arch64

You can install bin32-wine and all of it's supporting libraries from AUR. The last time I looked, the package build had to be modified to fit the current version of Wine.

Last edited by skottish (2007-02-21 15:07:37)

Offline

#8 2007-02-21 15:20:29

Pierre
Developer
From: Bonn
Registered: 2004-07-05
Posts: 1,964
Website

Re: Running wine in Arch64

Well, I think all needed lib32-packages are allready in [community]. They are not the same as those which can be found in aur.

Offline

#9 2007-02-22 00:38:51

tgc
Member
From: DK
Registered: 2004-03-09
Posts: 96

Re: Running wine in Arch64

Pierre wrote:

Well, I think all needed lib32-packages are allready in [community]. They are not the same as those which can be found in aur.

I just made and installed a lib32-wine pkg and it runs! smile
So far I've only tested small applications so i don't know if it works for everything. It complained about libxml2 not being 32bit so I created a lib32 pkg for that as well. If someone wants to add the PKGBUILDs to AUR, feel free to do it.

lib32-wine PKGBUILD:

pkgname=lib32-wine
pkgname32=${pkgname/lib32-/}
pkgver=0.9.31
pkgrel=1
pkgrel32=1
pkgdesc="Emulator of the Windows 3.x and Win32 APIs"
arch=(x86_64)
url="http://www.winehq.org/"
groups=lib32
depends=('lib32-libxxf86vm' 'lib32-libxml2' 'lib32-alsalib')
source=(ftp://archlinux.org/current/os/i686/${pkgname32}-${pkgver}-${pkgrel32}.pkg.tar.gz)
#md5sums=('')

install-dir() {
  mkdir -p $2
  rmdir $2
  cp -rPf $1 $2
}

lib32-install() {
  install-dir $startdir/src/$1 $startdir/pkg/opt/lib32/$1
}

build() {
  lib32-install usr
  lib32-install etc

}

lib32-libxml2 PKGBUILD:

pkgname=lib32-libxml2
pkgname32=${pkgname/lib32-/}
pkgver=2.6.27
pkgrel=1
pkgrel32=1
pkgdesc="XML parsing library, version 2"
arch=(x86_64)
url="http://www.xmlsoft.org/"
groups=lib32
depends=('lib32-zlib' 'lib32-readline')
source=(ftp://archlinux.org/current/os/i686/${pkgname32}-${pkgver}-${pkgrel32}.pkg.tar.gz)
#md5sums=('')

install-dir() {
  mkdir -p $2
  rmdir $2
  cp -rPf $1 $2
}

lib32-install() {
  install-dir $startdir/src/$1 $startdir/pkg/opt/lib32/$1
}

build() {
  lib32-install usr/lib
  lib32-install usr/bin

}

Offline

#10 2007-02-22 10:54:33

zeus
Member
From: Korolev / Russia
Registered: 2006-09-19
Posts: 117
Website

Re: Running wine in Arch64

please use AUR for PKGBUILDs!
2) i think for 1st PKGBUILD - using app32 instead of lib32 more correct

Offline

#11 2007-02-26 17:24:38

bgc1954
Member
From: Edmonton, AB, Canada
Registered: 2006-03-14
Posts: 1,160

Re: Running wine in Arch64

I've been preoccupied with other 64 bit distros for the last little while and hadn't checked this post.  It's nice to see others interested in wine and someone's working on a solution.  The PKGBUILD for lib32-libxml worked fine but I tried your PKGBUILD for lib32-wine (and agree that it probably should be app32 or something else) and it didn't work for me.  The first problem was in the depends= part of the PKGBUILD as you have a slight typo.  It should be "lib32-alsa-lib" not "lib32-alsalib".  After I got that straightened out it still wouldn't build since it said there is no such file as wine-0.9.31-1.pkg.tar.gz in the Arch repositories.  Then I found another typo in your source= part of the PKGBUILD.  Just change the "/current/" to "/extra/" and wine will download.  I decided to check out the PKGBUILD in AUR and used that after changing the depends and the wine version number to tgc's PKGBUILD.  So between the two I got it to build and install okay.  I'll post more if this actually works with my apps.

Last edited by bgc1954 (2007-02-26 17:49:00)


Time is a great teacher, but unfortunately it kills all its pupils ... - Louis Hector Berlioz

Offline

#12 2007-02-27 16:19:32

bgc1954
Member
From: Edmonton, AB, Canada
Registered: 2006-03-14
Posts: 1,160

Re: Running wine in Arch64

Eureka!!  It works with DVD Shrink very well.  I just blew away my Arch 32 bit and replaced it with Arch 64 bit and all the apps I want and need are running great.  Just built Kmymoney2 from source (too lazy to work on a PKGBUILD right now) and it works fine as long as you install libofx first.  Thanks again for everyones help.


Time is a great teacher, but unfortunately it kills all its pupils ... - Louis Hector Berlioz

Offline

#13 2007-02-27 19:42:55

iBertus
Member
From: Greenville, NC
Registered: 2004-11-04
Posts: 2,228

Re: Running wine in Arch64

zeus wrote:

please use AUR for PKGBUILDs!
2) i think for 1st PKGBUILD - using app32 instead of lib32 more correct

I believe the current correct nomenclature is bin32-wine. The package is in AUR.

Last edited by iBertus (2007-02-27 19:50:02)

Offline

#14 2007-03-01 07:17:20

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Running wine in Arch64

bgc1954 wrote:

Just built Kmymoney2 from source (too lazy to work on a PKGBUILD right now) and it works fine as long as you install libofx first.

[bump]
libofx is already in community for 64 bit. After installing that you can use Snowman's KMyMoney2 PKGBUILD (with some SourceForge edits).
[/bump]

Last edited by skottish (2007-03-01 07:19:57)

Offline

#15 2007-03-01 07:19:15

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Running wine in Arch64

iBertus wrote:
zeus wrote:

please use AUR for PKGBUILDs!
2) i think for 1st PKGBUILD - using app32 instead of lib32 more correct

I believe the current correct nomenclature is bin32-wine. The package is in AUR.

With the libxml2 file from above, you can simply download and install the official Arch Wine package through the regular pacman mechanism.

Offline

#16 2007-07-08 15:41:11

fluke
Member
From: Shaoguan Univ., PRC
Registered: 2005-08-12
Posts: 241
Website

Re: Running wine in Arch64

My bin32-wine just take all the time to wait(), why?

[root@sgu bin32-wine]# strace winecfg
execve("/usr/bin/winecfg", ["winecfg"], [/* 60 vars */]) = 0
brk(0)                                  = 0x599000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2abfd4d97000
uname({sys="Linux", node="sgu.ospattern.net", ...}) = 0

  /* ......  strip many msg here   .. . */

stat(".", {st_mode=S_IFDIR|S_ISGID|0755, st_size=208, ...}) = 0
stat("/opt/wine/bin/linux32", 0x7fff84c08c40) = -1 ENOENT (No such file or directory)
stat("/home/fluke//bin/linux32", 0x7fff84c08c40) = -1 ENOENT (No such file or directory)
stat("/usr/local/bin/linux32", 0x7fff84c08c40) = -1 ENOENT (No such file or directory)
stat("/bin/linux32", 0x7fff84c08c40)    = -1 ENOENT (No such file or directory)
stat("/usr/bin/linux32", {st_mode=S_IFREG|0755, st_size=5304, ...}) = 0
stat("/usr/bin/linux32", {st_mode=S_IFREG|0755, st_size=5304, ...}) = 0
rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x2b6e266a2780) = 28454
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGINT, {0x431460, [], SA_RESTORER, 0x2b6e264911a0}, {SIG_DFL}, 8) = 0
wait4(-1,  <unfinished ...>
[root@sgu bin32-wine]#

Offline

#17 2007-07-08 16:22:50

fluke
Member
From: Shaoguan Univ., PRC
Registered: 2005-08-12
Posts: 241
Website

Re: Running wine in Arch64

I found /usr/bin/wine was only a shell script, then I straced " linux32 /opt/wine/bin/wine"

[root@sgu bin32-wine]# strace linux32 /opt/wine/bin/wine
execve("/usr/bin/linux32", ["linux32", "/opt/wine/bin/wine"], [/* 60 vars */]) = 0
brk(0)                                  = 0x501000
...........
........
getrlimit(RLIMIT_STACK, {rlim_cur=-4286578688, rlim_max=-579134936380866544}) = 0
uname({sys="Linux", node="sgu.ospattern.net", ...}) = 0
mmap2(NULL, 8392704, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0x801000) = 0xfffffffff74c5000
munmap(0xf74c5000, 8392704)             = 0
futex(0x8049dc8, FUTEX_WAIT, 134514510, NULL <unfinished ...>

What kind of  race condition does it wait for this time?

Offline

Board footer

Powered by FluxBB