dev-vcs/cvs: Drop broken cvs-12.13 per bug #124733.

Package-Manager: portage-2.2.28
This commit is contained in:
Robin H. Johnson
2016-06-27 15:11:22 -07:00
parent a2bc2463c6
commit 6869b19cce
13 changed files with 0 additions and 1020 deletions
-5
View File
@@ -4,10 +4,5 @@ DIST cederqvist-1.11.23.ps 1129600 SHA256 6b35cbeecd6fa069e59743716f2766f5bfffe3
DIST cederqvist-1.12.12.html.tar.bz2 137581 SHA256 6bdd66581ec363e05313a14db27cd3c201b547cdfc9ea2f8edde74e78301f0f6 SHA512 c4f6bdc294b719c1c9f6e8b7d1d4faa9e2aafccd37924e9d4772f8d802da3e7f5ae1778b295989db256b23bb1d0914023db7237adaf07833caaee499ae6b6fa3 WHIRLPOOL 41dd1e0d944a02eeca10539b87b5cfcadbf4fd5923c872aa86e5673bb6a98f774d5378e8b4f1c2e6c6a62e6dc6a4d02c69b5e51ad03da899903070effd62adc9
DIST cederqvist-1.12.12.pdf 1252423 SHA256 211c5792d24bfd5694f23bc217a161d880bfb2447c41016fab6f657168b041ce SHA512 aa90b76664ca103cf41831a5595d5e99df9fd87633aa5a500569f43854ca6e409a26b655f02ed59cde1c37ce88c40e06f3b3376ad71fdc9487032c3f0898706a WHIRLPOOL 88d015117c05716df6d0cdc763f16dc488f0641624475e9bd33478485dd32e36a7ee5c49a1789ebdd173e665ae5963e75975342d7308e8e453adb65dd31ec6c5
DIST cederqvist-1.12.12.ps 1262208 SHA256 0e14189614e2c5ead49bfe0ecd187239f8adc3e66371b49d52163be821e44cab SHA512 9a061ef90c664fbb4f882644f72c4f80ffbe0233b6b364511b1c7f18f0a53383980a6ddda326b6df1f2fe1899aed3225de89b55a65a1d9101ba81d1c10c067e2 WHIRLPOOL fb1616ca734e51a626713e7e78786ecbff18378966c2c131f6992df248096d38e850123449d3a5a6aa111ee209f90ef48848da7366b21cb6befeccf07ce54ab6
DIST cederqvist-1.12.13.html.tar.bz2 140382 SHA256 1a9a34e07c00de5102224b48cbc53384992aea197c91c20b6140dd6885b5ae87 SHA512 4305b5b5d6ec75288e8be0f818815898523de465bd2dc1f55dc277a423815608e619e6fb50d47d29c378249db53f7dba2cc6b4e996f8cd2c1eecf5b9db5957c3 WHIRLPOOL 8b72d282e466b85ad2e898c52a934df55af530a458c39171e4de31a71e1d7c0dbf85674387021f0bc4d87b480a3ff32084574294425923b64c10998e0716abdc
DIST cederqvist-1.12.13.pdf 1297631 SHA256 4f24b2ac3b81c97798cad42cba8ffe6cc65405f13e5a58a4b063aa9fffc4a7bc SHA512 56ff658265a4e08df6bcd59b1bcb046cbcb92d4107fd4fc54a35601e379af048fdab720500207a4ea6b757058bb52973c7723a02f43b5de8c9fee7f09379ba1f WHIRLPOOL 5ca68dbc70dfbf98a61700f696c4b197a8943f3122d419e2ae2a1f085c589b02c3e90bdadfa657351e51dfbf4a40781babcc47319e157aede3f67be8edf08493
DIST cederqvist-1.12.13.ps 1280573 SHA256 a955722b89155e390635b1220fa67a096c97141d83ac53a7840323c01d13aa91 SHA512 7a6e9605c82b4d105d37663b12ce9fc89eb8e9153897ceeb6d4fd18da07947180b96167f67cd04df0ec2682d431bbb6840c8c87ccd97ddb596dd2efd31bbf1e4 WHIRLPOOL 2b6249d9cba0d08b76e9d8ae24828cfbfae71c2f109e35ca425c0122a79dc3a66a52ec9506971eab031d730743ed3bc5c01b583e3e9a538f067e22e6d78a6c0f
DIST cvs-1.11.23.tar.bz2 2942652 SHA256 400f51b59d85116e79b844f2d5dbbad4759442a789b401a94aa5052c3d7a4aa9 SHA512 d84360b51b966f19ac3f1728265ff25e46d3a3ce6d9e7e30b154f0975bb10ce4f82f5ca3f308d2ff169c2b5dd97b0243e910d2e8ad59a5857aef7a70b9026b19 WHIRLPOOL 0f4a14989c29ee76a911edcbcb9b946f3710d1015391e7a219c841bf3cd03678994d572f23a66975030e9ca2eb64abc7f7665a535203bc81653d754491039252
DIST cvs-1.12.12.tar.bz2 3197171 SHA256 9fb9176d268b9019768fc57dedc2920c28fbeda5ba224c2348550d4f25043edc SHA512 31c679b77b887e02d9c8c381b0dfb42f1207ef4ca806cd92843638eb2126ed032e99bda70a3e20ea2a029670ff39c40088a43435632e381739e6c2f978e6f4bb WHIRLPOOL 74257976cdb957e86fb9fb7e54fc8c0b7210f72136ce05327203d935195e7a3bdda0c1d616dc04cb1d6495cb038ca7275e88488eddb5d936c1cfceb94583278c
DIST cvs-1.12.13.1.tar.bz2 4075630 SHA256 de7f374d8c4ac414c04e8d44ce9a5d3da919825a6a332d747e299dc7a80c2218 SHA512 db318c0c70b47283bd469d792bdfe5335e5375e3b25beb79a7aea8435209b944cfa7ba51bdef9935f708e3a26a06b72defdb698974f2951cc9afd615f970986b WHIRLPOOL 3369e59e9f598cf6de28577302d62d3f6b00f705a0a5729c7ebf7b956d899e85afaaa160be2c4f7a4c710c1dd8860301ad1855c874229e39dbe60a5acc91a884
DIST cvs-1.12.13.tar.bz2 3911104 SHA256 78853613b9a6873a30e1cc2417f738c330e75f887afdaf7b3d0800cb19ca515e SHA512 7d10f808de62190b18d4f706d2d03ab218a508bfb52047ff3e830e293ec40c5e8bf6cc743ef72a5c24be5aa867c9e4892d7d475a026a98b296a3764b4bd0f4d8 WHIRLPOOL 0662c898e05dfe9e45ee1615cfc86bdf664dfc74ddcbea8833e0f98b22e5ea65920d401d3f9a674d5e567eb10f94a29631487a2f8e43a49685888ca94f98ab62
-131
View File
@@ -1,131 +0,0 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=3
inherit eutils pam toolchain-funcs
DESCRIPTION="Concurrent Versions System - source code revision control tools"
HOMEPAGE="http://www.nongnu.org/cvs/"
SRC_URI="mirror://gnu/non-gnu/cvs/source/feature/${PV}/${P}.tar.bz2
doc? ( mirror://gnu/non-gnu/cvs/source/feature/${PV}/cederqvist-${PV}.html.tar.bz2
mirror://gnu/non-gnu/cvs/source/feature/${PV}/cederqvist-${PV}.pdf
mirror://gnu/non-gnu/cvs/source/feature/${PV}/cederqvist-${PV}.ps )"
LICENSE="GPL-2 LGPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~sparc-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
IUSE="crypt doc emacs kerberos nls pam server"
DEPEND=">=sys-libs/zlib-1.1.4
kerberos? ( virtual/krb5 )
pam? ( virtual/pam )"
src_unpack() {
unpack ${P}.tar.bz2
use doc && unpack cederqvist-${PV}.html.tar.bz2
}
src_prepare() {
epatch "${FILESDIR}"/${PN}-1.12.12-cvsbug-tmpfix.patch
epatch "${FILESDIR}"/${P}-openat.patch
epatch "${FILESDIR}"/${P}-zlib.patch
epatch "${FILESDIR}"/${PN}-1.12.12-install-sh.patch
# this testcase was not updated
#sed -i.orig -e '/unrecognized keyword.*BogusOption/s,98,73,g' \
# ${S}/src/sanity.sh
# this one fails when the testpath path contains '.'
sed -i.orig -e '/newfile config3/s,a-z,a-z.,g' \
"${S}"/src/sanity.sh
}
src_configure() {
local myconf
# the tests need the server and proxy
if use test; then
use server || \
ewarn "The server and proxy code are enabled as they are required for tests."
myconf="--enable-server --enable-proxy"
fi
if tc-is-cross-compiler ; then
# Sane defaults when cross-compiling (as these tests want to
# try and execute code).
export cvs_cv_func_printf_ptr="yes"
fi
econf \
--with-external-zlib \
--with-tmpdir=/tmp \
$(use_enable crypt encryption) \
$(use_with kerberos gssapi) \
$(use_enable nls) \
$(use_enable pam) \
$(use_enable server) \
$(use_enable server proxy)
}
src_install() {
einstall || die
if use server; then
insinto /etc/xinetd.d
newins "${FILESDIR}"/cvspserver.xinetd.d cvspserver || die "newins failed"
fi
dodoc BUGS ChangeLog* DEVEL* FAQ HACKING \
MINOR* NEWS PROJECTS README* TESTS TODO
if use emacs; then
insinto /usr/share/emacs/site-lisp
doins cvs-format.el || die "doins failed"
fi
if use doc; then
dodoc "${DISTDIR}"/cederqvist-${PV}.pdf
dodoc "${DISTDIR}"/cederqvist-${PV}.ps
tar xjf "${DISTDIR}"/cederqvist-${PV}.html.tar.bz2
dohtml -r cederqvist-${PV}.html/*
dosym cvs.html /usr/share/doc/${PF}/html/index.html
fi
newpamd "${FILESDIR}"/cvs.pam-include-1.12.12 cvs
}
src_test() {
einfo "If you want to see realtime status, or check out a failure,"
einfo "please look at ${S}/src/check.log*"
if [ -n "$TEST_REMOTE_AND_PROXY" ]; then
einfo "local, remote, and proxy tests enabled."
else
einfo "Only testing local mode. Please see ebuild for other modes."
fi
cd "${S}"/src
export TESTDIR="${T}/tests-local"
mkdir -p "$TESTDIR"
# we only do the local tests by default
make localcheck || die "Some local test failed."
mv -f check.log check.log-local
# if you want to test the remote and proxy modes, things get a little bit
# complicated. You need to set up a SSH config file at ~portage/.ssh/config
# that allows the portage user to login without any authentication, and also
# set up the ~portage/.ssh/known_hosts file for your machine.
# We do not do this by default, as it is unsafe from a security point of
# view, and requires root level ssh changes.
if [ -n "$TEST_REMOTE_AND_PROXY" ]; then
cd "${S}"/src
export TESTDIR="${T}/tests-remote"
mkdir -p "$TESTDIR"
make remotecheck || die "Some remote test failed."
mv -f check.log check.log-remote
cd "${S}"/src
export TESTDIR="${T}/tests-proxy"
mkdir -p "$TESTDIR"
make proxycheck || die "Some proxy test failed."
mv -f check.log check.log-proxy
fi
}
-132
View File
@@ -1,132 +0,0 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=3
inherit eutils pam toolchain-funcs
DESCRIPTION="Concurrent Versions System - source code revision control tools"
HOMEPAGE="http://www.nongnu.org/cvs/"
SRC_URI="mirror://gnu/non-gnu/cvs/source/feature/${PV}/${P}.tar.bz2
doc? ( mirror://gnu/non-gnu/cvs/source/feature/${PV}/cederqvist-${PV}.html.tar.bz2
mirror://gnu/non-gnu/cvs/source/feature/${PV}/cederqvist-${PV}.pdf
mirror://gnu/non-gnu/cvs/source/feature/${PV}/cederqvist-${PV}.ps )"
LICENSE="GPL-2 LGPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~sparc-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
IUSE="crypt doc emacs kerberos nls pam server"
DEPEND=">=sys-libs/zlib-1.1.4
kerberos? ( virtual/krb5 )
pam? ( virtual/pam )"
src_unpack() {
unpack ${P}.tar.bz2
use doc && unpack cederqvist-${PV}.html.tar.bz2
}
src_prepare() {
epatch "${FILESDIR}"/${PN}-1.12.12-cvsbug-tmpfix.patch
epatch "${FILESDIR}"/${P}-openat.patch
epatch "${FILESDIR}"/${P}-zlib.patch
epatch "${FILESDIR}"/${PN}-1.12.12-install-sh.patch
epatch "${FILESDIR}"/${PN}-1.12.12-fix-massive-leak.patch
# this testcase was not updated
#sed -i.orig -e '/unrecognized keyword.*BogusOption/s,98,73,g' \
# ${S}/src/sanity.sh
# this one fails when the testpath path contains '.'
sed -i.orig -e '/newfile config3/s,a-z,a-z.,g' \
"${S}"/src/sanity.sh
}
src_configure() {
local myconf
# the tests need the server and proxy
if use test; then
use server || \
ewarn "The server and proxy code are enabled as they are required for tests."
myconf="--enable-server --enable-proxy"
fi
if tc-is-cross-compiler ; then
# Sane defaults when cross-compiling (as these tests want to
# try and execute code).
export cvs_cv_func_printf_ptr="yes"
fi
econf \
--with-external-zlib \
--with-tmpdir=/tmp \
$(use_enable crypt encryption) \
$(use_with kerberos gssapi) \
$(use_enable nls) \
$(use_enable pam) \
$(use_enable server) \
$(use_enable server proxy)
}
src_install() {
einstall || die
if use server; then
insinto /etc/xinetd.d
newins "${FILESDIR}"/cvspserver.xinetd.d cvspserver || die "newins failed"
fi
dodoc BUGS ChangeLog* DEVEL* FAQ HACKING \
MINOR* NEWS PROJECTS README* TESTS TODO
if use emacs; then
insinto /usr/share/emacs/site-lisp
doins cvs-format.el || die "doins failed"
fi
if use doc; then
dodoc "${DISTDIR}"/cederqvist-${PV}.pdf
dodoc "${DISTDIR}"/cederqvist-${PV}.ps
tar xjf "${DISTDIR}"/cederqvist-${PV}.html.tar.bz2
dohtml -r cederqvist-${PV}.html/*
dosym cvs.html /usr/share/doc/${PF}/html/index.html
fi
newpamd "${FILESDIR}"/cvs.pam-include-1.12.12 cvs
}
src_test() {
einfo "If you want to see realtime status, or check out a failure,"
einfo "please look at ${S}/src/check.log*"
if [ -n "$TEST_REMOTE_AND_PROXY" ]; then
einfo "local, remote, and proxy tests enabled."
else
einfo "Only testing local mode. Please see ebuild for other modes."
fi
cd "${S}"/src
export TESTDIR="${T}/tests-local"
mkdir -p "$TESTDIR"
# we only do the local tests by default
make localcheck || die "Some local test failed."
mv -f check.log check.log-local
# if you want to test the remote and proxy modes, things get a little bit
# complicated. You need to set up a SSH config file at ~portage/.ssh/config
# that allows the portage user to login without any authentication, and also
# set up the ~portage/.ssh/known_hosts file for your machine.
# We do not do this by default, as it is unsafe from a security point of
# view, and requires root level ssh changes.
if [ -n "$TEST_REMOTE_AND_PROXY" ]; then
cd "${S}"/src
export TESTDIR="${T}/tests-remote"
mkdir -p "$TESTDIR"
make remotecheck || die "Some remote test failed."
mv -f check.log check.log-remote
cd "${S}"/src
export TESTDIR="${T}/tests-proxy"
mkdir -p "$TESTDIR"
make proxycheck || die "Some proxy test failed."
mv -f check.log check.log-proxy
fi
}
-154
View File
@@ -1,154 +0,0 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=3
inherit eutils pam toolchain-funcs versionator
DESCRIPTION="Concurrent Versions System - source code revision control tools"
HOMEPAGE="http://www.nongnu.org/cvs/"
DOC_PV="$(get_version_component_range 1-3)"
FEAT_URIBASE="mirror://gnu/non-gnu/cvs/source/feature/${PV}/"
DOC_URIBASE="mirror://gnu/non-gnu/cvs/source/feature/${DOC_PV}/"
SNAP_URIBASE="mirror://gnu/non-gnu/cvs/source/nightly-snapshots/feature/"
SRC_URI="
${FEAT_URIBASE}/${P}.tar.bz2
${SNAP_URIBASE}/${P}.tar.bz2
doc? (
${DOC_URIBASE}/cederqvist-${DOC_PV}.html.tar.bz2
${DOC_URIBASE}/cederqvist-${DOC_PV}.pdf
${DOC_URIBASE}/cederqvist-${DOC_PV}.ps
)"
LICENSE="GPL-2 LGPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~sparc-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
IUSE="crypt doc kerberos nls pam server"
RDEPEND=">=sys-libs/zlib-1.1.4
kerberos? ( virtual/krb5 )
pam? ( virtual/pam )"
DEPEND="${RDEPEND}"
src_unpack() {
unpack ${P}.tar.bz2
use doc && unpack cederqvist-${DOC_PV}.html.tar.bz2
}
src_prepare() {
epatch "${FILESDIR}"/${PN}-1.12.12-cvsbug-tmpfix.patch
epatch "${FILESDIR}"/${PN}-1.12.12-install-sh.patch
epatch "${FILESDIR}"/${PN}-1.12.13.1-block-requests.patch
epatch "${FILESDIR}"/${PN}-1.12.13.1-hash-nameclash.patch # for AIX
epatch "${FILESDIR}"/${PN}-1.12.13.1-gl-mempcpy.patch # for AIX
epatch "${FILESDIR}"/${PN}-1.12.12-fix-massive-leak.patch
epatch "${FILESDIR}"/${PN}-1.12.13.1-use-include_next.patch
# Applied by upstream:
#epatch "${FILESDIR}"/${PN}-1.12.13-openat.patch
#epatch "${FILESDIR}"/${PN}-1.12.13-zlib.patch
# this testcase was not updated
#sed -i.orig -e '/unrecognized keyword.*BogusOption/s,98,73,g' \
# ${S}/src/sanity.sh
# this one fails when the testpath path contains '.'
sed -i.orig \
-e '/newfile config3/s,a-z,a-z.,g' \
"${S}"/src/sanity.sh
elog "If you want any CVS server functionality, you MUST emerge with USE=server!"
}
src_configure() {
local myconf
# the tests need the server and proxy
if use test; then
use server || \
ewarn "The server and proxy code are enabled as they are required for tests."
myconf="--enable-server --enable-proxy"
fi
if tc-is-cross-compiler ; then
# Sane defaults when cross-compiling (as these tests want to
# try and execute code).
export cvs_cv_func_printf_ptr="yes"
fi
econf \
--with-external-zlib \
--with-tmpdir=/tmp \
$(use_enable crypt encryption) \
$(use_with kerberos gssapi) \
$(use_enable nls) \
$(use_enable pam) \
$(use_enable server) \
$(use_enable server proxy) \
${myconf}
}
src_install() {
emake install DESTDIR="${D}" || die
if use server; then
insinto /etc/xinetd.d
newins "${FILESDIR}"/cvspserver.xinetd.d cvspserver || die "newins failed"
fi
dodoc BUGS ChangeLog* DEVEL* FAQ HACKING \
MINOR* NEWS PROJECTS README* TESTS TODO
# Not installed into emacs site-lisp because it clobbers the normal C
# indentations.
dodoc cvs-format.el || die "dodoc failed"
use server && newdoc "${FILESDIR}"/${PN}-1.12.12-cvs-custom.c cvs-custom.c
if use doc; then
dodoc "${DISTDIR}"/cederqvist-${DOC_PV}.pdf
dodoc "${DISTDIR}"/cederqvist-${DOC_PV}.ps
dohtml -r "${WORKDIR}"/cederqvist-${DOC_PV}.html/
dosym cvs.html /usr/share/doc/${PF}/html/index.html
fi
newpamd "${FILESDIR}"/cvs.pam-include-1.12.12 cvs
}
_run_one_test() {
mode="$1" ; shift
einfo "Starting ${mode} test"
cd "${S}"/src
export TESTDIR="${T}/tests-${mode}"
rm -rf "$TESTDIR" # Clean up from any previous test passes
mkdir -p "$TESTDIR"
emake -j1 ${mode}check || die "Some ${mode} test failed."
mv -f check.log check.log-${mode}
einfo "${mode} test completed successfully, log is check.log-${mode}"
}
src_test() {
einfo "If you want to see realtime status, or check out a failure,"
einfo "please look at ${S}/src/check.log*"
if [ "$TEST_REMOTE_AND_PROXY" == "1" ]; then
einfo "local, remote, and proxy tests enabled."
else
einfo "Only testing local mode. Please see ebuild for other modes."
fi
# we only do the local tests by default
_run_one_test local
# if you want to test the remote and proxy modes, things get a little bit
# complicated. You need to set up a SSH config file at ~portage/.ssh/config
# that allows the portage user to login without any authentication, and also
# set up the ~portage/.ssh/known_hosts file for your machine.
# We do not do this by default, as it is unsafe from a security point of
# view, and requires root level ssh changes.
# Note that this also requires having a real shell for the portage user, so make
# sure that su -c 'ssh portage@mybox' portage works first!
# (It uses the local ip, not loopback)
if [ "$TEST_REMOTE_AND_PROXY" == "1" ]; then
_run_one_test remote
_run_one_test proxy
fi
}
-155
View File
@@ -1,155 +0,0 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=3
inherit eutils pam toolchain-funcs versionator
DESCRIPTION="Concurrent Versions System - source code revision control tools"
HOMEPAGE="http://www.nongnu.org/cvs/"
DOC_PV="$(get_version_component_range 1-3)"
FEAT_URIBASE="mirror://gnu/non-gnu/cvs/source/feature/${PV}/"
DOC_URIBASE="mirror://gnu/non-gnu/cvs/source/feature/${DOC_PV}/"
SNAP_URIBASE="mirror://gnu/non-gnu/cvs/source/nightly-snapshots/feature/"
SRC_URI="
${FEAT_URIBASE}/${P}.tar.bz2
${SNAP_URIBASE}/${P}.tar.bz2
doc? (
${DOC_URIBASE}/cederqvist-${DOC_PV}.html.tar.bz2
${DOC_URIBASE}/cederqvist-${DOC_PV}.pdf
${DOC_URIBASE}/cederqvist-${DOC_PV}.ps
)"
LICENSE="GPL-2 LGPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~sparc-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
IUSE="crypt doc kerberos nls pam server"
RDEPEND=">=sys-libs/zlib-1.1.4
kerberos? ( virtual/krb5 )
pam? ( virtual/pam )"
DEPEND="${RDEPEND}"
src_unpack() {
unpack ${P}.tar.bz2
use doc && unpack cederqvist-${DOC_PV}.html.tar.bz2
}
src_prepare() {
epatch "${FILESDIR}"/${PN}-1.12.12-cvsbug-tmpfix.patch
epatch "${FILESDIR}"/${PN}-1.12.12-install-sh.patch
epatch "${FILESDIR}"/${PN}-1.12.13.1-block-requests.patch
epatch "${FILESDIR}"/${PN}-1.12.13.1-hash-nameclash.patch # for AIX
epatch "${FILESDIR}"/${PN}-1.12.13.1-gl-mempcpy.patch # for AIX
epatch "${FILESDIR}"/${PN}-1.12.12-fix-massive-leak.patch
epatch "${FILESDIR}"/${PN}-1.12.13.1-use-include_next.patch
epatch "${FILESDIR}"/${PN}-1.12.13.1-fix-gnulib-SEGV-vasnprintf.patch
# Applied by upstream:
#epatch "${FILESDIR}"/${PN}-1.12.13-openat.patch
#epatch "${FILESDIR}"/${PN}-1.12.13-zlib.patch
# this testcase was not updated
#sed -i.orig -e '/unrecognized keyword.*BogusOption/s,98,73,g' \
# ${S}/src/sanity.sh
# this one fails when the testpath path contains '.'
sed -i.orig \
-e '/newfile config3/s,a-z,a-z.,g' \
"${S}"/src/sanity.sh
elog "If you want any CVS server functionality, you MUST emerge with USE=server!"
}
src_configure() {
local myconf
# the tests need the server and proxy
if use test; then
use server || \
ewarn "The server and proxy code are enabled as they are required for tests."
myconf="--enable-server --enable-proxy"
fi
if tc-is-cross-compiler ; then
# Sane defaults when cross-compiling (as these tests want to
# try and execute code).
export cvs_cv_func_printf_ptr="yes"
fi
econf \
--with-external-zlib \
--with-tmpdir=/tmp \
$(use_enable crypt encryption) \
$(use_with kerberos gssapi) \
$(use_enable nls) \
$(use_enable pam) \
$(use_enable server) \
$(use_enable server proxy) \
${myconf}
}
src_install() {
emake install DESTDIR="${D}" || die
if use server; then
insinto /etc/xinetd.d
newins "${FILESDIR}"/cvspserver.xinetd.d cvspserver || die "newins failed"
fi
dodoc BUGS ChangeLog* DEVEL* FAQ HACKING \
MINOR* NEWS PROJECTS README* TESTS TODO
# Not installed into emacs site-lisp because it clobbers the normal C
# indentations.
dodoc cvs-format.el || die "dodoc failed"
use server && newdoc "${FILESDIR}"/${PN}-1.12.12-cvs-custom.c cvs-custom.c
if use doc; then
dodoc "${DISTDIR}"/cederqvist-${DOC_PV}.pdf
dodoc "${DISTDIR}"/cederqvist-${DOC_PV}.ps
dohtml -r "${WORKDIR}"/cederqvist-${DOC_PV}.html/
dosym cvs.html /usr/share/doc/${PF}/html/index.html
fi
newpamd "${FILESDIR}"/cvs.pam-include-1.12.12 cvs
}
_run_one_test() {
mode="$1" ; shift
einfo "Starting ${mode} test"
cd "${S}"/src
export TESTDIR="${T}/tests-${mode}"
rm -rf "$TESTDIR" # Clean up from any previous test passes
mkdir -p "$TESTDIR"
emake -j1 ${mode}check || die "Some ${mode} test failed."
mv -f check.log check.log-${mode}
einfo "${mode} test completed successfully, log is check.log-${mode}"
}
src_test() {
einfo "If you want to see realtime status, or check out a failure,"
einfo "please look at ${S}/src/check.log*"
if [ "$TEST_REMOTE_AND_PROXY" == "1" ]; then
einfo "local, remote, and proxy tests enabled."
else
einfo "Only testing local mode. Please see ebuild for other modes."
fi
# we only do the local tests by default
_run_one_test local
# if you want to test the remote and proxy modes, things get a little bit
# complicated. You need to set up a SSH config file at ~portage/.ssh/config
# that allows the portage user to login without any authentication, and also
# set up the ~portage/.ssh/known_hosts file for your machine.
# We do not do this by default, as it is unsafe from a security point of
# view, and requires root level ssh changes.
# Note that this also requires having a real shell for the portage user, so make
# sure that su -c 'ssh portage@mybox' portage works first!
# (It uses the local ip, not loopback)
if [ "$TEST_REMOTE_AND_PROXY" == "1" ]; then
_run_one_test remote
_run_one_test proxy
fi
}
-151
View File
@@ -1,151 +0,0 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=3
inherit eutils pam toolchain-funcs versionator
DESCRIPTION="Concurrent Versions System - source code revision control tools"
HOMEPAGE="http://www.nongnu.org/cvs/"
DOC_PV="$(get_version_component_range 1-3)"
FEAT_URIBASE="mirror://gnu/non-gnu/cvs/source/feature/${PV}/"
DOC_URIBASE="mirror://gnu/non-gnu/cvs/source/feature/${DOC_PV}/"
SNAP_URIBASE="mirror://gnu/non-gnu/cvs/source/nightly-snapshots/feature/"
SRC_URI="
${FEAT_URIBASE}/${P}.tar.bz2
${SNAP_URIBASE}/${P}.tar.bz2
doc? (
${DOC_URIBASE}/cederqvist-${DOC_PV}.html.tar.bz2
${DOC_URIBASE}/cederqvist-${DOC_PV}.pdf
${DOC_URIBASE}/cederqvist-${DOC_PV}.ps
)"
LICENSE="GPL-2 LGPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~sparc-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
IUSE="crypt doc kerberos nls pam server"
DEPEND=">=sys-libs/zlib-1.1.4
kerberos? ( virtual/krb5 )
pam? ( virtual/pam )"
src_unpack() {
unpack ${P}.tar.bz2
use doc && unpack cederqvist-${DOC_PV}.html.tar.bz2
}
src_prepare() {
epatch "${FILESDIR}"/${PN}-1.12.12-cvsbug-tmpfix.patch
epatch "${FILESDIR}"/${PN}-1.12.12-install-sh.patch
epatch "${FILESDIR}"/${PN}-1.12.13.1-block-requests.patch
epatch "${FILESDIR}"/${PN}-1.12.13.1-hash-nameclash.patch # for AIX
epatch "${FILESDIR}"/${PN}-1.12.13.1-gl-mempcpy.patch # for AIX
# Applied by upstream:
#epatch "${FILESDIR}"/${PN}-1.12.13-openat.patch
#epatch "${FILESDIR}"/${PN}-1.12.13-zlib.patch
# this testcase was not updated
#sed -i.orig -e '/unrecognized keyword.*BogusOption/s,98,73,g' \
# ${S}/src/sanity.sh
# this one fails when the testpath path contains '.'
sed -i.orig \
-e '/newfile config3/s,a-z,a-z.,g' \
"${S}"/src/sanity.sh
elog "If you want any CVS server functionality, you MUST emerge with USE=server!"
}
src_configure() {
local myconf
# the tests need the server and proxy
if use test; then
use server || \
ewarn "The server and proxy code are enabled as they are required for tests."
myconf="--enable-server --enable-proxy"
fi
if tc-is-cross-compiler ; then
# Sane defaults when cross-compiling (as these tests want to
# try and execute code).
export cvs_cv_func_printf_ptr="yes"
fi
econf \
--with-external-zlib \
--with-tmpdir=/tmp \
$(use_enable crypt encryption) \
$(use_with kerberos gssapi) \
$(use_enable nls) \
$(use_enable pam) \
$(use_enable server) \
$(use_enable server proxy) \
${myconf}
}
src_install() {
emake install DESTDIR="${D}" || die
if use server; then
insinto /etc/xinetd.d
newins "${FILESDIR}"/cvspserver.xinetd.d cvspserver || die "newins failed"
fi
dodoc BUGS ChangeLog* DEVEL* FAQ HACKING \
MINOR* NEWS PROJECTS README* TESTS TODO
# Not installed into emacs site-lisp because it clobbers the normal C
# indentations.
dodoc cvs-format.el || die "dodoc failed"
use server && newdoc "${FILESDIR}"/${PN}-1.12.12-cvs-custom.c cvs-custom.c
if use doc; then
dodoc "${DISTDIR}"/cederqvist-${DOC_PV}.pdf
dodoc "${DISTDIR}"/cederqvist-${DOC_PV}.ps
dohtml -r "${WORKDIR}"/cederqvist-${DOC_PV}.html/
dosym cvs.html /usr/share/doc/${PF}/html/index.html
fi
newpamd "${FILESDIR}"/cvs.pam-include-1.12.12 cvs
}
_run_one_test() {
mode="$1" ; shift
einfo "Starting ${mode} test"
cd "${S}"/src
export TESTDIR="${T}/tests-${mode}"
rm -rf "$TESTDIR" # Clean up from any previous test passes
mkdir -p "$TESTDIR"
emake -j1 ${mode}check || die "Some ${mode} test failed."
mv -f check.log check.log-${mode}
einfo "${mode} test completed successfully, log is check.log-${mode}"
}
src_test() {
einfo "If you want to see realtime status, or check out a failure,"
einfo "please look at ${S}/src/check.log*"
if [ "$TEST_REMOTE_AND_PROXY" == "1" ]; then
einfo "local, remote, and proxy tests enabled."
else
einfo "Only testing local mode. Please see ebuild for other modes."
fi
# we only do the local tests by default
_run_one_test local
# if you want to test the remote and proxy modes, things get a little bit
# complicated. You need to set up a SSH config file at ~portage/.ssh/config
# that allows the portage user to login without any authentication, and also
# set up the ~portage/.ssh/known_hosts file for your machine.
# We do not do this by default, as it is unsafe from a security point of
# view, and requires root level ssh changes.
# Note that this also requires having a real shell for the portage user, so make
# sure that su -c 'ssh portage@mybox' portage works first!
# (It uses the local ip, not loopback)
if [ "$TEST_REMOTE_AND_PROXY" == "1" ]; then
_run_one_test remote
_run_one_test proxy
fi
}
@@ -1,21 +0,0 @@
Index: cvs-1.12.13/lib/openat.c
===================================================================
--- cvs-1.12.13.orig/lib/openat.c
+++ cvs-1.12.13/lib/openat.c
@@ -55,9 +55,13 @@ rpl_openat (int fd, char const *filename
va_list arg;
va_start (arg, flags);
- /* Assume that mode_t is passed compatibly with mode_t's type
- after argument promotion. */
- mode = va_arg (arg, mode_t);
+ /* If mode_t is narrower than int, use the promoted type (int),
+ not mode_t. Use sizeof to guess whether mode_t is nerrower;
+ we don't know of any practical counterexamples. */
+ if (sizeof (mode_t) < sizeof (int))
+ mode = va_arg (arg, int);
+ else
+ mode = va_arg (arg, mode_t);
va_end (arg);
}
-31
View File
@@ -1,31 +0,0 @@
Index: src/zlib.c
===================================================================
RCS file: /sources/cvs/ccvs/src/zlib.c,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -r1.31 -r1.32
--- src/zlib.c 3 Jun 2005 18:26:09 -0000 1.31
+++ src/zlib.c 28 Oct 2005 14:10:59 -0000 1.32
@@ -221,15 +221,14 @@
point. */
assert (bd->size == 0);
- /* This will work well in the server, because this call will
- do an unblocked read and fetch all the available data. In
- the client, this will read a single byte from the stdio
- stream, which will cause us to call inflate once per byte.
- It would be more efficient if we could make a call which
- would fetch all the available bytes, and at least one byte. */
-
+ /* On the server, this will do an unblocking read of as much data as is
+ * available. On the client, with a blocking input descriptor and the
+ * current fd_buffer implementation, this should read as much data as
+ * is currently available, and at least 1 byte (or EOF), from the
+ * underlying buffer.
+ */
status = (*cb->buf->input) (cb->buf->closure, bd->text,
- need, BUFFER_DATA_SIZE, &nread);
+ need ? 1 : 0, BUFFER_DATA_SIZE, &nread);
if (status == -2)
/* Don't try to recover from memory allcoation errors. */
@@ -1,101 +0,0 @@
Author: Robin H. Johnson <robbat2@gentoo.org>
Original-Date: 2006-08-09
Forward-Port-Date: 2007-12-06
This patch allows a CVS server to deny usage of specific commands, based on
input in the environment.
Just set the CVS_BLOCK_REQUESTS env var with all of the commands you want,
seperated by spaces. Eg:
CVS_BLOCK_REQUESTS="Gzip-stream gzip-file-contents"
would block ALL usage of compression.
Please see the array 'struct request requests[]' in src/server.c for a full
list of commands.
Please note that if you block any commands marked as RQ_ESSENTIAL, CVS clients
may fail! (This includes 'ci'!).
See the companion cvs-custom.c for a wrapper that can enforce the environment variable for pserver setups.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
diff -Nuar cvs-1.12.13.1.orig/src/server.c cvs-1.12.13.1/src/server.c
--- cvs-1.12.13.1.orig/src/server.c 2006-06-21 11:55:21.000000000 -0700
+++ cvs-1.12.13.1/src/server.c 2007-12-06 16:25:38.109309990 -0800
@@ -6244,6 +6244,49 @@
/*
* This server request is not ignored by the secondary.
*/
+
+/* Hack by Robin H. Johnson <robbat2@gentoo.org>.
+ * Allow the server ENV to specify what request types are to be ignored.
+ */
+
+static char blocked_requests[BUFSIZ] = " ";
+
+static void build_blocked_requests() {
+ char *tmp = getenv("CVS_BLOCK_REQUESTS");
+
+ if (tmp != NULL && strlen(tmp) > 0) {
+ // move to our custom buffer
+ strncat(blocked_requests, tmp, sizeof(blocked_requests)-strlen(blocked_requests));
+ //add a space on the end as well for searching
+ strncat(blocked_requests, " ", sizeof(blocked_requests)-strlen(blocked_requests));
+ }
+
+ // now blocked_requests contains the list of every request that we do not
+ // want to serve
+}
+
+// returns 0 if we should serve this request
+// use as if(checker(FOO)) continue;
+static int serve_valid_requests_checker(char *reqname) {
+ char needle[BUFSIZ] = " ";
+ char *tmp;
+
+ if(!blocked_requests || strlen(blocked_requests) < 2)
+ return 0;
+
+ // we want to look for ' 'reqname' '
+ snprintf(needle, sizeof(needle), " %s ", reqname);
+
+ // now do the search
+ tmp = strstr(blocked_requests, needle);
+
+ if (tmp != NULL)
+ return 1;
+
+ return 0;
+
+}
+
static void
serve_valid_requests (char *arg)
{
@@ -6262,11 +6305,15 @@
)
return;
+ build_blocked_requests();
+
buf_output0 (buf_to_net, "Valid-requests");
for (rq = requests; rq->name != NULL; rq++)
{
if (rq->func != NULL)
{
+ if(serve_valid_requests_checker(rq->name))
+ continue;
buf_append_char (buf_to_net, ' ');
buf_output0 (buf_to_net, rq->name);
}
@@ -6706,6 +6753,9 @@
* "co".
*/
continue;
+ // Ignore commands that we are supposed to ignore.
+ if(serve_valid_requests_checker(rq->name))
+ continue;
if (!(rq->flags & RQ_ROOTLESS)
&& current_parsed_root == NULL)
@@ -1,42 +0,0 @@
Attemt to use CVS leads to glibc crash:
$ cvs up
*** %n in writable segment detected ***
Fixes: https://savannah.nongnu.org/bugs/?35432
Upstream gnulib commit:
From 913c09becd9df89dbd9b9f386e7f35c240d5efe8 Mon Sep 17 00:00:00 2001
From: Bruno Haible <bruno@clisp.org>
Date: Thu, 18 Oct 2007 23:50:42 +0000
Subject: Don't use %n on glibc >= 2.3 systems.
---
(limited to 'lib/vasnprintf.c')
diff --git a/lib/vasnprintf.c b/lib/vasnprintf.c
index f563823..5d818aa 100644
--- a/lib/vasnprintf.c
+++ b/lib/vasnprintf.c
@@ -3386,8 +3386,20 @@ VASNPRINTF (DCHAR_T *resultbuf, size_t *lengthp,
*fbp = dp->conversion;
#if USE_SNPRINTF
+# if !(__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 3))
p[1] = '%';
p[2] = 'n';
p[3] = '\0';
+# else
+ /* On glibc2 systems from glibc >= 2.3 - probably also older
+ ones - we know that snprintf's returns value conforms to
+ ISO C 99: the gl_SNPRINTF_DIRECTIVE_N test passes.
+ Therefore we can avoid using %n in this situation.
+ On glibc2 systems from 2004-10-18 or newer, the use of %n
+ in format strings in writable memory may crash the program
+ (if compiled with _FORTIFY_SOURCE=2), so we should avoid it
+ in this situation. */
+ p[1] = '\0';
+# endif
#else
p[1] = '\0';
#endif
--
cgit v0.9.0.2
@@ -1,24 +0,0 @@
http://cvs.savannah.gnu.org/viewvc/cvs/ccvs/lib/mempcpy.c?r1=1.2&r2=1.3&pathrev=MAIN
fixed in cvs-HEAD after cvs-1.12.13a
--- lib/mempcpy.c 2005/05/23 17:44:31 1.2
+++ lib/mempcpy.c 2007/08/22 12:48:42 1.3
@@ -1,5 +1,5 @@
/* Copy memory area and return pointer after last written byte.
- Copyright (C) 2003 Free Software Foundation, Inc.
+ Copyright (C) 2003, 2007 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -15,9 +15,9 @@
along with this program; if not, write to the Free Software Foundation,
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
-/* Specification. */
-#include "mempcpy.h"
+#include <config.h>
+/* Specification. */
#include <string.h>
/* Copy N bytes of SRC to DEST, return pointer to bytes after the
@@ -1,43 +0,0 @@
http://cvs.savannah.gnu.org/viewvc/cvs/ccvs/src/hash.h?r1=1.14.6.2&r2=1.14.6.3&pathrev=cvs1-11-x-branch
fixed in cvs-1.11.23, cvs-HEAD after cvs-1.12.13a
--- src/hash.h.orig 2010-03-11 10:12:19 +0100
+++ src/hash.h 2010-03-11 10:12:40 +0100
@@ -32,27 +32,27 @@
};
typedef enum ntype Ntype;
-struct node
+struct hashnode
{
Ntype type;
- struct node *next;
- struct node *prev;
- struct node *hashnext;
- struct node *hashprev;
+ struct hashnode *next;
+ struct hashnode *prev;
+ struct hashnode *hashnext;
+ struct hashnode *hashprev;
char *key;
void *data;
size_t len; /* Length of DATA. */
- void (*delproc) (struct node *);
+ void (*delproc) (struct hashnode *);
};
-typedef struct node Node;
+typedef struct hashnode Node;
-struct list
+struct hashlist
{
Node *list;
Node *hasharray[HASHSIZE];
- struct list *next;
+ struct hashlist *next;
};
-typedef struct list List;
+typedef struct hashlist List;
List *getlist (void);
Node *findnode (List *list, const char *key);
@@ -1,30 +0,0 @@
Fix build failure on gentoo's gcc:
In file included from ./inttypes.h:34:0,
from ./stdint.h:65,
from /usr/include/netinet/in.h:23,
from /usr/include/netdb.h:27,
from getaddrinfo.h:30,
from canon-host.c:27:
/usr/include/inttypes.h:297:1: error: unknown type name 'intmax_t'
/usr/include/inttypes.h:297:26: error: unknown type name 'intmax_t'
/usr/include/inttypes.h:300:27: error: unknown type name 'intmax_t'
/usr/include/inttypes.h:300:45: error: unknown type name 'intmax_t'
diff --git a/lib/stdint_.h b/lib/stdint_.h
index adab4d7..3a8db19 100644
--- a/lib/stdint_.h
+++ b/lib/stdint_.h
@@ -43,7 +43,12 @@
Include it before <inttypes.h>, since any "#include <stdint.h>"
in <inttypes.h> would reinclude us, skipping our contents because
_GL_STDINT_H is defined. */
-# include @ABSOLUTE_STDINT_H@
+# include "config.h"
+# if HAVE_INCLUDE_NEXT
+# include_next <stdint.h>
+# else
+# include @ABSOLUTE_STDINT_H@
+# endif
#endif
/* <sys/types.h> defines some of the stdint.h types as well, on glibc,