From b18202e30c00d324f223c3978327b833a2398ee5 Mon Sep 17 00:00:00 2001 From: Ryan Hill Date: Sun, 11 Apr 2010 20:33:36 +0000 Subject: Fix build w/ GCC 4.5. (bug #314201 by Bernd Buschinski) (Portage version: 2.2_rc67/cvs/Linux x86_64) --- sys-apps/lshw/ChangeLog | 6 +++++- sys-apps/lshw/files/lshw-02.14b-gcc45.patch | 15 +++++++++++++++ sys-apps/lshw/lshw-02.14b.ebuild | 3 ++- 3 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 sys-apps/lshw/files/lshw-02.14b-gcc45.patch (limited to 'sys-apps/lshw') diff --git a/sys-apps/lshw/ChangeLog b/sys-apps/lshw/ChangeLog index 358148f72f67..1e9c2db0f8f7 100644 --- a/sys-apps/lshw/ChangeLog +++ b/sys-apps/lshw/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for sys-apps/lshw # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/lshw/ChangeLog,v 1.81 2010/04/04 15:22:31 armin76 Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/lshw/ChangeLog,v 1.82 2010/04/11 20:33:36 dirtyepic Exp $ + + 11 Apr 2010; Ryan Hill lshw-02.14b.ebuild, + +files/lshw-02.14b-gcc45.patch: + Fix build w/ GCC 4.5. (bug #314201 by Bernd Buschinski) 04 Apr 2010; Raúl Porcel lshw-02.14b.ebuild: alpha/ia64/sparc stable wrt #304881 diff --git a/sys-apps/lshw/files/lshw-02.14b-gcc45.patch b/sys-apps/lshw/files/lshw-02.14b-gcc45.patch new file mode 100644 index 000000000000..c52b312f5906 --- /dev/null +++ b/sys-apps/lshw/files/lshw-02.14b-gcc45.patch @@ -0,0 +1,15 @@ +http://ezix.org/project/ticket/512 +http://ezix.org/project/changeset/2147 +http://bugs.gentoo.org/314201 + +--- src/core/scsi.cc ++++ src/core/scsi.cc +@@ -842,7 +842,7 @@ + + if (!controller) + { +- controller = node.addChild(hwNode::hwNode("scsi", hw::storage)); ++ controller = node.addChild(hwNode("scsi", hw::storage)); + if (controller) + { + controller->setLogicalName(host_logicalname(number)); diff --git a/sys-apps/lshw/lshw-02.14b.ebuild b/sys-apps/lshw/lshw-02.14b.ebuild index 5a81186fd18b..aeb8b24a6946 100644 --- a/sys-apps/lshw/lshw-02.14b.ebuild +++ b/sys-apps/lshw/lshw-02.14b.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/lshw/lshw-02.14b.ebuild,v 1.6 2010/04/04 15:22:31 armin76 Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/lshw/lshw-02.14b.ebuild,v 1.7 2010/04/11 20:33:36 dirtyepic Exp $ inherit flag-o-matic eutils toolchain-funcs @@ -26,6 +26,7 @@ src_unpack() { unpack ${A} cd "${S}" epatch "${FILESDIR}"/${PN}-02.12.01b-build.patch + epatch "${FILESDIR}"/${P}-gcc45.patch # 314201 - fixed for 02.15b } src_compile() { -- cgit v1.2.3-65-gdbad