diff options
| author | Yoann Congal <yoann.congal@smile.fr> | 2024-01-31 15:26:24 +0100 | 
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2024-01-31 14:18:31 -0800 | 
| commit | 0ffbe2a79a5d49b2719c934ca0e73822fa3cbc2e (patch) | |
| tree | 281f011b1ac522e1ba08d9d8d18caabd020e68f2 | |
| parent | 48c7cd6d11d966c21e89a252e622ec1f0f5382ed (diff) | |
| download | meta-openembedded-0ffbe2a79a5d49b2719c934ca0e73822fa3cbc2e.tar.gz | |
ibus: backport a reproducibility fix
This backport fix the ibus-doc reproducibility issue.
The problem: manpages are compressed with gzip with a non-reproducible
timestamp in the header.
The backported fix: do not compress the manpages.
Note: This backported patch is included in version >= 1.5.29 and can be
dropped after upgrading.
Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
| -rw-r--r-- | meta-gnome/recipes-support/ibus/ibus.inc | 1 | ||||
| -rw-r--r-- | meta-gnome/recipes-support/ibus/ibus/0001-makefile-don-t-gzip-the-man-pages.patch | 164 | 
2 files changed, 165 insertions, 0 deletions
| diff --git a/meta-gnome/recipes-support/ibus/ibus.inc b/meta-gnome/recipes-support/ibus/ibus.inc index 9579404b3e..9d0600c794 100644 --- a/meta-gnome/recipes-support/ibus/ibus.inc +++ b/meta-gnome/recipes-support/ibus/ibus.inc | |||
| @@ -12,6 +12,7 @@ DEPENDS = "unicode-ucd" | |||
| 12 | SRC_URI = " \ | 12 | SRC_URI = " \ | 
| 13 | git://github.com/ibus/ibus.git;branch=main;protocol=https \ | 13 | git://github.com/ibus/ibus.git;branch=main;protocol=https \ | 
| 14 | file://0001-Do-not-try-to-start-dbus-we-do-not-have-dbus-lauch.patch \ | 14 | file://0001-Do-not-try-to-start-dbus-we-do-not-have-dbus-lauch.patch \ | 
| 15 | file://0001-makefile-don-t-gzip-the-man-pages.patch \ | ||
| 15 | " | 16 | " | 
| 16 | SRCREV = "6a70ab0338206bd1c7d01a4e1874ea0ee5b3a9d3" | 17 | SRCREV = "6a70ab0338206bd1c7d01a4e1874ea0ee5b3a9d3" | 
| 17 | S = "${WORKDIR}/git" | 18 | S = "${WORKDIR}/git" | 
| diff --git a/meta-gnome/recipes-support/ibus/ibus/0001-makefile-don-t-gzip-the-man-pages.patch b/meta-gnome/recipes-support/ibus/ibus/0001-makefile-don-t-gzip-the-man-pages.patch new file mode 100644 index 0000000000..105e34873a --- /dev/null +++ b/meta-gnome/recipes-support/ibus/ibus/0001-makefile-don-t-gzip-the-man-pages.patch | |||
| @@ -0,0 +1,164 @@ | |||
| 1 | From 5307c3b310fabeaa52fafe743c5efaca73ccce46 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Emil Velikov <emil.l.velikov@gmail.com> | ||
| 3 | Date: Sun, 11 Jun 2023 16:16:35 +0900 | ||
| 4 | Subject: [PATCH] makefile: don't gzip the man pages | ||
| 5 | |||
| 6 | Drop the gzip step from the manpages - distributions already do that as | ||
| 7 | needed. In addition this resolves the final reproducibility issue with | ||
| 8 | ibus. | ||
| 9 | |||
| 10 | BUG=https://github.com/ibus/ibus/pull/2514 | ||
| 11 | |||
| 12 | Upstream-Status: Backport [https://github.com/ibus/ibus/commit/1a25975d9f55f18eab609e4d147dd32689e367f3] | ||
| 13 | Note: This commit is included in version >= 1.5.29 and can be dropped | ||
| 14 | after upgrading. | ||
| 15 | Signed-off-by: Yoann Congal <yoann.congal@smile.fr> | ||
| 16 | --- | ||
| 17 | bus/Makefile.am | 6 +----- | ||
| 18 | data/dconf/Makefile.am | 6 +----- | ||
| 19 | setup/Makefile.am | 6 +----- | ||
| 20 | tools/Makefile.am | 6 +----- | ||
| 21 | ui/gtk3/Makefile.am | 6 +----- | ||
| 22 | 5 files changed, 5 insertions(+), 25 deletions(-) | ||
| 23 | |||
| 24 | diff --git a/bus/Makefile.am b/bus/Makefile.am | ||
| 25 | index e173ee25..d0445d02 100644 | ||
| 26 | --- a/bus/Makefile.am | ||
| 27 | +++ b/bus/Makefile.am | ||
| 28 | @@ -169,7 +169,6 @@ EXTRA_DIST = \ | ||
| 29 | |||
| 30 | CLEANFILES = \ | ||
| 31 | $(man_one_DATA) \ | ||
| 32 | - $(man_one_files) \ | ||
| 33 | $(NULL) | ||
| 34 | |||
| 35 | $(libibus): | ||
| 36 | @@ -181,14 +180,11 @@ test: ibus-daemon | ||
| 37 | $(builddir)/ibus-daemon -v | ||
| 38 | |||
| 39 | man_one_in_files = ibus-daemon.1.in | ||
| 40 | -man_one_files = $(man_one_in_files:.1.in=.1) | ||
| 41 | -man_one_DATA =$(man_one_files:.1=.1.gz) | ||
| 42 | +man_one_DATA = $(man_one_in_files:.1.in=.1) | ||
| 43 | man_onedir = $(mandir)/man1 | ||
| 44 | %.1: %.1.in | ||
| 45 | $(AM_V_GEN) sed \ | ||
| 46 | -e 's|@VERSION[@]|$(VERSION)|g' $< > $@.tmp && \ | ||
| 47 | mv $@.tmp $@ | ||
| 48 | -%.1.gz: %.1 | ||
| 49 | - $(AM_V_GEN) gzip -c $< > $@.tmp && mv $@.tmp $@ | ||
| 50 | |||
| 51 | -include $(top_srcdir)/git.mk | ||
| 52 | diff --git a/data/dconf/Makefile.am b/data/dconf/Makefile.am | ||
| 53 | index 5360f033..2352f770 100644 | ||
| 54 | --- a/data/dconf/Makefile.am | ||
| 55 | +++ b/data/dconf/Makefile.am | ||
| 56 | @@ -38,15 +38,12 @@ dconfdb_DATA = 00-upstream-settings | ||
| 57 | { rc=$$?; $(RM) -rf $@; exit $$rc; } | ||
| 58 | |||
| 59 | man_5_in_files = 00-upstream-settings.5.in ibus.5.in | ||
| 60 | -man_5_files = $(man_5_in_files:.5.in=.5) | ||
| 61 | -man_5_DATA =$(man_5_files:.5=.5.gz) | ||
| 62 | +man_5_DATA = $(man_5_in_files:.5.in=.5) | ||
| 63 | man_5dir = $(mandir)/man5 | ||
| 64 | %.5: %.5.in | ||
| 65 | $(AM_V_GEN) sed \ | ||
| 66 | -e 's|@VERSION[@]|$(VERSION)|g' $< > $@.tmp && \ | ||
| 67 | mv $@.tmp $@ | ||
| 68 | -%.5.gz: %.5 | ||
| 69 | - $(AM_V_GEN) gzip -c $< > $@.tmp && mv $@.tmp $@ | ||
| 70 | |||
| 71 | install-data-hook: | ||
| 72 | if test -z "$(DESTDIR)"; then \ | ||
| 73 | @@ -63,7 +60,6 @@ EXTRA_DIST = \ | ||
| 74 | |||
| 75 | CLEANFILES = \ | ||
| 76 | $(man_5_DATA) \ | ||
| 77 | - $(man_5_files) \ | ||
| 78 | $(NULL) | ||
| 79 | |||
| 80 | MAINTAINERCLEANFILES = \ | ||
| 81 | diff --git a/setup/Makefile.am b/setup/Makefile.am | ||
| 82 | index 34c8f136..b34aa8fc 100644 | ||
| 83 | --- a/setup/Makefile.am | ||
| 84 | +++ b/setup/Makefile.am | ||
| 85 | @@ -56,20 +56,16 @@ org.freedesktop.IBus.Setup.desktop: ibus-setup.desktop | ||
| 86 | $(AM_V_GEN) $(MSGFMT) --desktop --template $< -d $(top_srcdir)/po -o $@ | ||
| 87 | |||
| 88 | man_one_in_files = ibus-setup.1.in | ||
| 89 | -man_one_files = $(man_one_in_files:.1.in=.1) | ||
| 90 | -man_one_DATA =$(man_one_files:.1=.1.gz) | ||
| 91 | +man_one_DATA = $(man_one_in_files:.1.in=.1) | ||
| 92 | man_onedir = $(mandir)/man1 | ||
| 93 | %.1: %.1.in | ||
| 94 | $(AM_V_GEN) sed \ | ||
| 95 | -e 's|@VERSION[@]|$(VERSION)|g' $< > $@.tmp && \ | ||
| 96 | mv $@.tmp $@ | ||
| 97 | -%.1.gz: %.1 | ||
| 98 | - $(AM_V_GEN) gzip -c $< > $@.tmp && mv $@.tmp $@ | ||
| 99 | |||
| 100 | CLEANFILES = \ | ||
| 101 | $(desktop_DATA) \ | ||
| 102 | $(man_one_DATA) \ | ||
| 103 | - $(man_one_files) \ | ||
| 104 | *.pyc \ | ||
| 105 | ibus-setup \ | ||
| 106 | $(NULL) | ||
| 107 | diff --git a/tools/Makefile.am b/tools/Makefile.am | ||
| 108 | index 5c18d3d6..1c716136 100644 | ||
| 109 | --- a/tools/Makefile.am | ||
| 110 | +++ b/tools/Makefile.am | ||
| 111 | @@ -79,15 +79,12 @@ bash_completion_DATA= \ | ||
| 112 | bash_completiondir=@datadir@/bash-completion/completions | ||
| 113 | |||
| 114 | man_one_in_files = ibus.1.in | ||
| 115 | -man_one_files = $(man_one_in_files:.1.in=.1) | ||
| 116 | -man_one_DATA =$(man_one_files:.1=.1.gz) | ||
| 117 | +man_one_DATA = $(man_one_in_files:.1.in=.1) | ||
| 118 | man_onedir = $(mandir)/man1 | ||
| 119 | %.1: %.1.in | ||
| 120 | $(AM_V_GEN) sed \ | ||
| 121 | -e 's|@VERSION[@]|$(VERSION)|g' $< > $@.tmp && \ | ||
| 122 | mv $@.tmp $@ | ||
| 123 | -%.1.gz: %.1 | ||
| 124 | - $(AM_V_GEN) gzip -c $< > $@.tmp && mv $@.tmp $@ | ||
| 125 | |||
| 126 | EXTRA_DIST = \ | ||
| 127 | $(man_one_in_files) \ | ||
| 128 | @@ -96,7 +93,6 @@ EXTRA_DIST = \ | ||
| 129 | |||
| 130 | CLEANFILES = \ | ||
| 131 | $(man_one_DATA) \ | ||
| 132 | - $(man_one_files) \ | ||
| 133 | $(NULL) | ||
| 134 | |||
| 135 | if ENABLE_EMOJI_DICT | ||
| 136 | diff --git a/ui/gtk3/Makefile.am b/ui/gtk3/Makefile.am | ||
| 137 | index ab379328..aff035da 100644 | ||
| 138 | --- a/ui/gtk3/Makefile.am | ||
| 139 | +++ b/ui/gtk3/Makefile.am | ||
| 140 | @@ -242,15 +242,12 @@ panelbinding.o: $(srcdir)/panelbinding.c | ||
| 141 | |||
| 142 | MAINTAINERCLEANFILES += extension.c panelbinding.c | ||
| 143 | |||
| 144 | -man_seven_files = $(man_seven_in_files:.7.in=.7) | ||
| 145 | -man_seven_DATA =$(man_seven_files:.7=.7.gz) | ||
| 146 | +man_seven_DATA = $(man_seven_in_files:.7.in=.7) | ||
| 147 | man_sevendir = $(mandir)/man7 | ||
| 148 | %.7: %.7.in | ||
| 149 | $(AM_V_GEN) sed \ | ||
| 150 | -e 's|@VERSION[@]|$(VERSION)|g' $< > $@.tmp && \ | ||
| 151 | mv $@.tmp $@ | ||
| 152 | -%.7.gz: %.7 | ||
| 153 | - $(AM_V_GEN) gzip -c $< > $@.tmp && mv $@.tmp $@ | ||
| 154 | |||
| 155 | desktop_in_files = \ | ||
| 156 | ibus-ui-emojier.desktop.in \ | ||
| 157 | @@ -278,7 +275,6 @@ CLEANFILES += \ | ||
| 158 | $(desktop_DATA) \ | ||
| 159 | $(desktop_notrans_files) \ | ||
| 160 | $(man_seven_DATA) \ | ||
| 161 | - $(man_seven_files) \ | ||
| 162 | $(NULL) | ||
| 163 | |||
| 164 | endif | ||
