From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:60643) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hm0XX-0003Wj-3U for guix-patches@gnu.org; Fri, 12 Jul 2019 14:45:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hm0XV-0007yu-Vg for guix-patches@gnu.org; Fri, 12 Jul 2019 14:45:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:60143) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hm0XV-0007yo-Q2 for guix-patches@gnu.org; Fri, 12 Jul 2019 14:45:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hm0XV-0001l7-J3 for guix-patches@gnu.org; Fri, 12 Jul 2019 14:45:01 -0400 Subject: [bug#36535] [PATCH] gnu: gobject-introspection: Update absolute-shlib-path.patch. Resent-Message-ID: From: Marius Bakke In-Reply-To: <87zhlopjzv.fsf@devup.no> References: <20190707104803.23662-1-mail@cbaines.net> <87d0il9deh.fsf@cbaines.net> <875zocr4hl.fsf@devup.no> <87bly4a566.fsf@cbaines.net> <87zhlopjzv.fsf@devup.no> Date: Fri, 12 Jul 2019 20:44:08 +0200 Message-ID: <87zhljks93.fsf@devup.no> MIME-Version: 1.0 Content-Type: text/plain List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Christopher Baines Cc: 36535@debbugs.gnu.org severity 36535 important >>>> ++def _get_default_fallback_libpath(): >>>> ++ # Newer multiple-output-optimized stdenv has an environment variable >>>> ++ # $outputLib which in turn specifies another variable which then is used as >>>> ++ # the destination for the library contents (${!outputLib}/lib). >>>> ++ store_path = os.environ.get(os.environ.get("outputLib")) if "outputLib" in os.environ else None >>>> ++ if store_path is None: >>>> ++ outputs = os.environ.get("outputs", "out").split() >>> >>> gnu-build-system does not currently export an "outputs" variable. >>> Perhaps it should? >> >> Ah, I didn't realise this part of the patch was as Nix specific as it >> is... >> >> At least for the change I was trying to affect, this seems to be >> probably redundant, or somehow doing the job. Maybe this part of the >> patch relating to the fallback_libpath should be removed. > > I'd keep the "$outputs" logic, it sounds like a useful and easy change > to do in gnu-build-system, although maybe not for this 'core-updates' > round. We can use it in package recipes for fun and profit meanwhile. We now have a user of the $outputs variable: https://git.savannah.gnu.org/cgit/guix.git/commit/?id=7555d539245ff3456848c02d61f9e601ee5af463 Incidentally, the package was broken because of the very same feature :-) But we can not merge this with the hard-coded /gnu/store paths, as that is likely to cause strange problems for users with a non-default store prefix. Unless someone steps up to fix it within a few days, I think we'll have to revert it for now.