From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:47988) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hqff0-0000ZX-Pp for guix-patches@gnu.org; Thu, 25 Jul 2019 11:28:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hqfez-0000KN-Tp for guix-patches@gnu.org; Thu, 25 Jul 2019 11:28:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:59673) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hqfez-0000KJ-PZ for guix-patches@gnu.org; Thu, 25 Jul 2019 11:28:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hqfez-0007SM-KR for guix-patches@gnu.org; Thu, 25 Jul 2019 11:28:01 -0400 Subject: [bug#36477] [PATCH 27/31] gnu: pkg-config: Fix cross-compilation. Resent-Message-ID: References: <20190708095913.3460-1-m.othacehe@gmail.com> <20190708095913.3460-28-m.othacehe@gmail.com> <87d0iknzvw.fsf@devup.no> From: Mathieu Othacehe In-reply-to: <87d0iknzvw.fsf@devup.no> Date: Thu, 25 Jul 2019 17:27:50 +0200 Message-ID: <87h87ai16x.fsf@gmail.com> 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: Marius Bakke Cc: 36477@debbugs.gnu.org > Are these indicative of a problem in our cross stack, or a bug in the > pkg-config build system/code? > > LGTM anyway. No those bits seems to be needed because of a problem in pkg-config itself. See this nixpkg pkg-config package snippet: --8<---------------cut here---------------start------------->8--- configureFlags = [ "--with-internal-glib" ] ++ optional (stdenv.isSunOS) [ "--with-libiconv=gnu" "--with-system-library-path" "--with-system-include-path" "CFLAGS=-DENABLE_NLS" ] # Can't run these tests while cross-compiling ++ optional (stdenv.hostPlatform != stdenv.buildPlatform) [ "glib_cv_stack_grows=no" "glib_cv_uscore=no" "ac_cv_func_posix_getpwuid_r=yes" "ac_cv_func_posix_getgrgid_r=yes" ]; --8<---------------cut here---------------end--------------->8--- Mathieu