From e6636bd5d6280d92996bd70b744e8a29e54c7e18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Tue, 19 Nov 2019 17:45:28 +0100 Subject: Gentoo: Initial import of an ebuilds tree from Fat-Zer's (Alexander Golubev) repository. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- .../files/fix-Wformat-security-warnings.patch | 40 ++++++++++++++++++++++ .../skyutils/files/skyutils-2.8-libs.patch | 12 +++++++ 2 files changed, 52 insertions(+) create mode 100644 gentoo/dev-libs/skyutils/files/fix-Wformat-security-warnings.patch create mode 100644 gentoo/dev-libs/skyutils/files/skyutils-2.8-libs.patch (limited to 'gentoo/dev-libs/skyutils/files') diff --git a/gentoo/dev-libs/skyutils/files/fix-Wformat-security-warnings.patch b/gentoo/dev-libs/skyutils/files/fix-Wformat-security-warnings.patch new file mode 100644 index 000000000..c7fb19bec --- /dev/null +++ b/gentoo/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 +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 +-#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/gentoo/dev-libs/skyutils/files/skyutils-2.8-libs.patch b/gentoo/dev-libs/skyutils/files/skyutils-2.8-libs.patch new file mode 100644 index 000000000..990b5fafc --- /dev/null +++ b/gentoo/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 -- cgit v1.2.1