diff options
author | Guy Martin <gmsoft@gentoo.org> | 2004-08-30 10:33:50 +0000 |
---|---|---|
committer | Guy Martin <gmsoft@gentoo.org> | 2004-08-30 10:33:50 +0000 |
commit | 27416dd7d37ee747cdf434acbde2f90574f37a62 (patch) | |
tree | 29aac225f6e9f462ac8d69b6c770a92fef629d73 /sys-libs | |
parent | Unconditonal use of -fPIC (#55238). (diff) | |
download | historical-27416dd7d37ee747cdf434acbde2f90574f37a62.tar.gz historical-27416dd7d37ee747cdf434acbde2f90574f37a62.tar.bz2 historical-27416dd7d37ee747cdf434acbde2f90574f37a62.zip |
Unconditonal use of -fPIC (#55238).
Diffstat (limited to 'sys-libs')
-rw-r--r-- | sys-libs/ncurses/ChangeLog | 7 | ||||
-rw-r--r-- | sys-libs/ncurses/Manifest | 24 | ||||
-rw-r--r-- | sys-libs/ncurses/files/digest-ncurses-5.4-r5 | 1 | ||||
-rw-r--r-- | sys-libs/ncurses/ncurses-5.4-r5.ebuild | 194 |
4 files changed, 214 insertions, 12 deletions
diff --git a/sys-libs/ncurses/ChangeLog b/sys-libs/ncurses/ChangeLog index aac1120d6674..57542db4b144 100644 --- a/sys-libs/ncurses/ChangeLog +++ b/sys-libs/ncurses/ChangeLog @@ -1,6 +1,11 @@ # 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.76 2004/08/19 21:46:59 lv Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-libs/ncurses/ChangeLog,v 1.77 2004/08/30 10:33:50 gmsoft Exp $ + +*ncurses-5.4-r5 (30 Aug 2004) + + 30 Aug 2004; Guy Martin <gmsoft@gentoo.org> +ncurses-5.4-r5.ebuild: + Unconditonal use of -fPIC (#55238). 19 Aug 2004; Travis Tilley <lv@gentoo.org> ncurses-5.4-r4.ebuild: fix utf-8 support so that it doesnt totally bork installs with a /lib64 diff --git a/sys-libs/ncurses/Manifest b/sys-libs/ncurses/Manifest index 565c3aea6caf..37a7f03b1b91 100644 --- a/sys-libs/ncurses/Manifest +++ b/sys-libs/ncurses/Manifest @@ -1,20 +1,22 @@ +MD5 3dad7707f82aa56843e7c8e39e196d05 ChangeLog 12510 +MD5 9a09f8d531c582e78977dbfd96edc1f2 metadata.xml 164 +MD5 31b0e575ef0e06746b60c74b3e9cdbe8 ncurses-5.3-r5.ebuild 3788 MD5 5f45832dca8a592ee9b30aa27a26ab3e ncurses-5.4-r1.ebuild 5023 -MD5 67809502940dfc2279c85ba964cf9208 ncurses-5.4-r3.ebuild 5628 -MD5 e0cbea07444890f3bd2fa7462ee9b8c9 ncurses-8.1.ebuild 401 MD5 b64893113afb0ce133c2d3445394666f ncurses-5.4-r2.ebuild 5672 -MD5 31b0e575ef0e06746b60c74b3e9cdbe8 ncurses-5.3-r5.ebuild 3788 -MD5 575814274aca1311cac34115ce3b8ab6 ChangeLog 12366 -MD5 9a09f8d531c582e78977dbfd96edc1f2 metadata.xml 164 +MD5 e0cbea07444890f3bd2fa7462ee9b8c9 ncurses-8.1.ebuild 401 +MD5 67809502940dfc2279c85ba964cf9208 ncurses-5.4-r3.ebuild 5628 MD5 69fdbb1bd156f172aef0960836aa19d3 ncurses-5.4-r4.ebuild 6052 +MD5 cfbcb52adc438af40f0a7561705d0b2c ncurses-5.4-r5.ebuild 6078 +MD5 cd8a694247cfd64ce864e99246a8d87f files/digest-ncurses-5.3-r5 64 +MD5 a370aabb0870d2822a0ab839947919f3 files/digest-ncurses-5.4-r1 64 +MD5 143b9126206485a5faeb817fd94b1054 files/ncurses-5.3-coreutils.patch 1581 +MD5 c5b265c81eb2dea26b66cd656c61e99c files/ncurses-5.3-share-sed.patch 686 MD5 f96d1b4b0bf94f1d38ce950df0efb37e files/ncurses-5.3-xterm.patch 1002 -MD5 d41d8cd98f00b204e9800998ecf8427e files/digest-ncurses-8.1 0 +MD5 1ecbf68a55269d2cebeb997f6973fc1d files/ncurses-5.4-share-sed.patch 686 MD5 61ecd5aac5ddbd35cc4d4a00282eed01 files/ncurses-5.4-xterm.patch 495 -MD5 c5b265c81eb2dea26b66cd656c61e99c files/ncurses-5.3-share-sed.patch 686 MD5 2167b54d7c96964183554e767e5f5376 files/xterm-debian.ti 342 -MD5 1ecbf68a55269d2cebeb997f6973fc1d files/ncurses-5.4-share-sed.patch 686 -MD5 cd8a694247cfd64ce864e99246a8d87f files/digest-ncurses-5.3-r5 64 -MD5 a370aabb0870d2822a0ab839947919f3 files/digest-ncurses-5.4-r1 64 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 a370aabb0870d2822a0ab839947919f3 files/digest-ncurses-5.4-r4 64 -MD5 143b9126206485a5faeb817fd94b1054 files/ncurses-5.3-coreutils.patch 1581 +MD5 a370aabb0870d2822a0ab839947919f3 files/digest-ncurses-5.4-r5 64 diff --git a/sys-libs/ncurses/files/digest-ncurses-5.4-r5 b/sys-libs/ncurses/files/digest-ncurses-5.4-r5 new file mode 100644 index 000000000000..fdf84beb38f9 --- /dev/null +++ b/sys-libs/ncurses/files/digest-ncurses-5.4-r5 @@ -0,0 +1 @@ +MD5 069c8880072060373290a4fefff43520 ncurses-5.4.tar.gz 2154022 diff --git a/sys-libs/ncurses/ncurses-5.4-r5.ebuild b/sys-libs/ncurses/ncurses-5.4-r5.ebuild new file mode 100644 index 000000000000..87c9c378d4f1 --- /dev/null +++ b/sys-libs/ncurses/ncurses-5.4-r5.ebuild @@ -0,0 +1,194 @@ +# 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-r5.ebuild,v 1.1 2004/08/30 10:33:50 gmsoft Exp $ + +inherit eutils flag-o-matic gnuconfig + +DESCRIPTION="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 doc uclibc unicode" + +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 + gnuconfig_update +} + +pkg_setup() { + # this adds support for installing to lib64/lib32. since only portage + # 2.0.51 will have this functionality supported in dolib and friends, + # and since it isnt expected that many profiles will define it, we need + # to make this variable default to lib. + [ -z "${CONF_LIBDIR}" ] && export CONF_LIBDIR="lib" +} + +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. + # Unconditonal use of -fPIC (#55238). + append-flags -fPIC + filter-ldflags -pie + + # 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" + + # enable utf-8 support + use unicode && myconf="${myconf} --enable-widec" + + # 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=/${CONF_LIBDIR} \ + --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}/${CONF_LIBDIR} + dodir /usr/${CONF_LIBDIR} + mv libform* libmenu* libpanel* *.a ${D}/usr/${CONF_LIBDIR} + + if use unicode ; then + gen_usr_ldscript libncursesw.so + for i in ${D}/usr/${CONF_LIBDIR}/*w.*; do + local libncurses=${i/${D}/} + dosym ${libncurses} ${libncurses/w./.} + done + for i in ${D}/${CONF_LIBDIR}/libncursesw.so*; do + local libncurses=${i/${D}} + dosym ${libncurses} ${libncurses/w./.} + done + else + # bug #4411 + gen_usr_ldscript libncurses.so || die "gen_usr_ldscript failed" + fi + + # 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/${CONF_LIBDIR}/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/${CONF_LIBDIR}; rm -f lib{form,menu,panel}* + cd ${D}/usr/include; rm -f {eti,form,menu,panel}.h + else + if use bootstrap ; then + cd ${D}/usr/${CONF_LIBDIR}; 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/${CONF_LIBDIR}:${D}/${CONF_LIBDIR} \ + 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 doc/*.doc + use 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] /usr/lib/lib{form,menu,panel}.so.5.[23] + if [ "${CONF_LIBDIR}" != "lib" ] ;then + rm -f /${CONF_LIBDIR}/libncurses.so.5.[23] \ + /usr/${CONF_LIBDIR}/lib{form,menu,panel}.so.5.[23] + fi +} |