From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jack Hill Subject: Re: Help with $SHELL in perl package for backuppc Date: Thu, 22 Aug 2019 10:49:53 -0400 (EDT) Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:36975) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i0oPa-0003gB-ON for guix-devel@gnu.org; Thu, 22 Aug 2019 10:50:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i0oPX-0006FL-70 for guix-devel@gnu.org; Thu, 22 Aug 2019 10:50:02 -0400 Received: from minsky.hcoop.net ([104.248.1.95]:47992) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1i0oPS-0006Cf-Pm for guix-devel@gnu.org; Thu, 22 Aug 2019 10:49:56 -0400 Received: from marsh.hcoop.net ([45.55.52.66]) by minsky.hcoop.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1i0oPR-0000Wj-8f for guix-devel@gnu.org; Thu, 22 Aug 2019 10:49:53 -0400 In-Reply-To: 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" To: guix-devel@gnu.org On Wed, 21 Aug 2019, Jack Hill wrote: > However, that fails to build because it tries to invoke /bin/sh (see full > build log at the end of this message). > > Line 2465 in configure.sh is suspicious as it reads: > > ``` > $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || > ``` > > I tried modifying the package definition to add a phase that sets the SHELL > variable, but that did not alter the build error. My package definition with > that change looks like: After a more careful reading of configure.sh, the variable to set is CONFIG_SHELL, so a `(setenv "CONFIG_SHELL" (which "sh"))` does the trick. That means I now have the following package definition that builds. ``` (define-public perl-backuppc-xs (package (name "perl-backuppc-xs") (version "0.59") (source (origin (method url-fetch) (uri (string-append "mirror://cpan/authors/id/C/CB/CBARRATT/BackupPC-XS-" version ".tar.gz")) (sha256 (base32 "1rp57x3amv4g3sa1az83f5xyw25cj7hhvmj3jczrkmfbrpnxlkca")))) (build-system perl-build-system) (arguments '(#:phases (modify-phases %standard-phases (add-before 'configure 'set-environment-variables (lambda _ (setenv "CONFIG_SHELL" (which "sh")) #t))))) (home-page "https://backuppc.github.io") (synopsis "Perl extension for BackupPC libraries") (description "to be written") (license gpl3+))) ``` Now on to the other backuppc components. Best, Jack