!4 fix build error because of gettext new version
Merge pull request !4 from eaglegai/master
This commit is contained in:
commit
3dfd5a44bc
28
0001-Ignore-fallback-ITS-rule-warning-from-gettext.patch
Normal file
28
0001-Ignore-fallback-ITS-rule-warning-from-gettext.patch
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
From 0aae60b135c0f15cbbdb8b196cb3a43e1308d840 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Vojtech Trefny <vtrefny@redhat.com>
|
||||||
|
Date: Sat, 8 Aug 2020 21:42:20 +0200
|
||||||
|
Subject: [PATCH] Ignore fallback ITS rule warning from gettext
|
||||||
|
|
||||||
|
New gettext 0.21 started warning about this and translation canary
|
||||||
|
treats all warning as errors. But this one is really just a warning
|
||||||
|
we don't care about.
|
||||||
|
---
|
||||||
|
translation-canary/xgettext_werror.sh | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/translation-canary/xgettext_werror.sh b/translation-canary/xgettext_werror.sh
|
||||||
|
index 36eefec..5fb32a8 100755
|
||||||
|
--- a/translation-canary/xgettext_werror.sh
|
||||||
|
+++ b/translation-canary/xgettext_werror.sh
|
||||||
|
@@ -37,7 +37,7 @@ returncode=0
|
||||||
|
xgettext_output="$(LC_MESSAGES=C xgettext "$@" 2>&1)" || returncode=$?
|
||||||
|
|
||||||
|
# Look for warnings
|
||||||
|
-if echo "$xgettext_output" | fgrep -q "warning: "; then
|
||||||
|
+if echo "$xgettext_output" | awk '/warning: / && !/fallback ITS rule/{rc=1}; END {exit !rc}'; then
|
||||||
|
returncode=1
|
||||||
|
fi
|
||||||
|
|
||||||
|
--
|
||||||
|
1.8.3.1
|
||||||
|
|
||||||
@ -1,11 +1,13 @@
|
|||||||
Name: blivet-gui
|
Name: blivet-gui
|
||||||
Version: 2.1.15
|
Version: 2.1.15
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: Tool for data storage configuration
|
Summary: Tool for data storage configuration
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
URL: https://github.com/storaged-project/blivet-gui
|
URL: https://github.com/storaged-project/blivet-gui
|
||||||
Source0: https://github.com/storaged-project/blivet-gui/releases/download/%{version}/%{name}-%{version}.tar.gz
|
Source0: https://github.com/storaged-project/blivet-gui/releases/download/%{version}/%{name}-%{version}.tar.gz
|
||||||
|
|
||||||
|
Patch0: 0001-Ignore-fallback-ITS-rule-warning-from-gettext.patch
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: desktop-file-utils libappstream-glib python3-devel gettext python3-setuptools
|
BuildRequires: desktop-file-utils libappstream-glib python3-devel gettext python3-setuptools
|
||||||
|
|
||||||
@ -22,7 +24,7 @@ Graphical (GTK) tool for manipulation and configuration of data storage
|
|||||||
%package_help
|
%package_help
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n %{name}-%{version}
|
%autosetup -p1 -n %{name}-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%make_build
|
%make_build
|
||||||
@ -54,6 +56,12 @@ install -d %{buildroot}/%{_localstatedir}/log/blivet-gui
|
|||||||
%{_mandir}/man1/blivet-gui.1*
|
%{_mandir}/man1/blivet-gui.1*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Sep 4 2020 gaihuiying<gaihuiying1@huawei.com> - 2.1.15-2
|
||||||
|
- Type:bugfix
|
||||||
|
- ID:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC:fix build error because gettext update to 0.21
|
||||||
|
|
||||||
* Wed Jul 22 2020 gaihuiying <gaihuiying1@huawei.com> - 2.11.15-1
|
* Wed Jul 22 2020 gaihuiying <gaihuiying1@huawei.com> - 2.11.15-1
|
||||||
- Type:requirement
|
- Type:requirement
|
||||||
- ID:NA
|
- ID:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user