diff options
-rw-r--r-- | dev-db/mysql/mysql-8.0.17.ebuild | 1 | ||||
-rw-r--r-- | dev-libs/libmissing/Manifest | 1 | ||||
-rw-r--r-- | dev-libs/libmissing/libmissing-1.0.0.ebuild | 122 | ||||
-rw-r--r-- | dev-libs/libmissing/metadata.xml | 12 | ||||
-rw-r--r-- | sys-fs/xfsprogs/Manifest | 1 | ||||
-rw-r--r-- | sys-fs/xfsprogs/xfsprogs-5.2.0.ebuild | 106 |
6 files changed, 243 insertions, 0 deletions
diff --git a/dev-db/mysql/mysql-8.0.17.ebuild b/dev-db/mysql/mysql-8.0.17.ebuild index 9bf70ba0f6b2..2697f6786560 100644 --- a/dev-db/mysql/mysql-8.0.17.ebuild +++ b/dev-db/mysql/mysql-8.0.17.ebuild @@ -58,6 +58,7 @@ PATCHES=( "${MY_PATCH_DIR}"/20007_all_cmake-debug-werror-8.0.17.patch "${MY_PATCH_DIR}"/20018_all_mysql-5.7.23-fix-grant_user_lock-a-root.patch "${MY_PATCH_DIR}"/20018_all_mysql-8.0.17-without-clientlibs-tools.patch + "${MY_PATCH_DIR}"/20018_all_mysql-8.0.17-add-protobuf-3.8+-support.patch "${MY_PATCH_DIR}"/20018_all_mysql-8.0.17-fix-libressl-support.patch ) diff --git a/dev-libs/libmissing/Manifest b/dev-libs/libmissing/Manifest new file mode 100644 index 000000000000..39d4a175c2a9 --- /dev/null +++ b/dev-libs/libmissing/Manifest @@ -0,0 +1 @@ +DIST gnulib-b451121ab45497e78cb6f612c8673a9705193391.tar.gz 6666079 BLAKE2B e7d3b9478697067b57ab198e044f3c854128d5fe390d30947829ce4f34c695a748668c33ae19690e9927fff6df3e194a3160cb4adb7cf47235c603241c66889a SHA512 f6e165cfc0a3999c778d9f43ffc90ff9b569a77ff1e54ff5c50b12b0eddf262c24da8cd2719548574e0397535bb0eb835eef603cc74769f7876ef9db101bebec diff --git a/dev-libs/libmissing/libmissing-1.0.0.ebuild b/dev-libs/libmissing/libmissing-1.0.0.ebuild new file mode 100644 index 000000000000..270db24a778b --- /dev/null +++ b/dev-libs/libmissing/libmissing-1.0.0.ebuild @@ -0,0 +1,122 @@ +# Copyright 2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools + +# NOTE: PV is the libtool version number current:revision:age + +DESCRIPTION="Library with missing functions based on GNUlib" +HOMEPAGE="https://prefix.gentoo.org" +GIT_TAG="b451121ab45497e78cb6f612c8673a9705193391" +SRC_URI="https://git.savannah.gnu.org/cgit/gnulib.git/snapshot/gnulib-${GIT_TAG}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~ppc-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="static-libs" + +DEPEND="" +RDEPEND="${DEPEND}" +BDEPEND="" + +S="${WORKDIR}/gnulib-${GIT_TAG}" + +src_prepare() { + default + + mkdir "${PN}" || die + cd "${PN}" || die + cat > configure.ac <<- EOS + AC_PREREQ([2.69]) + AC_INIT([${PN}], [${PV}], [prefix@gentoo.org]) + AM_INIT_AUTOMAKE + LT_INIT + + AC_CONFIG_MACRO_DIR([m4]) + AC_CONFIG_HEADER([config.h]) + + AC_PROG_CC + gl_INIT + gl_EARLY + + AC_CONFIG_FILES([Makefile lib/Makefile]) + + AC_OUTPUT + EOS + + cat > Makefile.am <<- EOS + SUBDIRS = lib + EOS + + local modules + local platform + local rev + + case "${CHOST}" in + *-apple-darwin*) + rev=${CHOST##*-darwin} + platform="Mac OS X 10.$((rev - 4))" + ;; + *-solaris2.*) + rev=${CHOST##*-solaris2.} + # we only support Solaris 10 (and perhaps 9) and up, so we + # don't have to bother about 2.x, just X + platform="Solaris ${rev}" + ;; + esac + + # blacklist some modules that cause collisions + # iconv provided by virtual/iconv -> sys-libs/libiconv + modules=( $( + cd "${S}"/doc/posix-functions + grep -A1 "This function is missing" *.texi | \ + grep "${platform}" | \ + sed -e 's:^\(.[^-]*\)-.*$:\1:' | \ + xargs sed -n 's/^Gnulib module: \([a-z].*\)$/\1/p' | \ + sed -e 's: or .*$::' -e 's:, :\n:g' | \ + sort -u | \ + grep -v "iconv" + ) ) + + # get platform specific set of missing functions + einfo "Including sources for missing functions on ${platform}:" + einfo "${modules[*]}" + "${S}"/gnulib-tool \ + --import \ + --lib=libmissing \ + --libtool \ + --no-vc-files \ + "${modules[@]}" + + sed -i -e '/^noinst_LTLIBRARIES /s/noinst_/lib_/' lib/Makefile.am || die + echo "libmissing_la_LDFLAGS += version-info ${PV//./:}" >> lib/Makefile.am + cat >> lib/Makefile.am << 'EOS' +install-data-local: $(BUILT_SOURCES) + @for hdr in $(BUILT_SOURCES); do \ + $(mkinstalldirs) $(DESTDIR)$(includedir)/$${hdr%/*}; \ + $(INSTALL_HEADER) "$$hdr" $(DESTDIR)$(includedir)/$${hdr}; \ + done; +EOS + + eautoreconf +} + +src_configure() { + cd "${PN}" || die + default +} + +src_compile() { + cd "${PN}" || die + default +} + +src_install() { + cd "${PN}" || die + default + + rm "${ED}"/usr/lib/libmissing.la \ + "$(use static-libs || echo "${ED}"/usr/lib/libmissing.a)" || die +} diff --git a/dev-libs/libmissing/metadata.xml b/dev-libs/libmissing/metadata.xml new file mode 100644 index 000000000000..ac8fbe340454 --- /dev/null +++ b/dev-libs/libmissing/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>prefix@gentoo.org</email> + <name>Prefix Project</name> +</maintainer> +<longdescription lang="en"> + libmissing provides missing POSIX functions using the gnulib sources + as library and system headers. +</longdescription> +</pkgmetadata> diff --git a/sys-fs/xfsprogs/Manifest b/sys-fs/xfsprogs/Manifest index ea2966dfb222..80f6644369e2 100644 --- a/sys-fs/xfsprogs/Manifest +++ b/sys-fs/xfsprogs/Manifest @@ -1,3 +1,4 @@ DIST xfsprogs-4.19.0.tar.xz 1212852 BLAKE2B 2d04390765c5e0dd7d51366f0310c9e680651d49bdd1ecd220b4eec50540a66c97bf6e54f976414351bc77381ffd463803836b27ca25b53960a278a34bc09775 SHA512 a96d0ce406534e70b0a531dfab296de420ec710cd0682dffaf5211602adf82dd59f84b9eb7793c54eabb782a9e0229acf7b247ab644d531ee9e5b51fe9dc0f58 DIST xfsprogs-5.0.0.tar.xz 1218476 BLAKE2B ef6eaab43531f696f739972c362e31c3304baaecb3485b45c16441a8bf7f1da7f47cd74a21660ba2c2bb45858a2b13b7af41c94671135f6a32a36eb745c024a0 SHA512 cebe3d2ea80676a99cc7f9cc014894398fbe3bdaf237829e9c7aa0404558c1ab16f2055acb5afd8234b2bc8475117bcef3c7500c553adb12bbaf3262bd077d18 DIST xfsprogs-5.1.0.tar.xz 1223736 BLAKE2B bfadb13cf3a4f9231eb13f4e7d3c803c2143abb776c0fee758ea7257097ef3fb79253c16133942041c20ff6078a1704fa18d08866c6a2e1a61b63f4de11d00c7 SHA512 ca5959edb299be8574b2ca51e907a418fab796ae92f588075a2aab0c2a3cf8dae49e2b68679c65c361201223e8f8ac29b1e5618eb1e519496c3aca9218620881 +DIST xfsprogs-5.2.0.tar.xz 1225884 BLAKE2B bec075d2adbafc5f6be215b658b8617141ade481558477525251c8547162f462af5464af5ac25d9498aca99b960a59071cc6651c36c6d30e5757e8d177c1b898 SHA512 b65ffb4d293f1ee0a9ec5aa35bf7a9491c2d536ad0da7f8e1d533743caebd98abffd1b93508969bac4135dc15434a9e170a516cedd373466ef762b65029f013f diff --git a/sys-fs/xfsprogs/xfsprogs-5.2.0.ebuild b/sys-fs/xfsprogs/xfsprogs-5.2.0.ebuild new file mode 100644 index 000000000000..22a5cc55eeaa --- /dev/null +++ b/sys-fs/xfsprogs/xfsprogs-5.2.0.ebuild @@ -0,0 +1,106 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit flag-o-matic toolchain-funcs systemd + +DESCRIPTION="xfs filesystem utilities" +HOMEPAGE="https://xfs.wiki.kernel.org/" +SRC_URI="https://www.kernel.org/pub/linux/utils/fs/xfs/${PN}/${P}.tar.xz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" +IUSE="icu libedit nls readline" + +LIB_DEPEND=">=sys-apps/util-linux-2.17.2[static-libs(+)] + icu? ( dev-libs/icu:=[static-libs(+)] ) + readline? ( sys-libs/readline:0=[static-libs(+)] ) + !readline? ( libedit? ( dev-libs/libedit[static-libs(+)] ) )" +RDEPEND="${LIB_DEPEND//\[static-libs(+)]} + !<sys-fs/xfsdump-3" +DEPEND="${RDEPEND}" +BDEPEND=" + nls? ( sys-devel/gettext ) +" + +PATCHES=( + "${FILESDIR}"/${PN}-4.9.0-underlinking.patch + "${FILESDIR}"/${PN}-4.15.0-sharedlibs.patch + "${FILESDIR}"/${PN}-4.15.0-docdir.patch +) + +pkg_setup() { + if use readline && use libedit ; then + ewarn "You have USE='readline libedit' but these are exclusive." + ewarn "Defaulting to readline; please disable this USE flag if you want libedit." + fi +} + +src_prepare() { + default + + # Fix doc dir + sed -i \ + -e "/^PKG_DOC_DIR/s:@pkg_name@:${PF}:" \ + include/builddefs.in || die + + # Don't install compressed docs + sed 's@\(CHANGES\)\.gz[[:space:]]@\1 @' -i doc/Makefile || die +} + +src_configure() { + export DEBUG=-DNDEBUG + export OPTIMIZER=${CFLAGS} + unset PLATFORM # if set in user env, this breaks configure + + # Upstream does NOT support --disable-static anymore, + # https://www.spinics.net/lists/linux-xfs/msg30185.html + # https://www.spinics.net/lists/linux-xfs/msg30272.html + local myconf=( + --enable-blkid + --with-crond-dir="${EPREFIX}/etc/cron.d" + --with-systemd-unit-dir="$(systemd_get_systemunitdir)" + $(use_enable icu libicu) + $(use_enable nls gettext) + $(use_enable readline) + $(usex readline --disable-editline $(use_enable libedit editline)) + ) + + if is-flagq -fno-lto ; then + einfo "LTO disabled via {C,CXX,F,FC}FLAGS" + myconf+=( --disable-lto ) + else + if is-flagq -flto ; then + einfo "LTO forced via {C,CXX,F,FC}FLAGS" + myconf+=( --enable-lto ) + elif use amd64 || use x86 ; then + # match upstream default + myconf+=( --enable-lto ) + else + # LTO can cause problems on some architectures, bug 655638 + myconf+=( --disable-lto ) + fi + fi + + econf "${myconf[@]}" +} + +src_compile() { + # Unset {CF,LD}FLAGS which are already set via configure + # but will cause problems when available during make. + # Fixed in >=xfsprogs-5.3.0. + unset CFLAGS LDFLAGS + + emake V=1 +} + +src_install() { + emake DIST_ROOT="${ED}" install + # parallel install fails on this target for >=xfsprogs-3.2.0 + emake -j1 DIST_ROOT="${ED}" install-dev + + # removing unnecessary .la files if not needed + find "${ED}" -type f -name '*.la' -delete || die +} |