Compare commits
7 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
011a4a6abb | ||
|
|
6651b2f7f6 | ||
|
|
5a369fd9d4 | ||
|
|
a0e4a6833b | ||
|
|
40386f4fe7 | ||
|
|
272b3da9d9 | ||
|
|
d2aa063191 |
2 changed files with 2 additions and 65 deletions
|
|
@ -1,38 +0,0 @@
|
|||
From d328542bea50b9445c63cdf2454052392282a1ce Mon Sep 17 00:00:00 2001
|
||||
From: Colin Walters <walters@verbum.org>
|
||||
Date: Thu, 8 Oct 2015 16:25:47 -0400
|
||||
Subject: [PATCH] intltool-merge: Create cache file atomically
|
||||
|
||||
It's going to be relatively common for build systems operating in
|
||||
parallel to run multiple copies of `intltool-merge`, yet the cache
|
||||
file is not created atomically (i.e. with the "open .tmp file and
|
||||
rename()" dance).
|
||||
|
||||
I suspect (but have not yet determined conclusively) this is the cause
|
||||
of some systemd build issues where translations don't appear in the
|
||||
merged file.
|
||||
|
||||
Regardless, this patch can't hurt.
|
||||
---
|
||||
intltool-merge.in | 3 ++-
|
||||
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/intltool-merge.in b/intltool-merge.in
|
||||
index 1afa2a4..d1eba8f 100644
|
||||
--- a/intltool-merge.in
|
||||
+++ b/intltool-merge.in
|
||||
@@ -371,9 +371,10 @@ sub create_cache
|
||||
|
||||
&create_translation_database;
|
||||
|
||||
- open CACHE, ">$cache_file" || die;
|
||||
+ open CACHE, ">$cache_file" . ".tmp" || die;
|
||||
print CACHE join "\x01", %translations;
|
||||
close CACHE;
|
||||
+ rename("$cache_file" . ".tmp", "$cache_file");
|
||||
}
|
||||
|
||||
sub load_cache
|
||||
--
|
||||
1.8.3.1
|
||||
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
Name: intltool
|
||||
Summary: Utility for internationalizing various kinds of data files
|
||||
Version: 0.51.0
|
||||
Release: 6%{?dist}
|
||||
Release: 3%{?dist}
|
||||
License: GPLv2 with exceptions
|
||||
Group: Development/Tools
|
||||
#VCS: bzr:https://code.edge.launchpad.net/~intltool/intltool/trunk
|
||||
|
|
@ -12,10 +12,7 @@ Requires: patch
|
|||
# for /usr/share/aclocal
|
||||
Requires: automake
|
||||
Requires: gettext-devel
|
||||
Requires: perl(Getopt::Long)
|
||||
Requires: perl(XML::Parser)
|
||||
BuildRequires: perl-generators
|
||||
BuildRequires: perl(Getopt::Long)
|
||||
BuildRequires: perl(XML::Parser)
|
||||
BuildRequires: gettext
|
||||
# http://bugzilla.gnome.org/show_bug.cgi?id=568845
|
||||
|
|
@ -24,9 +21,6 @@ BuildRequires: gettext
|
|||
# which has a sensible gettext integration.
|
||||
#Patch0: schemas-merge.patch
|
||||
Patch1: intltool-0.51.0-perl-5.22.patch
|
||||
# https://bugs.launchpad.net/intltool/+bug/1505260
|
||||
# https://bugzilla.redhat.com/show_bug.cgi?id=1249051
|
||||
Patch2: intltool-merge-Create-cache-file-atomically.patch
|
||||
|
||||
%description
|
||||
This tool automatically extracts translatable strings from oaf, glade,
|
||||
|
|
@ -36,7 +30,6 @@ them in the po files.
|
|||
%prep
|
||||
%setup -q
|
||||
%patch1 -p1
|
||||
%patch2 -p1
|
||||
|
||||
%build
|
||||
%configure
|
||||
|
|
@ -47,13 +40,7 @@ make %{?_smp_mflags}
|
|||
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
|
||||
|
||||
%check
|
||||
if ! make check; then
|
||||
find . -type f -name 'test-suite.log' | while read trs; do
|
||||
echo "BEGIN " ${trs}; cat ${trs} 1>&2;
|
||||
done
|
||||
echo "Exiting abnormally due to make check failure above" 1>&2
|
||||
exit 1
|
||||
fi
|
||||
make check
|
||||
|
||||
%files
|
||||
%doc AUTHORS README
|
||||
|
|
@ -64,18 +51,6 @@ fi
|
|||
%{_mandir}/man8/intltool*.8*
|
||||
|
||||
%changelog
|
||||
* Tue Feb 16 2016 Yaakov Selkowitz <yselkowi@redhat.com> - 0.51.0-6
|
||||
- Depend on perl(Getopt::Long) (#1307638)
|
||||
|
||||
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.51.0-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||||
|
||||
* Mon Oct 12 2015 Colin Walters <walters@redhat.com> - 0.51.0-4
|
||||
- Add patch to hopefully close race condition in systemd builds
|
||||
- Related to https://bugzilla.redhat.com/show_bug.cgi?id=1249051
|
||||
- And the test suite is failing but the logs are hidden under
|
||||
test-suite.log, so copy some code I had in dbus.spec to cat them.
|
||||
|
||||
* Mon Jul 13 2015 Ralf Corsépius <corsepiu@fedoraproject.org> - 0.51.0-3
|
||||
- Add intltool-0.51.0-perl-5.22.patch (Address RHBZ#1233444)
|
||||
- Remove unnecessary %%debug_package.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue