diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2008-05-13 20:42:49 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2008-05-13 20:42:49 +0000 |
commit | 3261451b874ba682b226b15865e072e75f694769 (patch) | |
tree | 794f954827aab8a430cb1086c33908c4262508c0 /app-crypt/steghide | |
parent | Added inherit versionator. (diff) | |
download | historical-3261451b874ba682b226b15865e072e75f694769.tar.gz historical-3261451b874ba682b226b15865e072e75f694769.tar.bz2 historical-3261451b874ba682b226b15865e072e75f694769.zip |
Fix building with GCC 4.3 wrt #221129, thanks to Peter Alfredsen.
Package-Manager: portage-2.1.5_rc10
Diffstat (limited to 'app-crypt/steghide')
-rw-r--r-- | app-crypt/steghide/ChangeLog | 9 | ||||
-rw-r--r-- | app-crypt/steghide/Manifest | 6 | ||||
-rw-r--r-- | app-crypt/steghide/files/fix-libtool-invocation.patch | 11 | ||||
-rw-r--r-- | app-crypt/steghide/files/steghide-0.5.1-gcc43.patch | 349 | ||||
-rw-r--r-- | app-crypt/steghide/steghide-0.5.1.ebuild | 31 |
5 files changed, 377 insertions, 29 deletions
diff --git a/app-crypt/steghide/ChangeLog b/app-crypt/steghide/ChangeLog index f9c5c293898a..5ee669190923 100644 --- a/app-crypt/steghide/ChangeLog +++ b/app-crypt/steghide/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for app-crypt/steghide -# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-crypt/steghide/ChangeLog,v 1.14 2007/05/12 04:13:16 dirtyepic Exp $ +# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-crypt/steghide/ChangeLog,v 1.15 2008/05/13 20:42:48 drac Exp $ + + 13 May 2008; Samuli Suominen <drac@gentoo.org> + +files/steghide-0.5.1-gcc43.patch, -files/fix-libtool-invocation.patch, + steghide-0.5.1.ebuild: + Fix building with GCC 4.3 wrt #221129, thanks to Peter Alfredsen. 12 May 2007; Ryan Hill <dirtyepic@gentoo.org> files/steghide-0.5.1-gcc4.patch, metadata.xml: diff --git a/app-crypt/steghide/Manifest b/app-crypt/steghide/Manifest index b0fb037e0eec..9719898954d4 100644 --- a/app-crypt/steghide/Manifest +++ b/app-crypt/steghide/Manifest @@ -1,7 +1,7 @@ -AUX fix-libtool-invocation.patch 407 RMD160 3b02990cff5d10a11e02a73371197f57a47c2294 SHA1 d362f1f0d3df3da9dbe1c4d896556fdc96a97a6e SHA256 b1b75db8491e89f77a6584624bfeb284d59fb2aa857b833294c46cb7f3272745 AUX steghide-0.5.1-gcc34.patch 1382 RMD160 aa39da995620f3e74881c1f66ed93291850d08d6 SHA1 7cdf517dda11ca57d3d0aa2377cb97858818f700 SHA256 0fb9315bb2aa910d55f8c3ff0d93498f93e8327901e77e0ef64f55493d885f1d AUX steghide-0.5.1-gcc4.patch 1969 RMD160 0ad63bf95da30fec6fe501f8f65d049affca03ea SHA1 bf8be70b2fb763f4db4646f28ffaf52331ff2ced SHA256 bcc1f7709c2c9912006a96ed701b1c6af919281c098fde1ec0bd74a013909ea7 +AUX steghide-0.5.1-gcc43.patch 10444 RMD160 e191cd5f32bafebdd088f133c0a0e76e8d7ee7b6 SHA1 31ad77e6dc1012fe79377c2b6b65059081fbb594 SHA256 a2039ea4b4628c5738aca57549e97a81b41c9bf050ee5a0e9c61a0885853d5e4 DIST steghide-0.5.1.tar.bz2 392761 RMD160 b40448baf46b16e6131a30b7e07d14c4f61db15a SHA1 b741dffbb5c3d0b2d13eebec1b083fc50f974b68 SHA256 a2c7f879a3e22860879889106cc49e486000653f81448264affa0fd616a47da1 -EBUILD steghide-0.5.1.ebuild 908 RMD160 0edd196501137160858807c82cc49f36e9fb8d40 SHA1 bbee85af4a167684d18e815160013d47ede9c93d SHA256 53ee0ea8aa0ea40f27efda8582c51df6d261462b290557490da979b327f5fb01 -MISC ChangeLog 1876 RMD160 7e58f5f224909454be1bae6f8de55329ca6592d7 SHA1 b32ec52674987c43b55b1772b7e5dd8c37efaac1 SHA256 3e719b204aee74670a4a74610a1197d42edaa9e223c27b107a8670b169fd7dc5 +EBUILD steghide-0.5.1.ebuild 995 RMD160 bce633d4a63e45c769704e32f9f2ee6ed1be0bdf SHA1 d7711b6927f4bfe79a8e3d296cae5b10f366f7f2 SHA256 3ea207fe4c25f39fba20a1161f305762fc2189868f3d6a412f822c70c2093772 +MISC ChangeLog 2088 RMD160 04c17999793d5ac97545a9f9d06298873b4e751e SHA1 3fc3cfc0b4283197201498b553f738d6b3cd2a4b SHA256 379d709c6fc9f8a32df20166b01a909935209b5801c40bf59d981c664080cbca MISC metadata.xml 236 RMD160 92f49f8275e75caf57b88a3172d5204eaa4e33ae SHA1 dd1a8550a514e55ab0ed6190ab4794bb090994f8 SHA256 56075995f83836ae824c7cb01931b98d6745f6d5a7764299c8262e801486b829 diff --git a/app-crypt/steghide/files/fix-libtool-invocation.patch b/app-crypt/steghide/files/fix-libtool-invocation.patch deleted file mode 100644 index 863e25fd6863..000000000000 --- a/app-crypt/steghide/files/fix-libtool-invocation.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- src/Makefile.orig 2004-07-30 16:52:06.636316472 +0100 -+++ src/Makefile 2004-07-30 16:52:21.662032216 +0100 -@@ -190,7 +190,7 @@ - WavPCMSampleValue.cc error.cc main.cc msg.cc SMDConstructionHeuristic.cc - - localedir = $(datadir)/locale --LIBTOOL = $(SHELL) libtool -+LIBTOOL = $(SHELL) /usr/bin/libtool - MAINTAINERCLEANFILES = Makefile.in - subdir = src - mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs diff --git a/app-crypt/steghide/files/steghide-0.5.1-gcc43.patch b/app-crypt/steghide/files/steghide-0.5.1-gcc43.patch new file mode 100644 index 000000000000..ca66b9c544f5 --- /dev/null +++ b/app-crypt/steghide/files/steghide-0.5.1-gcc43.patch @@ -0,0 +1,349 @@ +--- steghide-0.5.1.old/configure.in 2003-10-15 09:48:52.000000000 +0200 ++++ steghide-0.5.1.new/configure.in 2008-05-09 19:04:46.000000000 +0200 +@@ -7,27 +7,26 @@ + dnl checks for programs. + AC_PROG_CXX + AC_PROG_INSTALL + AC_PROG_AWK + AC_PROG_LN_S ++AC_CXX_COMPILE_STDCXX_0X + + dnl GNU gettext + AC_CHECK_FUNCS(strchr) + AM_GNU_GETTEXT + AM_CONDITIONAL(USE_INTLDIR, test "$nls_cv_use_gnu_gettext" = yes) + + dnl check if debugging support is requested +-AC_MSG_CHECKING([wether to enable debugging]) ++AC_MSG_CHECKING([whether to enable debugging]) + AC_ARG_ENABLE(debug,[ --enable-debug enable debugging], + if test "$enableval" = yes ; + then + AC_MSG_RESULT([yes]) + AC_DEFINE(DEBUG,1,[enable code used only for debugging]) +- CXXFLAGS="-O2 -Wall -g" + else + AC_MSG_RESULT([no]) +- CXXFLAGS="-O2 -Wall" + fi + , + AC_MSG_RESULT([no]) + CXXFLAGS="-O2 -Wall" + ) +@@ -213,7 +212,18 @@ + echo "libmhash can be downloaded from http://mhash.sourceforge.net/."; + echo "**********"; + AC_MSG_ERROR([[libmhash not found]]) + fi + ++dnl Should we add std=c++0x? ++ ++if test "$ac_cv_cxx_compile_cxx0x_cxx" = yes; ++then ++ CXXFLAGS="${CXXFLAGS} -std=c++0x -Wall -Wextra" ++else ++ CXXFLAGS="${CXXFLAGS} -Wall -Wextra" ++fi ++ ++AC_SUBST(CXXFLAGS) ++ + dnl create Makefiles + AC_OUTPUT([Makefile steghide.spec steghide.doxygen doc/Makefile po/Makefile.in src/Makefile tests/Makefile tests/data/Makefile m4/Makefile intl/Makefile]) +--- steghide-0.5.1.old/m4/ac_cxx_compile_stdcxx_0x.m4 1970-01-01 01:00:00.000000000 +0100 ++++ steghide-0.5.1.new/m4/ac_cxx_compile_stdcxx_0x.m4 2008-05-09 19:04:46.000000000 +0200 +@@ -0,0 +1,107 @@ ++# =========================================================================== ++# http://autoconf-archive.cryp.to/ac_cxx_compile_stdcxx_0x.html ++# =========================================================================== ++# ++# SYNOPSIS ++# ++# AC_CXX_COMPILE_STDCXX_0X ++# ++# DESCRIPTION ++# ++# Check for baseline language coverage in the compiler for the C++0x ++# standard. ++# ++# LAST MODIFICATION ++# ++# 2008-04-17 ++# ++# COPYLEFT ++# ++# Copyright (c) 2008 Benjamin Kosnik <bkoz@redhat.com> ++# ++# Copying and distribution of this file, with or without modification, are ++# permitted in any medium without royalty provided the copyright notice ++# and this notice are preserved. ++ ++AC_DEFUN([AC_CXX_COMPILE_STDCXX_0X], [ ++ AC_CACHE_CHECK(if g++ supports C++0x features without additional flags, ++ ac_cv_cxx_compile_cxx0x_native, ++ [AC_LANG_SAVE ++ AC_LANG_CPLUSPLUS ++ AC_TRY_COMPILE([ ++ template <typename T> ++ struct check ++ { ++ static_assert(sizeof(int) <= sizeof(T), "not big enough"); ++ }; ++ ++ typedef check<check<bool>> right_angle_brackets; ++ ++ int a; ++ decltype(a) b; ++ ++ typedef check<int> check_type; ++ check_type c; ++ check_type&& cr = c;],, ++ ac_cv_cxx_compile_cxx0x_native=yes, ac_cv_cxx_compile_cxx0x_native=no) ++ AC_LANG_RESTORE ++ ]) ++ ++ AC_CACHE_CHECK(if g++ supports C++0x features with -std=c++0x, ++ ac_cv_cxx_compile_cxx0x_cxx, ++ [AC_LANG_SAVE ++ AC_LANG_CPLUSPLUS ++ ac_save_CXXFLAGS="$CXXFLAGS" ++ CXXFLAGS="$CXXFLAGS -std=c++0x" ++ AC_TRY_COMPILE([ ++ template <typename T> ++ struct check ++ { ++ static_assert(sizeof(int) <= sizeof(T), "not big enough"); ++ }; ++ ++ typedef check<check<bool>> right_angle_brackets; ++ ++ int a; ++ decltype(a) b; ++ ++ typedef check<int> check_type; ++ check_type c; ++ check_type&& cr = c;],, ++ ac_cv_cxx_compile_cxx0x_cxx=yes, ac_cv_cxx_compile_cxx0x_cxx=no) ++ CXXFLAGS="$ac_save_CXXFLAGS" ++ AC_LANG_RESTORE ++ ]) ++ ++ AC_CACHE_CHECK(if g++ supports C++0x features with -std=gnu++0x, ++ ac_cv_cxx_compile_cxx0x_gxx, ++ [AC_LANG_SAVE ++ AC_LANG_CPLUSPLUS ++ ac_save_CXXFLAGS="$CXXFLAGS" ++ CXXFLAGS="$CXXFLAGS -std=gnu++0x" ++ AC_TRY_COMPILE([ ++ template <typename T> ++ struct check ++ { ++ static_assert(sizeof(int) <= sizeof(T), "not big enough"); ++ }; ++ ++ typedef check<check<bool>> right_angle_brackets; ++ ++ int a; ++ decltype(a) b; ++ ++ typedef check<int> check_type; ++ check_type c; ++ check_type&& cr = c;],, ++ ac_cv_cxx_compile_cxx0x_gxx=yes, ac_cv_cxx_compile_cxx0x_gxx=no) ++ CXXFLAGS="$ac_save_CXXFLAGS" ++ AC_LANG_RESTORE ++ ]) ++ ++ if test "$ac_cv_cxx_compile_cxx0x_native" = yes || ++ test "$ac_cv_cxx_compile_cxx0x_cxx" = yes || ++ test "$ac_cv_cxx_compile_cxx0x_gxx" = yes; then ++ AC_DEFINE(HAVE_STDCXX_0X,,[Define if g++ supports C++0x features. ]) ++ fi ++]) +--- steghide-0.5.1.old/src/Arguments.cc 2003-10-11 23:25:04.000000000 +0200 ++++ steghide-0.5.1.new/src/Arguments.cc 2008-05-09 19:04:44.000000000 +0200 +@@ -26,10 +26,12 @@ + #include "Terminal.h" + #include "common.h" + #include "error.h" + #include "msg.h" + ++float Arguments::Default_Goal = 100.0 ; ++ + // the global Arguments object + Arguments Args ; + + Arguments::Arguments (int argc, char* argv[]) + { +--- steghide-0.5.1.old/src/Arguments.h 2003-10-11 23:23:57.000000000 +0200 ++++ steghide-0.5.1.new/src/Arguments.h 2008-05-09 19:04:44.000000000 +0200 +@@ -98,11 +98,11 @@ + static const bool Default_EmbedEmbFn = true ; + static const bool Default_Force = false ; + static const VERBOSITY Default_Verbosity = NORMAL ; + static const unsigned long Default_Radius = 0 ; // there is no default radius for all file formats + static const unsigned int Max_Algorithm = 3 ; +- static const float Default_Goal = 100.0 ; ++ static float Default_Goal ; + static const DEBUGCOMMAND Default_DebugCommand = NONE ; + static const bool Default_Check = false ; + static const unsigned int Default_DebugLevel = 0 ; + static const unsigned int Default_GmlGraphRecDepth = 0 ; + static const unsigned int Default_GmlStartVertex = 0 ; +--- steghide-0.5.1.old/src/EncryptionMode.h 2003-09-28 17:30:30.000000000 +0200 ++++ steghide-0.5.1.new/src/EncryptionMode.h 2008-05-09 19:04:46.000000000 +0200 +@@ -69,11 +69,11 @@ + static const unsigned int NumValues = 8 ; + IRep Value ; + + typedef struct struct_Translation { + IRep irep ; +- char* srep ; ++ const char* srep ; + } Translation ; + static const Translation Translations[] ; + } ; + + #endif // ndef SH_ENCMODE_H +--- steghide-0.5.1.old/src/Graph.cc 2003-10-11 23:54:26.000000000 +0200 ++++ steghide-0.5.1.new/src/Graph.cc 2008-05-09 19:04:46.000000000 +0200 +@@ -20,10 +20,12 @@ + + #include <ctime> + #include <list> + #include <map> + #include <vector> ++#include <algorithm> ++#include <climits> + + #include "BitString.h" + #include "CvrStgFile.h" + #include "Edge.h" + #include "Graph.h" +--- steghide-0.5.1.old/src/Matching.cc 2003-10-11 23:54:30.000000000 +0200 ++++ steghide-0.5.1.new/src/Matching.cc 2008-05-09 19:04:46.000000000 +0200 +@@ -16,10 +16,11 @@ + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + * + */ + ++#include <algorithm> + #include "Edge.h" + #include "Graph.h" + #include "Matching.h" + #include "ProgressOutput.h" + #include "common.h" +--- steghide-0.5.1.old/src/ProgressOutput.cc 2003-10-11 11:20:51.000000000 +0200 ++++ steghide-0.5.1.new/src/ProgressOutput.cc 2008-05-09 19:04:44.000000000 +0200 +@@ -21,10 +21,12 @@ + #include <cmath> + + #include "ProgressOutput.h" + #include "common.h" + ++float ProgressOutput::NoAvgWeight = 1.0 ; ++ + ProgressOutput::ProgressOutput () + : Message("__nomessage__") + { + LastUpdate = time(NULL) - 1 ; // -1 to ensure that message is written first time + } +--- steghide-0.5.1.old/src/ProgressOutput.h 2003-09-28 17:30:30.000000000 +0200 ++++ steghide-0.5.1.new/src/ProgressOutput.h 2008-05-09 19:04:44.000000000 +0200 +@@ -60,13 +60,13 @@ + /** + * update the output appending rate, [average edge weight], "done" and a newline + * \param rate the rate of matched vertices + * \param avgweight the average edge weight (is not printed if not given) + **/ +- void done (float rate, float avgweight = NoAvgWeight) const ; ++ void done (float rate, float avgweight = 1.0) const ; + +- static const float NoAvgWeight = -1.0 ; ++ static float NoAvgWeight ; + + protected: + std::string vcompose (const char *msgfmt, va_list ap) const ; + + private: +--- steghide-0.5.1.old/src/SMDConstructionHeuristic.cc 2003-09-28 17:30:30.000000000 +0200 ++++ steghide-0.5.1.new/src/SMDConstructionHeuristic.cc 2008-05-09 19:04:46.000000000 +0200 +@@ -16,10 +16,12 @@ + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + * + */ + ++#include <algorithm> ++ + #include "Edge.h" + #include "Graph.h" + #include "Matching.h" + #include "SMDConstructionHeuristic.h" + #include "Vertex.h" +--- steghide-0.5.1.old/src/WavFile.cc 2003-09-28 17:30:30.000000000 +0200 ++++ steghide-0.5.1.new/src/WavFile.cc 2008-05-09 19:04:46.000000000 +0200 +@@ -19,10 +19,11 @@ + */ + + #include <cstdio> + #include <cstdlib> + #include <cstring> ++#include <algorithm> + + #include "CvrStgFile.h" + #include "DFSAPHeuristic.h" + #include "SampleValueAdjacencyList.h" + #include "SMDConstructionHeuristic.h" +--- steghide-0.5.1.old/src/wrapper_hash_map.h 2003-09-28 17:30:30.000000000 +0200 ++++ steghide-0.5.1.new/src/wrapper_hash_map.h 2008-05-09 19:04:46.000000000 +0200 +@@ -25,17 +25,21 @@ + + #ifdef __GNUC__ + # if __GNUC__ < 3 + # include <hash_map.h> + namespace sgi { using ::hash ; using ::hash_map ; } ; +-# else ++# elif __GNUC__ == 3 || ( __GNUC__ == 4 && __GNUC_MINOR__ < 3 ) + # include <ext/hash_map> +-# if __GNUC_MINOR__ == 0 ++# if __GNUC__ == 3 && __GNUC_MINOR__ == 0 + namespace sgi = std ; // GCC 3.0 + # else + namespace sgi = __gnu_cxx ; // GCC 3.1 and later + # endif ++# else ++# include <unordered_map> ++# define hash_map unordered_map ++ namespace sgi = std ; + # endif + #else + namespace sgi = std ; + #endif + +--- steghide-0.5.1.old/src/wrapper_hash_set.h 2003-09-28 17:30:30.000000000 +0200 ++++ steghide-0.5.1.new/src/wrapper_hash_set.h 2008-05-09 19:04:46.000000000 +0200 +@@ -26,17 +26,21 @@ + + #ifdef __GNUC__ + # if __GNUC__ < 3 + # include <hash_set.h> + namespace sgi { using ::hash ; using ::hash_set ; } ; +-# else ++# elif __GNUC__ == 3 || ( __GNUC__ == 4 && __GNUC_MINOR__ < 3 ) + # include <ext/hash_set> +-# if __GNUC_MINOR__ == 0 ++# if __GNUC__ == 3 && __GNUC_MINOR__ == 0 + namespace sgi = std ; // GCC 3.0 + # else + namespace sgi = ::__gnu_cxx ; // GCC 3.1 and later + # endif ++# else ++# include <unordered_set> ++# define hash_set unordered_set ++ namespace sgi = std ; + # endif + #else + namespace sgi = std ; + #endif + diff --git a/app-crypt/steghide/steghide-0.5.1.ebuild b/app-crypt/steghide/steghide-0.5.1.ebuild index 3d1230ce0d0a..b14b0b69aafe 100644 --- a/app-crypt/steghide/steghide-0.5.1.ebuild +++ b/app-crypt/steghide/steghide-0.5.1.ebuild @@ -1,34 +1,39 @@ -# Copyright 1999-2006 Gentoo Foundation +# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-crypt/steghide/steghide-0.5.1.ebuild,v 1.11 2006/08/16 00:39:09 squinky86 Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-crypt/steghide/steghide-0.5.1.ebuild,v 1.12 2008/05/13 20:42:48 drac Exp $ -inherit eutils +inherit autotools eutils DESCRIPTION="A steganography program which hides data in various media files" HOMEPAGE="http://steghide.sourceforge.net/" SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" + LICENSE="GPL-2" SLOT="0" KEYWORDS="amd64 ppc x86" -IUSE="" +IUSE="debug" DEPEND=">=app-crypt/mhash-0.8.18-r1 - >=dev-libs/libmcrypt-2.5.7 - >=media-libs/jpeg-6b-r3 - >=sys-libs/zlib-1.1.4-r2" + >=dev-libs/libmcrypt-2.5.7 + >=media-libs/jpeg-6b-r3 + >=sys-libs/zlib-1.1.4-r2" src_unpack(){ unpack ${A} - epatch "${FILESDIR}"/${P}-gcc34.patch - epatch "${FILESDIR}"/${P}-gcc4.patch + cd "${S}" + epatch "${FILESDIR}"/${P}-gcc34.patch \ + "${FILESDIR}"/${P}-gcc4.patch \ + "${FILESDIR}"/${P}-gcc43.patch + eautoreconf } src_compile() { - econf || die "configure failed" - epatch "${FILESDIR}"/fix-libtool-invocation.patch - emake || die "make failed" + econf $(use_enable debug) + emake LIBTOOL="$(type -p libtool)" || die "emake failed." } src_install() { - make DESTDIR="${D}" install || die "installation failed" + emake DESTDIR="${D}" docdir="/usr/share/doc/${PF}" install \ + || die "emake install failed." + prepalldocs } |