From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Subject: bug#30756: GCC >= 6 '-isystem' and C_INCLUDE_PATH behavior changed, breaking Date: Thu, 23 Jan 2020 21:45:54 +0100 Message-ID: <87wo9hnbp9.fsf@gnu.org> References: <87y2u3qh8b.fsf@gnu.org> <87r1zulsgc.fsf@gmail.com> <87sgkaik08.fsf@gnu.org> <878sm0kx8b.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:49760) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iujNX-0005Ps-KU for bug-guix@gnu.org; Thu, 23 Jan 2020 15:47:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iujNW-0005ny-Jw for bug-guix@gnu.org; Thu, 23 Jan 2020 15:47:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:47262) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iujNW-0005nZ-Gq for bug-guix@gnu.org; Thu, 23 Jan 2020 15:47:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iujNW-0002Uf-EM for bug-guix@gnu.org; Thu, 23 Jan 2020 15:47:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <878sm0kx8b.fsf@gmail.com> (Maxim Cournoyer's message of "Tue, 21 Jan 2020 22:04:36 -0500") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane-mx.org@gnu.org Sender: "bug-Guix" To: Maxim Cournoyer Cc: reza.housseini@gmx.ch, 30756@debbugs.gnu.org, Reza Housseini Hello! Thanks for investigating. Maxim Cournoyer skribis: > It'd be very cool to embed arbitrary logic such as sorting, filtering, > or whatever else we need doing directly in a search path specification > :-). Do you thing this could be done? Perhaps Gexps could be useful > for this? No, that sounds pretty unreasonable to me. :-) However, I=E2=80=99m sure we should be able to sort things appropriately in guix/build-system/gnu.scm and/or in =E2=80=98%final-inputs=E2=80=99, no? =E2=80=98%final-inputs=E2=80=99 order actually looks good: --8<---------------cut here---------------start------------->8--- scheme@(gnu packages commencement)> (map car %final-inputs) $2 =3D ("tar" "gzip" "bzip2" "xz" "file" "diffutils" "patch" "findutils" "g= awk" "sed" "grep" "coreutils" "make" "bash" "ld-wrapper" "binutils" "gcc" "= libc" "libc:static" "locales") --8<---------------cut here---------------end--------------->8--- But then it breaks when we add everything: --8<---------------cut here---------------start------------->8--- scheme@(guile-user)> (map car (bag-transitive-inputs (package->bag coreutil= s))) $5 =3D ("source" "perl" "tar" "gzip" "bzip2" "xz" "file" "diffutils" "patch= " "findutils" "gawk" "sed" "grep" "coreutils" "make" "bash" "ld-wrapper" "b= inutils" "gcc" "libc" "libc:static" "locales" "acl" "gmp" "libcap" "kernel-= headers") --8<---------------cut here---------------end--------------->8--- Here acl, gmp, and libcap should be before libc and all (=E2=80=98bag-transitive-inputs=E2=80=99 is used by =E2=80=98bag->derivatio= n=E2=80=99.) So I think we should arrange to have the right order in =E2=80=98bag->derivation=E2=80=99. WDYT? Ludo=E2=80=99.