summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2012-11-27 12:08:52 +0000
committerAlexis Ballier <aballier@gentoo.org>2012-11-27 12:08:52 +0000
commit82faae93fe549ab5cf404e84b3e77cfc09ac28a5 (patch)
treeb4e130e05a358a5934f1c7171be56256a68844d7 /media-libs/ladspa-cmt
parentRespect LDFLAGS, bug #334711, patch by Gavin Pryke (diff)
downloadhistorical-82faae93fe549ab5cf404e84b3e77cfc09ac28a5.tar.gz
historical-82faae93fe549ab5cf404e84b3e77cfc09ac28a5.tar.bz2
historical-82faae93fe549ab5cf404e84b3e77cfc09ac28a5.zip
Fix strict aliasing warnings, bug #307563
Package-Manager: portage-2.2.0_alpha142/cvs/Linux x86_64 Manifest-Sign-Key: 0x160F534A
Diffstat (limited to 'media-libs/ladspa-cmt')
-rw-r--r--media-libs/ladspa-cmt/ChangeLog8
-rw-r--r--media-libs/ladspa-cmt/Manifest10
-rw-r--r--media-libs/ladspa-cmt/files/ladspa-cmt-1.16-sa.patch18
-rw-r--r--media-libs/ladspa-cmt/ladspa-cmt-1.16-r2.ebuild57
4 files changed, 88 insertions, 5 deletions
diff --git a/media-libs/ladspa-cmt/ChangeLog b/media-libs/ladspa-cmt/ChangeLog
index a2872849dfaf..e345209ffd0f 100644
--- a/media-libs/ladspa-cmt/ChangeLog
+++ b/media-libs/ladspa-cmt/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for media-libs/ladspa-cmt
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/ladspa-cmt/ChangeLog,v 1.44 2012/11/27 11:58:34 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/ladspa-cmt/ChangeLog,v 1.45 2012/11/27 12:08:45 aballier Exp $
+
+*ladspa-cmt-1.16-r2 (27 Nov 2012)
+
+ 27 Nov 2012; Alexis Ballier <aballier@gentoo.org> +ladspa-cmt-1.16-r2.ebuild,
+ +files/ladspa-cmt-1.16-sa.patch:
+ Fix strict aliasing warnings, bug #307563
*ladspa-cmt-1.16-r1 (27 Nov 2012)
diff --git a/media-libs/ladspa-cmt/Manifest b/media-libs/ladspa-cmt/Manifest
index 23af54ae8557..689add8ef2af 100644
--- a/media-libs/ladspa-cmt/Manifest
+++ b/media-libs/ladspa-cmt/Manifest
@@ -5,15 +5,17 @@ AUX cmt.rdf 3943 SHA256 23a756c95e87c545b8d32855d3d863e5e160254fd3b19fa2c5b61aeb
AUX ladspa-cmt-1.16-darwin.patch 316 SHA256 c9550afb4d8512532e3d338331cd9e7eedd74a8464fc06565eca8ca7d89111e2 SHA512 1a73be4184681fff4f6827fa47508d8177c1fccb492b66ad89638a5c4725fcc828545b225db6b38eb6971aefe7eef92edee4f6b3a7013365eb60010935db1497 WHIRLPOOL cbe2c3c5d81369d6426d42e772ba27599f1521669283282f955c23ae3bb0b276e12f88d8b3ffb7315e627d3872074976ce2530124068dbc266ebbff2ba096d88
AUX ladspa-cmt-1.16-mallocstdlib.patch 1992 SHA256 7801e2a05b05a9687622c05e8de1f49441a51b18f38315b99d53bb43c3f46d44 SHA512 6b099ad314f4c2c3048a3b8e171d36bdf8dbca277989270666779881e02d1f9ba5b4027e5b1676c2092eca19221cd4f3d46789b4dcf7bdee0ab57e5e51d769e7 WHIRLPOOL 6149d45428111c27a49da3f2b5f18e910da6097d6dfc4f1de664bd868cf0f6e3c3c0e03f9e76a9d63e13cd7d2cda168918e89802fa38d6c6cb063055d52bd8ab
AUX ladspa-cmt-1.16-respect-ldflags.patch 369 SHA256 6ca9ab88a189dbd6b60bc72801e3dabfffd14c9abf5837560c3fe3d876734e79 SHA512 3f4cfdab23de0b2fa2c841c4699a2f975b526575261f29756cdb3e9515dd7629e34bf847d027a305e32a9489e414dd59efd55e18a368f3ffc928ce86f80a5add WHIRLPOOL c07ada09278a064b8ea44e012fa147416cbb7537639a5b56bcfb781862cb93624c0adddd49473d50ccb597bd190e25a2b9ef5e50b7f419b5616aaff83b5f65b9
+AUX ladspa-cmt-1.16-sa.patch 666 SHA256 77e9b19bcd4ea40438995b7553edbaf051300406572bde059c6b0660b84301ee SHA512 162791653741af546a64cabd74f8737f965c9e8799a1d80ae5d2b292b200b1710702b901aaf759457b7737530f2b03824cd135150329f60a2aa56011f17fd244 WHIRLPOOL 081f07517e4b7e989b9d9946ada68d847268460462f036260f982e21303ace59ea4fcdb5a7d71060c4ed929e1fbc0381d486aece0e88c53b4229530617e44ed9
DIST cmt_src_1.16.tgz 63909 SHA256 512a1d7e698b9e0e7c692202c29f4bd70846d52241ec254e1a324abaef405635 SHA512 be4aaa064183b6121b4ca8d7d2535cb9a3bcb557e3a2f22b45ec9775b0e296f70a9a7edf697b78095d6ef1564bb5459bb742649082ac724d1774c0790379af21 WHIRLPOOL 7daeaf8dfc30c1acb6b9387fe96ac55121f136c355c7cb0d48d402ac8c9ea2fcabf6f3d436ed009c65d9cafcedab2ed705204ef34e7f4a24dbcdca0054cbc0d8
EBUILD ladspa-cmt-1.16-r1.ebuild 1372 SHA256 137ccd853a67566a2cf0f8fa81c928416feb0e1bed607107ff726093f47bae13 SHA512 61d9d883af6f3d5366d963c20c885a797ae988f52f950351e6c439d33da9e037000bf18b93c9a83e4eaa8ef4bb8cd9418856cb113c73836700d89ae2bfe0b39f WHIRLPOOL 2af7da7d035c6cff482374b443af834f4d9c6243b65e3b2640d1e2d1eea13ef70a83b5a56d32579bab6755c38f228e4dec0dc853b00d93f440acf610368fc3b6
+EBUILD ladspa-cmt-1.16-r2.ebuild 1408 SHA256 1410a8f37ce777ad326922765742415e44967a617fe8f25f13e13e9ba0835d5b SHA512 d868cab6ad4f779a952768149e5a05452b4a00bda9661f5d54d837afc520f54899c330bef61489f226ec4f3f5f77ea5e35399dc674876c1cc6494fd6b3cb2b19 WHIRLPOOL a1511958e7cdce4a2afe5a3698437e9554907599b1d0c340d043bf020e5398c8e7d65a5b4591f736f6b85fc0e97cff6fe65ff9747f7b025c7c89496be67fbacb
EBUILD ladspa-cmt-1.16.ebuild 1407 SHA256 42d004cf8cb85052f5e5709de20e9c12d607ce5426182f415a1683d16d03ceff SHA512 5a3c0014a1f79c61d810abb6338d91f576cb1805465ba52a3362cf441179e5c376081cef005e5f6dc3bd1668c12eb0b6eeef477c1097b5ccc701dd99882ec054 WHIRLPOOL d6fba353e1a0bc2e1497a9582f7d3200d9b6a03ad0bdf8ba472ea8be200ba88303dcde212073a77c7ca5f7d4bbed8eee251fb6109166f77697edf62282255f4b
-MISC ChangeLog 5500 SHA256 0496c53ea881173d445e79332f7ba13d165111f516469f7f75f2f2555c5ae455 SHA512 b8f017d943803f40ef38a59b63bad3e4e4bea3ff290022ead9cd9b4a8979230a7e67a63c7cccdcb185d1f9ffe3dc480bfceb291f63225515b84c991f0d5dc59e WHIRLPOOL 87e1e9c0cb28253f39ecba02323c60f9c67d0a015afdf3dbf0eebb49bd5d67792d2fdf9f7530090b217bce6354b73025486fa9f67767910278ac484d4d811d0e
+MISC ChangeLog 5695 SHA256 53f7d4412223362af1f88f087180da3586e1773c3bf56b7a6707095f26aff371 SHA512 566e196c3cb35d2061e545e5f1872c71e2c74691cbd52a31de5e5195a49f06b644b16b23f6efa24a463d9f0d2890df82bd5cc7969343767cff5370b3f249717d WHIRLPOOL ff69c79c2295078b079c64fc70a9b6ae48659560b6e67a99eaf4ea7a62090d7fa22c2cb1d527d71df5c13090609a124a551aaa434a306244a2161dde6888a751
MISC metadata.xml 161 SHA256 0ba191421eefd954d1efe9f6c3384e8c8d7455d35a7e79457272e1c29211b09e SHA512 e9f8695c64d7b6aa86b9b6186490d50b5a75d593ac1c86b9698265c6345899c64fa712acdde3bdbfb2464139e44623efdae29b67b73c1c85bcbedfbd10e874fd WHIRLPOOL c01ec8b583f907a3a62da7d5bf74d09809244709021f437dc3f0064b2d52baa3dd4386369b46a9fd74020146017cf6117ad04b147e8538b1a2c7202e1b4a2dd5
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
-iEYEAREIAAYFAlC0quwACgkQvFcC4BYPU0odWgCgiRg3r/V9UzSmYkJgXmXVvM3N
-oAAAn0HJMn6z7jdtueD9fhOQ4o9gwvmi
-=IMyB
+iEYEAREIAAYFAlC0rU4ACgkQvFcC4BYPU0q4ZwCgpmFQ0gsITk+6jl20t1opUhhT
+wkAAn0kX+F2YEzLnjZ4sIlhUc6jxJ6Nn
+=UkqI
-----END PGP SIGNATURE-----
diff --git a/media-libs/ladspa-cmt/files/ladspa-cmt-1.16-sa.patch b/media-libs/ladspa-cmt/files/ladspa-cmt-1.16-sa.patch
new file mode 100644
index 000000000000..161c06d27eed
--- /dev/null
+++ b/media-libs/ladspa-cmt/files/ladspa-cmt-1.16-sa.patch
@@ -0,0 +1,18 @@
+Fix strict aliasing warnings: reeverb/Components/allpass.h:36:2: warning:
+dereferencing type-punned pointer will break strict-aliasing rules
+
+https://bugs.gentoo.org/show_bug.cgi?id=307563
+
+Index: cmt/src/freeverb/Components/denormals.h
+===================================================================
+--- cmt.orig/src/freeverb/Components/denormals.h
++++ cmt/src/freeverb/Components/denormals.h
+@@ -8,7 +8,7 @@
+ #ifndef _denormals_
+ #define _denormals_
+
+-#define undenormalise(sample) if(((*(unsigned int*)&sample)&0x7f800000)==0) sample=0.0f
++#define undenormalise(sample) if((((unsigned int)sample)&0x7f800000)==0) sample=0.0f
+
+ #endif//_denormals_
+
diff --git a/media-libs/ladspa-cmt/ladspa-cmt-1.16-r2.ebuild b/media-libs/ladspa-cmt/ladspa-cmt-1.16-r2.ebuild
new file mode 100644
index 000000000000..cb888fe24563
--- /dev/null
+++ b/media-libs/ladspa-cmt/ladspa-cmt-1.16-r2.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/ladspa-cmt/ladspa-cmt-1.16-r2.ebuild,v 1.1 2012/11/27 12:08:45 aballier Exp $
+
+EAPI=4
+
+inherit eutils multilib toolchain-funcs
+
+IUSE=""
+
+S="${WORKDIR}/cmt/src"
+MY_P="cmt_src_${PV}"
+
+DESCRIPTION="CMT (computer music toolkit) Lasdpa library plugins"
+HOMEPAGE="http://www.ladspa.org/"
+SRC_URI="http://www.ladspa.org/download/${MY_P}.tgz"
+
+KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
+LICENSE="LGPL-2.1"
+SLOT="0"
+
+DEPEND="media-libs/ladspa-sdk
+ >=sys-apps/sed-4"
+RDEPEND=""
+
+src_prepare() {
+ sed -i \
+ -e "/^CFLAGS/ s/-O3/${CFLAGS}/" \
+ -e 's|/usr/local/include||g' \
+ -e 's|/usr/local/lib||g' makefile \
+ || die "sed makefile failed"
+ sed -i -e "s/^CXXFLAGS*/CXXFLAGS = ${CXXFLAGS} \$(INCLUDES) -Wall -fPIC\n#/" \
+ "${S}/makefile" || die "sed makefile failed (CXXFLAGS)"
+
+ cd "${S}"
+ epatch "${FILESDIR}/${P}-mallocstdlib.patch"
+ epatch "${FILESDIR}/${P}-respect-ldflags.patch"
+ epatch "${FILESDIR}/${P}-sa.patch"
+ use userland_Darwin && epatch "${FILESDIR}/${P}-darwin.patch"
+}
+
+src_compile() {
+ tc-export CXX
+ emake || die "emake failed"
+}
+
+src_install() {
+ insinto /usr/share/ladspa/rdf/
+ doins "${FILESDIR}/cmt.rdf"
+
+ insopts -m755
+ insinto /usr/$(get_libdir)/ladspa
+ doins ../plugins/*.so
+
+ dodoc ../README
+ dohtml ../doc/*
+}