From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- dev-libs/libxdg-basedir/Manifest | 6 +++ .../libxdg-basedir-1.2.0-buffer-overflow.patch | 26 +++++++++++ .../libxdg-basedir/libxdg-basedir-1.2.0-r1.ebuild | 50 ++++++++++++++++++++++ dev-libs/libxdg-basedir/metadata.xml | 8 ++++ 4 files changed, 90 insertions(+) create mode 100644 dev-libs/libxdg-basedir/Manifest create mode 100644 dev-libs/libxdg-basedir/files/libxdg-basedir-1.2.0-buffer-overflow.patch create mode 100644 dev-libs/libxdg-basedir/libxdg-basedir-1.2.0-r1.ebuild create mode 100644 dev-libs/libxdg-basedir/metadata.xml (limited to 'dev-libs/libxdg-basedir') diff --git a/dev-libs/libxdg-basedir/Manifest b/dev-libs/libxdg-basedir/Manifest new file mode 100644 index 000000000000..f5e5f2338d2d --- /dev/null +++ b/dev-libs/libxdg-basedir/Manifest @@ -0,0 +1,6 @@ +AUX libxdg-basedir-1.2.0-buffer-overflow.patch 898 SHA256 cc6584b326983b82b69156c14dbe45a82396fb02e362d39c903964a8fb4c6358 SHA512 265ded0f9fc7448021281eb48ed77977eb2f8f6275a18ba329dc9ad5a8c7e41585add4cb989af34e8f135a8545b1548763253204ab5905f78d90c9852546aa25 WHIRLPOOL 0a58205ea7814f2110bde26cb77aa262b429c9404ac40ea0ebf737c59a03033185bc1e14e64f817fd65a36f56e2fa17dc45fd0a9af7b565b609b3493c78cb939 +DIST libxdg-basedir-1.2.0.tar.gz 30159 SHA256 1c2b0032a539033313b5be2e48ddd0ae94c84faf21d93956d53562eef4614868 SHA512 8584405d45e0b57e570666b6eab6d99d70411d00f88965826c9ed0292372385668f190157a10ff536f3a5a59fd0031b332ecbb8a38ac64eda1b04a0603997406 WHIRLPOOL f8898e0063d8d9f99eb569a5f1fba81e4143a9c7b8c095f54b13a3960bdd297c57f5b534469166d52c5c7c03fe55bc8f8b246ec3c966f62507b220e8b4ad6d24 +EBUILD libxdg-basedir-1.2.0-r1.ebuild 981 SHA256 0a4a91f5e6e5ab4d694bdb1a25c3b7c404a7d654fb89fbe851aa799f8098dafa SHA512 f205ec6d46db3589bf79f5f8e2ab16de9191d5ba6f42d27532dc56d2bc1e4f9960e351a77c4b771c20164de11ac3a39145862b8dce4036db8f2383dde2beeb4e WHIRLPOOL 84ff8205d1c38e34c76742dbd92cbe2fdec9994ee679648500aa53c679251dcc0a3de3dea75fca82808e0fa2a329dcdcdc9d6ef248767f4d3e7734e56edf03f3 +MISC ChangeLog 2755 SHA256 6e22c4144c26cd15a9239d48c70b0b4da2b907b699be70fb6f9490677fcb7ba9 SHA512 f81103d971eb597d372fe1af667cde462906ccc7defa7a914d06b4b22102f9e950c74bc3a3fed8b52e2a2527acccb6b866714a98eeafb13098e298ee1300ba4e WHIRLPOOL 8c23647c94f4c983ba777bd376e95fc449ace255b76c69456d4fa5ae6f27d58c2a3714bd8b9834f1491b02be9e79f27e3529def04671fbfec5cc176fe5ae6207 +MISC ChangeLog-2015 6424 SHA256 7a0297763533e97348638707d4688d5f8b4ab3045b4f0c2f0668010dc8891b93 SHA512 c3a9f13417c415a73a6fa4a1a6b59f9885e6f9a31c81eb21d9c193bc8d0d49c460456a42b19b8a1b9f5ce2230032f1d4f58451fbe136286769e4852a1e1758c5 WHIRLPOOL f5ce52930d89fc4ef64f4abc1d22f597d6a5f1bd50b097b206885b1a18118365b27754c54d98e81b8b3d21e411054d211d7ffb76677de5e76bdd534d51370394 +MISC metadata.xml 258 SHA256 b1f9412313cc2afb61a366a7b0f23e8912090fbfc08e3479c737080767136906 SHA512 2186459dac52b0c063cc8a6d83c1895a1dcb4d1cef3c5c0a50d2658ce8cd4140cdf50a28032a2add1f71ca6a03bfb80c9293c8c0af668623741f5b6f90b38f7e WHIRLPOOL c674d8cd6faa1f281b137525136a10e8b18f5412563d704abd69dd001d4fff47b9e0717df5a944bb985a6df8c7159e3ffcfc9af0e8e8ea61507dd93a8206120e diff --git a/dev-libs/libxdg-basedir/files/libxdg-basedir-1.2.0-buffer-overflow.patch b/dev-libs/libxdg-basedir/files/libxdg-basedir-1.2.0-buffer-overflow.patch new file mode 100644 index 000000000000..4cd601cbde54 --- /dev/null +++ b/dev-libs/libxdg-basedir/files/libxdg-basedir-1.2.0-buffer-overflow.patch @@ -0,0 +1,26 @@ +From 14e000f696ef8b83264b0ca4407669bdb365fb23 Mon Sep 17 00:00:00 2001 +From: Timmy Weerwag +Date: Sun, 16 Mar 2014 17:54:14 +0100 +Subject: [PATCH] Overflow bug + +Signed-off-by: Christian Ruppert +--- + src/basedir.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/basedir.c b/src/basedir.c +index 68ab879..1a2a8c4 100644 +--- a/src/basedir.c ++++ b/src/basedir.c +@@ -574,7 +574,7 @@ static char * xdgGetRelativeHome(const char *envname, const char *relativefallba + unsigned int homelen; + if (!(home = xdgGetEnv("HOME"))) + return NULL; +- if (!(relhome = (char*)malloc((homelen = strlen(home))+fallbacklength))) return NULL; ++ if (!(relhome = (char*)malloc((homelen = strlen(home))+fallbacklength+1))) return NULL; + memcpy(relhome, home, homelen); + memcpy(relhome+homelen, relativefallback, fallbacklength+1); + } +-- +1.8.3.2 + diff --git a/dev-libs/libxdg-basedir/libxdg-basedir-1.2.0-r1.ebuild b/dev-libs/libxdg-basedir/libxdg-basedir-1.2.0-r1.ebuild new file mode 100644 index 000000000000..26e6d732db0b --- /dev/null +++ b/dev-libs/libxdg-basedir/libxdg-basedir-1.2.0-r1.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit autotools eutils + +DESCRIPTION="Small library to access XDG Base Directories Specification paths" +HOMEPAGE="http://repo.or.cz/w/libxdg-basedir.git" +SRC_URI="https://github.com/devnev/${PN}/archive/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 arm ~arm64 hppa ppc ppc64 x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x64-macos ~x86-solaris" +IUSE="doc static-libs" + +RDEPEND="" +DEPEND="doc? ( app-doc/doxygen )" + +S="${WORKDIR}/${PN}-${P}" + +src_prepare() { + epatch "${FILESDIR}/${P}-buffer-overflow.patch" + + eautoreconf +} + +src_configure() { + econf \ + --disable-dependency-tracking \ + $(use_enable static-libs static) \ + $(use_enable doc doxygen-html) +} + +src_compile() { + emake + + if use doc; then + emake doxygen-doc + fi +} + +src_install() { + emake DESTDIR="${D}" install + + if use doc; then + dohtml -r doc/html/* + fi + + find "${D}" -type f -name '*.la' -delete +} diff --git a/dev-libs/libxdg-basedir/metadata.xml b/dev-libs/libxdg-basedir/metadata.xml new file mode 100644 index 000000000000..26b0caef5e23 --- /dev/null +++ b/dev-libs/libxdg-basedir/metadata.xml @@ -0,0 +1,8 @@ + + + + + + devnev/libxdg-basedir + + -- cgit v1.2.3