[Digikam-devel] [Bug 237010] Remove __DATE__ and __TIME__ from code

Christian Morales Vega cmorve69 at yahoo.es
Tue Dec 13 10:20:18 GMT 2011


https://bugs.kde.org/show_bug.cgi?id=237010





--- Comment #4 from Christian Morales Vega <cmorve69 yahoo es>  2011-12-13 10:20:18 ---
Has been quite a long time since I touched that package. But right now openSUSE
is using this patch:

https://build.opensuse.org/package/view_file?file=digikam-buildtime.patch&package=digikam&project=KDE%3ADistro%3AFactory&rev=ed32de9cfa5637640a0418f8eec08a87

and this in the .spec file

# Remove build time references so build-compare can do its work
FAKE_BUILDDATE=$(LC_ALL=C date -u -r %{_sourcedir}/%{name}.changes '+%%b %%e
%%Y')
sed -i "s/__DATE__/\"$FAKE_BUILDDATE\"/" core/digikam/utils/version.h.cmake

In general we have started to use the sed trick since it avoids problems when
someone is parsing the output and expects to find the date. So it's not such a
big deal for us anymore. Feel free to close the bug if you want to.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Digikam-devel mailing list