diff options
| author | Peter Kjellerstedt <peter.kjellerstedt@axis.com> | 2017-08-29 23:21:09 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-08-31 17:57:12 +0100 |
| commit | 6c9ad26db0c0c2a6dc5dd1c5eaaee4a3efc6fff6 (patch) | |
| tree | c80eb0b8ff37b415f9b56698ab49d5379c8e719f /meta | |
| parent | ada48bbe8c48a424171ef57f334b8332e75772a0 (diff) | |
| download | poky-6c9ad26db0c0c2a6dc5dd1c5eaaee4a3efc6fff6.tar.gz | |
rpm: Use conditional to access %{_docdir} in macros.in
This avoids the following warning:
warning: Ignoring invalid regex %{_docdir}
when runing `rpmdeps -R <file>`, since %{_docdir} is only defined when
parsing a spec file.
(From OE-Core rev: c128e19d25f2015ce1bed13b423ac0d6e619ef5e)
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
| -rw-r--r-- | meta/recipes-devtools/rpm/files/0012-Use-conditional-to-access-_docdir-in-macros.in.patch | 36 | ||||
| -rw-r--r-- | meta/recipes-devtools/rpm/rpm_git.bb | 1 |
2 files changed, 37 insertions, 0 deletions
diff --git a/meta/recipes-devtools/rpm/files/0012-Use-conditional-to-access-_docdir-in-macros.in.patch b/meta/recipes-devtools/rpm/files/0012-Use-conditional-to-access-_docdir-in-macros.in.patch new file mode 100644 index 0000000000..996da90d43 --- /dev/null +++ b/meta/recipes-devtools/rpm/files/0012-Use-conditional-to-access-_docdir-in-macros.in.patch | |||
| @@ -0,0 +1,36 @@ | |||
| 1 | From 77808db4036dc4a012c47aca36255549ed764a6a Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Peter Kjellerstedt <pkj@axis.com> | ||
| 3 | Date: Tue, 16 May 2017 10:58:18 +0200 | ||
| 4 | Subject: [PATCH 12/13] Use conditional to access %{_docdir} in macros.in | ||
| 5 | |||
| 6 | This avoids the following warning: | ||
| 7 | |||
| 8 | warning: Ignoring invalid regex %{_docdir} | ||
| 9 | |||
| 10 | when runing `rpmdeps -R <file>`, since %{_docdir} is only defined when | ||
| 11 | parsing a spec file (in parseSpec()). | ||
| 12 | |||
| 13 | Upstream-Status: Accepted [https://github.com/rpm-software-management/rpm/pull/216] | ||
| 14 | Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> | ||
| 15 | --- | ||
| 16 | macros.in | 4 ++-- | ||
| 17 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
| 18 | |||
| 19 | diff --git a/macros.in b/macros.in | ||
| 20 | index 84ae25275..cca67a500 100644 | ||
| 21 | --- a/macros.in | ||
| 22 | +++ b/macros.in | ||
| 23 | @@ -200,8 +200,8 @@ package or when debugging this package.\ | ||
| 24 | # Their purpouse is to set up global filtering for all packages. If you need | ||
| 25 | # to set up specific filtering for your package use %__requires_exclude_from | ||
| 26 | # and %__provides_exclude_from instead. | ||
| 27 | -%__global_requires_exclude_from %{_docdir} | ||
| 28 | -%__global_provides_exclude_from %{_docdir} | ||
| 29 | +%__global_requires_exclude_from %{?_docdir:%{_docdir}} | ||
| 30 | +%__global_provides_exclude_from %{?_docdir:%{_docdir}} | ||
| 31 | |||
| 32 | # The path to the gzip executable (legacy, use %{__gzip} instead). | ||
| 33 | %_gzipbin %{__gzip} | ||
| 34 | -- | ||
| 35 | 2.12.0 | ||
| 36 | |||
diff --git a/meta/recipes-devtools/rpm/rpm_git.bb b/meta/recipes-devtools/rpm/rpm_git.bb index 15880377b8..7c5f649a8b 100644 --- a/meta/recipes-devtools/rpm/rpm_git.bb +++ b/meta/recipes-devtools/rpm/rpm_git.bb | |||
| @@ -36,6 +36,7 @@ SRC_URI = "git://github.com/rpm-software-management/rpm \ | |||
| 36 | file://0001-Add-a-color-setting-for-mips64_n32-binaries.patch \ | 36 | file://0001-Add-a-color-setting-for-mips64_n32-binaries.patch \ |
| 37 | file://0001-Add-PYTHON_ABI-when-searching-for-python-libraries.patch \ | 37 | file://0001-Add-PYTHON_ABI-when-searching-for-python-libraries.patch \ |
| 38 | file://0011-Do-not-require-that-ELF-binaries-are-executable-to-b.patch \ | 38 | file://0011-Do-not-require-that-ELF-binaries-are-executable-to-b.patch \ |
| 39 | file://0012-Use-conditional-to-access-_docdir-in-macros.in.patch \ | ||
| 39 | " | 40 | " |
| 40 | 41 | ||
| 41 | PV = "4.13.90+git${SRCPV}" | 42 | PV = "4.13.90+git${SRCPV}" |
