Subject: Re: bug#33659: Perl-build-system does not honor #:module-build-flags or #:configure-flags
From: Sarah Morgensen <[email-masked]>
To: [email-masked]
Date: Fri, 24 Sep 2021 21:29:49 -0700
List-Id: <debbugs-submit.debbugs.gnu.org>

Hello from three years in the future!

[email-masked] writes:

> Hi
>
> I'm trying hard to package perl-term-readline-gnu but have failed so
> far. :D
>
> See the attached patch for my addition to perl-build-system that did not
> help.
>
> The Makefile in the source says:
>
> # Usage: perl Makefile.PL [--prefix=...] [--includedir=...]
> [--libdir=...]                                       
> #               [OPTIMIZE=...] 
>
> The build failure (with or without my modifications to the build-system)
> is:
>
> starting phase `configure'
> running `perl' with arguments ("Makefile.PL"
> "PREFIX=/gnu/store/w4wb4wd1kjj6gmxlix0i3jj47v0izijh-perl-term-readline-gnu-1.35"
> "INSTALLDIRS=site" "NO_PERLLOCAL=1")
> Could not find neither libtermcap.a, libncurses.a, or libcurses.
> Backtrace:
>            4 (primitive-load "/gnu/store/vgfkdlnwks28vk50mg0xjl8iaf9…")
> In ice-9/eval.scm:
>    191:35  3 (_ _)
> In srfi/srfi-1.scm:
>     640:9  2 (for-each #<procedure 8298510 at /gnu/store/wy2ja4vrrn…> …)
> In
> /gnu/store/wy2ja4vrrnakwhabsn87ngsb3bqqm5fx-module-import/guix/build/gnu-build-system.scm:
>    799:31  1 (_ _)
> In
> /gnu/store/wy2ja4vrrnakwhabsn87ngsb3bqqm5fx-module-import/guix/build/utils.scm:
>     616:6  0 (invoke _ . _)
>
> /gnu/store/wy2ja4vrrnakwhabsn87ngsb3bqqm5fx-module-import/guix/build/utils.scm:616:6:
> In procedure invoke:
> Throw to key `srfi-34' with args `(#<condition &invoke-error [program:
> "perl" arguments: ("Makefile.PL"
> "PREFIX=/gnu/store/w4wb4wd1kjj6gmxlix0i3jj47v0izijh-perl-term-rea\
> dline-gnu-1.35" "INSTALLDIRS=site" "NO_PERLLOCAL=1") exit-status: 1
> term-signal: #f stop-signal: #f] 80a8e60>)'.
> note: keeping build directory
> `/tmp/guix-build-perl-term-readline-gnu-1.35.drv-17'
> builder for
> `/gnu/store/n6dcbwrfag9klwysrfdkj2j05cr9710i-perl-term-readline-gnu-1.35.drv'
> failed with exit code 1
> build of
> /gnu/store/n6dcbwrfag9klwysrfdkj2j05cr9710i-perl-term-readline-gnu-1.35.drv
> failed
> View build log at
> '/var/log/guix/drvs/n6/dcbwrfag9klwysrfdkj2j05cr9710i-perl-term-readline-gnu-1.35.drv.bz2'.
> cannot build derivation
> `/gnu/store/pz0zrnpsvip0yxyd18cjazibsrlpf29h-youtube-viewer-cli-3.4.1.drv':
> 1 dependencies couldn't be built
> guix build: error: build failed: build of
> `/gnu/store/pz0zrnpsvip0yxyd18cjazibsrlpf29h-youtube-viewer-cli-3.4.1.drv'
> failed

I'm closing this old bug because the error was actually because ncurses
was not an input; see the working package definition (added last year):

  guix edit perl-term-readline-gnu

--
Sarah