Commit f4caa4b0 authored by Jérome Perrin's avatar Jérome Perrin

shared cmmi TODO: ncurses built twice ( unfinished patches )

This patch is a mess. I started reorganising, splitting in two parts (
which seemed to make sense as we install twice - install in two
different directories for each compile options ), but then stopped and
left this as unfinished.
parent 4c809fe5
......@@ -4,15 +4,21 @@ extends =
parts =
ncurses
[ncurses]
# We install ncurses twice, one without widec, one with widec
# XXX cmmi-shared: this has to be reviewed ! it's not actually installed twice
# and installation is not complete.
[ncurses-base]
prefix = @@LOCATION@@
recipe = slapos.recipe.cmmi
shared = true
url = ftp://ftp.gnu.org/pub/gnu/ncurses/ncurses-6.0.tar.gz
md5sum = ee13d052e1ead260d7c28071f46eefb1
patch-options = -p1
;patch-binary = ${patch:location}/bin/patch
patches =
${:_profile_base_location_}/ncurses-5.9-gcc-5.patch#57f4cd0cc0c0a42a5ddb2167f9546d72
configure-options =
--prefix=${buildout:parts-directory}/${:_buildout_section_name_}
--prefix=${:prefix}
--with-shared
--without-ada
--without-manpages
......@@ -21,12 +27,21 @@ configure-options =
--without-debug
--without-gpm
--enable-rpath
# tricky way to rerun with --enable-widec
make-targets =
install && (for i in curses unctrl eti form menu panel term; do ln -sf ncurses/$i.h ${buildout:parts-directory}/${:_buildout_section_name_}/include/$i.h; done; ln -sf libncurses.so ${buildout:parts-directory}/${:_buildout_section_name_}/lib/libcurses.so) && ./configure ${:configure-options} --enable-widec && make ${:make-options} && make ${:make-options} install
# pass dummy LDCONFIG to skip needless calling of ldconfig by non-root user
environment =
LDCONFIG=/bin/echo
PATH=${patch:location}/bin:%(PATH)s
make-options =
-j1
[ncurses-bootstrap]
<= ncurses-base
[ncurses-widec]
<= ncurses-base
# tricky way to rerun with --enable-widec
make-targets =
install && (for i in curses unctrl eti form menu panel term; do ln -sf ncurses/$i.h @@LOCATION@@/include/$i.h; done; ln -sf libncurses.so @@LOCATION@@/lib/libcurses.so) && ./configure ${:configure-options} --enable-widec && make ${:make-options} && make ${:make-options} install
[ncurses]
<= ncurses-widec
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment