diff options
Diffstat (limited to 'media-libs/plib')
-rw-r--r-- | media-libs/plib/Manifest | 8 | ||||
-rw-r--r-- | media-libs/plib/files/plib-1.8.5-CVE-2011-4552.patch | 54 | ||||
-rw-r--r-- | media-libs/plib/files/plib-1.8.5-CVE-2011-4620.patch | 11 | ||||
-rw-r--r-- | media-libs/plib/files/plib-1.8.5-X11.patch | 11 | ||||
-rw-r--r-- | media-libs/plib/metadata.xml | 11 | ||||
-rw-r--r-- | media-libs/plib/plib-1.8.5-r1.ebuild | 33 |
6 files changed, 128 insertions, 0 deletions
diff --git a/media-libs/plib/Manifest b/media-libs/plib/Manifest new file mode 100644 index 000000000000..3e3d0718c118 --- /dev/null +++ b/media-libs/plib/Manifest @@ -0,0 +1,8 @@ +AUX plib-1.8.5-CVE-2011-4552.patch 1322 SHA256 d32cc7d7d47f21a6d4beb410d1d3e494a83537c055762e87d94dc7cc00bf1ed1 SHA512 a09462ecb085703aae7cd3b77954cc800410aa37a9616255cca2f21456e6d5dcf8ead3f684c98236deb1455c6a034dc8ec874bafdbab003f7a63517ea1f8350d WHIRLPOOL 3dc3911fcdeff4bf02e3aa17d69e3da33bdfd7a0c144b3acc50f6369602ca6f94f0926505c422e66b84fc2af6e1dc1c2c73f7d7d8475b6dc7ca0f5c4c0fdb849 +AUX plib-1.8.5-CVE-2011-4620.patch 415 SHA256 f711ea94aa679f978cdf204dd5ce027cc2194268887c47ef4ef36d29a174a120 SHA512 c046cf65e80629f238aaba724f522c31b434f5c9687ea02b019846ce3469c6b074bd014f81a7a4e6b43db7b084f4dcd9d4c04b557dbc1b8b8ca00f2d782fdf1c WHIRLPOOL 6043d61e536bcac911b6eed71c6d82005369da5b096ca4667d157864dfc14828d581aef9a2cc4a89a97d23880ddd6947f8307f82ac1128b07fd104842c537375 +AUX plib-1.8.5-X11.patch 341 SHA256 a49fd4d7a8d18da4b69af44f4c420af196e76a0fbbbfefae24cec03d317b5f61 SHA512 1a605336ed46cdb7dca8b6f9eab488fd8fcf20a2beadcb70fc449d0ee6b2519b1658a9ca23b6c6a8285732dd4830bbf14ba2fb2ae47cd15a7ac431071e42d560 WHIRLPOOL b0b9a12e0a3c928658001760cc36554819dd366a0643c967b2d26bd6eca276676075e348caaff168aade9079e36efbfdd4dacd60d0e457c7ccd06a9e8e8c1da1 +DIST plib-1.8.5.tar.gz 779133 SHA256 485b22bf6fdc0da067e34ead5e26f002b76326f6371e2ae006415dea6a380a32 SHA512 17154cc77243fe576c2bcbcb0285b98aef1a0634658f5473e95fe0ac8fa3ed477dbe5620e44ccf0b7cc616f812af0cd44d6fcbba0c563180d3b61c9d6f158e1d WHIRLPOOL 98ccfc78eff5e27539a4d046dbb761aaed6a53410026b1ae19cb3681a691f644000ad775e0b0211e45b582a8bb06c9d3cfc33849a6e02309b840d2db1f736b32 +EBUILD plib-1.8.5-r1.ebuild 784 SHA256 99e6296204f7b18ba0a8ef1a52464d25172e5de3622b7787ae8f7c20f98f1311 SHA512 04e03566c8736c84bf5578468359685e15b1525897aa950046af0eae80f6d44d5f584eca17ad9e3145a3e368b9a9409c378ccfc5dd4ceb6429a30d1e9d87f0c3 WHIRLPOOL c1743909f592fe929c90bbe6644921a9a3b1903f3f99f18ac67e0ad374c4bea0d62644ab5e722735e176553af3f9dbcbbc7c2ca684ae49a1a7334875ed49f0fb +MISC ChangeLog 4681 SHA256 de8271f66f1800a743fc32b15ffba41776ca7fb139ac616f5afb60d5425f8961 SHA512 c682d114aca73cfd6a0a42270a4be98c9b1713cff3a0c1a4c050cd5913db61da8d4351c061ba11e2ef15320dfcf9f1c646cc0642b4e5a3b8fd7b3828e3843722 WHIRLPOOL a97441abf1079d694beba7249d962ceab7e643a61f0c34f6578659c3658972b7b6100e96879f5b45a975f588651518cadceef1b7938bdd7dac50cdb0e902ff6e +MISC ChangeLog-2015 5412 SHA256 82e1b482314231be01df37ed8c99b21730a8f130052e1d240a2b839efdca49d7 SHA512 09a3aaf551a97cc0f10fa581442ccf6d369253e2e8e6c987a0c272fda0850d2bce19916d572242004c572ca2199955da0df40ed715f1f57505bd9de28fa834f0 WHIRLPOOL f64383c05e2749763b90bc64b7ddacde374f647c2b1d60820c6480803070bacb4abe548c82f98a0c56363cfeff55dc5558b5230ad21bb8cd860ad6e26ebb8790 +MISC metadata.xml 327 SHA256 8abff91b4e30206abe72ce50708582195e17e6b0de57082fd816593a27b01cdb SHA512 63a4b8bd5cef9e67d1684542cc59b20d8276bc791a4d8293053f7be3fc276501c9d47c273c6b8a0a0d131e3842e93da4c02bde50315f642e6d742c87866f500a WHIRLPOOL 2e6498f0dad2c21063268dae2c1e02558f961440a7afe1d8a6927d9daa30f8053079076ef708228cfe8c2e9d71d61374db224243a16ebde3ee805ec9730c233f diff --git a/media-libs/plib/files/plib-1.8.5-CVE-2011-4552.patch b/media-libs/plib/files/plib-1.8.5-CVE-2011-4552.patch new file mode 100644 index 000000000000..78f1b22ae129 --- /dev/null +++ b/media-libs/plib/files/plib-1.8.5-CVE-2011-4552.patch @@ -0,0 +1,54 @@ +--- plib-1.8.5/src/ssg/ssgParser.cxx~ ++++ plib-1.8.5/src/ssg/ssgParser.cxx +@@ -57,18 +57,16 @@ void _ssgParser::error( const char *form + char msgbuff[ 255 ]; + va_list argp; + +- char* msgptr = msgbuff; +- if (linenum) +- { +- msgptr += sprintf ( msgptr,"%s, line %d: ", +- path, linenum ); +- } +- + va_start( argp, format ); +- vsprintf( msgptr, format, argp ); ++ vsnprintf( msgbuff, sizeof(msgbuff), format, argp ); + va_end( argp ); + +- ulSetError ( UL_WARNING, "%s", msgbuff ) ; ++ if (linenum) ++ { ++ ulSetError ( UL_WARNING, "%s, line %d: %s", path, linenum, msgbuff ) ; ++ } else { ++ ulSetError ( UL_WARNING, "%s", msgbuff ) ; ++ } + } + + +@@ -78,18 +76,16 @@ void _ssgParser::message( const char *fo + char msgbuff[ 255 ]; + va_list argp; + +- char* msgptr = msgbuff; +- if (linenum) +- { +- msgptr += sprintf ( msgptr,"%s, line %d: ", +- path, linenum ); +- } +- + va_start( argp, format ); +- vsprintf( msgptr, format, argp ); ++ vsnprintf( msgbuff, sizeof(msgbuff), format, argp ); + va_end( argp ); + +- ulSetError ( UL_DEBUG, "%s", msgbuff ) ; ++ if (linenum) ++ { ++ ulSetError ( UL_DEBUG, "%s, line %d: %s", path, linenum, msgbuff ) ; ++ } else { ++ ulSetError ( UL_DEBUG, "%s", msgbuff ) ; ++ } + } + + // Opens the file and does a few internal calculations based on the spec. diff --git a/media-libs/plib/files/plib-1.8.5-CVE-2011-4620.patch b/media-libs/plib/files/plib-1.8.5-CVE-2011-4620.patch new file mode 100644 index 000000000000..41fac5fe4c66 --- /dev/null +++ b/media-libs/plib/files/plib-1.8.5-CVE-2011-4620.patch @@ -0,0 +1,11 @@ +--- plib-1.8.5/src/util/ulError.cxx~ 2008-03-11 03:06:23.000000000 +0100 ++++ plib-1.8.5/src/util/ulError.cxx 2011-12-27 15:38:25.305676650 +0100 +@@ -39,7 +39,7 @@ void ulSetError ( enum ulSeverity severi + { + va_list argp; + va_start ( argp, fmt ) ; +- vsprintf ( _ulErrorBuffer, fmt, argp ) ; ++ vsnprintf ( _ulErrorBuffer, sizeof(_ulErrorBuffer), fmt, argp ) ; + va_end ( argp ) ; + + if ( _ulErrorCB ) diff --git a/media-libs/plib/files/plib-1.8.5-X11.patch b/media-libs/plib/files/plib-1.8.5-X11.patch new file mode 100644 index 000000000000..1d9e05360d37 --- /dev/null +++ b/media-libs/plib/files/plib-1.8.5-X11.patch @@ -0,0 +1,11 @@ +--- configure.in.old ++++ configure.in +@@ -276,7 +276,7 @@ + + LDFLAGS="$LDFLAGS $X_LIBS" + +- LIBS="$LIBS $X_PRE_LIBS -lXi -lXmu -lXext -lX11 $X_EXTRA_LIBS -lm" ++ LIBS="$LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lm" + + dnl ========================================================= + dnl if test "x$x_includes" != "x"; then diff --git a/media-libs/plib/metadata.xml b/media-libs/plib/metadata.xml new file mode 100644 index 000000000000..e7c25684a3bd --- /dev/null +++ b/media-libs/plib/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>games@gentoo.org</email> + <name>Gentoo Games Project</name> + </maintainer> + <upstream> + <remote-id type="sourceforge">plib</remote-id> + </upstream> +</pkgmetadata> diff --git a/media-libs/plib/plib-1.8.5-r1.ebuild b/media-libs/plib/plib-1.8.5-r1.ebuild new file mode 100644 index 000000000000..28ae99f9830b --- /dev/null +++ b/media-libs/plib/plib-1.8.5-r1.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit flag-o-matic eutils autotools + +DESCRIPTION="multimedia library used by many games" +HOMEPAGE="http://plib.sourceforge.net/" +SRC_URI="http://plib.sourceforge.net/dist/${P}.tar.gz" + +LICENSE="LGPL-2" +SLOT="0" +KEYWORDS="alpha amd64 hppa ppc sparc x86" + +DEPEND="virtual/opengl" +RDEPEND=${DEPEND} + +src_prepare() { + epatch \ + "${FILESDIR}"/${P}-X11.patch \ + "${FILESDIR}"/${P}-CVE-2011-4552.patch \ + "${FILESDIR}"/${P}-CVE-2011-4620.patch + + eautoreconf + # Since plib only provides static libraries, force + # building as PIC or plib is useless to amd64/etc... + append-flags -fPIC +} + +src_install() { + default + dodoc AUTHORS ChangeLog KNOWN_BUGS NOTICE README* TODO* +} |