diff options
author | 2021-01-16 12:04:31 +0100 | |
---|---|---|
committer | 2021-01-16 12:04:31 +0100 | |
commit | 00ed8667bcbbcafa410c898f66d9e8a1701e9fa6 (patch) | |
tree | 95c6beb4108b9707b63ffbf80de27000fdf242f3 | |
parent | app-portage/eix: Version bump (diff) | |
download | mv-00ed8667bcbbcafa410c898f66d9e8a1701e9fa6.tar.gz mv-00ed8667bcbbcafa410c898f66d9e8a1701e9fa6.tar.bz2 mv-00ed8667bcbbcafa410c898f66d9e8a1701e9fa6.zip |
net-misc/openrdate: fix compilation without sys/sysctl.h. -net-libs/wvstreams
Signed-off-by: Martin Väth <martin@mvath.de>
-rw-r--r-- | metadata/pkg_desc_index | 1 | ||||
-rw-r--r-- | net-libs/wvstreams/Manifest | 1 | ||||
-rw-r--r-- | net-libs/wvstreams/metadata.xml | 23 | ||||
-rw-r--r-- | net-libs/wvstreams/wvstreams-4.6.2_alpha20181025.ebuild | 99 | ||||
-rw-r--r-- | net-misc/openrdate/files/sysctl.patch | 12 | ||||
-rw-r--r-- | net-misc/openrdate/openrdate-1.2.ebuild | 8 | ||||
-rw-r--r-- | profiles/use.local.desc | 1 |
7 files changed, 18 insertions, 127 deletions
diff --git a/metadata/pkg_desc_index b/metadata/pkg_desc_index index c9dfa362..76624b07 100644 --- a/metadata/pkg_desc_index +++ b/metadata/pkg_desc_index @@ -88,7 +88,6 @@ net-dialup/martian-modem 20100123-r3: ltmodem alternative driver providing suppo net-dns/host 20070128-r1: A powerful command-line DNS query and test tool net-dns/noip-updater 2.1.9-r5: no-ip.com dynamic DNS updater net-firewall/firewall-mv 13.2: Initialize iptables and net-related sysctl variables -net-libs/wvstreams 4.6.2_alpha20181025: A network programming library in C++ net-misc/netctl 1.11: Profile based network connection tool from Arch Linux net-misc/openrdate 1.2: use TCP or UDP to retrieve the current time of another machine net-misc/sshstart 4.10: Start ssh-agent/ssh-add only if you really use ssh or friends diff --git a/net-libs/wvstreams/Manifest b/net-libs/wvstreams/Manifest deleted file mode 100644 index d03f8454..00000000 --- a/net-libs/wvstreams/Manifest +++ /dev/null @@ -1 +0,0 @@ -DIST wvstreams-4.6.2_alpha20181025.tar.gz 851502 SHA512 9dc3502566b12ad52c134aec2682ad5d5a1a426621ee90e7055e1ebb712f768bbf4270d1045eadf6b842ceabaf5abb67bdf5c7bfa12f983a9d3a27a1730a72cf diff --git a/net-libs/wvstreams/metadata.xml b/net-libs/wvstreams/metadata.xml deleted file mode 100644 index d2ce9f15..00000000 --- a/net-libs/wvstreams/metadata.xml +++ /dev/null @@ -1,23 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> -<maintainer type="person"> -<email>mvaeth@google.com</email> -<name>Martin Väth</name> -<description>maintainer of the updates in the mv overlay</description> -</maintainer> -<maintainer type='person'> -<email>jer@gentoo.org</email> -</maintainer> - <upstream> - <remote-id type="google-code">wvstreams</remote-id> - </upstream> - <use> - <flag name="boost"> - Use <pkg>dev-libs/boost</pkg> to provide TR1-compatible - functional interface. This USE flag is only needed with GCC - earlier than version 4.1, or with other compilares not providing - said interface. - </flag> - </use> -</pkgmetadata> diff --git a/net-libs/wvstreams/wvstreams-4.6.2_alpha20181025.ebuild b/net-libs/wvstreams/wvstreams-4.6.2_alpha20181025.ebuild deleted file mode 100644 index 73d23424..00000000 --- a/net-libs/wvstreams/wvstreams-4.6.2_alpha20181025.ebuild +++ /dev/null @@ -1,99 +0,0 @@ -# Copyright 1999-2018 Martin V\"ath and Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 -AT_NOELIBTOOLIZE=yes -inherit autotools flag-o-matic toolchain-funcs - -DESCRIPTION="A network programming library in C++" -HOMEPAGE="http://alumnit.ca/wiki/?WvStreams" -case ${PV} in -*alpha*) - EGIT_COMMIT="dac7d0f784845a8b43d45f64fdf43fd5f4833a34" - SRC_URI="https://github.com/apenwarr/wvstreams/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" - S=${WORKDIR}/${PN}-${EGIT_COMMIT};; -*) - SRC_URI="https://wvstreams.googlecode.com/files/${P}.tar.gz" -esac - - -LICENSE="GPL-2" -SLOT="0/5pre" -KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~sparc ~x86" -IUSE="pam +dbus debug doc +ssl static-libs zlib" - -#Tests fail if openssl is not compiled with -DPURIFY. Gentoo's isn't. FAIL! -RESTRICT="test" - -#QA Fail: xplc is compiled as a part of wvstreams. -#It'll take a larger patching effort to get it extracted, since upstream integrated it -#more tightly this time. Probably for the better since upstream xplc seems dead. - -RDEPEND=" - ssl? ( >=dev-libs/openssl-1.1:0= ) - sys-libs/readline:0= - zlib? ( sys-libs/zlib ) - dbus? ( >=sys-apps/dbus-1.4.20 ) - pam? ( virtual/pam ) -" -DEPEND="${RDEPEND}" -BDEPEND=" - virtual/pkgconfig - doc? ( app-doc/doxygen ) -" - -src_prepare() { - mv config.ac configure.ac - mkdir build - default - eautoreconf -} - -src_configure() { - append-flags -fno-strict-aliasing - append-flags -fno-tree-dce -fno-optimize-sibling-calls #421375 - - tc-export AR CC CXX - - cd build - ECONF_SOURCE="$S" econf \ - $(use_enable debug) \ - $(use_with dbus) \ - $(use_with pam) \ - $(use_with ssl openssl) \ - $(use_with zlib) \ - --cache-file="${BUILD_DIR}"/config.cache \ - --disable-optimization \ - --localstatedir=/var \ - --without-qt \ - --without-valgrind -} - -src_compile() { - if use doc; then - doxygen "${S}"/Doxyfile || die - fi - cd build - emake -} - -src_test() { - emake check -} - -src_install() { - if use doc; then - docinto html - dodoc -r Docs/doxy-html/* - fi - cd build - emake DESTDIR="${ED}" install || die - insinto /usr/include - doins include/wvautoconf.h - insinto /usr/$(get_libdir)/pkgconfig - local lib - for lib in $(find "${BUILD_DIR}" -name '*.so' -type l | grep -v libwvstatic); do - doins "${BUILD_DIR}"/pkgconfig/$(basename ${lib/.so}).pc - done - use static-libs || find "${ED}" -name '*.a' -delete || die -} diff --git a/net-misc/openrdate/files/sysctl.patch b/net-misc/openrdate/files/sysctl.patch new file mode 100644 index 00000000..ec1536da --- /dev/null +++ b/net-misc/openrdate/files/sysctl.patch @@ -0,0 +1,12 @@ +--- 1/src/arc4random.c ++++ 1/src/arc4random.c +@@ -44,7 +44,9 @@ + #include <sys/types.h> + #include <sys/param.h> + #include <sys/time.h> ++#ifdef HAVE_SYSCTL + #include <sys/sysctl.h> ++#endif + + #if defined __NO_SYSCTL__ + #include <err.h> diff --git a/net-misc/openrdate/openrdate-1.2.ebuild b/net-misc/openrdate/openrdate-1.2.ebuild index b443fd24..0b5c9ffb 100644 --- a/net-misc/openrdate/openrdate-1.2.ebuild +++ b/net-misc/openrdate/openrdate-1.2.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2018 Gentoo Authors and Martin V\"ath +# Copyright 1999-2021 Gentoo Authors and Martin V\"ath # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -16,8 +16,12 @@ IUSE="" DEPEND="" RDEPEND="${DEPEND}" +PATCHES=( + "${FILESDIR}"/${PN}-1.1.3-rename.patch + "${FILESDIR}"/sysctl.patch +) + src_prepare() { - eapply "${FILESDIR}"/${PN}-1.1.3-rename.patch default eautomake mv docs/{,open}rdate.8 diff --git a/profiles/use.local.desc b/profiles/use.local.desc index a33b8375..fc00f24f 100644 --- a/profiles/use.local.desc +++ b/profiles/use.local.desc @@ -186,7 +186,6 @@ media-tv/sundtek-tv:pax_kernel - Mark package which is necessary if you use a PA media-tv/w_scan:plp-id-zero - Apply experimental patch to force plp_id to 0 for DVB-T2. Seems to be necessary at least with some tuners in some regions media-video/avidemux:nvenc - Adds support for NVIDIA Encoder (NVENC) API for hardware accelerated encoding on NVIDIA cards. net-dns/noip-updater:ezipupd - Use user/group ezipupd instead of nobody: Useful if you restrict outgoing network traffic for user nobody -net-libs/wvstreams:boost - Use dev-libs/boost to provide TR1-compatible functional interface. This USE flag is only needed with GCC earlier than version 4.1, or with other compilares not providing said interface. net-print/foo2zjs:foomaticdb - Add support for the foomatic printing driver database sci-geosciences/googleearth:bundled-libs - Use bundled libraries. sci-geosciences/googleearth:bundled-qt - Use bundled qt. |