GNOME Bugzilla – Bug 743574
Drop ugly gettext pot file hack in autogen.sh
Last modified: 2015-06-22 18:44:48 UTC
After discussion with desrt at the developer experience hackfest, it seems that it should be possible to remove the ugly hack in autogen.sh, which touches the pot file to give it a really old timestamp. There is a variable provided by gettext for the purposes of ignoring the pot file timestamp, specifically for when using git: https://www.gnu.org/software/gettext/manual/gettext.html#Translations-under-Version-Control
Created attachment 295519 [details] [review] proposed patch The proposed patch seems to work fine for me, but it would be good to know if there are any other reasons why the timestamp hack should be kept.
I guess you will probably want to use DIST_DEPENDS_ON_UPDATE_PO = no as well: # This tells whether or not to forcibly update $(DOMAIN).pot and # regenerate PO files on "make dist". Possible values are "yes" and # "no". Set this to no if the POT file and PO files are maintained # externally. DIST_DEPENDS_ON_UPDATE_PO = no
Created attachment 295556 [details] [review] updated patch Sure, updated to add that variable.
If this patch ends up putting an up-to-date .pot in the tarball then I think this patch is perfectly correct. Thanks for some very necessary swamp-draining.
Review of attachment 295556 [details] [review]: Looks good to me
Note this resulted in: https://git.gnome.org/browse/gnome-continuous/commit/?id=d2f839d3214735964f84e44e1a8e8a9a6620fb6c
http://build.gnome.org/continuous/buildmaster/builds/2015/06/22/51/build/log-gdk-pixbuf.txt Also worth noting that some older stable distributions like Red Hat Enterprise Linux 7 are on gettext-0.18.2.1-4.el7.x86_64