Gentoo Archives: gentoo-commits

From: Piotr Karbowski <slashbeast@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-power/bbswitch/
Date: Mon, 25 Feb 2019 20:28:38
Message-Id: 1551126127.f83c42395d88b21be2f2fedc99ecb73dc230a775.slashbeast@gentoo
1 commit: f83c42395d88b21be2f2fedc99ecb73dc230a775
2 Author: Piotr Karbowski <slashbeast <AT> gentoo <DOT> org>
3 AuthorDate: Mon Feb 25 20:22:07 2019 +0000
4 Commit: Piotr Karbowski <slashbeast <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 25 20:22:07 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f83c4239
7
8 sys-power/bbswitch: 9999, 0.8-r2 - better kernel source dir handling,
9
10 With approval of NP-Hardass adding myself to metadata. EAPI bump.
11 Fixing the way kernel sources are find, the hardcoded value uses running
12 kernel's /build dir, it was later altered to default /usr/src/linux.
13 This change makes it so it uses $KERNEL_DIR that defaults to
14 /usr/src/linux and fallback to running kernel's /build if no
15 /usr/src/linux exist.
16
17 Package-Manager: Portage-2.3.62, Repoman-2.3.12
18 Signed-off-by: Piotr Karbowski <slashbeast <AT> gentoo.org>
19
20 sys-power/bbswitch/{bbswitch-9999.ebuild => bbswitch-0.8-r2.ebuild} | 6 +++---
21 sys-power/bbswitch/bbswitch-9999.ebuild | 6 +++---
22 sys-power/bbswitch/metadata.xml | 4 ++++
23 3 files changed, 10 insertions(+), 6 deletions(-)
24
25 diff --git a/sys-power/bbswitch/bbswitch-9999.ebuild b/sys-power/bbswitch/bbswitch-0.8-r2.ebuild
26 similarity index 89%
27 copy from sys-power/bbswitch/bbswitch-9999.ebuild
28 copy to sys-power/bbswitch/bbswitch-0.8-r2.ebuild
29 index bb29cb2fd85..ad44354463c 100644
30 --- a/sys-power/bbswitch/bbswitch-9999.ebuild
31 +++ b/sys-power/bbswitch/bbswitch-0.8-r2.ebuild
32 @@ -1,7 +1,7 @@
33 -# Copyright 1999-2017 Gentoo Foundation
34 +# Copyright 1999-2019 Gentoo Authors
35 # Distributed under the terms of the GNU General Public License v2
36
37 -EAPI=6
38 +EAPI=7
39
40 inherit linux-mod
41
42 @@ -39,7 +39,7 @@ pkg_setup() {
43
44 src_prepare() {
45 # Fix build failure, bug #513542
46 - sed -i 's/^KDIR.*$/KDIR\ \:= \/usr\/src\/linux/g' Makefile || die
47 + sed "s%^KDIR :=.*%KDIR := ${KERNEL_DIR}%g" -i Makefile || die
48
49 default
50 }
51
52 diff --git a/sys-power/bbswitch/bbswitch-9999.ebuild b/sys-power/bbswitch/bbswitch-9999.ebuild
53 index bb29cb2fd85..ad44354463c 100644
54 --- a/sys-power/bbswitch/bbswitch-9999.ebuild
55 +++ b/sys-power/bbswitch/bbswitch-9999.ebuild
56 @@ -1,7 +1,7 @@
57 -# Copyright 1999-2017 Gentoo Foundation
58 +# Copyright 1999-2019 Gentoo Authors
59 # Distributed under the terms of the GNU General Public License v2
60
61 -EAPI=6
62 +EAPI=7
63
64 inherit linux-mod
65
66 @@ -39,7 +39,7 @@ pkg_setup() {
67
68 src_prepare() {
69 # Fix build failure, bug #513542
70 - sed -i 's/^KDIR.*$/KDIR\ \:= \/usr\/src\/linux/g' Makefile || die
71 + sed "s%^KDIR :=.*%KDIR := ${KERNEL_DIR}%g" -i Makefile || die
72
73 default
74 }
75
76 diff --git a/sys-power/bbswitch/metadata.xml b/sys-power/bbswitch/metadata.xml
77 index 437e2daa175..4c90e0a75de 100644
78 --- a/sys-power/bbswitch/metadata.xml
79 +++ b/sys-power/bbswitch/metadata.xml
80 @@ -1,6 +1,10 @@
81 <?xml version="1.0" encoding="UTF-8"?>
82 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
83 <pkgmetadata>
84 + <maintainer type="person">
85 + <email>slashbeast@g.o</email>
86 + <name>Piotr Karbowski</name>
87 + </maintainer>
88 <maintainer type="person">
89 <email>NP-Hardass@g.o</email>
90 <name>NP-Hardass</name>