diff options
author | Diego Elio Pettenò <flameeyes@gentoo.org> | 2006-11-01 16:09:32 +0000 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@gentoo.org> | 2006-11-01 16:09:32 +0000 |
commit | 166b39d7d5168c423abf82265c38ea86db60b86c (patch) | |
tree | d7d9dd40d2f3f35387b2b4ab8588c12142d711bb | |
parent | Bump to 6.2_beta3. (diff) | |
download | gentoo-2-166b39d7d5168c423abf82265c38ea86db60b86c.tar.gz gentoo-2-166b39d7d5168c423abf82265c38ea86db60b86c.tar.bz2 gentoo-2-166b39d7d5168c423abf82265c38ea86db60b86c.zip |
Bump to 6.2_beta3.
(Portage version: 2.1.2_rc1-r1)
-rw-r--r-- | sys-freebsd/freebsd-lib/ChangeLog | 8 | ||||
-rw-r--r-- | sys-freebsd/freebsd-lib/files/digest-freebsd-lib-6.2_beta3 | 24 | ||||
-rw-r--r-- | sys-freebsd/freebsd-lib/freebsd-lib-6.2_beta3.ebuild | 255 |
3 files changed, 286 insertions, 1 deletions
diff --git a/sys-freebsd/freebsd-lib/ChangeLog b/sys-freebsd/freebsd-lib/ChangeLog index 91370700f7f6..526c753bcb53 100644 --- a/sys-freebsd/freebsd-lib/ChangeLog +++ b/sys-freebsd/freebsd-lib/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for sys-freebsd/freebsd-lib # Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-lib/ChangeLog,v 1.38 2006/10/26 18:21:14 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-lib/ChangeLog,v 1.39 2006/11/01 16:09:32 flameeyes Exp $ + +*freebsd-lib-6.2_beta3 (01 Nov 2006) + + 01 Nov 2006; Diego Pettenò <flameeyes@gentoo.org> + +freebsd-lib-6.2_beta3.ebuild: + Bump to 6.2_beta3. 26 Oct 2006; Diego Pettenò <flameeyes@gentoo.org> freebsd-lib-6.1.ebuild, freebsd-lib-6.2_beta2.ebuild: diff --git a/sys-freebsd/freebsd-lib/files/digest-freebsd-lib-6.2_beta3 b/sys-freebsd/freebsd-lib/files/digest-freebsd-lib-6.2_beta3 new file mode 100644 index 000000000000..c017a5bd53a2 --- /dev/null +++ b/sys-freebsd/freebsd-lib/files/digest-freebsd-lib-6.2_beta3 @@ -0,0 +1,24 @@ +MD5 0d8585db6146130649e10b502957eee6 freebsd-contrib-6.2_beta3.tar.bz2 36555171 +RMD160 630c839a0025811a4c2da5de560150fe00d4ed28 freebsd-contrib-6.2_beta3.tar.bz2 36555171 +SHA256 51c0b85ff28b6b9d85092e51a0fe2a9ae9bb9714a50495713236e0c162e8ee0b freebsd-contrib-6.2_beta3.tar.bz2 36555171 +MD5 c9d71fbf45d01f0ace8dbd6e977ba0ff freebsd-crypto-6.2_beta3.tar.bz2 4033439 +RMD160 1c7680fe08f6e026d3a5b4370552d04c8438f1cc freebsd-crypto-6.2_beta3.tar.bz2 4033439 +SHA256 0cff4034fd45611b9acfde941773f50588303ef5b1d848055ecb8eb8cba5e518 freebsd-crypto-6.2_beta3.tar.bz2 4033439 +MD5 81b97dc47668e566a803b9469b96d969 freebsd-etc-6.2_beta3.tar.bz2 188295 +RMD160 7b4e5f22cdb6b23b0379c285001379390f176136 freebsd-etc-6.2_beta3.tar.bz2 188295 +SHA256 8d79f1e1e9b8453c0431dd9112b51a09a2ed8db7c288e6eb76347b0030eacf89 freebsd-etc-6.2_beta3.tar.bz2 188295 +MD5 7d9b4fff0e69139ed253a1db9cb0fa63 freebsd-include-6.2_beta3.tar.bz2 131608 +RMD160 7bbc4c99f04752366a5d67a7ce8edc56c0807ec3 freebsd-include-6.2_beta3.tar.bz2 131608 +SHA256 5ce85fe6c6c2cc0e6bc4502d838f52820d06c1dc19c270583f2469edc466ca9a freebsd-include-6.2_beta3.tar.bz2 131608 +MD5 035e7b7d5f8dddcbe9e3c2d44428574b freebsd-lib-6.2_beta3.tar.bz2 2668544 +RMD160 9b21ec424b2b86c0dfa252322e9784ebddce3e53 freebsd-lib-6.2_beta3.tar.bz2 2668544 +SHA256 7aed09b38fedeb174bfd91caa8c2f38240c2f5a0c21d4c50e7eaef5a42daba09 freebsd-lib-6.2_beta3.tar.bz2 2668544 +MD5 359a25029a4dd656e43d83890740dd13 freebsd-libexec-6.2_beta3.tar.bz2 277158 +RMD160 91353b9c0bb7fc254b0a57d55f07b095a06909c9 freebsd-libexec-6.2_beta3.tar.bz2 277158 +SHA256 ce19db01248c1c805636e271056a4f99c8bbe1e2b76def47875dcf6e5bdafdf4 freebsd-libexec-6.2_beta3.tar.bz2 277158 +MD5 328ec3b03995fcab39126e3437cabb72 freebsd-sys-6.2_beta3.tar.bz2 18336143 +RMD160 c75040d96af463013459f3a3278d4cca1d78e828 freebsd-sys-6.2_beta3.tar.bz2 18336143 +SHA256 f52b0bf25d2ae5792503789a1bd47bc0db7924c13df55021c7740dcdd5a4225c freebsd-sys-6.2_beta3.tar.bz2 18336143 +MD5 5266789afea7e22eef8cbbbcf322c7ae freebsd-usbin-6.2_beta3.tar.bz2 2695369 +RMD160 09e6b00f27ee49418e807fd565966f534fb5f0a3 freebsd-usbin-6.2_beta3.tar.bz2 2695369 +SHA256 14fd08cee425c734abb24fa08e6ccf1c69de7b5e9b569cf77459c04fca096db4 freebsd-usbin-6.2_beta3.tar.bz2 2695369 diff --git a/sys-freebsd/freebsd-lib/freebsd-lib-6.2_beta3.ebuild b/sys-freebsd/freebsd-lib/freebsd-lib-6.2_beta3.ebuild new file mode 100644 index 000000000000..4bc32ec754cd --- /dev/null +++ b/sys-freebsd/freebsd-lib/freebsd-lib-6.2_beta3.ebuild @@ -0,0 +1,255 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-lib/freebsd-lib-6.2_beta3.ebuild,v 1.1 2006/11/01 16:09:32 flameeyes Exp $ + +inherit bsdmk freebsd flag-o-matic toolchain-funcs + +DESCRIPTION="FreeBSD's base system libraries" +SLOT="6.0" +KEYWORDS="~sparc-fbsd ~x86-fbsd" + +IUSE="atm bluetooth ssl ipv6 kerberos nis gpib build bootstrap" + +# Crypto is needed to have an internal OpenSSL header +# sys is needed for libalias, probably we can just extract that instead of +# extracting the whole tarball +SRC_URI="mirror://gentoo/${LIB}.tar.bz2 + mirror://gentoo/${CONTRIB}.tar.bz2 + mirror://gentoo/${CRYPTO}.tar.bz2 + mirror://gentoo/${LIBEXEC}.tar.bz2 + mirror://gentoo/${ETC}.tar.bz2 + mirror://gentoo/${INCLUDE}.tar.bz2 + nis? ( mirror://gentoo/${USBIN}.tar.bz2 ) + build? ( + mirror://gentoo/${SYS}.tar.bz2 )" + +if [[ ${CATEGORY/cross-} == ${CATEGORY} ]]; then + RDEPEND="ssl? ( dev-libs/openssl ) + kerberos? ( virtual/krb5 ) + !sys-freebsd/freebsd-headers" + DEPEND="${RDEPEND} + >=sys-devel/flex-2.5.31-r2 + =sys-freebsd/freebsd-sources-${RV}* + !bootstrap? ( app-arch/bzip2 )" + + PROVIDE="virtual/libc + virtual/os-headers" + +else + SRC_URI="${SRC_URI} + mirror://gentoo/${SYS}.tar.bz2" +fi + +DEPEND="${DEPEND} + =sys-freebsd/freebsd-mk-defs-${RV}*" + +S="${WORKDIR}/lib" + +export CTARGET=${CTARGET:-${CHOST}} +if [[ ${CTARGET} == ${CHOST} && ${CATEGORY/cross-} != ${CATEGORY} ]]; then + export CTARGET=${CATEGORY/cross-} +fi + +pkg_setup() { + [[ -c /dev/zero ]] || \ + die "You forgot to mount /dev; the compiled libc would break." + + if ! use ssl && use kerberos; then + eerror "If you want kerberos support you need to enable ssl support, too." + fi + + use atm || mymakeopts="${mymakeopts} NO_ATM= " + use bluetooth || mymakeopts="${mymakeopts} NO_BLUETOOTH= " + use ssl || mymakeopts="${mymakeopts} NO_OPENSSL= NO_CRYPT= " + use ipv6 || mymakeopts="${mymakeopts} NO_INET6= " + use kerberos || mymakeopts="${mymakeopts} NO_KERBEROS= " + use nis || mymakeopts="${mymakeopts} NO_NIS= " + use gpib || mymakeopts="${mymakeopts} NO_GPIB= " + + mymakeopts="${mymakeopts} NO_OPENSSH= NO_BIND= NO_SENDMAIL= " + + replace-flags "-O?" -"O1" + + if [[ ${CTARGET} != ${CHOST} ]]; then + mymakeopts="${mymakeopts} MACHINE=$(tc-arch-kernel ${CTARGET})" + mymakeopts="${mymakeopts} MACHINE_ARCH=$(tc-arch-kernel ${CTARGET})" + fi +} + +PATCHES="${FILESDIR}/${PN}-bsdxml.patch + ${FILESDIR}/${PN}-fixmp.patch + ${FILESDIR}/${PN}-6.0-pmc.patch + ${FILESDIR}/${PN}-6.0-gccfloat.patch + ${FILESDIR}/${PN}-6.0-flex-2.5.31.patch + ${FILESDIR}/${PN}-6.0-binutils-asm.patch + ${FILESDIR}/${PN}-6.0-ssp.patch + ${FILESDIR}/${PN}-6.1-csu.patch + ${FILESDIR}/${PN}-6.2-gcc41.patch + ${FILESDIR}/${PN}-6.2-sparc64.patch" + +# Here we disable and remove source which we don't need or want +# In order: +# - ncurses stuff +# - archiving libraries (have their own ebuild) +# - sendmail libraries (they are installed by sendmail) +# - SNMP library and dependency (have their own ebuilds) +# +# The rest are libraries we already have somewhere else because +# they are contribution. +# Note: libtelnet is an internal lib used by telnet and telnetd programs +# as it's not used in freebsd-lib package itself, it's pointless building +# it here. +REMOVE_SUBDIRS="libncurses libform libmenu libpanel \ + libz libbz2 libarchive \ + libsm libsmdb libsmutil \ + libbegemot libbsnmp \ + libsmb libpam libpcap bind libwrap libmagic \ + libcom_err libtelnet" + +src_unpack() { + freebsd_src_unpack + + sed -i -e 's:-o/dev/stdout:-t:' ${S}/libc/net/Makefile.inc + + use build && return 0 + + if [[ ${CTARGET} == ${CHOST} ]]; then + ln -s "/usr/src/sys-${RV}" "${WORKDIR}/sys" + else + sed -i -e 's:/usr/include:/usr/'${CTARGET}'/usr/include:g' \ + "${S}/libc/"{yp,rpc}"/Makefile.inc" + fi + + [[ -n $(install --version 2> /dev/null | grep GNU) ]] && \ + sed -i -e 's:${INSTALL} -C:${INSTALL}:' "${WORKDIR}/include/Makefile" + + # Let arch-specific includes to be found + local machine + machine=$(tc-arch-kernel ${CTARGET}) + ln -s "${WORKDIR}/sys/${machine}/include" "${WORKDIR}/include/machine" + + use bootstrap && dummy_mk libstand +} + +src_compile() { + cd "${WORKDIR}/include" + $(freebsd_get_bmake) CC=$(tc-getCC) || die "make include failed" + + use crosscompile_opts_headers-only && return 0 + + # Don't use ssp until properly fixed + append-flags $(test-flags -fno-stack-protector -fno-stack-protector-all) + + strip-flags + if [[ ${CTARGET} != ${CHOST} ]]; then + export YACC='yacc -by' + CHOST=${CTARGET} tc-export CC LD CXX + + local machine + machine=$(tc-arch-kernel ${CTARGET}) + + local csudir + if [[ -d "${S}/csu/${machine}-elf" ]]; then + csudir="${S}/csu/${machine}-elf" + else + csudir="${S}/csu/${machine}" + fi + cd "${csudir}" + $(freebsd_get_bmake) ${mymakeopts} || die "make csu failed" + + append-flags "-isystem /usr/${CTARGET}/usr/include" + append-flags "-B ${csudir}" + append-ldflags "-B ${csudir}" + cd "${S}/libc" + $(freebsd_get_bmake) ${mymakeopts} || die "make libc failed" + + append-flags "-isystem ${WORKDIR}/lib/msun/${machine/i386/i387}" + cd "${S}/msun" + $(freebsd_get_bmake) ${mymakeopts} || die "make libc failed" + else + # Forces to use the local copy of headers as they might be outdated in + # the system + append-flags "-isystem '${WORKDIR}/sys' -isystem '${WORKDIR}/include'" + + cd "${S}" + NOFLAGSTRIP=yes freebsd_src_compile + fi +} + +src_install() { + cd "${WORKDIR}/include" + + [[ ${CTARGET} == ${CHOST} ]] \ + && INCLUDEDIR="/usr/include" \ + || INCLUDEDIR="/usr/${CTARGET}/usr/include" + + einfo "Installing for ${CTARGET} in ${CHOST}.." + + dodir "${INCLUDEDIR}" + $(freebsd_get_bmake) installincludes \ + MACHINE=$(tc-arch-kernel) \ + DESTDIR="${D}" INCLUDEDIR="${INCLUDEDIR}" || die "Install failed" + + # Install math.h when crosscompiling, at this point + if [[ ${CHOST} != ${CTARGET} ]]; then + insinto "/usr/${CTARGET}/usr/include" + doins "${S}/msun/src/math.h" + fi + + use crosscompile_opts_headers-only && return 0 + + if [[ ${CTARGET} != ${CHOST} ]]; then + local csudir + if [[ -d "${S}/csu/$(tc-arch-kernel ${CTARGET})-elf" ]]; then + csudir="${S}/csu/$(tc-arch-kernel ${CTARGET})-elf" + else + csudir="${S}/csu/$(tc-arch-kernel ${CTARGET})" + fi + cd "${csudir}" + $(freebsd_get_bmake) ${mymakeopts} DESTDIR="${D}" install \ + FILESDIR="/usr/${CTARGET}/usr/lib" || die "Install csu failed" + + cd "${S}/libc" + $(freebsd_get_bmake) ${mymakeopts} DESTDIR="${D}" install NO_MAN= \ + SHLIBDIR="/usr/${CTARGET}/lib" LIBDIR="/usr/${CTARGET}/usr/lib" || die "Install failed" + + cd "${S}/msun" + $(freebsd_get_bmake) ${mymakeopts} DESTDIR="${D}" install NO_MAN= \ + INCLUDEDIR="/usr/${CTARGET}/usr/include" \ + SHLIBDIR="/usr/${CTARGET}/lib" LIBDIR="/usr/${CTARGET}/usr/lib" || die "Install failed" + + dosym "usr/include" "/usr/${CTARGET}/sys-include" + else + cd "${S}" + mkinstall || die "Install failed" + fi + + # Don't install the rest of the configuration files if crosscompiling + [[ ${CTARGET} != ${CHOST} ]] && return 0 + + # Compatibility symlinks to run FreeBSD 5.x binaries (ABI is mostly + # identical, remove when problems will actually happen) + dosym /lib/libc.so.6 /usr/lib/libc.so.5 + dosym /lib/libm.so.4 /usr/lib/libm.so.3 + + # install libstand files + dodir /usr/include/libstand + insinto /usr/include/libstand + doins "${S}"/libstand/*.h + + cd "${WORKDIR}/etc/" + insinto /etc + doins auth.conf nls.alias mac.conf netconfig + + # Install ttys file + doins "etc.$(tc-arch-kernel)"/* + + dodir /etc/sandbox.d + cat - > "${D}"/etc/sandbox.d/00freebsd <<EOF +# /dev/crypto is used mostly by OpenSSL on *BSD platforms +# leave it available as packages might use OpenSSL commands +# during compile or install phase. +SANDBOX_PREDICT="/dev/crypto" +EOF +} + |