From 51ddb5d260f0900fd522c8823cf5bf68df6f934d Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Tue, 26 Jun 2018 19:37:34 -0500 Subject: system/cvs: add for LSB --- system/cvs/APKBUILD | 39 +++++++++++++++++++++++++++++++++++++++ system/cvs/cvs-musl.patch | 27 +++++++++++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 system/cvs/APKBUILD create mode 100644 system/cvs/cvs-musl.patch (limited to 'system') diff --git a/system/cvs/APKBUILD b/system/cvs/APKBUILD new file mode 100644 index 000000000..bbf6fe4e9 --- /dev/null +++ b/system/cvs/APKBUILD @@ -0,0 +1,39 @@ +# Contributor: Michael Mason +# Maintainer: A. Wilcox +pkgname=cvs +pkgver=1.11.23 +pkgrel=1 +pkgdesc="Concurrent Versions System" +url="http://www.nongnu.org/cvs/" +arch="all" +options="!check" # "Note that the test can take an hour or more to run" +license="GPL-2.0+" +depends="" +makedepends="zlib-dev" +install= +subpackages="$pkgname-doc" +source="http://ftp.gnu.org/non-gnu/cvs/source/stable/$pkgver/$pkgname-$pkgver.tar.gz + cvs-musl.patch + " + +build() { + cd "$builddir" + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --with-external-zlib \ + --with-tmpdir=/tmp + make +} + +package() { + cd "$builddir" + make -j1 DESTDIR="$pkgdir" install +} + +sha512sums="e486df1d2aaf13605b9abc8ea5e8e2261dd015483cef82a9489919646f0d5d52a7bf4385f4fdb5f845a9c2287184153a0d456510089f1e2609957ba48ad9f96a cvs-1.11.23.tar.gz +7de04d5ec797430f8405b00e271d9edb5dffa3be855fc1e1dc35b134d981418c969486da668a78e1da88a4dba57952bfa14ffafbe3ff3ffc081de9cc908cf245 cvs-musl.patch" diff --git a/system/cvs/cvs-musl.patch b/system/cvs/cvs-musl.patch new file mode 100644 index 000000000..313377dbd --- /dev/null +++ b/system/cvs/cvs-musl.patch @@ -0,0 +1,27 @@ +--- cvs-1.11.23.org/lib/getline.h 2013-09-16 18:28:13.026099577 +0000 ++++ cvs-1.11.23/lib/getline.h 2013-09-16 18:44:33.356064387 +0000 +@@ -12,8 +12,6 @@ + #define GETLINE_NO_LIMIT -1 + + int +- getline __PROTO ((char **_lineptr, size_t *_n, FILE *_stream)); +-int + getline_safe __PROTO ((char **_lineptr, size_t *_n, FILE *_stream, + int limit)); + int +--- cvs-1.11.23.org/lib/getline.c 2013-09-16 18:28:13.021099577 +0000 ++++ cvs-1.11.23/lib/getline.c 2013-09-16 18:45:14.463062911 +0000 +@@ -154,12 +154,7 @@ + return ret; + } + +-int +-getline (lineptr, n, stream) +- char **lineptr; +- size_t *n; +- FILE *stream; +-{ ++ssize_t getline(char ** lineptr, size_t * n, FILE *stream) { + return getstr (lineptr, n, stream, '\n', 0, GETLINE_NO_LIMIT); + } + -- cgit v1.2.3-70-g09d2