linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH e2fsprogs] - remove timestamps from .po files
@ 2007-11-05 21:13 Eric Sandeen
  2007-11-05 22:06 ` Theodore Tso
  2007-11-06 10:24 ` Thierry Vignaud
  0 siblings, 2 replies; 6+ messages in thread
From: Eric Sandeen @ 2007-11-05 21:13 UTC (permalink / raw)
  To: ext4 development

Another one that's been in RH/Fedora specfiles a while.
Remove timestamps from .po files to avoid multilib conflicts.
It ain't pretty but it works.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Addresses-Red-Hat-Bugzilla: #245653

Index: e2fsprogs-git/po/Makefile.in.in
===================================================================
--- e2fsprogs-git.orig/po/Makefile.in.in
+++ e2fsprogs-git/po/Makefile.in.in
@@ -118,10 +118,12 @@ $(DOMAIN).pot-update: $(POTFILES) $(srcd
 	      rm -f $(DOMAIN).1po $(DOMAIN).2po $(DOMAIN).po; \
 	    else \
 	      rm -f $(DOMAIN).1po $(DOMAIN).2po $(srcdir)/$(DOMAIN).pot && \
-	      mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \
+	      sed -f remove-potcdate.sed < $(DOMAIN).po > $(srcdir)/$(DOMAIN).pot && \
+	      rm -f $(DOMAIN).po; \
 	    fi; \
 	  else \
-	    mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \
+	    sed -f remove-potcdate.sed < $(DOMAIN).po > $(srcdir)/$(DOMAIN).pot && \
+	    rm -f $(DOMAIN).po; \
 	  fi; \
 	}
 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH e2fsprogs] - remove timestamps from .po files
  2007-11-05 21:13 [PATCH e2fsprogs] - remove timestamps from .po files Eric Sandeen
@ 2007-11-05 22:06 ` Theodore Tso
  2007-11-05 22:12   ` Eric Sandeen
  2007-11-06 10:24 ` Thierry Vignaud
  1 sibling, 1 reply; 6+ messages in thread
From: Theodore Tso @ 2007-11-05 22:06 UTC (permalink / raw)
  To: Eric Sandeen; +Cc: ext4 development

On Mon, Nov 05, 2007 at 03:13:54PM -0600, Eric Sandeen wrote:
> Another one that's been in RH/Fedora specfiles a while.
> Remove timestamps from .po files to avoid multilib conflicts.
> It ain't pretty but it works.

The patch is missing remove-potcdate.sed; can you include it and
resend it please?  Thanks!!

					- Ted

> 
> Signed-off-by: Eric Sandeen <sandeen@redhat.com>
> Addresses-Red-Hat-Bugzilla: #245653
> 
> Index: e2fsprogs-git/po/Makefile.in.in
> ===================================================================
> --- e2fsprogs-git.orig/po/Makefile.in.in
> +++ e2fsprogs-git/po/Makefile.in.in
> @@ -118,10 +118,12 @@ $(DOMAIN).pot-update: $(POTFILES) $(srcd
>  	      rm -f $(DOMAIN).1po $(DOMAIN).2po $(DOMAIN).po; \
>  	    else \
>  	      rm -f $(DOMAIN).1po $(DOMAIN).2po $(srcdir)/$(DOMAIN).pot && \
> -	      mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \
> +	      sed -f remove-potcdate.sed < $(DOMAIN).po > $(srcdir)/$(DOMAIN).pot && \
> +	      rm -f $(DOMAIN).po; \
>  	    fi; \
>  	  else \
> -	    mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \
> +	    sed -f remove-potcdate.sed < $(DOMAIN).po > $(srcdir)/$(DOMAIN).pot && \
> +	    rm -f $(DOMAIN).po; \
>  	  fi; \
>  	}
>  
> 
> 
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH e2fsprogs] - remove timestamps from .po files
  2007-11-05 22:06 ` Theodore Tso
@ 2007-11-05 22:12   ` Eric Sandeen
  0 siblings, 0 replies; 6+ messages in thread
From: Eric Sandeen @ 2007-11-05 22:12 UTC (permalink / raw)
  To: Theodore Tso; +Cc: ext4 development

Theodore Tso wrote:
> On Mon, Nov 05, 2007 at 03:13:54PM -0600, Eric Sandeen wrote:
>> Another one that's been in RH/Fedora specfiles a while.
>> Remove timestamps from .po files to avoid multilib conflicts.
>> It ain't pretty but it works.
> 
> The patch is missing remove-potcdate.sed; can you include it and
> resend it please?  Thanks!!

http://git.kernel.org/?p=fs/ext2/e2fsprogs.git;a=blob;f=po/remove-potcdate.sin

:)

-Eric

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH e2fsprogs] - remove timestamps from .po files
  2007-11-05 21:13 [PATCH e2fsprogs] - remove timestamps from .po files Eric Sandeen
  2007-11-05 22:06 ` Theodore Tso
@ 2007-11-06 10:24 ` Thierry Vignaud
  2007-11-06 14:33   ` Eric Sandeen
  1 sibling, 1 reply; 6+ messages in thread
From: Thierry Vignaud @ 2007-11-06 10:24 UTC (permalink / raw)
  To: Eric Sandeen, Theodore Tso; +Cc: ext4 development

Eric Sandeen <sandeen@redhat.com> writes:

> Another one that's been in RH/Fedora specfiles a while.
> Remove timestamps from .po files to avoid multilib conflicts.
> It ain't pretty but it works.

Sorry but that's insane.

Pos should not be updated on build.  They should only be updated by
upstream developers instead. This enable translators to catch up and
prevent such hackery

Your spec file should not contain "make -C po update-po" in the first
place.
This is a fedora bug, not an e2fsprogs one IMHO.

You introduced your own multi-lib in the first place...

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH e2fsprogs] - remove timestamps from .po files
  2007-11-06 10:24 ` Thierry Vignaud
@ 2007-11-06 14:33   ` Eric Sandeen
  2007-11-06 14:55     ` Theodore Tso
  0 siblings, 1 reply; 6+ messages in thread
From: Eric Sandeen @ 2007-11-06 14:33 UTC (permalink / raw)
  To: Thierry Vignaud; +Cc: Theodore Tso, ext4 development

Thierry Vignaud wrote:
> Eric Sandeen <sandeen@redhat.com> writes:
> 
>> Another one that's been in RH/Fedora specfiles a while.
>> Remove timestamps from .po files to avoid multilib conflicts.
>> It ain't pretty but it works.
> 
> Sorry but that's insane.
> 
> Pos should not be updated on build.  They should only be updated by
> upstream developers instead. This enable translators to catch up and
> prevent such hackery

Hrm, good point.

> Your spec file should not contain "make -C po update-po" in the first
> place.
> This is a fedora bug, not an e2fsprogs one IMHO.
> 
> You introduced your own multi-lib in the first place...

Apparently there was some issue with this, once upon a time, which
resulted in our rpms needing to update the po files... I guess I need to
do a bit more code archeology / research.  It looks like sct added this
when the pkg updated to 1.36, though there is no comment about why.

I inherited lots of history when I got e2fsprogs, so please forgive me
as I work through it.  :)

One question though, then - what is the existing timestamp removal
mechanism for, then?

-Eric

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH e2fsprogs] - remove timestamps from .po files
  2007-11-06 14:33   ` Eric Sandeen
@ 2007-11-06 14:55     ` Theodore Tso
  0 siblings, 0 replies; 6+ messages in thread
From: Theodore Tso @ 2007-11-06 14:55 UTC (permalink / raw)
  To: Eric Sandeen; +Cc: Thierry Vignaud, ext4 development

On Tue, Nov 06, 2007 at 08:33:33AM -0600, Eric Sandeen wrote:
> Apparently there was some issue with this, once upon a time, which
> resulted in our rpms needing to update the po files... I guess I need to
> do a bit more code archeology / research.  It looks like sct added this
> when the pkg updated to 1.36, though there is no comment about why.

One potential reason could be that we are using ancient libintl files,
and there was some compatibility problem --- although I can't think of
a reason that would require updating the po files.

I know there is currently an issue on Debian because the po files are
getting intstalled in the wrong locations and the gettext shared
libraries are looking for them somewhere else, but I only vaguely
recall what was going on.  I had only enough time to start doing a
quick investigation to see why the translation files were getting
ignored, and didn't have time to try to fix it.

If someone would like to update the po directory and the configure.in
hunks for -po to something less antediluvian, patches would be greatly
appreciated....

						- Ted

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-11-06 14:56 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-05 21:13 [PATCH e2fsprogs] - remove timestamps from .po files Eric Sandeen
2007-11-05 22:06 ` Theodore Tso
2007-11-05 22:12   ` Eric Sandeen
2007-11-06 10:24 ` Thierry Vignaud
2007-11-06 14:33   ` Eric Sandeen
2007-11-06 14:55     ` Theodore Tso

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).