Gentoo Archives: gentoo-commits

From: Pacho Ramos <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libbsd/, dev-libs/libbsd/files/
Date: Sun, 15 Dec 2019 12:36:12
Message-Id: 1576413358.8cf8369dccd5dfbca05b5cbf6286e95552426552.pacho@gentoo
1 commit: 8cf8369dccd5dfbca05b5cbf6286e95552426552
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Sun Dec 15 12:27:57 2019 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Sun Dec 15 12:35:58 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8cf8369d
7
8 dev-libs/libbsd: Drop old
9
10 Package-Manager: Portage-2.3.80, Repoman-2.3.19
11 Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org>
12
13 dev-libs/libbsd/Manifest | 1 -
14 .../libbsd/files/libbsd-0.9.1-missing-header.patch | 43 ---------------------
15 dev-libs/libbsd/libbsd-0.9.1.ebuild | 44 ----------------------
16 3 files changed, 88 deletions(-)
17
18 diff --git a/dev-libs/libbsd/Manifest b/dev-libs/libbsd/Manifest
19 index 857f6a1f9c9..5a70770bb83 100644
20 --- a/dev-libs/libbsd/Manifest
21 +++ b/dev-libs/libbsd/Manifest
22 @@ -1,2 +1 @@
23 DIST libbsd-0.10.0.tar.xz 393576 BLAKE2B 66005a511dae7fb799322c813b8ea058ab460e3b9044756d6efad5de741d8f70270496f09803bbce8cd0000ff37e998f18e092037c850826c3c8e3f47ddfdb28 SHA512 b75529785b16c93d31401187f8a58258fbebe565dac071c8311775c913af989f62cd29d5ce2651af3ea6221cffd31cf04826577d3e546ab9ca14340f297777b9
24 -DIST libbsd-0.9.1.tar.xz 387180 BLAKE2B 40dd82ca1088ee7aae8b3d7685e8514eec702bf7ada7ef98f7177cad92b7e0fccc22a953b35f0f27202eb56833b31a81bef1324d43864d1b80887ba7c58684d5 SHA512 435822b8f2495a5e2705e5ab5c834a4f0f3a177b3e5c46a7c6162924507ca984e957e94a512b5ebd0067ecb413bac458fade357709ef199e9b75edf0315de91c
25
26 diff --git a/dev-libs/libbsd/files/libbsd-0.9.1-missing-header.patch b/dev-libs/libbsd/files/libbsd-0.9.1-missing-header.patch
27 deleted file mode 100644
28 index 7ca2b881a38..00000000000
29 --- a/dev-libs/libbsd/files/libbsd-0.9.1-missing-header.patch
30 +++ /dev/null
31 @@ -1,43 +0,0 @@
32 -From 13c32916b4baab58d93940d57fea9ff0777f1931 Mon Sep 17 00:00:00 2001
33 -From: Baruch Siach <baruch@×××××××.il>
34 -Date: Tue, 5 Jun 2018 19:21:46 +0300
35 -Subject: flopen: Add missing <fcntl.h> include
36 -MIME-Version: 1.0
37 -Content-Type: text/plain; charset=UTF-8
38 -Content-Transfer-Encoding: 8bit
39 -
40 -Commit 993828d84ee (Add flopenat() function from FreeBSD) dropped the
41 -fcntl.h header. This breaks the build with musl libc:
42 -
43 -flopen.c: In function ‘vflopenat’:
44 -flopen.c:60:14: error: ‘O_CREAT’ undeclared (first use in this function)
45 - if (flags & O_CREAT) {
46 - ^~~~~~~
47 -
48 -Restore the fcntl.h header include to fix the build.
49 -
50 -Fixes: commit 993828d84eed0468c6c15b2818e534e6b134b8e4
51 -Submitted-also-by: parazyd <parazyd@××××.org>
52 -Signed-off-by: Baruch Siach <baruch@×××××××.il>
53 -Signed-off-by: Guillem Jover <guillem@×××××××.org>
54 ----
55 - src/flopen.c | 1 +
56 - 1 file changed, 1 insertion(+)
57 -
58 -(limited to 'src/flopen.c')
59 -
60 -diff --git a/src/flopen.c b/src/flopen.c
61 -index b9972c9..ff20d07 100644
62 ---- a/src/flopen.c
63 -+++ b/src/flopen.c
64 -@@ -32,6 +32,7 @@
65 - #include <sys/stat.h>
66 -
67 - #include <errno.h>
68 -+#include <fcntl.h>
69 - #include <stdarg.h>
70 - #include <unistd.h>
71 -
72 ---
73 -cgit v1.1
74 -
75
76 diff --git a/dev-libs/libbsd/libbsd-0.9.1.ebuild b/dev-libs/libbsd/libbsd-0.9.1.ebuild
77 deleted file mode 100644
78 index 858d6676ad1..00000000000
79 --- a/dev-libs/libbsd/libbsd-0.9.1.ebuild
80 +++ /dev/null
81 @@ -1,44 +0,0 @@
82 -# Copyright 1999-2019 Gentoo Authors
83 -# Distributed under the terms of the GNU General Public License v2
84 -
85 -EAPI=6
86 -inherit multilib-minimal
87 -
88 -DESCRIPTION="An library to provide useful functions commonly found on BSD systems"
89 -HOMEPAGE="https://libbsd.freedesktop.org/wiki/ https://gitlab.freedesktop.org/libbsd/libbsd"
90 -SRC_URI="https://${PN}.freedesktop.org/releases/${P}.tar.xz"
91 -
92 -LICENSE="BSD BSD-2 BSD-4 ISC"
93 -SLOT="0"
94 -KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 ~riscv s390 sparc x86 ~amd64-linux ~x86-linux"
95 -IUSE="static-libs"
96 -
97 -DEPEND=">=sys-kernel/linux-headers-3.17"
98 -RDEPEND=""
99 -
100 -PATCHES=(
101 - "${FILESDIR}/${P}-missing-header.patch"
102 -)
103 -
104 -pkg_setup() {
105 - local f="${EROOT}/usr/$(get_libdir)/${PN}.a"
106 - local m="You need to remove ${f} by hand or re-emerge sys-libs/glibc first."
107 - if ! has_version ${CATEGORY}/${PN}; then
108 - if [[ -e ${f} ]]; then
109 - eerror "${m}"
110 - die "${m}"
111 - fi
112 - fi
113 -}
114 -
115 -multilib_src_configure() {
116 - # The build system will install libbsd-ctor.a despite of USE="-static-libs"
117 - # which is correct, see:
118 - # https://gitlab.freedesktop.org/libbsd/libbsd/commit/c5b959028734ca2281250c85773d9b5e1d259bc8
119 - ECONF_SOURCE="${S}" econf $(use_enable static-libs static)
120 -}
121 -
122 -multilib_src_install() {
123 - emake DESTDIR="${D}" install
124 - find "${ED}" -name "*.la" -delete || die
125 -}