From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: libpthread fails to build as an add-on Date: Sun, 23 Mar 2014 22:38:30 +0100 Message-ID: <87d2hcr3xl.fsf@gnu.org> References: <87y5078wfh.fsf@gnu.org> <20140318145504.GA30160@debian> <8761nb8pcu.fsf@gnu.org> <87y507fdpg.fsf@gnu.org> <87vbva54ff.fsf@gnu.org> <87eh1x6ebe.fsf@gnu.org> <87y504wqiu.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]:44141) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WRq6L-00027O-Tl for Guix-devel@gnu.org; Sun, 23 Mar 2014 17:38:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WRq6D-0007n2-Fy for Guix-devel@gnu.org; Sun, 23 Mar 2014 17:38:41 -0400 In-Reply-To: (Manolis Ragkousis's message of "Sun, 23 Mar 2014 09:17:36 +0000") 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: Manolis Ragkousis Cc: Guix-devel@gnu.org, Samuel Thibault , bug-hurd@gnu.org Manolis Ragkousis skribis: > In the debian package I saw there are 2 patches that add this. > >> +libc_add_on_canonical=3Dlibpthread >> +libc_add_on_subdirs=3D. > > How does this change the configure process? Libc=E2=80=99s top-level configure file expects these two variables to be s= et by the add-on=E2=80=99s =E2=80=98configure=E2=80=99 script: --8<---------------cut here---------------start------------->8--- libc_add_on_frag=3D$libc_add_on_srcdir/configure libc_add_on_canonical=3D libc_add_on_config_subdirs=3D if test -r "$libc_add_on_frag"; then AC_MSG_NOTICE(running configure fragment for add-on $libc_add_on) libc_add_on_canonical=3Dunknown libc_add_on_subdirs=3D . "$libc_add_on_frag" ##### =E2=86=90 here, runs libpthread/c= onfigure test -z "$libc_add_on" || { configured_add_ons=3D"$configured_add_ons $libc_add_on" if test "x$libc_add_on_canonical" =3D xunknown; then AC_MSG_ERROR(fragment must set \$libc_add_on_canonical) fi --8<---------------cut here---------------end--------------->8--- So when libpthread is built as an add-on, libpthread/configure must set them, AFAIU. HTH, Ludo=E2=80=99.