Gentoo Archives: gentoo-commits

From: Felix Janda <felix.janda@××××××.de>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/musl:master commit in: dev-vcs/cvs/, dev-vcs/cvs/files/
Date: Wed, 04 Jan 2017 10:02:21
Message-Id: 1483524064.847df9ac26e031a12735da77badcc8490aecde6e.doughdemon@gentoo
1 commit: 847df9ac26e031a12735da77badcc8490aecde6e
2 Author: Felix Janda <felix.janda <AT> posteo <DOT> de>
3 AuthorDate: Mon Jan 2 19:20:04 2017 +0000
4 Commit: Felix Janda <felix.janda <AT> posteo <DOT> de>
5 CommitDate: Wed Jan 4 10:01:04 2017 +0000
6 URL: https://gitweb.gentoo.org/proj/musl.git/commit/?id=847df9ac
7
8 dev-vcs/cvs: in tree version 1.12.12-r11 works
9
10 dev-vcs/cvs/Manifest | 20 ---
11 dev-vcs/cvs/cvs-1.12.12-r99.ebuild | 91 --------------
12 dev-vcs/cvs/files/01-cvs-env.d | 1 -
13 dev-vcs/cvs/files/cvs-1.12.12-block-requests.patch | 140 ---------------------
14 .../files/cvs-1.12.12-cvs-gnulib-vasnprintf.patch | 34 -----
15 dev-vcs/cvs/files/cvs-1.12.12-cvsbug-tmpfix.patch | 22 ----
16 .../cvs/files/cvs-1.12.12-fix-massive-leak.patch | 52 --------
17 dev-vcs/cvs/files/cvs-1.12.12-getdelim.patch | 21 ----
18 dev-vcs/cvs/files/cvs-1.12.12-hash-nameclash.patch | 42 -------
19 dev-vcs/cvs/files/cvs-1.12.12-install-sh.patch | 12 --
20 dev-vcs/cvs/files/cvs-1.12.12-mktime-x32.patch | 29 -----
21 dev-vcs/cvs/files/cvs-1.12.12-openat.patch | 21 ----
22 .../cvs/files/cvs-1.12.12-rcs2log-coreutils.patch | 14 ---
23 dev-vcs/cvs/files/cvs-1.12.12-regex.patch | 11 --
24 dev-vcs/cvs/files/cvs.pam-include-1.12.12 | 4 -
25 dev-vcs/cvs/files/cvspserver.xinetd.d | 14 ---
26 dev-vcs/cvs/metadata.xml | 11 --
27 17 files changed, 539 deletions(-)
28
29 diff --git a/dev-vcs/cvs/Manifest b/dev-vcs/cvs/Manifest
30 deleted file mode 100644
31 index 950c9fb..0000000
32 --- a/dev-vcs/cvs/Manifest
33 +++ /dev/null
34 @@ -1,20 +0,0 @@
35 -AUX 01-cvs-env.d 14 SHA256 dd2e8db836e3879e56cba5df8f0700c1c0581df7e2201f9196650936278a0d15 SHA512 cbb7545ae34fcbfb6e64ad6bf91105a1950a483bb68637d164026e7df06da2dccbcfe0af568c3249ac0a8e7ff466a5e77614fe6fd76a3829136a854bfa7ceb5a WHIRLPOOL 8aaa83c3d17a480ec03267b6d397576f04ea0ac41ad26e6030c739355d50ea698094920ff2e6c4ad6fc9f84425866eedead009e7ded11ea3e68113451e8bf9b8
36 -AUX cvs-1.12.12-block-requests.patch 4006 SHA256 70bbf745815d1e01582329160a10f5cdd9c11051e4e62d331686dd5124e01294 SHA512 541545ffc64c4f2303b7e8f6cae2cdff0437452e4bcf94b2149d51e43710096e17f024c1a8ed32433560ea51ecef2aba2f3e6bfaef8fa9e4ad2f2436649884d1 WHIRLPOOL 4c56980ea0d307789ace423e7fcafb86c82429f82cfbe6d873706f95e6e2554e06268540d23b9718113e5182b83b01bb22d02ae649e27feaac1dfd09b38fa892
37 -AUX cvs-1.12.12-cvs-gnulib-vasnprintf.patch 1092 SHA256 f38e6bbb0fd8b783b654ac775183a1cb24e3987698fdbd706a8d5fa59a45f945 SHA512 6c0be276f6e86dbe3646ada02ea57194b8c7d1e4d76c5faeb06750435599aa4125253bdf7af6232f53807977acb34aba093bc8bfa2ce98389c5ee80b2fd6e05d WHIRLPOOL 0b5dd5ee3c11fae83688d900db2ce678870c79b753c1ffde9aa11a6fe18286af7e24d57f2ce28ffcdbfb42172a0e87baed58047497248ffb1a37acca93ad716f
38 -AUX cvs-1.12.12-cvsbug-tmpfix.patch 624 SHA256 061c26d140e1195200f1cc76217b2e7c2ff7f0c4dcbbb31124b386e8e756938e SHA512 29014631f5595dbf51a47032a19a23e545190dd8d40d77a71d363cee07a9ae38263b67db52a512436a9a7b37a7f5ff4daafa4a0a9f3c29bcfeb71ecff74408b7 WHIRLPOOL 09d53fa26159defe56cdbd414b699bd7c5be07f36b0b5addd367b393985bd7c98f14189db5b2793af0fc37d052f21af1f97c3775d46d71cebdfff15c447a9d5a
39 -AUX cvs-1.12.12-fix-massive-leak.patch 1985 SHA256 30727f2f97164b7e71a8abaf859b2a6dea7f680cb7e97699ee1e8ca8600bd782 SHA512 c4c9026e971f3da49cefce102b57bc681427a708ec8caa185df1234fd2a95090c8dc8cbf84374a762fdef7002d658cd4b52450429664cb3a1bfbda63d31c78a7 WHIRLPOOL c669df0411348d88f140a6da8c1c7a89be835483f00308020025d027f2ad55ba463608e48e04f11689c3270c3318b2aebba828020a997c8754e9517baef3b2d2
40 -AUX cvs-1.12.12-getdelim.patch 559 SHA256 cc02f345d7347349df7b6fa826ef314871e5049df48e9c892db0175dbfe16cf4 SHA512 4e55f705b9fb8bc2a6c381e01c783ee4476fee8330aede6843b89c2217f8667f1e682ce098b78d3ea2d491b55227b97e07bc48173446ee8c9b86169357b03d19 WHIRLPOOL 663e4a42ac4e859acf0bde57eac5910b19e6a21a23878a03a3f56c9a5e092c81da0024a8fe519bbbdc82a528c258c5537084a4188ae127a5dcfc470a4f927216
41 -AUX cvs-1.12.12-hash-nameclash.patch 1015 SHA256 3a6a5bf6bd419bb8a4440f3f4f5dba770db1d06e33e0ab6d249ace490010edb4 SHA512 0c3a78d31a38fb478ee7a93b87ad9481f04d275a3b9a9820e4cdfc8f0c27516c056aa3abf5087d3ebd2938dee504d0ba9291a615b4eb33f5b66663d24a1ccbd7 WHIRLPOOL db273cd95429ad758615826cb54755b91eb2a9a56daa859e264dc46eb8ffb5f2ec0ec21f17cfe5767021827a835ed4b700b8a8f52ae6e46695b5e715979d695e
42 -AUX cvs-1.12.12-install-sh.patch 495 SHA256 9c2fc03b42804f8edb3a5a6f9c9e80bd68924f265ce52d196c3b5c759ba42f8a SHA512 7e468d41c1eb23c0a62b605e6e48cffc004e8f386a87a9696dd73b36702c74aad529f5cba7280dee1100027b6e1e907adad257cc446ca3ad734fa40d47e4ff72 WHIRLPOOL 1eaf9e7ccab89cd0d2c95440da0454779b13d6efc4b2a773d41f58998353a2670134344d6a97379103f3ba6e8b6c96c93db0b6229821bb8c12ce037a3b7ddb64
43 -AUX cvs-1.12.12-mktime-x32.patch 916 SHA256 107b0adceda7c8b7b8e89604f38ea0e7a903420dc58dbf22c5eeac947d63d0e1 SHA512 4a58c0f94de8e19c2de1930b7e5e04816e79a86885c89b792616a4c43f6e12aef271005ae59ae0d5788a910ba97735ccdf35f0ef5faafc2e3c50a9858b8f6216 WHIRLPOOL 5ca4316ee5a272efabe6da249476f6f916851fa92338368616aff03f380b2cd290391faa455e914e423ce74a00122336e6bfa93236a8412c1f32103040e3038a
44 -AUX cvs-1.12.12-openat.patch 761 SHA256 5b9fc46c2ee46d9136ddfc8d0baaac6087d8cae40fa5521815c3c2e372f25b9f SHA512 b0a7abc785169705d2f0668a8af706f93ee3eba3d050d555689577962283e54f6bd186e662b64c65f926cf72dff76a37259181338707d641ee0f20591ba62805 WHIRLPOOL 31c9eb71d9d8cf5dff05e48c054e29b720702c6c12cafd7a2dd9687578bb1c441cf5e90c355b9164dee6b14f6c5cb7a2f4ad7d9ff4831f3ce2f02f82ffd082f7
45 -AUX cvs-1.12.12-rcs2log-coreutils.patch 561 SHA256 0df8b6ad74b344edc7c353c4dd2cc3825db14dfb1fed20bb007f09c58f1063c8 SHA512 796d2b7ee60619878ac4baa346927ab61ad1bf7b532a63976ef4c3d352ac73c6ed47392d614d538b979936f092291e97b23c47e1f029fc87c4de0b994975fb9c WHIRLPOOL dda784cf39c8a91573dbbc663d9e167961ae8540189b7675eef21e87bda6c6de05cc272e256c3a1ba27670f2fbbc03883b2b0ce68c263584d6f00917e5c53103
46 -AUX cvs-1.12.12-regex.patch 396 SHA256 0f8a66e61d92a0a9c23854a2b0f16f75f056cc804003a89428ae59d6ac48109a SHA512 0ea01d1df9e5f91c36d475639db10a22eb52fa7d23cc687482c09489d7ae19a4e5917476c61b7de15fe037775bef92aa206e01e58c26f7dd4ce7b02675eac40c WHIRLPOOL c6f3a33520dff71b4d91b5d4ed281db0bc4f671bf7c0f507052f9e7a202b2a65ac97c9b70c840cdc634dc07fb7600534744d5ff948f383ece2661c0fe4a4cbed
47 -AUX cvs.pam-include-1.12.12 106 SHA256 8291f84c2d76269e7be6487ae1db7212e67ee7313d35e6b0cebcd01e30d155af SHA512 1e72da3f959433e59d0153ff09e53a79bb68793506456e38d7070ffe4fcf6d596fdc3740dd2325d626a8dbd356dd11d93fbd5f220515f2435a94b90bb5833fb9 WHIRLPOOL 4580958cbd6955c5fc3e84d4b5c5877c2e94c5a3de326f6936c641cda43a588196871b43280cdbe16c8274049a08eb73ac7067a5166b1f613770f4ea24afc5eb
48 -AUX cvspserver.xinetd.d 282 SHA256 71b62c4f278ed17bf3cac8eacb2bfb17b6125bfe77f83b46fa5742395b74ef5f SHA512 6845a5fc38ed9d8f9194f14137066c3f2640f09ebc1dce7e9fa7c49761534003e5b1c59593496ba9f88a6c9b1196980bc145a2e2fdcbf662360d1b1ca8821411 WHIRLPOOL 949abc87f0d7c8f104ce8a896fdfd94e3db8f60d5aaa948d3358e348b17de942f19ba68fe545ec2af0026643d7b5efd5bc3bc26ccc7da47c70c544d01879646a
49 -DIST cederqvist-1.12.12.html.tar.bz2 137581 SHA256 6bdd66581ec363e05313a14db27cd3c201b547cdfc9ea2f8edde74e78301f0f6 SHA512 c4f6bdc294b719c1c9f6e8b7d1d4faa9e2aafccd37924e9d4772f8d802da3e7f5ae1778b295989db256b23bb1d0914023db7237adaf07833caaee499ae6b6fa3 WHIRLPOOL 41dd1e0d944a02eeca10539b87b5cfcadbf4fd5923c872aa86e5673bb6a98f774d5378e8b4f1c2e6c6a62e6dc6a4d02c69b5e51ad03da899903070effd62adc9
50 -DIST cederqvist-1.12.12.pdf 1252423 SHA256 211c5792d24bfd5694f23bc217a161d880bfb2447c41016fab6f657168b041ce SHA512 aa90b76664ca103cf41831a5595d5e99df9fd87633aa5a500569f43854ca6e409a26b655f02ed59cde1c37ce88c40e06f3b3376ad71fdc9487032c3f0898706a WHIRLPOOL 88d015117c05716df6d0cdc763f16dc488f0641624475e9bd33478485dd32e36a7ee5c49a1789ebdd173e665ae5963e75975342d7308e8e453adb65dd31ec6c5
51 -DIST cederqvist-1.12.12.ps 1262208 SHA256 0e14189614e2c5ead49bfe0ecd187239f8adc3e66371b49d52163be821e44cab SHA512 9a061ef90c664fbb4f882644f72c4f80ffbe0233b6b364511b1c7f18f0a53383980a6ddda326b6df1f2fe1899aed3225de89b55a65a1d9101ba81d1c10c067e2 WHIRLPOOL fb1616ca734e51a626713e7e78786ecbff18378966c2c131f6992df248096d38e850123449d3a5a6aa111ee209f90ef48848da7366b21cb6befeccf07ce54ab6
52 -DIST cvs-1.12.12.tar.bz2 3197171 SHA256 9fb9176d268b9019768fc57dedc2920c28fbeda5ba224c2348550d4f25043edc SHA512 31c679b77b887e02d9c8c381b0dfb42f1207ef4ca806cd92843638eb2126ed032e99bda70a3e20ea2a029670ff39c40088a43435632e381739e6c2f978e6f4bb WHIRLPOOL 74257976cdb957e86fb9fb7e54fc8c0b7210f72136ce05327203d935195e7a3bdda0c1d616dc04cb1d6495cb038ca7275e88488eddb5d936c1cfceb94583278c
53 -EBUILD cvs-1.12.12-r99.ebuild 2740 SHA256 ad72ae2a8d1a208d55a7bfaf831a9b1a436e71e69939d5b76d9746b2f3f5461b SHA512 d32706ca858ee45bdda070d46b21d73379396afa8f6ed52834150e7980cb18b6742e2afed4e490035220a955c3c1d38734151274baf2936c7d50d9819f790327 WHIRLPOOL ca25836cfb65616a16b6127c9b40213b3e33b89fbd0a8b0f0ba9f4c363ca677a8af10bf1f78a943aa2c85cc36b578f8702988e851fb727126f253bc8e0f13a9d
54 -MISC metadata.xml 331 SHA256 abe97ea27dc3dd970b0bdc5c6a13f144e677da4714992b73a082f0a0cb319904 SHA512 c698a58813dd993a32389cd8ddc4bcc76d4cf6a435c62ee78e1b4f5c3908ba8b55b9a3338b870b3287195d1f480401ee05f5531ca01827e8626e6d77201f2f03 WHIRLPOOL 653ede8acb3ef3f658064ca7622d28f9ccdf3a2152eac9db55c1d8f528aa869b2027159d546ea52dc27fc7e14b9d39580a9a83813d74992a05914321c0d49b7a
55
56 diff --git a/dev-vcs/cvs/cvs-1.12.12-r99.ebuild b/dev-vcs/cvs/cvs-1.12.12-r99.ebuild
57 deleted file mode 100644
58 index 354d77d..0000000
59 --- a/dev-vcs/cvs/cvs-1.12.12-r99.ebuild
60 +++ /dev/null
61 @@ -1,91 +0,0 @@
62 -# Copyright 1999-2016 Gentoo Foundation
63 -# Distributed under the terms of the GNU General Public License v2
64 -# $Id$
65 -
66 -EAPI=3
67 -
68 -inherit eutils pam toolchain-funcs
69 -
70 -DESCRIPTION="Concurrent Versions System - source code revision control tools"
71 -HOMEPAGE="http://www.nongnu.org/cvs/"
72 -
73 -SRC_URI="mirror://gnu/non-gnu/cvs/source/feature/${PV}/${P}.tar.bz2
74 - doc? ( mirror://gnu/non-gnu/cvs/source/feature/${PV}/cederqvist-${PV}.html.tar.bz2
75 - mirror://gnu/non-gnu/cvs/source/feature/${PV}/cederqvist-${PV}.pdf
76 - mirror://gnu/non-gnu/cvs/source/feature/${PV}/cederqvist-${PV}.ps )"
77 -
78 -LICENSE="GPL-2 LGPL-2"
79 -SLOT="0"
80 -KEYWORDS="amd64 arm ~mips ppc x86"
81 -
82 -IUSE="crypt doc kerberos nls pam server"
83 -RESTRICT='test'
84 -
85 -DEPEND=">=sys-libs/zlib-1.1.4
86 - kerberos? ( virtual/krb5 )
87 - pam? ( virtual/pam )"
88 -
89 -src_unpack() {
90 - unpack ${P}.tar.bz2
91 - use doc && unpack cederqvist-${PV}.html.tar.bz2
92 -}
93 -
94 -src_prepare() {
95 - epatch "${FILESDIR}"/${P}-cvsbug-tmpfix.patch
96 - epatch "${FILESDIR}"/${P}-openat.patch
97 - epatch "${FILESDIR}"/${P}-block-requests.patch
98 - epatch "${FILESDIR}"/${P}-cvs-gnulib-vasnprintf.patch
99 - epatch "${FILESDIR}"/${P}-install-sh.patch
100 - epatch "${FILESDIR}"/${P}-regex.patch # for musl
101 - epatch "${FILESDIR}"/${P}-hash-nameclash.patch # for AIX
102 - epatch "${FILESDIR}"/${P}-getdelim.patch # 314791
103 - epatch "${FILESDIR}"/${PN}-1.12.12-rcs2log-coreutils.patch # 144114
104 - epatch "${FILESDIR}"/${P}-mktime-x32.patch # 395641
105 - epatch "${FILESDIR}"/${P}-fix-massive-leak.patch
106 - use server || elog "If you want any CVS server functionality, you MUST emerge with USE=server!"
107 -}
108 -
109 -src_configure() {
110 - if tc-is-cross-compiler ; then
111 - # Sane defaults when cross-compiling (as these tests want to
112 - # try and execute code).
113 - export cvs_cv_func_printf_ptr="yes"
114 - fi
115 - econf \
116 - --with-external-zlib \
117 - --with-tmpdir=/tmp \
118 - $(use_enable crypt encryption) \
119 - $(use_with kerberos gssapi) \
120 - $(use_enable nls) \
121 - $(use_enable pam) \
122 - $(use_enable server)
123 -}
124 -
125 -src_install() {
126 - emake install DESTDIR="${D}" || die
127 -
128 - insinto /etc/xinetd.d
129 - if use server; then
130 - newins "${FILESDIR}"/cvspserver.xinetd.d cvspserver || die "newins failed"
131 - fi
132 - newenvd "${FILESDIR}"/01-cvs-env.d 01cvs
133 -
134 - dodoc BUGS ChangeLog* DEVEL* FAQ HACKING \
135 - MINOR* NEWS PROJECTS README* TESTS TODO
136 -
137 - # Not installed into emacs site-lisp because it clobbers the normal C
138 - # indentations.
139 - dodoc cvs-format.el || die "dodoc failed"
140 -
141 - use server && newdoc "${FILESDIR}"/cvs-1.12.12-cvs-custom.c cvs-custom.c
142 -
143 - if use doc; then
144 - dodoc "${DISTDIR}"/cederqvist-${PV}.pdf
145 - dodoc "${DISTDIR}"/cederqvist-${PV}.ps
146 - tar xjf "${DISTDIR}"/cederqvist-${PV}.html.tar.bz2
147 - dohtml -r cederqvist-${PV}.html/*
148 - dosym cvs.html /usr/share/doc/${PF}/html/index.html
149 - fi
150 -
151 - newpamd "${FILESDIR}"/cvs.pam-include-1.12.12 cvs
152 -}
153
154 diff --git a/dev-vcs/cvs/files/01-cvs-env.d b/dev-vcs/cvs/files/01-cvs-env.d
155 deleted file mode 100644
156 index 5c89358..0000000
157 --- a/dev-vcs/cvs/files/01-cvs-env.d
158 +++ /dev/null
159 @@ -1 +0,0 @@
160 -CVS_RSH="ssh"
161
162 diff --git a/dev-vcs/cvs/files/cvs-1.12.12-block-requests.patch b/dev-vcs/cvs/files/cvs-1.12.12-block-requests.patch
163 deleted file mode 100644
164 index 9c9b49d..0000000
165 --- a/dev-vcs/cvs/files/cvs-1.12.12-block-requests.patch
166 +++ /dev/null
167 @@ -1,140 +0,0 @@
168 -Author: Robin H. Johnson <robbat2@g.o>
169 -Date: 2006-08-09
170 -
171 -This patch allows a CVS server to deny usage of specific commands, based on
172 -input in the environment.
173 -
174 -Just set the CVS_BLOCK_REQUESTS env var with all of the commands you want,
175 -seperated by spaces. Eg:
176 -CVS_BLOCK_REQUESTS="Gzip-stream gzip-file-contents"
177 -would block ALL usage of compression.
178 -
179 -Please see the array 'struct request requests[]' in src/server.c for a full
180 -list of commands.
181 -
182 -Please note that if you block any commands marked as RQ_ESSENTIAL, CVS clients
183 -may fail! (This includes 'ci'!).
184 -
185 -See the companion cvs-custom.c for a wrapper that can enforce the environment variable for pserver setups.
186 -
187 -Signed-off-by: Robin H. Johnson <robbat2@g.o>
188 -
189 -diff -Nuar --exclude '*~' -U 10 cvs-1.12.12.orig/src/server.c cvs-1.12.12/src/server.c
190 ---- cvs-1.12.12.orig/src/server.c 2005-04-14 14:13:29.000000000 +0000
191 -+++ cvs-1.12.12/src/server.c 2006-08-09 01:40:44.000000000 +0000
192 -@@ -5836,43 +5836,90 @@
193 - #undef REQ_LINE
194 - };
195 - #endif /* SERVER_SUPPORT or CLIENT_SUPPORT */
196 -
197 -
198 -
199 - #ifdef SERVER_SUPPORT
200 - /*
201 - * This server request is not ignored by the secondary.
202 - */
203 -+
204 -+/* Hack by Robin H. Johnson <robbat2@g.o>.
205 -+ * Allow the server ENV to specify what request types are to be ignored.
206 -+ */
207 -+
208 -+static char blocked_requests[BUFSIZ] = " ";
209 -+
210 -+static void build_blocked_requests() {
211 -+ char *tmp = getenv("CVS_BLOCK_REQUESTS");
212 -+
213 -+ if (tmp != NULL && strlen(tmp) > 0) {
214 -+ // move to our custom buffer
215 -+ strncat(blocked_requests, tmp, sizeof(blocked_requests)-strlen(blocked_requests));
216 -+ //add a space on the end as well for searching
217 -+ strncat(blocked_requests, " ", sizeof(blocked_requests)-strlen(blocked_requests));
218 -+ }
219 -+
220 -+ // now blocked_requests contains the list of every request that we do not
221 -+ // want to serve
222 -+}
223 -+
224 -+// returns 0 if we should serve this request
225 -+// use as if(checker(FOO)) continue;
226 -+static int serve_valid_requests_checker(char *reqname) {
227 -+ char needle[BUFSIZ] = " ";
228 -+ char *tmp;
229 -+
230 -+ if(!blocked_requests || strlen(blocked_requests) < 2)
231 -+ return 0;
232 -+
233 -+ // we want to look for ' 'reqname' '
234 -+ snprintf(needle, sizeof(needle), " %s ", reqname);
235 -+
236 -+ // now do the search
237 -+ tmp = strstr(blocked_requests, needle);
238 -+
239 -+ if (tmp != NULL)
240 -+ return 1;
241 -+
242 -+ return 0;
243 -+
244 -+}
245 -+
246 - static void
247 - serve_valid_requests (char *arg)
248 - {
249 - struct request *rq;
250 -
251 - /* Since this is processed in the first pass, don't reprocess it in the
252 - * second.
253 - *
254 - * We still print errors since new errors could have been generated in the
255 - * second pass.
256 - */
257 - if (print_pending_error ()
258 - #ifdef PROXY_SUPPORT
259 - || reprocessing
260 - #endif /* PROXY_SUPPORT */
261 - )
262 - return;
263 -+
264 -+ build_blocked_requests();
265 -
266 - buf_output0 (buf_to_net, "Valid-requests");
267 - for (rq = requests; rq->name != NULL; rq++)
268 - {
269 - if (rq->func != NULL)
270 - {
271 -+ if(serve_valid_requests_checker(rq->name))
272 -+ continue;
273 - buf_append_char (buf_to_net, ' ');
274 - buf_output0 (buf_to_net, rq->name);
275 - }
276 - }
277 - buf_output0 (buf_to_net, "\nok\n");
278 -
279 - /* The client is waiting for the list of valid requests, so we
280 - must send the output now. */
281 - buf_flush (buf_to_net, 1);
282 - }
283 -@@ -6353,20 +6400,24 @@
284 - cmd += len;
285 - else if (cmd[len] == ' ')
286 - cmd += len + 1;
287 - else
288 - /*
289 - * The first len characters match, but it's a different
290 - * command. e.g. the command is "cooperate" but we matched
291 - * "co".
292 - */
293 - continue;
294 -+ // Ignore commands that we are supposed to ignore.
295 -+ if(serve_valid_requests_checker(rq->name))
296 -+ continue;
297 -+
298 -
299 - if (!(rq->flags & RQ_ROOTLESS)
300 - && current_parsed_root == NULL)
301 - {
302 - /* For commands which change the way in which data
303 - is sent and received, for example Gzip-stream,
304 - this does the wrong thing. Since the client
305 - assumes that everything is being compressed,
306 - unconditionally, there is no way to give this
307 - error to the client without turning on
308
309 diff --git a/dev-vcs/cvs/files/cvs-1.12.12-cvs-gnulib-vasnprintf.patch b/dev-vcs/cvs/files/cvs-1.12.12-cvs-gnulib-vasnprintf.patch
310 deleted file mode 100644
311 index d7d6e6b..0000000
312 --- a/dev-vcs/cvs/files/cvs-1.12.12-cvs-gnulib-vasnprintf.patch
313 +++ /dev/null
314 @@ -1,34 +0,0 @@
315 -http://bugs.gentoo.org/213833
316 -
317 -commit 913c09becd9df89dbd9b9f386e7f35c240d5efe8
318 -Author: Bruno Haible <bruno@×××××.org>
319 -Date: Fri Oct 19 01:50:42 2007 +0200
320 -
321 - Don't use %n on glibc >= 2.3 systems.
322 -
323 -diff --git a/lib/vasnprintf.c b/lib/vasnprintf.c
324 -index f563823..5d818aa 100644
325 ---- a/lib/vasnprintf.c
326 -+++ b/lib/vasnprintf.c
327 -@@ -3385,9 +3385,21 @@ VASNPRINTF (DCHAR_T *resultbuf, size_t *lengthp,
328 - #endif
329 - *p = dp->conversion;
330 - #if USE_SNPRINTF
331 -+# if !(__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 3))
332 - p[1] = '%';
333 - p[2] = 'n';
334 - p[3] = '\0';
335 -+# else
336 -+ /* On glibc2 systems from glibc >= 2.3 - probably also older
337 -+ ones - we know that snprintf's returns value conforms to
338 -+ ISO C 99: the gl_SNPRINTF_DIRECTIVE_N test passes.
339 -+ Therefore we can avoid using %n in this situation.
340 -+ On glibc2 systems from 2004-10-18 or newer, the use of %n
341 -+ in format strings in writable memory may crash the program
342 -+ (if compiled with _FORTIFY_SOURCE=2), so we should avoid it
343 -+ in this situation. */
344 -+ p[1] = '\0';
345 -+# endif
346 - #else
347 - p[1] = '\0';
348 - #endif
349
350 diff --git a/dev-vcs/cvs/files/cvs-1.12.12-cvsbug-tmpfix.patch b/dev-vcs/cvs/files/cvs-1.12.12-cvsbug-tmpfix.patch
351 deleted file mode 100644
352 index fcd4431..0000000
353 --- a/dev-vcs/cvs/files/cvs-1.12.12-cvsbug-tmpfix.patch
354 +++ /dev/null
355 @@ -1,22 +0,0 @@
356 -Index: cvs-1.12.12/src/cvsbug.in
357 -===================================================================
358 ---- cvs-1.12.12.orig/src/cvsbug.in
359 -+++ cvs-1.12.12/src/cvsbug.in
360 -@@ -109,14 +109,14 @@ elif [ -f /bin/domainname ]; then
361 - /usr/bin/ypcat passwd 2>/dev/null | cat - /etc/passwd | grep "^$LOGNAME:" |
362 - cut -f5 -d':' | sed -e 's/,.*//' > $TEMP
363 - ORIGINATOR="`cat $TEMP`"
364 -- rm -f $TEMP
365 -+ > $TEMP
366 - fi
367 - fi
368 -
369 - if [ "$ORIGINATOR" = "" ]; then
370 - grep "^$LOGNAME:" /etc/passwd | cut -f5 -d':' | sed -e 's/,.*//' > $TEMP
371 - ORIGINATOR="`cat $TEMP`"
372 -- rm -f $TEMP
373 -+ > $TEMP
374 - fi
375 -
376 - if [ -n "$ORGANIZATION" ]; then
377 -
378
379 diff --git a/dev-vcs/cvs/files/cvs-1.12.12-fix-massive-leak.patch b/dev-vcs/cvs/files/cvs-1.12.12-fix-massive-leak.patch
380 deleted file mode 100644
381 index 5366f50..0000000
382 --- a/dev-vcs/cvs/files/cvs-1.12.12-fix-massive-leak.patch
383 +++ /dev/null
384 @@ -1,52 +0,0 @@
385 -buf_free_data must free data independently
386 -of send or reseived bytes over network.
387 -
388 -Moreover, when buffer is usually freed
389 -buffer _is_ empty, but has one clean mapped page.
390 -
391 -I've observed massive 'cvs server' leaks
392 -when importing large gentoo-x86 repo with 'cvsps'.
393 -Leak ate all my 32GBs of RAM and killed process.
394 -(Leaked around 3 pages per client request).
395 -
396 -valgrind found the leak easily:
397 -
398 -$ valgrind \
399 - cvsps \
400 - --root :local:$HOME/portage/gentoo-x86.rsync \
401 - --fast-export \
402 - gentoo-x86/dev-vcs/git-annex 2>l |
403 - git fast-import
404 -
405 - ==13504== 1,248 bytes in 52 blocks are still reachable in loss record 41 of 47
406 - ==13504== at 0x4C2C19B: malloc (vg_replace_malloc.c:270)
407 - ==13504== by 0x48A556: xnmalloc_inline (xmalloc.c:40)
408 - ==13504== by 0x48A5B5: xmalloc (xmalloc.c:56)
409 - ==13504== by 0x4855F5: new_memnode (pagealign_alloc.c:91)
410 - ==13504== by 0x48571B: pagealign_alloc (pagealign_alloc.c:151)
411 - ==13504== by 0x485739: pagealign_xalloc (pagealign_alloc.c:182)
412 - ==13504== by 0x408DD7: get_buffer_data (buffer.c:98)
413 - ==13504== by 0x409C0C: buf_input_data (buffer.c:738)
414 - ==13504== by 0x45BB63: do_cvs_command (server.c:3847)
415 - ==13504== by 0x45D39E: serve_co (server.c:4809)
416 - ==13504== by 0x45F845: server (server.c:6438)
417 - ==13504== by 0x438784: main (main.c:1066)
418 -
419 -And now it takes constant space (less, than 18MB)
420 -for 'cvs server' process to convert all gentoo-x86
421 -by serving more, than 5 000 000 client requests.
422 -
423 -Signed-off-by: Sergei Trofimovich <slyfox@g.o>
424 -diff --git a/src/buffer.c b/src/buffer.c
425 -index 3f12513..9a7a559 100644
426 ---- a/src/buffer.c
427 -+++ b/src/buffer.c
428 -@@ -526,7 +526,7 @@ buf_copy_data (struct buffer *buf, struct buffer_data *data,
429 - void
430 - buf_free_data (struct buffer *buffer)
431 - {
432 -- if (buf_empty_p (buffer)) return;
433 -+ if (! buffer->data) return;
434 - buf_free_datas (buffer->data, buffer->last);
435 - buffer->data = buffer->last = NULL;
436 - }
437
438 diff --git a/dev-vcs/cvs/files/cvs-1.12.12-getdelim.patch b/dev-vcs/cvs/files/cvs-1.12.12-getdelim.patch
439 deleted file mode 100644
440 index d27bcc0..0000000
441 --- a/dev-vcs/cvs/files/cvs-1.12.12-getdelim.patch
442 +++ /dev/null
443 @@ -1,21 +0,0 @@
444 -The function getdelim() behaves slightly different on FreeBSD,
445 -only appending to the *line buffer if line_size is 0.
446 -
447 -See:
448 -http://savannah.nongnu.org/bugs/?29466
449 -http://bugs.gentoo.org/314791
450 -
451 -Already comitted upstream:
452 -http://cvs.savannah.gnu.org/viewvc/ccvs/src/myndbm.c?root=cvs&r1=1.38&r2=1.39
453 -
454 ---- src/myndbm.c.orig
455 -+++ src/myndbm.c
456 -@@ -213,7 +213,7 @@
457 - mydbm_load_file (FILE *fp, List *list, char *filename)
458 - {
459 - char *line = NULL;
460 -- size_t line_size;
461 -+ size_t line_size = 0;
462 - char *value;
463 - size_t value_allocated;
464 - char *cp, *vp;
465
466 diff --git a/dev-vcs/cvs/files/cvs-1.12.12-hash-nameclash.patch b/dev-vcs/cvs/files/cvs-1.12.12-hash-nameclash.patch
467 deleted file mode 100644
468 index 0a33eea..0000000
469 --- a/dev-vcs/cvs/files/cvs-1.12.12-hash-nameclash.patch
470 +++ /dev/null
471 @@ -1,42 +0,0 @@
472 -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
473 -fixed in cvs-1.11.23, cvs-HEAD after cvs-1.12.13a
474 -
475 ---- src/hash.h.orig 2005-02-01 22:56:48 +0100
476 -+++ src/hash.h 2010-03-10 19:00:11 +0100
477 -@@ -27,26 +27,26 @@
478 - };
479 - typedef enum ntype Ntype;
480 -
481 --struct node
482 -+struct hashnode
483 - {
484 - Ntype type;
485 -- struct node *next;
486 -- struct node *prev;
487 -- struct node *hashnext;
488 -- struct node *hashprev;
489 -+ struct hashnode *next;
490 -+ struct hashnode *prev;
491 -+ struct hashnode *hashnext;
492 -+ struct hashnode *hashprev;
493 - char *key;
494 - void *data;
495 -- void (*delproc) (struct node *);
496 -+ void (*delproc) (struct hashnode *);
497 - };
498 --typedef struct node Node;
499 -+typedef struct hashnode Node;
500 -
501 --struct list
502 -+struct hashlist
503 - {
504 - Node *list;
505 - Node *hasharray[HASHSIZE];
506 -- struct list *next;
507 -+ struct hashlist *next;
508 - };
509 --typedef struct list List;
510 -+typedef struct hashlist List;
511 -
512 - List *getlist (void);
513 - Node *findnode (List * list, const char *key);
514
515 diff --git a/dev-vcs/cvs/files/cvs-1.12.12-install-sh.patch b/dev-vcs/cvs/files/cvs-1.12.12-install-sh.patch
516 deleted file mode 100644
517 index 825c0ee..0000000
518 --- a/dev-vcs/cvs/files/cvs-1.12.12-install-sh.patch
519 +++ /dev/null
520 @@ -1,12 +0,0 @@
521 -diff -ur a/build-aux/install-sh b/build-aux/install-sh
522 ---- a/build-aux/install-sh 2006-03-25 20:04:46 +0000
523 -+++ b/build-aux/install-sh 2007-09-14 10:53:29 +0100
524 -@@ -246,7 +246,7 @@
525 - fi
526 -
527 - if test -n "$dir_arg"; then
528 -- $doit $mkdircmd "$dst" \
529 -+ { test -d "$dst" || $doit $mkdircmd -p "$dst"; } \
530 - && { test -z "$chowncmd" || $doit $chowncmd "$dst"; } \
531 - && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } \
532 - && { test -z "$stripcmd" || $doit $stripcmd "$dst"; } \
533
534 diff --git a/dev-vcs/cvs/files/cvs-1.12.12-mktime-x32.patch b/dev-vcs/cvs/files/cvs-1.12.12-mktime-x32.patch
535 deleted file mode 100644
536 index 948fa4d..0000000
537 --- a/dev-vcs/cvs/files/cvs-1.12.12-mktime-x32.patch
538 +++ /dev/null
539 @@ -1,29 +0,0 @@
540 -back port changes from upstream gnulib to make this work on x32
541 -
542 -https://bugs.gentoo.org/395641
543 -
544 ---- cvs-1.12.12/lib/mktime.c
545 -+++ cvs-1.12.12/lib/mktime.c
546 -@@ -115,6 +115,13 @@
547 - #define TM_YEAR_BASE 1900
548 - verify (base_year_is_a_multiple_of_100, TM_YEAR_BASE % 100 == 0);
549 -
550 -+#if INT_MAX <= LONG_MAX / 2
551 -+typedef long int long_int;
552 -+#else
553 -+typedef long long int long_int;
554 -+#endif
555 -+verify (long_int_is_wide_enough, INT_MAX == INT_MAX * (long_int) 2 / 2);
556 -+
557 - /* Return 1 if YEAR + TM_YEAR_BASE is a leap year. */
558 - static inline int
559 - leapyear (long int year)
560 -@@ -167,8 +174,6 @@
561 - int year0, int yday0, int hour0, int min0, int sec0)
562 - {
563 - verify (C99_integer_division, -1 / 2 == 0);
564 -- verify (long_int_year_and_yday_are_wide_enough,
565 -- INT_MAX <= LONG_MAX / 2 || TIME_T_MAX <= UINT_MAX);
566 -
567 - /* Compute intervening leap days correctly even if year is negative.
568 - Take care to avoid integer overflow here. */
569
570 diff --git a/dev-vcs/cvs/files/cvs-1.12.12-openat.patch b/dev-vcs/cvs/files/cvs-1.12.12-openat.patch
571 deleted file mode 100644
572 index fdb406a..0000000
573 --- a/dev-vcs/cvs/files/cvs-1.12.12-openat.patch
574 +++ /dev/null
575 @@ -1,21 +0,0 @@
576 -Index: cvs-1.12.12/lib/openat.c
577 -===================================================================
578 ---- cvs-1.12.12.orig/lib/openat.c
579 -+++ cvs-1.12.12/lib/openat.c
580 -@@ -55,9 +55,13 @@ rpl_openat (int fd, char const *filename
581 - va_list arg;
582 - va_start (arg, flags);
583 -
584 -- /* Assume that mode_t is passed compatibly with mode_t's type
585 -- after argument promotion. */
586 -- mode = va_arg (arg, mode_t);
587 -+ /* If mode_t is narrower than int, use the promoted type (int),
588 -+ not mode_t. Use sizeof to guess whether mode_t is nerrower;
589 -+ we don't know of any practical counterexamples. */
590 -+ if (sizeof (mode_t) < sizeof (int))
591 -+ mode = va_arg (arg, int);
592 -+ else
593 -+ mode = va_arg (arg, mode_t);
594 -
595 - va_end (arg);
596 - }
597
598 diff --git a/dev-vcs/cvs/files/cvs-1.12.12-rcs2log-coreutils.patch b/dev-vcs/cvs/files/cvs-1.12.12-rcs2log-coreutils.patch
599 deleted file mode 100644
600 index 0fb4c6c..0000000
601 --- a/dev-vcs/cvs/files/cvs-1.12.12-rcs2log-coreutils.patch
602 +++ /dev/null
603 @@ -1,14 +0,0 @@
604 -X-Gentoo-bug: 144114
605 -
606 -diff -Nuar cvs-1.12.12.orig//contrib/rcs2log.sh cvs-1.12.12//contrib/rcs2log.sh
607 ---- cvs-1.12.12.orig//contrib/rcs2log.sh 2003-02-25 21:32:51.000000000 +0000
608 -+++ cvs-1.12.12//contrib/rcs2log.sh 2010-12-06 21:14:33.831532212 +0000
609 -@@ -620,7 +620,7 @@
610 - # Sort the log entries, first by date+time (in reverse order),
611 - # then by author, then by log entry, and finally by file name and revision
612 - # (just in case).
613 --sort -t"$SOH" +2 -4r +4 +0 |
614 -+sort -t"$SOH" -k 3,4r -k 5 -k 1,2 |
615 -
616 - # Finally, reformat the sorted log entries.
617 - $AWK -F"$SOH" '
618
619 diff --git a/dev-vcs/cvs/files/cvs-1.12.12-regex.patch b/dev-vcs/cvs/files/cvs-1.12.12-regex.patch
620 deleted file mode 100644
621 index 4e69953..0000000
622 --- a/dev-vcs/cvs/files/cvs-1.12.12-regex.patch
623 +++ /dev/null
624 @@ -1,11 +0,0 @@
625 ---- a/cvs-1.12.12/lib/regex.c
626 -+++ b/cvs-1.12.12/lib/regex.c
627 -@@ -8184,7 +8184,7 @@
628 - if (msg_size > errbuf_size)
629 - {
630 - #if defined HAVE_MEMPCPY || defined _LIBC
631 -- *((char *) __mempcpy (errbuf, msg, errbuf_size - 1)) = '\0';
632 -+ *((char *) mempcpy (errbuf, msg, errbuf_size - 1)) = '\0';
633 - #else
634 - memcpy (errbuf, msg, errbuf_size - 1);
635 - errbuf[errbuf_size - 1] = 0;
636
637 diff --git a/dev-vcs/cvs/files/cvs.pam-include-1.12.12 b/dev-vcs/cvs/files/cvs.pam-include-1.12.12
638 deleted file mode 100644
639 index f401ec0..0000000
640 --- a/dev-vcs/cvs/files/cvs.pam-include-1.12.12
641 +++ /dev/null
642 @@ -1,4 +0,0 @@
643 -#%PAM-1.0
644 -auth include system-auth
645 -account include system-auth
646 -session include system-auth
647
648 diff --git a/dev-vcs/cvs/files/cvspserver.xinetd.d b/dev-vcs/cvs/files/cvspserver.xinetd.d
649 deleted file mode 100644
650 index 0f2edb0..0000000
651 --- a/dev-vcs/cvs/files/cvspserver.xinetd.d
652 +++ /dev/null
653 @@ -1,14 +0,0 @@
654 -service cvspserver
655 -{
656 - disable = yes
657 - socket_type = stream
658 - wait = no
659 - user = root
660 - log_type = FILE /var/log/cvspserver
661 - protocol = tcp
662 - env = HOME=/var/cvsroot
663 - log_on_failure += USERID
664 - port = 2401
665 - server = /usr/bin/cvs
666 - server_args = -f --allow-root=/var/cvsroot pserver
667 -}
668
669 diff --git a/dev-vcs/cvs/metadata.xml b/dev-vcs/cvs/metadata.xml
670 deleted file mode 100644
671 index 4951492..0000000
672 --- a/dev-vcs/cvs/metadata.xml
673 +++ /dev/null
674 @@ -1,11 +0,0 @@
675 -<?xml version="1.0" encoding="UTF-8"?>
676 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
677 -<pkgmetadata>
678 - <maintainer type="project">
679 - <email>cvs-utils@g.o</email>
680 - <name>Gentoo CVS Project</name>
681 - </maintainer>
682 - <use>
683 - <flag name="server">Enable server support</flag>
684 - </use>
685 -</pkgmetadata>