Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
League of Legends on gentoo
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gamers & Players
View previous topic :: View next topic  
Author Message
ttouch
n00b
n00b


Joined: 04 Oct 2014
Posts: 13

PostPosted: Mon Mar 16, 2015 9:17 pm    Post subject: League of Legends on gentoo Reply with quote

Hello,

I've been trying to make LoL work on gentoo for about a week.
I install it with PoL but I get "Did not receive response from server".
I see online solutions about 32-bit gnutls, but I don't know which is the proper way to install it.
Should I enable abi_x86_32 and recompile almost my whole system? :/
Back to top
View user's profile Send private message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 6051
Location: Removed by Neddy

PostPosted: Mon Mar 16, 2015 9:23 pm    Post subject: Reply with quote

Yes,
Lol is 32bit
_________________
Quote:
Removed by Chiitoo
Back to top
View user's profile Send private message
kon14
n00b
n00b


Joined: 27 Nov 2014
Posts: 34

PostPosted: Sun Mar 22, 2015 9:33 am    Post subject: Re: League of Legends on gentoo Reply with quote

ttouch wrote:
Should I enable abi_x86_32 and recompile almost my whole system? :/


Emul packages may generally be outdated, untrustworthy or even non-existent (not everything is included in an emul package. it's not too rare an occasion for someone not to find a package in there).
Portage has been migrating to multilib support for a long while and I've been using it without issues myselft for nearly a year. If you're positive about rebulding your world once then go for it.

What I do is I just add the abi_x86_32 use flag to any package that I need to be built as 32bit in package.use.
Make sure you've unmasked the abi_x86_32 flag, masked app-emulation/emul-linux-x86-* in package.mask and rebuilt your world.
You're going to get lots of dependency issues etc

A good place to start should be the wiki: https://wiki.gentoo.org/wiki/Multilib_System_without_emul-linux_Packages
By adding those packages to your package.use you should also save a lot of time from reading emerge output and pasting package versions.
Those packages won't be installed unless needed so don't pay much attention to them.

Finally execute: emerge --update --newuse --deep --with-bdeps=y world
I wouldn't add --keep-going myself.
You're probably going to be missing more than the ebuilds mentioned in the wiki so just add them in package.use yourself.
Back to top
View user's profile Send private message
ttouch
n00b
n00b


Joined: 04 Oct 2014
Posts: 13

PostPosted: Thu Mar 26, 2015 7:40 pm    Post subject: Re: League of Legends on gentoo Reply with quote

kon14 wrote:
ttouch wrote:
Should I enable abi_x86_32 and recompile almost my whole system? :/


Emul packages may generally be outdated, untrustworthy or even non-existent (not everything is included in an emul package. it's not too rare an occasion for someone not to find a package in there).
Portage has been migrating to multilib support for a long while and I've been using it without issues myselft for nearly a year. If you're positive about rebulding your world once then go for it.

I have skype and steam that depend exclusively on emul- packages.
I tried what wiki said and all I got was a headache.
So I set up a 32 bit chroot to be able to run everything smoothly.

The real problem: I get "Did not receive response from server" when I try to login to LoL from the luncher, and I had the same problem on 64bit env (native).
I've searched a hell lot for it through the net and everyone said that I'm missing 32bit gnutls libs.
I installed gnutls (in the chroot) and got still the same problem. Any ideas?
Back to top
View user's profile Send private message
steveL
Watchman
Watchman


Joined: 13 Sep 2006
Posts: 5153
Location: The Peanut Gallery

PostPosted: Fri Mar 27, 2015 2:41 pm    Post subject: Re: League of Legends on gentoo Reply with quote

ttouch wrote:
I installed gnutls (in the chroot) and got still the same problem. Any ideas?

Are you bind-mounting /dev (/proc and /sys) into the chroot?
Back to top
View user's profile Send private message
ttouch
n00b
n00b


Joined: 04 Oct 2014
Posts: 13

PostPosted: Sun Mar 29, 2015 1:19 pm    Post subject: Re: League of Legends on gentoo Reply with quote

steveL wrote:
ttouch wrote:
I installed gnutls (in the chroot) and got still the same problem. Any ideas?

Are you bind-mounting /dev (/proc and /sys) into the chroot?

Yes. Here is my init.d script:
Code:
#!/sbin/runscript

depend() {
   need localmount
   need bootmisc
}

start() {
    ebegin "Mounting 32bit chroot dirs"
    mount -o bind /dev ~ttouch/.chroot32/dev >/dev/null
    mount -o bind /dev/pts ~ttouch/.chroot32/dev/pts >/dev/null &
    mount -o bind /dev/shm ~ttouch/.chroot32/dev/shm >/dev/null &
    mount -o bind /proc ~ttouch/.chroot32/proc >/dev/null
#    mount -o bind /proc/bus/usb ~ttouch/.chroot32/proc/bus/usb >/dev/null &
    mount -o bind /sys ~ttouch/.chroot32/sys >/dev/null &
    mount -o bind /tmp ~ttouch/.chroot32/tmp >/dev/null &
    mount -o bind /usr/portage ~ttouch/.chroot32/usr/portage/ >/dev/null &
    eend $? "An error occured while attempting to mount 32bit chroot directories"
    ebegin "Copying 32bit chroot files"
    cp -pf /etc/resolv.conf ~ttouch/.chroot32/etc >/dev/null &
    cp -pf /etc/passwd ~ttouch/.chroot32/etc >/dev/null &
    cp -pf /etc/shadow ~ttouch/.chroot32/etc >/dev/null &
    cp -pf /etc/group ~ttouch/.chroot32/etc >/dev/null &
    cp -pf /etc/gshadow ~ttouch/.chroot32/etc >/dev/null &
    cp -pf /etc/hosts ~ttouch/.chroot32/etc > /dev/null &
    cp -Ppf /etc/localtime ~ttouch/.chroot32/etc >/dev/null &
    eend $? "An error occured while attempting to copy 32 bits chroot files."
}

stop() {
    ebegin "Unmounting 32bit chroot dirs"
    umount -f ~ttouch/.chroot32/dev/pts >/dev/null
    umount -f ~ttouch/.chroot32/dev/shm >/dev/null
    umount -f ~ttouch/.chroot32/dev >/dev/null &
#    umount -f ~ttouch/.chroot32/proc/bus/usb >/dev/null
    umount -f ~ttouch/.chroot32/proc >/dev/null &
    umount -f ~ttouch/.chroot32/sys >/dev/null &
    umount -f ~ttouch/.chroot32/tmp >/dev/null &
    umount -f ~ttouch/.chroot32/usr/portage/ >/dev/null &
    eend $? "An error occured while attempting to unmount 32bit chroot directories"
Back to top
View user's profile Send private message
steveL
Watchman
Watchman


Joined: 13 Sep 2006
Posts: 5153
Location: The Peanut Gallery

PostPosted: Sun Mar 29, 2015 5:21 pm    Post subject: Re: League of Legends on gentoo Reply with quote

You need to replace & in your script with &&; the former is the "background" operator, not boolean && on exit status.

Just what jumped out at me.
Back to top
View user's profile Send private message
ttouch
n00b
n00b


Joined: 04 Oct 2014
Posts: 13

PostPosted: Sun Mar 29, 2015 9:37 pm    Post subject: Re: League of Legends on gentoo Reply with quote

steveL wrote:
You need to replace & in your script with &&; the former is the "background" operator, not boolean && on exit status.

Just what jumped out at me.

Wow, yea, never thought of it, thanks :P
Back to top
View user's profile Send private message
szatox
Advocate
Advocate


Joined: 27 Aug 2013
Posts: 3135

PostPosted: Sun Mar 29, 2015 9:53 pm    Post subject: Reply with quote

A quick hint on dismantling that chroot, you can tac /proc/mounts to get mounted filesystem in reverse order (important with nested mountpoints), pipe it to `cut -d ' ' -f 2`, grep for your chroot's root and umount in a loop.
This should be more resilient (what if you mount something extra manually inside that chroot?) and let you limit updates to start function.

Also, there is hardly any point in redirecting mount's output to /dev/null. It's not very verbose :)
Back to top
View user's profile Send private message
kon14
n00b
n00b


Joined: 27 Nov 2014
Posts: 34

PostPosted: Tue Mar 31, 2015 10:45 am    Post subject: Re: League of Legends on gentoo Reply with quote

ttouch wrote:
kon14 wrote:
ttouch wrote:
Should I enable abi_x86_32 and recompile almost my whole system? :/


Emul packages may generally be outdated, untrustworthy or even non-existent (not everything is included in an emul package. it's not too rare an occasion for someone not to find a package in there).
Portage has been migrating to multilib support for a long while and I've been using it without issues myselft for nearly a year. If you're positive about rebulding your world once then go for it.

I have skype and steam that depend exclusively on emul- packages.
I tried what wiki said and all I got was a headache.
So I set up a 32 bit chroot to be able to run everything smoothly.


Hmm, I'm glad you got everything sorted out, though the above shouldn't even need a wiki, there's no need for emul- packages for skype or steam.
If you ever feel like giving it another shot just find out the packages in the emul package collections needed by those and install them.
Skype probably reruires qtlibs, alsa, x etc

I probably forgot to mention this in the previous post, I think you should automatically get the right non emul dependencies if you selected one of no-emul-linux profiles using eselect profile.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gamers & Players All times are GMT
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