From: | "Samuli Suominen (ssuominen)" <ssuominen@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in sys-apps/lshw: lshw-02.17b-r1.ebuild ChangeLog |
Date: | Sat, 31 May 2014 14:45:06 |
Message-Id: | 20140531144501.E562A2004E@flycatcher.gentoo.org |
1 | ssuominen 14/05/31 14:45:01 |
2 | |
3 | Modified: ChangeLog |
4 | Added: lshw-02.17b-r1.ebuild |
5 | Log: |
6 | Fix segfault, see ChangeLog for more |
7 | |
8 | (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 4868F14D) |
9 | |
10 | Revision Changes Path |
11 | 1.116 sys-apps/lshw/ChangeLog |
12 | |
13 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/lshw/ChangeLog?rev=1.116&view=markup |
14 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/lshw/ChangeLog?rev=1.116&content-type=text/plain |
15 | diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/lshw/ChangeLog?r1=1.115&r2=1.116 |
16 | |
17 | Index: ChangeLog |
18 | =================================================================== |
19 | RCS file: /var/cvsroot/gentoo-x86/sys-apps/lshw/ChangeLog,v |
20 | retrieving revision 1.115 |
21 | retrieving revision 1.116 |
22 | diff -u -r1.115 -r1.116 |
23 | --- ChangeLog 8 Aug 2013 19:42:32 -0000 1.115 |
24 | +++ ChangeLog 31 May 2014 14:45:01 -0000 1.116 |
25 | @@ -1,6 +1,13 @@ |
26 | # ChangeLog for sys-apps/lshw |
27 | -# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
28 | -# $Header: /var/cvsroot/gentoo-x86/sys-apps/lshw/ChangeLog,v 1.115 2013/08/08 19:42:32 mr_bones_ Exp $ |
29 | +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
30 | +# $Header: /var/cvsroot/gentoo-x86/sys-apps/lshw/ChangeLog,v 1.116 2014/05/31 14:45:01 ssuominen Exp $ |
31 | + |
32 | +*lshw-02.17b-r1 (31 May 2014) |
33 | + |
34 | + 31 May 2014; Samuli Suominen <ssuominen@g.o> +lshw-02.17b-r1.ebuild, |
35 | + +files/lshw-02.17b-fat.patch: |
36 | + Fix segmentation fault with `lshw --short` while accessing a block device with |
37 | + corrupt partition wrt #485496. Thanks to Ben Kohler and Juergen Rose. |
38 | |
39 | *lshw-02.17b (08 Aug 2013) |
40 | |
41 | |
42 | |
43 | |
44 | 1.1 sys-apps/lshw/lshw-02.17b-r1.ebuild |
45 | |
46 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/lshw/lshw-02.17b-r1.ebuild?rev=1.1&view=markup |
47 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/lshw/lshw-02.17b-r1.ebuild?rev=1.1&content-type=text/plain |
48 | |
49 | Index: lshw-02.17b-r1.ebuild |
50 | =================================================================== |
51 | # Copyright 1999-2014 Gentoo Foundation |
52 | # Distributed under the terms of the GNU General Public License v2 |
53 | # $Header: /var/cvsroot/gentoo-x86/sys-apps/lshw/lshw-02.17b-r1.ebuild,v 1.1 2014/05/31 14:45:01 ssuominen Exp $ |
54 | |
55 | EAPI=5 |
56 | inherit flag-o-matic eutils toolchain-funcs |
57 | |
58 | MAJ_PV=${PV:0:${#PV}-1} |
59 | MIN_PVE=${PV:0-1} |
60 | MIN_PV=${MIN_PVE/b/B} |
61 | |
62 | MY_P="$PN-$MIN_PV.$MAJ_PV" |
63 | DESCRIPTION="Hardware Lister" |
64 | HOMEPAGE="http://ezix.org/project/wiki/HardwareLiSter" |
65 | SRC_URI="http://ezix.org/software/files/${MY_P}.tar.gz" |
66 | |
67 | LICENSE="GPL-2" |
68 | SLOT="0" |
69 | KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~arm-linux ~x86-linux" |
70 | IUSE="gtk sqlite static" |
71 | |
72 | REQUIRED_USE="static? ( !gtk )" |
73 | |
74 | RDEPEND="gtk? ( x11-libs/gtk+:2 ) |
75 | sqlite? ( dev-db/sqlite:3 )" |
76 | DEPEND="${RDEPEND} |
77 | gtk? ( virtual/pkgconfig ) |
78 | sqlite? ( virtual/pkgconfig )" |
79 | RDEPEND="${RDEPEND} |
80 | sys-apps/hwids" |
81 | |
82 | S=${WORKDIR}/${MY_P} |
83 | |
84 | src_prepare() { |
85 | epatch \ |
86 | "${FILESDIR}"/${P}-gentoo.patch \ |
87 | "${FILESDIR}"/${P}-fat.patch |
88 | # correct gettext behavior |
89 | if [[ -n "${LINGUAS+x}" ]] ; then |
90 | local langs |
91 | |
92 | for i in $(cd src/po ; echo *.po | sed 's/\.po//') ; do |
93 | if has ${i} ${LINGUAS} ; then |
94 | langs += " ${i}" |
95 | fi |
96 | done |
97 | sed -i \ |
98 | -e "/^LANGUAGES =/ s/=.*/= $langs/" \ |
99 | src/po/Makefile || die |
100 | fi |
101 | } |
102 | |
103 | src_compile() { |
104 | tc-export CC CXX AR |
105 | use static && append-ldflags -static |
106 | |
107 | local sqlite=$(usex sqlite 1 0) |
108 | |
109 | emake SQLITE=$sqlite all |
110 | if use gtk ; then |
111 | emake SQLITE=$sqlite gui |
112 | fi |
113 | } |
114 | |
115 | src_install() { |
116 | emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install |
117 | dodoc README docs/* |
118 | if use gtk ; then |
119 | emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install-gui |
120 | make_desktop_entry /usr/sbin/gtk-lshw "Hardware Lister" "/usr/share/lshw/artwork/logo.svg" |
121 | fi |
122 | } |