1 |
commit: feca5e2704326173cd4030ffa95b6ce7f0a645d9 |
2 |
Author: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Apr 26 20:45:32 2022 +0000 |
4 |
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat May 7 17:17:29 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=feca5e27 |
7 |
|
8 |
sys-apps/util-linux: set QA_PKGCONFIG_VERSION |
9 |
|
10 |
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org> |
11 |
|
12 |
sys-apps/util-linux/util-linux-2.38.ebuild | 6 ++++++ |
13 |
sys-apps/util-linux/util-linux-9999.ebuild | 6 ++++++ |
14 |
2 files changed, 12 insertions(+) |
15 |
|
16 |
diff --git a/sys-apps/util-linux/util-linux-2.38.ebuild b/sys-apps/util-linux/util-linux-2.38.ebuild |
17 |
index 0f9b305525df..d125ee135b9c 100644 |
18 |
--- a/sys-apps/util-linux/util-linux-2.38.ebuild |
19 |
+++ b/sys-apps/util-linux/util-linux-2.38.ebuild |
20 |
@@ -374,6 +374,12 @@ multilib_src_install_all() { |
21 |
# This triggers a known QA warning which we ignore for now to magically |
22 |
# keep bash completion for "su" command which shadow package does not |
23 |
# provide. |
24 |
+ |
25 |
+ local ver=$(tools/git-version-gen .tarballversion) |
26 |
+ local major=$(ver_cut 1 ${ver}) |
27 |
+ local minor=$(ver_cut 2 ${ver}) |
28 |
+ local release=$(ver_cut 3 ${ver}) |
29 |
+ export QA_PKGCONFIG_VERSION="${major}.${minor}.${release:-0}" |
30 |
} |
31 |
|
32 |
pkg_postinst() { |
33 |
|
34 |
diff --git a/sys-apps/util-linux/util-linux-9999.ebuild b/sys-apps/util-linux/util-linux-9999.ebuild |
35 |
index 68bb10664cf1..60535b687ba6 100644 |
36 |
--- a/sys-apps/util-linux/util-linux-9999.ebuild |
37 |
+++ b/sys-apps/util-linux/util-linux-9999.ebuild |
38 |
@@ -374,6 +374,12 @@ multilib_src_install_all() { |
39 |
# This triggers a known QA warning which we ignore for now to magically |
40 |
# keep bash completion for "su" command which shadow package does not |
41 |
# provide. |
42 |
+ |
43 |
+ local ver=$(tools/git-version-gen .tarballversion) |
44 |
+ local major=$(ver_cut 1 ${ver}) |
45 |
+ local minor=$(ver_cut 2 ${ver}) |
46 |
+ local release=$(ver_cut 3 ${ver}) |
47 |
+ export QA_PKGCONFIG_VERSION="${major}.${minor}.${release:-0}" |
48 |
} |
49 |
|
50 |
pkg_postinst() { |