diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2019-11-28 02:34:44 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2019-11-28 02:34:44 +0100 |
commit | 644110a847c5911c2eb04eb53c93031740561efc (patch) | |
tree | 9658dde1cc70b52b233957b7852f87d997e98156 /dev-libs/skyutils | |
download | tde-packaging-gentoo-644110a847c5911c2eb04eb53c93031740561efc.tar.gz tde-packaging-gentoo-644110a847c5911c2eb04eb53c93031740561efc.zip |
Initial import of an ebuilds tree
from Fat-Zer's (Alexander Golubev) repository.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'dev-libs/skyutils')
-rw-r--r-- | dev-libs/skyutils/Manifest | 1 | ||||
-rw-r--r-- | dev-libs/skyutils/files/fix-Wformat-security-warnings.patch | 40 | ||||
-rw-r--r-- | dev-libs/skyutils/files/skyutils-2.8-libs.patch | 12 | ||||
-rw-r--r-- | dev-libs/skyutils/metadata.xml | 9 | ||||
-rw-r--r-- | dev-libs/skyutils/skyutils-2.8-r5.ebuild | 37 |
5 files changed, 99 insertions, 0 deletions
diff --git a/dev-libs/skyutils/Manifest b/dev-libs/skyutils/Manifest new file mode 100644 index 00000000..c7dbe942 --- /dev/null +++ b/dev-libs/skyutils/Manifest @@ -0,0 +1 @@ +DIST skyutils-2.8.tar.gz 357571 SHA256 724c23673f060ec14e452ff8d28a9592993d22328eac5213c780ac674d2a8518 SHA512 65073067f8cd3c81587e6a3b718cd4903004d681f6852afb7de8cb91249fc655afe8234aa780409843649dd0996d877892a97cc5073445ad687c7c2eb6619a01 WHIRLPOOL 1a223fce1fff2f37a0f9cbc20314e19018f4cd7ab50a6b0a12a13ad428442ed9cb58eef586d9e5ca96f7a2d0c76aca3388702a80986c9686ef5ff38d7b3cf64f diff --git a/dev-libs/skyutils/files/fix-Wformat-security-warnings.patch b/dev-libs/skyutils/files/fix-Wformat-security-warnings.patch new file mode 100644 index 00000000..c7fb19be --- /dev/null +++ b/dev-libs/skyutils/files/fix-Wformat-security-warnings.patch @@ -0,0 +1,40 @@ +From 40a157d2161fdd8709a777de6625fbd1b93efed3 Mon Sep 17 00:00:00 2001 +From: Michael Orlitzky <michael@orlitzky.com> +Date: Sat, 6 Aug 2016 19:23:48 -0400 +Subject: [PATCH 1/1] src/skyutils.h: fix two missing format strings in + SU_SYSLOG_FN. + +The SU_SYSLOG_FN(x,y) macro could be defined as either syslog(x,y) or +printf(y), both of which are missing the trivial format string +"%s". This commit adds it, so that the project builds with no +-Wformat-security warnings. + +Gentoo-Bug: 521114 +--- + src/skyutils.h | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/skyutils.h b/src/skyutils.h +index 8b7d59d..f77c9fd 100644 +--- a/src/skyutils.h ++++ b/src/skyutils.h +@@ -279,14 +279,14 @@ void SU_PrintDebug(int Level,char *Txt, ...); + #ifdef __unix__ + #define SU_PrintDebug(x,...) /* If you have an error here, remove 'x,...' from the () */ + #include <syslog.h> +-#define SU_SYSLOG_FN(x,y) syslog(x,y) ++#define SU_SYSLOG_FN(x,y) syslog(x,"%s",y) + #else /* !__unix__ */ + #define SU_PrintDebug() /* Avoid compilation warnings */ + extern FILE *SU_LogFile; + #define SU_SYSLOG_FN(x,y) SU_WriteToLogFile(SU_LogFile,y) + #endif /* __unix__ */ + #else /* DEBUG */ +-#define SU_SYSLOG_FN(x,y) printf(y) ++#define SU_SYSLOG_FN(x,y) printf("%s",y) + #endif /* !DEBUG */ + #ifdef _WIN32 + #define SU_SLEEP(x) Sleep(x*1000) +-- +2.7.3 + diff --git a/dev-libs/skyutils/files/skyutils-2.8-libs.patch b/dev-libs/skyutils/files/skyutils-2.8-libs.patch new file mode 100644 index 00000000..990b5faf --- /dev/null +++ b/dev-libs/skyutils/files/skyutils-2.8-libs.patch @@ -0,0 +1,12 @@ +diff -ur skyutils-2.8.orig/configure.in skyutils-2.8/configure.in +--- skyutils-2.8.orig/configure.in 2005-05-09 08:16:44.000000000 +0000 ++++ skyutils-2.8/configure.in 2008-07-18 05:38:13.000000000 +0000 +@@ -208,6 +208,8 @@ + AC_SUBST(SU_ARCH_LIB) + AC_SUBST(SU_ARCH_CFLAGS) + AC_SUBST(SU_ANSI_CFLAGS) ++LIBS="$SU_PTHREAD_LIB $SU_DL_LIB $SU_SSL_LIB $SU_ARCH_LIB" ++AC_SUBST(LIBS) + + AC_OUTPUT([ + Makefile diff --git a/dev-libs/skyutils/metadata.xml b/dev-libs/skyutils/metadata.xml new file mode 100644 index 00000000..209c4595 --- /dev/null +++ b/dev-libs/skyutils/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <!-- maintainer-needed --> + <longdescription> + This library contains many useful functions such as chained lists, + string manipulation, socket, and the HTTP protocol. + </longdescription> +</pkgmetadata> diff --git a/dev-libs/skyutils/skyutils-2.8-r5.ebuild b/dev-libs/skyutils/skyutils-2.8-r5.ebuild new file mode 100644 index 00000000..35f216a3 --- /dev/null +++ b/dev-libs/skyutils/skyutils-2.8-r5.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 +inherit flag-o-matic autotools + +DESCRIPTION="Library of assorted C utility functions" +# Was: http://zekiller.skytech.org/coders_en.html +HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage" +SRC_URI="mirror://gentoo/${P}.tar.gz" + +LICENSE="LGPL-2.1+" +SLOT="0" +KEYWORDS="amd64 ~ppc ~ppc64 ~sparc x86" +IUSE="ssl" + +DEPEND="ssl? ( dev-libs/openssl:0=[sslv3] )" +RDEPEND="${DEPEND}" + +PATCHES=( + "${FILESDIR}/${P}-libs.patch" + "${FILESDIR}/fix-Wformat-security-warnings.patch" +) + +src_prepare() { + default + sed -i 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/g' configure.in \ + || die 'failed to rename AM_CONFIG_HEADER macro' + + eautoreconf +} + +src_configure() { + append-flags -D_GNU_SOURCE + econf $(use_enable ssl) +} |