From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?B?5a6L5paH5q2m?= Subject: Re: [PATCH 1/2] gnu: sdl: Allow dlopen for OpenGL. Date: Mon, 23 Mar 2015 22:04:25 +0800 Message-ID: <87y4mnbyja.fsf@gmail.com> References: <1426924046-10364-1-git-send-email-iyzsong@gmail.com> <87384y3uwf.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59311) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ya2xb-0007Xt-Nw for guix-devel@gnu.org; Mon, 23 Mar 2015 10:04:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ya2xa-0004oS-Q8 for guix-devel@gnu.org; Mon, 23 Mar 2015 10:04:07 -0400 In-Reply-To: <87384y3uwf.fsf@gnu.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel@gnu.org Ludovic Court=C3=A8s writes: > =E5=AE=8B=E6=96=87=E6=AD=A6 skribis: > >> Fixes a regression introduced in 666aa99. >> Reported by Felipe L=C3=B3pez and David Thompson. >> >> * gnu/packages/sdl.scm (sdl)[inputs]: Add glu. >> [arguments]<#:configure-flags>: Replace '--disable-sdl-dlopen' with >> '--disable-alsa-shared --disable-pulseaudio-shared --disable-x11-share= d'. > > [...] > >> --- a/gnu/packages/sdl.scm >> +++ b/gnu/packages/sdl.scm >> @@ -60,8 +60,11 @@ >> (build-system gnu-build-system) >> (arguments >> '(;; Explicitly link against shared libraries instead of dlopening= them. >> - ;; For X11, ALSA, PulseAudio, etc. >> - #:configure-flags '("--disable-sdl-dlopen") >> + ;; For X11, ALSA, and PulseAudio. >> + ;; OpenGL library is still dlopened at runtime. >> + #:configure-flags '("--disable-alsa-shared" >> + "--disable-pulseaudio-shared" >> + "--disable-x11-shared") > > So without these flags libpulse.so, libalsa.so, etc. are dlopened? > (=E2=80=9Cdisable shared=E2=80=9D is a bit misleading in the flag names.) Yes. > >> (native-inputs `(("pkg-config" ,pkg-config))) >> (inputs `(("libxrandr" ,libxrandr) >> ("mesa" ,mesa) >> + ("glu" ,glu) > > Because of --disable-x11-shared, glu must be found at configure time, > right? No, without glu, SDL's configure reported with: checking for OpenGL (GLX) support... no Maybe it's because the mesa update from 8.0.5 to 10.4.0? I think many packages had adding glu to inputs due to this, but we missed SDL :) > Thanks, > Ludo=E2=80=99.