[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Guile question ... Re: [PATCH 07/11] gnu: ncurses: support mingw.
From: |
Jan Nieuwenhuizen |
Subject: |
Guile question ... Re: [PATCH 07/11] gnu: ncurses: support mingw. |
Date: |
Tue, 16 Aug 2016 13:53:10 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) |
Ricardo Wurmus writes:
> The command “guix refresh -l package-name” gives you a very rough list
> of packages (on the same architecture) that would be affected by an
> update to “package-name”. This isn’t always correct, but in the case of
> ncurses it shows at least that a lot of packages are affected:
>
> guix refresh -l ncurses
> …
> Building the following 1018 packages would ensure 2616 dependent
> packages are rebuilt: …
Thanks!
I found why my ncurses still triggers rebuilds: that was in my fixes
that I added on top of Mark's patch, adding necessary MinGW configure
flags
`(#:configure-flags
`(
...
;; MinGW: Provide termcap api, created for the MinGW port.
,,@(if (target-mingw?) '("--enable-term-driver") '())
)
While this `works' build-wise, it still modifies configure-flags when
not target-mingw?.
That is solved technically by doing it like so
`(#:configure-flags
,(cons*
'quasiquote
`("--with-shared" "--without-debug" "--enable-widec"
;; By default headers land in an `ncursesw' subdir, which is not
;; what users expect.
,(list 'unquote '(string-append "--includedir=" (assoc-ref %outputs
"out")
"/include"))
"--enable-overwrite" ;really honor --includedir
;; Make sure programs like 'tic', 'reset', and 'clear' have a
;; correct RUNPATH.
,(list 'unquote '(string-append "LDFLAGS=-Wl,-rpath=" (assoc-ref
%outputs "out")
"/lib")))
;; MinGW: Provide termcap api, created for the MinGW port.
(if (target-mingw?) '("--enable-term-driver") '()))
...is there an easier/cleaner way, this looks overly complicated.
Greetings,
Jan
--
Jan Nieuwenhuizen <address@hidden> | GNU LilyPond http://lilypond.org
Freelance IT http://JoyofSource.com | Avatar® http://AvatarAcademy.nl
- Re: [PATCH 08/11] gnu: cross-base: Add cross-libtool., (continued)
Re: [PATCH 07/11] gnu: ncurses: support mingw., Mark H Weaver, 2016/08/14
[PATCH 09/11] gnu: libtool: support cross-libtool mingw., Jan Nieuwenhuizen, 2016/08/09
[PATCH 10/11] gnu: ncurses: build mingw with libtool., Jan Nieuwenhuizen, 2016/08/09
[PATCH 11/11] gnu: readline: support mingw., Jan Nieuwenhuizen, 2016/08/09
Re: mingw guile.exe cross build patch series v9, Andy Wingo, 2016/08/09