diff options
author | Jon Portnoy <avenj@gentoo.org> | 2004-07-28 18:47:25 +0000 |
---|---|---|
committer | Jon Portnoy <avenj@gentoo.org> | 2004-07-28 18:47:25 +0000 |
commit | 8840833a37e00955a5115175b8a1cdbc7febc23b (patch) | |
tree | ad45d514ad9e4eb8c73da547f174eb662f0701d5 /sys-libs | |
parent | ~amd64 (diff) | |
download | historical-8840833a37e00955a5115175b8a1cdbc7febc23b.tar.gz historical-8840833a37e00955a5115175b8a1cdbc7febc23b.tar.bz2 historical-8840833a37e00955a5115175b8a1cdbc7febc23b.zip |
Use --enable-symlinks per bug 41886
Diffstat (limited to 'sys-libs')
-rw-r--r-- | sys-libs/ncurses/ChangeLog | 8 | ||||
-rw-r--r-- | sys-libs/ncurses/Manifest | 12 | ||||
-rw-r--r-- | sys-libs/ncurses/files/digest-ncurses-5.4-r3 | 1 | ||||
-rw-r--r-- | sys-libs/ncurses/ncurses-5.3-r5.ebuild | 3 | ||||
-rw-r--r-- | sys-libs/ncurses/ncurses-5.4-r1.ebuild | 3 | ||||
-rw-r--r-- | sys-libs/ncurses/ncurses-5.4-r2.ebuild | 3 | ||||
-rw-r--r-- | sys-libs/ncurses/ncurses-5.4-r3.ebuild | 170 |
7 files changed, 191 insertions, 9 deletions
diff --git a/sys-libs/ncurses/ChangeLog b/sys-libs/ncurses/ChangeLog index f5d4047c671c..27d91f71f0ee 100644 --- a/sys-libs/ncurses/ChangeLog +++ b/sys-libs/ncurses/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for sys-libs/ncurses # Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/ncurses/ChangeLog,v 1.69 2004/07/02 08:49:47 eradicator Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-libs/ncurses/ChangeLog,v 1.70 2004/07/28 18:47:25 avenj Exp $ + +*ncurses-5.4-r3 (28 Jul 2004) + + 28 Jul 2004; Jon Portnoy <avenj@gentoo.org> ncurses-5.3-r5.ebuild, + ncurses-5.4-r1.ebuild, ncurses-5.4-r2.ebuild, ncurses-5.4-r3.ebuild : + Updated ebuilds to use --enable-symlinks per bug #41886. 02 Jul 2004; Jeremy Huddleston <eradicator@gentoo.org> ncurses-5.3-r5.ebuild, ncurses-5.4-r1.ebuild, ncurses-5.4-r2.ebuild: diff --git a/sys-libs/ncurses/Manifest b/sys-libs/ncurses/Manifest index 15af041c5b8f..6d51e5d96131 100644 --- a/sys-libs/ncurses/Manifest +++ b/sys-libs/ncurses/Manifest @@ -1,11 +1,13 @@ -MD5 a394a89a0921325bf3791514e073c6dd ChangeLog 11275 -MD5 8a0907b149a98a2dc52b8dbcd792d811 ncurses-5.4-r2.ebuild 5138 -MD5 ea52ebcfb59abec2eb3b5825715c2fb6 ncurses-8.1.ebuild 879 +MD5 5a433b0a9b3bb67549453e57cb1b26ae ChangeLog 11502 MD5 9a09f8d531c582e78977dbfd96edc1f2 metadata.xml 164 -MD5 0c3d33b4dd5584df86ba92109df1d2f3 ncurses-5.3-r5.ebuild 3807 -MD5 e5caf3c33a16bb66f270f70ab7a885a1 ncurses-5.4-r1.ebuild 4490 +MD5 ebcb4d035e3e96c283f8ee1083e0d2f6 ncurses-5.4-r2.ebuild 5155 +MD5 ea52ebcfb59abec2eb3b5825715c2fb6 ncurses-8.1.ebuild 879 +MD5 67813fcd10d0d0f3c3c7d3fcd0fd05c2 ncurses-5.4-r3.ebuild 5155 +MD5 9e10302eed56e25bbf34d4f4fed15a1e ncurses-5.3-r5.ebuild 3824 +MD5 a6313d762f8b09a2a672ffa07c25dd8a ncurses-5.4-r1.ebuild 4507 MD5 a370aabb0870d2822a0ab839947919f3 files/digest-ncurses-5.4-r2 64 MD5 d41d8cd98f00b204e9800998ecf8427e files/digest-ncurses-8.1 0 +MD5 a370aabb0870d2822a0ab839947919f3 files/digest-ncurses-5.4-r3 64 MD5 f96d1b4b0bf94f1d38ce950df0efb37e files/ncurses-5.3-xterm.patch 1002 MD5 2167b54d7c96964183554e767e5f5376 files/xterm-debian.ti 342 MD5 cd8a694247cfd64ce864e99246a8d87f files/digest-ncurses-5.3-r5 64 diff --git a/sys-libs/ncurses/files/digest-ncurses-5.4-r3 b/sys-libs/ncurses/files/digest-ncurses-5.4-r3 new file mode 100644 index 000000000000..fdf84beb38f9 --- /dev/null +++ b/sys-libs/ncurses/files/digest-ncurses-5.4-r3 @@ -0,0 +1 @@ +MD5 069c8880072060373290a4fefff43520 ncurses-5.4.tar.gz 2154022 diff --git a/sys-libs/ncurses/ncurses-5.3-r5.ebuild b/sys-libs/ncurses/ncurses-5.3-r5.ebuild index 539f0053140b..8af82b8c6ea3 100644 --- a/sys-libs/ncurses/ncurses-5.3-r5.ebuild +++ b/sys-libs/ncurses/ncurses-5.3-r5.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/ncurses/ncurses-5.3-r5.ebuild,v 1.15 2004/07/02 08:49:47 eradicator Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-libs/ncurses/ncurses-5.3-r5.ebuild,v 1.16 2004/07/28 18:47:25 avenj Exp $ inherit eutils flag-o-matic 64-bit gnuconfig filter-flags -fno-exceptions @@ -54,6 +54,7 @@ src_compile() { --with-shared \ --with-rcs-ids \ --without-ada \ + --enable-symlinks \ ${myconf} || die "configure failed" # do not work with -j2 on P4 - <azarah@gentoo.org> (23 Oct 2002) diff --git a/sys-libs/ncurses/ncurses-5.4-r1.ebuild b/sys-libs/ncurses/ncurses-5.4-r1.ebuild index 892af051882f..331f9c44b7ca 100644 --- a/sys-libs/ncurses/ncurses-5.4-r1.ebuild +++ b/sys-libs/ncurses/ncurses-5.4-r1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/ncurses/ncurses-5.4-r1.ebuild,v 1.19 2004/07/02 08:49:47 eradicator Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-libs/ncurses/ncurses-5.4-r1.ebuild,v 1.20 2004/07/28 18:47:25 avenj Exp $ inherit eutils flag-o-matic 64-bit gnuconfig @@ -64,6 +64,7 @@ src_compile() { --with-shared \ --with-rcs-ids \ --without-ada \ + --enable-symlinks \ ${myconf} \ || die "configure failed" diff --git a/sys-libs/ncurses/ncurses-5.4-r2.ebuild b/sys-libs/ncurses/ncurses-5.4-r2.ebuild index d5c381b8d824..6cf1073f7172 100644 --- a/sys-libs/ncurses/ncurses-5.4-r2.ebuild +++ b/sys-libs/ncurses/ncurses-5.4-r2.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/ncurses/ncurses-5.4-r2.ebuild,v 1.3 2004/07/02 08:49:47 eradicator Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-libs/ncurses/ncurses-5.4-r2.ebuild,v 1.4 2004/07/28 18:47:25 avenj Exp $ inherit eutils flag-o-matic 64-bit gnuconfig @@ -64,6 +64,7 @@ src_compile() { --with-shared \ --with-rcs-ids \ --without-ada \ + --enable-symlinks \ ${myconf} \ || die "configure failed" diff --git a/sys-libs/ncurses/ncurses-5.4-r3.ebuild b/sys-libs/ncurses/ncurses-5.4-r3.ebuild new file mode 100644 index 000000000000..0dd4a37c6b9b --- /dev/null +++ b/sys-libs/ncurses/ncurses-5.4-r3.ebuild @@ -0,0 +1,170 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/ncurses/ncurses-5.4-r3.ebuild,v 1.1 2004/07/28 18:47:25 avenj Exp $ + +inherit eutils flag-o-matic 64-bit gnuconfig + +DESCRIPTION="Linux console display library" +HOMEPAGE="http://www.gnu.org/software/ncurses/ncurses.html" +SRC_URI="mirror://gnu/ncurses/${P}.tar.gz" + +LICENSE="MIT" +SLOT="5" +KEYWORDS="~x86 ~ppc ~sparc ~mips ~alpha ~arm ~hppa ~amd64 ~ia64 ~ppc64 ~s390" +IUSE="build bootstrap debug uclibc" + +DEPEND="virtual/libc" +# This doesn't fix the problem. bootstrap builds ncurses again with +# normal USE flags while bootstrap is unset, which apparently causes +# things to break -- avenj 2 Apr 04 +# !bootstrap? ( gpm? ( sys-libs/gpm ) )" + +src_unpack() { + unpack ${A} + + cd ${S} + epatch ${FILESDIR}/${P}-xterm.patch + # Bug #42336. + epatch ${FILESDIR}/${P}-share-sed.patch +} + +src_compile() { + local myconf= + + filter-flags -fno-exceptions + + use debug || myconf="${myconf} --without-debug" + + # Shared objects are compiled properly with -fPIC, but + # standard libs also require this. + 64-bit && append-flags -fPIC + filter-ldflags -pie + + # Detect mips systems + use mips && gnuconfig_update + + # From version 5.3, ncurses also build c++ bindings, and as + # we do not have a c++ compiler during bootstrap, disable + # building it. We will rebuild ncurses after gcc's second + # build in bootstrap.sh. + # <azarah@gentoo.org> (23 Oct 2002) + ( use build || use bootstrap || use uclibc ) \ + && myconf="${myconf} --without-cxx --without-cxx-binding --without-ada" + + # see note about DEPEND above -- avenj@gentoo.org 2 Apr 04 +# use gpm && myconf="${myconf} --with-gpm" + + # We need the basic terminfo files in /etc, bug #37026. We will + # add '--with-terminfo-dirs' and then populate /etc/terminfo in + # src_install() ... + econf \ + --libdir=/lib \ + --with-terminfo-dirs="/etc/terminfo:/usr/share/terminfo" \ + --disable-termcap \ + --with-shared \ + --with-rcs-ids \ + --without-ada \ + --enable-symlinks \ + ${myconf} \ + || die "configure failed" + + # A little hack to fix parallel builds ... they break when + # generating sources so if we generate the sources first (in + # non-parallel), we can then build the rest of the package + # in parallel. This is not really a perf hit since the source + # generation is quite small. -vapier + emake -j1 sources || die "make sources failed" + emake || die "make failed" +} + +src_install() { + local x= + + make DESTDIR=${D} install || die "make install failed" + + # Move static and extraneous ncurses libraries out of /lib + cd ${D}/lib + dodir /usr/lib + mv libform* libmenu* libpanel* ${D}/usr/lib + mv *.a ${D}/usr/lib + # bug #4411 + gen_usr_ldscript libncurses.so || die "gen_usr_ldscript failed" + + # We need the basic terminfo files in /etc, bug #37026 + einfo "Installing basic terminfo files in /etc..." + # added some for uclibc + #for x in dumb linux rxvt screen sun vt{52,100,102,220} xterm + for x in ansi console dumb linux rxvt screen sun vt{52,100,102,200,220} xterm xterm-color xterm-xfree86 + do + local termfile="$(find "${D}/usr/share/terminfo/" -name "${x}" 2>/dev/null)" + local basedir="$(basename $(dirname "${termfile}"))" + + if [ -n "${termfile}" ] + then + dodir /etc/terminfo/${basedir} + mv ${termfile} ${D}/etc/terminfo/${basedir}/ + dosym ../../../../etc/terminfo/${basedir}/${x} \ + /usr/share/terminfo/${basedir}/${x} + fi + done + + # Build fails to create this ... + dosym ../share/terminfo /usr/lib/terminfo + + dodir /etc/env.d + echo "CONFIG_PROTECT_MASK=\"/etc/terminfo\"" > ${D}/etc/env.d/50ncurses + + if use build + then + cd ${D} + rm -rf usr/share/man + cd usr/share/terminfo + cp -a l/linux n/nxterm v/vt100 ${T} + rm -rf * + mkdir l x v + cp -a ${T}/linux l + cp -a ${T}/nxterm x/xterm + cp -a ${T}/vt100 v + # bash compilation requires static libncurses libraries, so + # this breaks the "build a new build image" system. We now + # need to remove libncurses.a from the build image manually. + # cd ${D}/usr/lib; rm *.a + # remove extraneous ncurses libraries + cd ${D}/usr/lib; rm -f lib{form,menu,panel}* + cd ${D}/usr/include; rm -f {eti,form,menu,panel}.h + else + if ( use bootstrap || use uclibc ) ; then + cd ${D}/usr/lib; rm -f lib{form,menu,panel,ncurses++}* + cd ${D}/usr/include; rm -f {eti,form,menu,panel}.h cursesapp.h curses?.h cursslk.h etip.h + fi + # Install xterm-debian terminfo entry to satisfy bug #18486 + LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${D}/usr/lib:${D}/lib \ + TERMINFO=${D}/usr/share/terminfo \ + ${D}/usr/bin/tic ${FILESDIR}/xterm-debian.ti + + if use uclibc ; then + cp ${D}/usr/share/terminfo/x/xterm-debian ${D}/etc/terminfo/x/ + rm -rf ${D}/usr/share/terminfo/* + fi + + cd ${S} + dodoc ANNOUNCE MANIFEST NEWS README* TO-DO + dodoc doc/*.doc + dohtml -r doc/html/ + fi +} + +pkg_preinst() { + if [ ! -f "${ROOT}/etc/env.d/50ncurses" ] + then + mkdir -p "${ROOT}/etc/env.d" + echo "CONFIG_PROTECT_MASK=\"/etc/terminfo\"" > \ + ${ROOT}/etc/env.d/50ncurses + fi +} + +pkg_postinst() { + # Old ncurses may still be around from old build tbz2's. + rm -f /lib/libncurses.so.5.[23] + rm -f /usr/lib/lib{form,menu,panel}.so.5.[23] +} |