Hello community, here is the log from the commit of package timezone for openSUSE:Factory checked in at 2013-10-23 10:14:47 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/timezone (Old) and /work/SRC/openSUSE:Factory/.timezone.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "timezone" Changes: -------- --- /work/SRC/openSUSE:Factory/timezone/timezone-java.changes 2013-10-04 21:37:36.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.timezone.new/timezone-java.changes 2013-10-23 10:14:48.000000000 +0200 @@ -1,0 +2,14 @@ +Wed Oct 23 07:36:26 UTC 2013 - werner@suse.de + +- Re-run pre_checkin.sh to prepare timezone-jave.spec + +------------------------------------------------------------------- +Mon Oct 14 13:56:20 UTC 2013 - werner@suse.de + +- Add patch tzcode-fromname.patch to correct path expansion for + local time link (bnc#845530) +- Modify tzcode-link.diff to fit with tzcode-fromname.patch +- Modify tzcode-symlink.patch to fit with tzcode-fromname.patch + and to avoid broken posixrules if /etc/localtime is a symlink + +------------------------------------------------------------------- --- /work/SRC/openSUSE:Factory/timezone/timezone.changes 2013-10-04 21:37:36.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.timezone.new/timezone.changes 2013-10-23 10:14:48.000000000 +0200 @@ -1,0 +2,9 @@ +Mon Oct 14 13:56:20 UTC 2013 - werner@suse.de + +- Add patch tzcode-fromname.patch to correct path expansion for + local time link (bnc#845530) +- Modify tzcode-link.diff to fit with tzcode-fromname.patch +- Modify tzcode-symlink.patch to fit with tzcode-fromname.patch + and to avoid broken posixrules if /etc/localtime is a symlink + +------------------------------------------------------------------- New: ---- tzcode-fromname.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ timezone-java.spec ++++++ --- /var/tmp/diff_new_pack.C7EFzb/_old 2013-10-23 10:14:49.000000000 +0200 +++ /var/tmp/diff_new_pack.C7EFzb/_new 2013-10-23 10:14:49.000000000 +0200 @@ -31,6 +31,8 @@ Source1: ftp://ftp.iana.org/tz/releases/tzcode%{version}.tar.gz Patch0: tzdata-china.diff Patch1: tzcode-zic.diff +# PATCH-FIX-OPENSUSE bnc#845530 +Patch2: tzcode-fromname.patch Patch3: iso3166-uk.diff Patch4: tzcode-link.diff Patch5: tzcode-symlink.patch @@ -54,12 +56,14 @@ # COMMON-PREP-BEGIN %patch0 -p1 %patch1 -p1 +%patch2 -p1 %patch3 -p1 %if 0%{?suse_version} < 1220 %patch4 -p1 %else %patch5 -p1 %endif +sed -ri 's@/usr/local/etc/zoneinfo@%{_datadir}/zoneinfo@g' *.[1358] # COMMON-PREP-END # COMMON-PREP-END ++++++ timezone.spec ++++++ --- /var/tmp/diff_new_pack.C7EFzb/_old 2013-10-23 10:14:49.000000000 +0200 +++ /var/tmp/diff_new_pack.C7EFzb/_new 2013-10-23 10:14:49.000000000 +0200 @@ -29,6 +29,8 @@ Source1: ftp://ftp.iana.org/tz/releases/tzcode%{version}.tar.gz Patch0: tzdata-china.diff Patch1: tzcode-zic.diff +# PATCH-FIX-OPENSUSE bnc#845530 +Patch2: tzcode-fromname.patch Patch3: iso3166-uk.diff Patch4: tzcode-link.diff Patch5: tzcode-symlink.patch @@ -48,12 +50,14 @@ # COMMON-PREP-BEGIN %patch0 -p1 %patch1 -p1 +%patch2 -p1 %patch3 -p1 %if 0%{?suse_version} < 1220 %patch4 -p1 %else %patch5 -p1 %endif +sed -ri 's@/usr/local/etc/zoneinfo@%{_datadir}/zoneinfo@g' *.[1358] # COMMON-PREP-END %build @@ -63,7 +67,7 @@ AREA=%{AREA} ZONE=%{ZONE} export AREA LANG LC_ALL ZONE -make %{?_smp_mflags} TZDIR=%{_prefix}/share/zoneinfo CFLAGS="$RPM_OPT_FLAGS -DHAVE_GETTEXT=1 -DTZDEFAULT='\"/etc/localtime\"' -DTM_GMTOFF=tm_gmtoff -DTM_ZONE=tm_zone" AWK=awk +make %{?_smp_mflags} TZDIR=%{_datadir}/zoneinfo CFLAGS="$RPM_OPT_FLAGS -DHAVE_GETTEXT=1 -DTZDEFAULT='\"/etc/localtime\"' -DTM_GMTOFF=tm_gmtoff -DTM_ZONE=tm_zone" AWK=awk make %{?_smp_mflags} TZDIR=zoneinfo AWK=awk zones # Generate posixrules ./zic -y ./yearistype -d zoneinfo -p %{AREA}/%{ZONE} ++++++ tzcode-fromname.patch ++++++ --- timezone-2013g/zic.c +++ timezone-2013g/zic.c 2013-10-14 13:52:42.070235810 +0000 @@ -628,17 +628,17 @@ dolink(const char *const fromfield, cons result = link(fromname, toname); if (result != 0) { - const char *s = fromfield; + const char *s = fromname; const char *t; register char * symlinkcontents = NULL; do t = s; while ((s = strchr(s, '/')) - && ! strncmp (fromfield, tofield, - ++s - fromfield)); + && ! strncmp (fromname, tofield, + ++s - fromname)); - for (s = tofield + (t - fromfield); + for (s = tofield + (t - fromname); (s = strchr(s, '/')); s++) symlinkcontents = ++++++ tzcode-link.diff ++++++ --- /var/tmp/diff_new_pack.C7EFzb/_old 2013-10-23 10:14:49.000000000 +0200 +++ /var/tmp/diff_new_pack.C7EFzb/_new 2013-10-23 10:14:49.000000000 +0200 @@ -33,5 +33,5 @@ + if (result != 0) + result = copy(fromname, toname); if (result != 0) { - const char *s = fromfield; + const char *s = fromname; const char *t; ++++++ tzcode-symlink.patch ++++++ --- /var/tmp/diff_new_pack.C7EFzb/_old 2013-10-23 10:14:49.000000000 +0200 +++ /var/tmp/diff_new_pack.C7EFzb/_new 2013-10-23 10:14:49.000000000 +0200 @@ -1,5 +1,5 @@ ---- timezone-2013g.orig/zic.c -+++ timezone-2013g/zic.c +--- timezone-2013g/zic.c ++++ timezone-2013g/zic.c 2013-10-14 14:23:08.450235811 +0000 @@ -120,7 +120,7 @@ static int addtype(zic_t gmtoff, const c static void leapadd(zic_t t, int positive, int rolling, int count); static void adjleap(void); @@ -18,7 +18,7 @@ if (noise) for (j = 0; j < nlinks; ++j) if (strcmp(links[i].l_to, -@@ -584,17 +584,17 @@ _("%s: More than one -L option specified +@@ -584,18 +584,19 @@ _("%s: More than one -L option specified } if (lcltime != NULL) { eat("command line", 1); @@ -37,9 +37,22 @@ -dolink(const char *const fromfield, const char *const tofield) +dolink(const char *const fromfield, const char *const tofield, int defaultsymlink) { ++ struct stat st; register char * fromname; register char * toname; -@@ -619,15 +619,16 @@ dolink(const char *const fromfield, cons + +@@ -606,6 +607,10 @@ dolink(const char *const fromfield, cons + fromname = ecatalloc(fromname, "/"); + fromname = ecatalloc(fromname, fromfield); + } ++ ++ if (lstat(fromname, &st) == 0 && S_ISLNK(st.st_mode)) ++ defaultsymlink = TRUE; ++ + if (tofield[0] == '/') + toname = ecpyalloc(tofield); + else { +@@ -619,15 +624,16 @@ dolink(const char *const fromfield, cons */ if (!itsdir(toname)) (void) remove(toname); @@ -56,6 +69,6 @@ + if (!defaultsymlink) result = link(fromname, toname); + + if ((defaultsymlink || (!defaultsymlink && result != 0))) { - const char *s = fromfield; + const char *s = fromname; const char *t; register char * symlinkcontents = NULL; -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org