Dominique Leuenberger 2019-08-05 09:18:20 +00:00 committed by Git OBS Bridge
commit 0c2381ac76
3 changed files with 37 additions and 2 deletions

View File

@ -0,0 +1,20 @@
Support gettext >= 0.20, which now forbids AM_GNU_GETTEXT without
intlsymbol argument.
[no-libtool] was the default choice (use of intl/ in-package
directory).
Now only [external] is supported (use libintl library).
--
diff -up e2fsprogs-1.45.2/configure.ac.orig e2fsprogs-1.45.2/configure.ac
--- e2fsprogs-1.45.2/configure.ac.orig
+++ e2fsprogs-1.45.2/configure.ac
@@ -873,7 +873,7 @@ AC_SUBST(GETTEXT_PACKAGE)
AC_SUBST(PACKAGE)
AC_SUBST(VERSION)
-AM_GNU_GETTEXT
+AM_GNU_GETTEXT([external])
dnl
dnl End of configuration options
dnl

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Wed Jul 24 20:47:22 UTC 2019 - Antoine Belvire <antoine.belvire@opensuse.org>
- Fix build with gettext 0.20:
* Add e2fsprogs-1.45.2-gettext.patch.
* Exclude in-sources intl/ directory from build.
- Fix install_info_delete usage: It must be called in preun.
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Jul 2 07:28:56 UTC 2019 - Martin Liška <mliska@suse.cz> Tue Jul 2 07:28:56 UTC 2019 - Martin Liška <mliska@suse.cz>

View File

@ -44,7 +44,8 @@ BuildRequires: makeinfo
%define install_info sbin/install-info %define install_info sbin/install-info
%define install_info_delete sbin/install-info --delete %define install_info_delete sbin/install-info --delete
%endif %endif
Requires: %install_info_prereq Requires(post): %install_info_prereq
Requires(preun): %install_info_prereq
%endif %endif
# bug437293 # bug437293
%ifarch ppc64 %ifarch ppc64
@ -87,6 +88,8 @@ Source3: baselibs.conf
Patch3: libcom_err-compile_et_permissions.patch Patch3: libcom_err-compile_et_permissions.patch
Patch4: e2fsprogs-1.42-implicit_fortify_decl.patch Patch4: e2fsprogs-1.42-implicit_fortify_decl.patch
Patch5: e2fsprogs-1.42-ext2fsh_implicit.patch Patch5: e2fsprogs-1.42-ext2fsh_implicit.patch
# PATCH-FIX-UPSTREAM e2fsprogs-1.45.2-gettext.patch -- Support gettext 0.20
Patch6: e2fsprogs-1.45.2-gettext.patch
# Do not suppress make commands # Do not suppress make commands
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
@ -250,7 +253,10 @@ Development files for the com_err error message display library. Static librarie
%patch3 -p1 %patch3 -p1
%patch4 %patch4
%patch5 %patch5
%patch6 -p1
cp %{SOURCE2} . cp %{SOURCE2} .
# Don't use intl/ subdirectory as it's deprecated since gettext 0.20
rm -r intl
%build %build
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects %global _lto_cflags %{_lto_cflags} -ffat-lto-objects
@ -337,6 +343,8 @@ done
%if %{build_mini} %if %{build_mini}
%preun -n e2fsprogs-scrub-mini %preun -n e2fsprogs-scrub-mini
%else %else
%preun
%install_info_delete --info-dir=%{_infodir} %{_infodir}/libext2fs.info.gz || :
%preun -n e2fsprogs-scrub %preun -n e2fsprogs-scrub
%endif %endif
%service_del_preun e2scrub@.service e2scrub_all.service e2scrub_all.timer e2scrub_fail@.service e2scrub_reap.service %service_del_preun e2scrub@.service e2scrub_all.service e2scrub_all.timer e2scrub_fail@.service e2scrub_reap.service
@ -345,7 +353,6 @@ done
%postun %postun
/sbin/ldconfig /sbin/ldconfig
%if ! %{build_mini} %if ! %{build_mini}
%install_info_delete --info-dir=%{_infodir} %{_infodir}/libext2fs.info.gz || :
%{?regenerate_initrd_post} %{?regenerate_initrd_post}
%endif %endif