Various patches
Hi,
as advised in the answers to the "reproducible build" patches, I have separated the patches that could be submitted upstream and are not really related to reproducible builds. The patches follow this e-mail.
They are also available as a git branch here:
https://git.click-hack.org/buildroot.git/log/?h=for-upstream
Regards.
Signature · 2 lines
Gilles. https://click-hack.org
PATCH 1/5 wireshark: remove documentation
Remove html and txt documentation from the rootfs as they unlikely to be needed.
--- package/wireshark/wireshark.mk | 6 ++++++ 1 file changed, 6 insertions(+)
package/wireshark/wireshark.mk +6 -0
@@ -99,4 +99,10 @@ else WIRESHARK_CONF_OPTS += --with-sbc=no endif +define WIRESHARK_REMOVE_DOCS + find $(TARGET_DIR)/usr/share/wireshark -\( -name '*.txt' -o -name '*.html' -\) -delete +endef + +WIRESHARK_POST_INSTALL_TARGET_HOOKS += WIRESHARK_REMOVE_DOCS + $(eval $(autotools-package))
Signature · 1 line
2.8.2
PATCH 2/5 readline: fix installed libraries permission
In order to avoid strip failing to strip the library.
--- package/readline/0009-avoid-strip-perm-issue.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 package/readline/0009-avoid-strip-perm-issue.patch
package/readline/0009-avoid-strip-perm-issue.patch new file +11 -0
@@ -0,0 +1,11 @@ +--- readline-6.3/support/shlib-install~ 2012-07-10 21:58:08.000000000 +0200 ++++ readline-6.3/support/shlib-install 2016-02-27 01:19:09.878310797 +0100 +@@ -73,7 +73,7 @@ fi + case "$host_os" in + hpux*|darwin*|macosx*|linux*|solaris2*) + if [ -z "$uninstall" ]; then +- chmod 555 ${INSTALLDIR}/${LIBNAME} ++ chmod 755 ${INSTALLDIR}/${LIBNAME} + fi ;; + cygwin*|mingw*) + IMPLIBNAME=`echo ${LIBNAME} \
Signature · 1 line
2.8.2
PATCH 3/5 pkg-download: allow ssh URLs
In reply to Gilles ChanteperdrixUse git when such an URL is met.
--- package/pkg-download.mk | 2 +- package/readline/0009-avoid-strip-perm-issue.patch | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-)
package/pkg-download.mk +1 -1
@@ -225,7 +225,7 @@ define DOWNLOAD_INNER fi ; \ if test -n "$(1)" ; then \ case "$($(PKG)_SITE_METHOD)" in \ - git) $($(3)_GIT) && exit ;; \ + git|ssh) $($(3)_GIT) && exit ;; \ svn) $($(3)_SVN) && exit ;; \ cvs) $($(3)_CVS) && exit ;; \ bzr) $($(3)_BZR) && exit ;; \
package/readline/0009-avoid-strip-perm-issue.patch +3 -0
@@ -1,3 +1,6 @@ +Avoid libreadline to be installed read-only, as it makes stripping fail. + +Signed-off-by: Gilles Chanteperdrix <[email protected]> --- readline-6.3/support/shlib-install~ 2012-07-10 21:58:08.000000000 +0200 +++ readline-6.3/support/shlib-install 2016-02-27 01:19:09.878310797 +0100 @@ -73,7 +73,7 @@ fi
Signature · 1 line
2.8.2
PATCH 3/5 pkg-download: allow ssh URLs
Gilles, All,
On 2016-06-14 17:05 +0200, Gilles Chanteperdrix spake thusly:
Quoted 1 line
Use git when such an URL is met.
What about Hg URLs that can also start with 'ssh://' ?
I guess we should not try to be smart here, and let users specify the method with the _SITE_METHOD variable.
Regards,
Yann E. MORIN.
Quoted 37 lines
Signed-off-by Gilles Chanteperdrix <[email protected]>--- package/pkg-download.mk | 2 +- package/readline/0009-avoid-strip-perm-issue.patch | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-)package/pkg-download.mk +1
-1@@ -225,7 +225,7 @@ define DOWNLOAD_INNER fi ; \ if test -n "$(1)" ; then \ case "$($(PKG)_SITE_METHOD)" in \ - git) $($(3)_GIT) && exit ;; \ + git|ssh) $($(3)_GIT) && exit ;; \ svn) $($(3)_SVN) && exit ;; \ cvs) $($(3)_CVS) && exit ;; \ bzr) $($(3)_BZR) && exit ;; \package/readline/0009-avoid-strip-perm-issue.patch +3
-0@@ -1,3 +1,6 @@ +Avoid libreadline to be installed read-only, as it makes stripping fail. + +Signed-off-by: Gilles Chanteperdrix <[email protected]> --- readline-6.3/support/shlib-install~ 2012-07-10 21:58:08.000000000 +0200 +++ readline-6.3/support/shlib-install 2016-02-27 01:19:09.878310797 +0100 @@ -73,7 +73,7 @@ fiSignature · 6 lines
2.8.2 _______________________________________________ buildroot mailing list buildroot at busybox.net http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'
PATCH 3/5 pkg-download: allow ssh URLs
Quoted 9 lines · Yann E. MORIN
Gilles, All,
On 2016-06-14 17:05 +0200, Gilles Chanteperdrix spake thusly:
Quoted 1 line
Use git when such an URL is met.
What about Hg URLs that can also start with 'ssh://' ?
I guess we should not try to be smart here, and let users specify the method with the
_SITE_METHODvariable.
Yeah, well, my initial patch proposed git+ssh:// and I was told that this was deprecated. The conversation lead to a dead-end with nobody giving me a clear indication of what I should propose.
So, let us go back to my initial need: have a package compiled based on a git over ssh URL. Now if you tell me that there is a way to do this without patching pkg-download.mk, I am all ears. I did not find any help on that in the documentation, do you have some pointers?
Signature · 2 lines
Gilles. https://click-hack.org
PATCH 3/5 pkg-download: allow ssh URLs
Gilles, All,
On 2016-06-15 23:29 +0200, Gilles Chanteperdrix spake thusly:
Quoted 11 lines · Yann E. MORIN
Quoted 9 lines
Gilles, All,
On 2016-06-14 17:05 +0200, Gilles Chanteperdrix spake thusly:
Quoted 1 line
Use git when such an URL is met.
What about Hg URLs that can also start with 'ssh://' ?
I guess we should not try to be smart here, and let users specify the method with the
_SITE_METHODvariable.
Quoted 8 lines
Yeah, well, my initial patch proposed git+ssh:// and I was told that this was deprecated. The conversation lead to a dead-end with nobody giving me a clear indication of what I should propose.
So, let us go back to my initial need: have a package compiled based on a git over ssh URL. Now if you tell me that there is a way to do this without patching pkg-download.mk, I am all ears. I did not find any help on that in the documentation, do you have some pointers?
As far as I understand your requirements, you want to be able to write either of:
FOO_SITE = user at machine:path/to/repo.git
or
FOO_SITE = ssh://user at machine/path/to/rpo.git
You just have to add:
FOO_SITE_METHOD = git
See the manual, search for _SITE_METHOD: ;-)
https://buildroot.org/downloads/manual/manual.html#generic-package-reference
Regards,
Yann E. MORIN.
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'
PATCH 3/5 pkg-download: allow ssh URLs
Quoted 30 lines · Yann E. MORIN
Gilles, All,
On 2016-06-15 23:29 +0200, Gilles Chanteperdrix spake thusly:
Quoted 11 lines · Yann E. MORIN
Quoted 9 lines
Gilles, All,
On 2016-06-14 17:05 +0200, Gilles Chanteperdrix spake thusly:
Quoted 1 line
Use git when such an URL is met.
What about Hg URLs that can also start with 'ssh://' ?
I guess we should not try to be smart here, and let users specify the method with the
_SITE_METHODvariable.Quoted 8 lines
Yeah, well, my initial patch proposed git+ssh:// and I was told that this was deprecated. The conversation lead to a dead-end with nobody giving me a clear indication of what I should propose.
So, let us go back to my initial need: have a package compiled based on a git over ssh URL. Now if you tell me that there is a way to do this without patching pkg-download.mk, I am all ears. I did not find any help on that in the documentation, do you have some pointers?
As far as I understand your requirements, you want to be able to write either of:
FOO_SITE= user at machine:path/to/repo.git
or
FOO_SITE= ssh://user at machine/path/to/rpo.git
Quoted 6 lines
You just have to add:
FOO_SITE_METHOD= gitSee the manual, search for
_SITE_METHOD: ;-)
https://buildroot.org/downloads/manual/manual.html#generic-package-reference
Ok, thanks.
Signature · 2 lines
Gilles. https://click-hack.org
PATCH 3/5 pkg-download: allow ssh URLs
Gilles, All,
On 2016-06-16 21:36 +0200, Gilles Chanteperdrix spake thusly:
Quoted 31 lines · Yann E. MORIN
Quoted 30 lines
Gilles, All,
On 2016-06-15 23:29 +0200, Gilles Chanteperdrix spake thusly:
Quoted 11 lines · Yann E. MORIN
Quoted 9 lines
Gilles, All,
On 2016-06-14 17:05 +0200, Gilles Chanteperdrix spake thusly:
Quoted 1 line
Use git when such an URL is met.
What about Hg URLs that can also start with 'ssh://' ?
I guess we should not try to be smart here, and let users specify the method with the
_SITE_METHODvariable.Quoted 8 lines
Yeah, well, my initial patch proposed git+ssh:// and I was told that this was deprecated. The conversation lead to a dead-end with nobody giving me a clear indication of what I should propose.
So, let us go back to my initial need: have a package compiled based on a git over ssh URL. Now if you tell me that there is a way to do this without patching pkg-download.mk, I am all ears. I did not find any help on that in the documentation, do you have some pointers?
As far as I understand your requirements, you want to be able to write either of:
FOO_SITE= user at machine:path/to/repo.git
or
FOO_SITE= ssh://user at machine/path/to/rpo.git
Quoted 8 lines
Quoted 6 lines
You just have to add:
FOO_SITE_METHOD= gitSee the manual, search for
_SITE_METHOD: ;-)
https://buildroot.org/downloads/manual/manual.html#generic-package-referenceOk, thanks.
So, that fits your requirements? Should your patch be dropped, then?
Regards,
Yann E. MORIN.
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'
PATCH 3/5 pkg-download: allow ssh URLs
Quoted 36 lines · Yann E. MORIN
Gilles, All,
On 2016-06-16 21:36 +0200, Gilles Chanteperdrix spake thusly:
Quoted 33 lines · Yann E. MORIN
Quoted 32 lines
Gilles, All,
On 2016-06-15 23:29 +0200, Gilles Chanteperdrix spake thusly:
Quoted 11 lines · Yann E. MORIN
Quoted 9 lines
Gilles, All,
On 2016-06-14 17:05 +0200, Gilles Chanteperdrix spake thusly:
Quoted 1 line
Use git when such an URL is met.
What about Hg URLs that can also start with 'ssh://' ?
I guess we should not try to be smart here, and let users specify the method with the
_SITE_METHODvariable.Quoted 8 lines
Yeah, well, my initial patch proposed git+ssh:// and I was told that this was deprecated. The conversation lead to a dead-end with nobody giving me a clear indication of what I should propose.
So, let us go back to my initial need: have a package compiled based on a git over ssh URL. Now if you tell me that there is a way to do this without patching pkg-download.mk, I am all ears. I did not find any help on that in the documentation, do you have some pointers?
As far as I understand your requirements, you want to be able to write either of:
FOO_SITE= user at machine:path/to/repo.git
or
FOO_SITE= ssh://user at machine/path/to/rpo.gitYou just have to add:
Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
FOO_SITE_METHOD= gitSee the manual, search for
_SITE_METHOD: ;-)
https://buildroot.org/downloads/manual/manual.html#generic-package-referenceOk, thanks.
So, that fits your requirements? Should your patch be dropped, then?
I guess so. I have not tried, but I will take your word for it. Yes, you can drop the patch.
Regards.
Signature · 2 lines
Gilles. https://click-hack.org
PATCH 4/5 grub2: really disable liblzma
In reply to Gilles Chanteperdrix--- boot/grub2/grub2.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
boot/grub2/grub2.mk +1 -1
@@ -62,7 +62,7 @@ GRUB2_CONF_OPTS = \ --with-platform=$(GRUB2_PLATFORM) \ --disable-grub-mkfont \ --enable-efiemu=no \ - --enable-liblzma=no \ + ac_cv_lib_lzma_lzma_code=no \ --enable-device-mapper=no \ --enable-libzfs=no \ --disable-werror
Signature · 1 line
2.8.2
PATCH 4/5 grub2: really disable liblzma
On 2016-06-14 17:05 +0200, Gilles Chanteperdrix spake thusly:
Quoted 10 lines
Signed-off-by Gilles Chanteperdrix <[email protected]>--- boot/grub2/grub2.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)boot/grub2/grub2.mk +0
-0
boot/grub2/grub2.mk GRUB2_CONF_OPTS = \ · line 65
Quoted 5 lines
boot/grub2/grub2.mk +1
-1@@ -62,7 +62,7 @@ GRUB2_CONF_OPTS = \ --with-platform=$(GRUB2_PLATFORM) \ --disable-grub-mkfont \ --enable-efiemu=no \ - --enable-liblzma=no \ + ac_cv_lib_lzma_lzma_code=no \
It would have been nice to say that --enale-liblzma is not a supported option to grub2's configure.
Regards,
Yann E. MORIN.
Quoted 10 lines
boot/grub2/grub2.mk +0
-0--enable-device-mapper=no \ --enable-libzfs=no \ --disable-werrorSignature · 6 lines
2.8.2 _______________________________________________ buildroot mailing list buildroot at busybox.net http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'
PATCH 5/5 grub2: allow full install (for installer images)
In reply to Gilles ChanteperdrixCompile grub2 with the target toolchain in the "full install" case, so that the generated binaries do not depend on the host toolchain used.
--- boot/grub2/Config.in | 10 ++++++++++ boot/grub2/grub2.mk | 34 ++++++++++++++++++++++++---------- 2 files changed, 34 insertions(+), 10 deletions(-)
boot/grub2/Config.in +10 -0
@@ -139,6 +139,14 @@ config BR2_TARGET_GRUB2_X86_64_EFI endchoice +config BR2_TARGET_FULL_INSTALL + bool "full install on target" + help + Select this option to install grub on target rather than + generating images. + +if !BR2_TARGET_FULL_INSTALL + if BR2_TARGET_GRUB2_I386_PC config BR2_TARGET_GRUB2_BOOT_PARTITION
@@ -166,4 +174,6 @@ config BR2_TARGET_GRUB2_BUILTIN_CONFIG device and other configuration parameters, but however menu entries cannot be described in this embedded configuration. +endif + endif # BR2_TARGET_GRUB2
boot/grub2/grub2.mk +24 -10
@@ -46,6 +46,17 @@ endif # bootloader itself; none of these are used to build the native # tools. +GRUB2_CONF_OPTS = \ + --target=$(GRUB2_TARGET) \ + --with-platform=$(GRUB2_PLATFORM) \ + --disable-grub-mkfont \ + --enable-efiemu=no \ + ac_cv_lib_lzma_lzma_code=no \ + --enable-device-mapper=no \ + --enable-libzfs=no \ + --disable-werror + +ifneq ($(BR2_TARGET_FULL_INSTALL),y) GRUB2_CONF_ENV = \ $(HOST_CONFIGURE_OPTS) \ CPP="$(HOSTCC) -E" \
@@ -57,16 +68,6 @@ GRUB2_CONF_ENV = \ OBJCOPY="$(TARGET_OBJCOPY)" \ STRIP="$(TARGET_STRIP)" -GRUB2_CONF_OPTS = \ - --target=$(GRUB2_TARGET) \ - --with-platform=$(GRUB2_PLATFORM) \ - --disable-grub-mkfont \ - --enable-efiemu=no \ - ac_cv_lib_lzma_lzma_code=no \ - --enable-device-mapper=no \ - --enable-libzfs=no \ - --disable-werror - # We don't want all the native tools and Grub2 modules to be installed # in the target. So we in fact install everything into the host # directory, and the image generation process (below) will use the
@@ -104,4 +105,17 @@ endef GRUB2_POST_INSTALL_TARGET_HOOKS += GRUB2_EFI_STARTUP_NSH endif +else +GRUB2_CONF_ENV = \ + $(TARGET_CONFIGURE_OPTS) \ + CPP="$(TARGET_CC) -E" \ + TARGET_CC="$(TARGET_CC)" \ + TARGET_CFLAGS="$(TARGET_CFLAGS)" \ + TARGET_CPPFLAGS="$(TARGET_CPPFLAGS)" \ + TARGET_LDFLAGS="$(TARGET_LDFLAGS)" \ + NM="$(TARGET_NM)" \ + OBJCOPY="$(TARGET_OBJCOPY)" \ + STRIP="$(TARGET_STRIP)" +endif + $(eval $(autotools-package))
Signature · 1 line
2.8.2
Quoted 9 lines · Gilles Chanteperdrix
Hi,
as advised in the answers to the "reproducible build" patches, I have separated the patches that could be submitted upstream and are not really related to reproducible builds. The patches follow this e-mail.
They are also available as a git branch here:
https://git.click-hack.org/buildroot.git/log/?h=for-upstream
Sorry, two patches are broken. Trying again.
Signature · 2 lines
Gilles. https://click-hack.org
PATCH 1/5 wireshark: remove documentation
Remove html and txt documentation from the rootfs as they unlikely to be needed.
--- package/wireshark/wireshark.mk | 6 ++++++ 1 file changed, 6 insertions(+)
package/wireshark/wireshark.mk +6 -0
@@ -99,4 +99,10 @@ else WIRESHARK_CONF_OPTS += --with-sbc=no endif +define WIRESHARK_REMOVE_DOCS + find $(TARGET_DIR)/usr/share/wireshark -\( -name '*.txt' -o -name '*.html' -\) -delete +endef + +WIRESHARK_POST_INSTALL_TARGET_HOOKS += WIRESHARK_REMOVE_DOCS + $(eval $(autotools-package))
Signature · 1 line
2.8.2
PATCH 2/5 readline: fix installed libraries permission
In order to avoid strip failing to strip the library.
--- package/readline/0009-avoid-strip-perm-issue.patch | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 package/readline/0009-avoid-strip-perm-issue.patch
package/readline/0009-avoid-strip-perm-issue.patch new file +14 -0
@@ -0,0 +1,14 @@ +Avoid libreadline to be installed read-only, as it makes stripping fail. + +Signed-off-by: Gilles Chanteperdrix <[email protected]> +--- readline-6.3/support/shlib-install~ 2012-07-10 21:58:08.000000000 +0200 ++++ readline-6.3/support/shlib-install 2016-02-27 01:19:09.878310797 +0100 +@@ -73,7 +73,7 @@ fi + case "$host_os" in + hpux*|darwin*|macosx*|linux*|solaris2*) + if [ -z "$uninstall" ]; then +- chmod 555 ${INSTALLDIR}/${LIBNAME} ++ chmod 755 ${INSTALLDIR}/${LIBNAME} + fi ;; + cygwin*|mingw*) + IMPLIBNAME=`echo ${LIBNAME} \
Signature · 1 line
2.8.2
PATCH 2/5 readline: fix installed libraries permission
Gilles, All,
On 2016-06-14 17:11 +0200, Gilles Chanteperdrix spake thusly:
Quoted 1 line
In order to avoid strip failing to strip the library.
I just tried to build readline, and the two libraries that are installed are already 755:
-rwxr-xr-x 1 ymorin ymorin 33K Jun 14 21:59 target/usr/lib/libhistory.so.6.3*
-rwxr-xr-x 1 ymorin ymorin 261K Jun 14 21:59 target/usr/lib/libreadline.so.6.3*And after some inspection, we already fix that in our readline.mk:
# libraries get installed read only, so strip fails
define READLINE_INSTALL_FIXUPS_SHARED
chmod +w $(addprefix $(TARGET_DIR)/usr/lib/,libhistory.so.* libreadline.so.*)
endef
READLINE_POST_INSTALL_TARGET_HOOKS += READLINE_INSTALL_FIXUPS_SHAREDRegards,
Yann E. MORIN.
Quoted 33 lines
Signed-off-by Gilles Chanteperdrix <[email protected]>--- package/readline/0009-avoid-strip-perm-issue.patch | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 package/readline/0009-avoid-strip-perm-issue.patchpackage/readline/0009-avoid-strip-perm-issue.patch new file +14
-0@@ -0,0 +1,14 @@ +Avoid libreadline to be installed read-only, as it makes stripping fail. + +Signed-off-by: Gilles Chanteperdrix <[email protected]> +--- readline-6.3/support/shlib-install~ 2012-07-10 21:58:08.000000000 +0200 ++++ readline-6.3/support/shlib-install 2016-02-27 01:19:09.878310797 +0100 +@@ -73,7 +73,7 @@ fi + case "$host_os" in + hpux*|darwin*|macosx*|linux*|solaris2*) + if [ -z "$uninstall" ]; then +- chmod 555 ${INSTALLDIR}/${LIBNAME} ++ chmod 755 ${INSTALLDIR}/${LIBNAME} + fi ;; + cygwin*|mingw*) + IMPLIBNAME=`echo ${LIBNAME} \Signature · 6 lines
2.8.2 _______________________________________________ buildroot mailing list buildroot at busybox.net http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'
PATCH 2/5 readline: fix installed libraries permission
In reply to Gilles ChanteperdrixQuoted 4 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Gilles" == Gilles Chanteperdrix <[email protected]> writes:
In order to avoid strip failing to strip the library.
Signed-off-by Gilles Chanteperdrix <[email protected]>
Thanks, but we already have logic in readline.mk to fix this:
ifneq ($(BR2_STATIC_LIBS),y)
# libraries get installed read only, so strip fails define READLINE_INSTALL_FIXUPS_SHARED chmod +w $(addprefix $(TARGET_DIR)/usr/lib/,libhistory.so.* libreadline.so.*) endef READLINE_POST_INSTALL_TARGET_HOOKS += READLINE_INSTALL_FIXUPS_SHARED endif
So why this patch instead? It would be good if we could get rid of both, have you tried sending it upstream?
Signature · 1 line
Bye, Peter Korsgaard
PATCH 2/5 readline: fix installed libraries permission
Quoted 6 lines · Peter Korsgaard
Quoted 4 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Gilles" == Gilles Chanteperdrix <[email protected]> writes:
In order to avoid strip failing to strip the library.
Signed-off-by Gilles Chanteperdrix <[email protected]>Thanks, but we already have logic in readline.mk to fix this:
Ok, I guess I made the original patch before you included that patch in readline.mk.
Quoted 11 lines
ifneq ($(BR2_STATIC_LIBS),y)
# libraries get installed read only, so strip fails define READLINE_INSTALL_FIXUPS_SHARED chmod +w $(addprefix $(TARGET_DIR)/usr/lib/,libhistory.so.* libreadline.so.*) endef READLINE_POST_INSTALL_TARGET_HOOKS += READLINE_INSTALL_FIXUPS_SHARED endifSo why this patch instead? It would be good if we could get rid of both, have you tried sending it upstream?
No, and I will not.
Signature · 2 lines
Gilles. https://click-hack.org
PATCH 2/5 readline: fix installed libraries permission
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Gilles" == Gilles Chanteperdrix <[email protected]> writes:
Hi,
Quoted 10 lines · Peter Korsgaard
Quoted 6 lines
Quoted 4 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Gilles" == Gilles Chanteperdrix <[email protected]> writes:
In order to avoid strip failing to strip the library.
Signed-off-by Gilles Chanteperdrix <[email protected]>Thanks, but we already have logic in readline.mk to fix this:
Ok, I guess I made the original patch before you included that patch in readline.mk.
This patch was added in January. Please base your patches on recent versions to ensure they still apply / are needed.
Quoted 4 lines
Quoted 2 lines
So why this patch instead? It would be good if we could get rid of both, have you tried sending it upstream?
No, and I will not.
:/
Signature · 2 lines
Venlig hilsen, Peter Korsgaard
PATCH 2/5 readline: fix installed libraries permission
Quoted 10 lines · Peter Korsgaard
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Gilles" == Gilles Chanteperdrix <[email protected]> writes:
Hi,
Quoted 6 lines · Peter Korsgaard
Quoted 5 lines
Quoted 4 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Gilles" == Gilles Chanteperdrix <[email protected]> writes:
In order to avoid strip failing to strip the library.
Signed-off-by Gilles Chanteperdrix <[email protected]>
Quoted 7 lines
Quoted 4 lines
Quoted 1 line
Thanks, but we already have logic in readline.mk to fix this:
Ok, I guess I made the original patch before you included that patch in readline.mk.
This patch was added in January. Please base your patches on recent versions to ensure they still apply / are needed.
I worked on these issues starting from the latest release at the time which was 2015.11.1. I of course rebased the patch on master (exactly commit 00bd9daf0e75f76c2d15196feb9c7f608668430e, as you can see using the URL I posted) but I simply missed the fact that readline.mk had been modified, because the patch applied cleanly.
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
So why this patch instead? It would be good if we could get rid of both, have you tried sending it upstream?
No, and I will not.
:/
Well, anyone else can submit it if he is interested. You can even remove my name and put yours instead, I do not care.
Signature · 2 lines
Gilles. https://click-hack.org
PATCH 3/5 pkg-download: allow ssh URLs
In reply to Gilles ChanteperdrixUse git when such an URL is met.
--- package/pkg-download.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
package/pkg-download.mk +1 -1
@@ -225,7 +225,7 @@ define DOWNLOAD_INNER fi ; \ if test -n "$(1)" ; then \ case "$($(PKG)_SITE_METHOD)" in \ - git) $($(3)_GIT) && exit ;; \ + git|ssh) $($(3)_GIT) && exit ;; \ svn) $($(3)_SVN) && exit ;; \ cvs) $($(3)_CVS) && exit ;; \ bzr) $($(3)_BZR) && exit ;; \
Signature · 1 line
2.8.2
PATCH 3/5 pkg-download: allow ssh URLs
Hello,
package/pkg-download.mk define DOWNLOAD_INNER · line 228
Quoted 10 lines · Gilles Chanteperdrix
package/pkg-download.mk +1
-1@@ -225,7 +225,7 @@ define DOWNLOAD_INNER fi ; \ if test -n "$(1)" ; then \ case "$($(PKG)_SITE_METHOD)" in \ - git) $($(3)_GIT) && exit ;; \ + git|ssh) $($(3)_GIT) && exit ;; \
There has already been a question from Yann on a previous iteration of this patch, which hasn't been answered:
"""
What about Hg URLs that can also start with 'ssh://' ? """
Indeed, I don't see why a ssh:// URL should necessarily reference a Git repository. And there's no explanation about this decision in the commit log.
Thanks,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH 3/5 pkg-download: allow ssh URLs
Quoted 18 lines · Thomas Petazzoni
Hello,
package/pkg-download.mk define DOWNLOAD_INNER · line 228
Quoted 10 lines · Gilles Chanteperdrix
package/pkg-download.mk +1
-1@@ -225,7 +225,7 @@ define DOWNLOAD_INNER fi ; \ if test -n "$(1)" ; then \ case "$($(PKG)_SITE_METHOD)" in \ - git) $($(3)_GIT) && exit ;; \ + git|ssh) $($(3)_GIT) && exit ;; \There has already been a question from Yann on a previous iteration of this patch, which hasn't been answered:
Quoted 7 lines
"""
What about Hg URLs that can also start with 'ssh://' ? """Indeed, I don't see why a ssh:// URL should necessarily reference a Git repository. And there's no explanation about this decision in the commit log.
See the discussion here:
http://lists.busybox.net/pipermail/buildroot/2016-May/160670.html
Signature · 2 lines
Gilles. https://click-hack.org
PATCH 3/5 pkg-download: allow ssh URLs
Hello,
Quoted 10 lines · Gilles Chanteperdrix
Quoted 7 lines
"""
What about Hg URLs that can also start with 'ssh://' ? """Indeed, I don't see why a ssh:// URL should necessarily reference a Git repository. And there's no explanation about this decision in the commit log.
See the discussion here:
http://lists.busybox.net/pipermail/buildroot/2016-May/160670.html
I might be missing something, but I don't see anything in this discussion that gives a justification as to why ssh:// in Buildroot should always mean "git over ssh" and not potentially "mercurial over ssh" or "subversion over ssh".
Thanks,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH 4/5 grub2: really disable liblzma
In reply to Gilles Chanteperdrix--- boot/grub2/grub2.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
boot/grub2/grub2.mk +1 -1
@@ -62,7 +62,7 @@ GRUB2_CONF_OPTS = \ --with-platform=$(GRUB2_PLATFORM) \ --disable-grub-mkfont \ --enable-efiemu=no \ - --enable-liblzma=no \ + ac_cv_lib_lzma_lzma_code=no \ --enable-device-mapper=no \ --enable-libzfs=no \ --disable-werror
Signature · 1 line
2.8.2
PATCH 4/5 grub2: really disable liblzma
Gilles, All,
Replying to the correct version now. Next time, can you set the version of the series when sending, please? See:
https://buildroot.org/downloads/manual/manual.html#_patch_revision_changelog
On 2016-06-14 17:11 +0200, Gilles Chanteperdrix spake thusly:
Quoted 10 lines
Signed-off-by Gilles Chanteperdrix <[email protected]>--- boot/grub2/grub2.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)boot/grub2/grub2.mk +0
-0
boot/grub2/grub2.mk GRUB2_CONF_OPTS = \ · line 65
Quoted 5 lines
boot/grub2/grub2.mk +1
-1@@ -62,7 +62,7 @@ GRUB2_CONF_OPTS = \ --with-platform=$(GRUB2_PLATFORM) \ --disable-grub-mkfont \ --enable-efiemu=no \ - --enable-liblzma=no \ + ac_cv_lib_lzma_lzma_code=no \
It would have been nice to say that --enale-liblzma is not a supported option to grub2's configure.
Regards,
Yann E. MORIN.
Quoted 10 lines
boot/grub2/grub2.mk +0
-0--enable-device-mapper=no \ --enable-libzfs=no \ --disable-werrorSignature · 6 lines
2.8.2 _______________________________________________ buildroot mailing list buildroot at busybox.net http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'
PATCH 4/5 grub2: really disable liblzma
In reply to Gilles ChanteperdrixHello,
Quoted 4 lines · Gilles Chanteperdrix
Signed-off-by Gilles Chanteperdrix <[email protected]>--- boot/grub2/grub2.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
I've applied to master, after extending a bit the commit log, as suggested by Yann E. Morin.
Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH 5/5 grub2: allow full install (for installer images)
In reply to Gilles ChanteperdrixCompile grub2 with the target toolchain in the "full install" case, so that the generated binaries do not depend on the host toolchain used.
--- boot/grub2/Config.in | 10 ++++++++++ boot/grub2/grub2.mk | 34 ++++++++++++++++++++++++---------- 2 files changed, 34 insertions(+), 10 deletions(-)
boot/grub2/Config.in +10 -0
@@ -139,6 +139,14 @@ config BR2_TARGET_GRUB2_X86_64_EFI endchoice +config BR2_TARGET_FULL_INSTALL + bool "full install on target" + help + Select this option to install grub on target rather than + generating images. + +if !BR2_TARGET_FULL_INSTALL + if BR2_TARGET_GRUB2_I386_PC config BR2_TARGET_GRUB2_BOOT_PARTITION
@@ -166,4 +174,6 @@ config BR2_TARGET_GRUB2_BUILTIN_CONFIG device and other configuration parameters, but however menu entries cannot be described in this embedded configuration. +endif + endif # BR2_TARGET_GRUB2
boot/grub2/grub2.mk +24 -10
@@ -46,6 +46,17 @@ endif # bootloader itself; none of these are used to build the native # tools. +GRUB2_CONF_OPTS = \ + --target=$(GRUB2_TARGET) \ + --with-platform=$(GRUB2_PLATFORM) \ + --disable-grub-mkfont \ + --enable-efiemu=no \ + ac_cv_lib_lzma_lzma_code=no \ + --enable-device-mapper=no \ + --enable-libzfs=no \ + --disable-werror + +ifneq ($(BR2_TARGET_FULL_INSTALL),y) GRUB2_CONF_ENV = \ $(HOST_CONFIGURE_OPTS) \ CPP="$(HOSTCC) -E" \
@@ -57,16 +68,6 @@ GRUB2_CONF_ENV = \ OBJCOPY="$(TARGET_OBJCOPY)" \ STRIP="$(TARGET_STRIP)" -GRUB2_CONF_OPTS = \ - --target=$(GRUB2_TARGET) \ - --with-platform=$(GRUB2_PLATFORM) \ - --disable-grub-mkfont \ - --enable-efiemu=no \ - ac_cv_lib_lzma_lzma_code=no \ - --enable-device-mapper=no \ - --enable-libzfs=no \ - --disable-werror - # We don't want all the native tools and Grub2 modules to be installed # in the target. So we in fact install everything into the host # directory, and the image generation process (below) will use the
@@ -104,4 +105,17 @@ endef GRUB2_POST_INSTALL_TARGET_HOOKS += GRUB2_EFI_STARTUP_NSH endif +else +GRUB2_CONF_ENV = \ + $(TARGET_CONFIGURE_OPTS) \ + CPP="$(TARGET_CC) -E" \ + TARGET_CC="$(TARGET_CC)" \ + TARGET_CFLAGS="$(TARGET_CFLAGS)" \ + TARGET_CPPFLAGS="$(TARGET_CPPFLAGS)" \ + TARGET_LDFLAGS="$(TARGET_LDFLAGS)" \ + NM="$(TARGET_NM)" \ + OBJCOPY="$(TARGET_OBJCOPY)" \ + STRIP="$(TARGET_STRIP)" +endif + $(eval $(autotools-package))
Signature · 1 line
2.8.2
PATCH 1/5 wireshark: remove documentation
In reply to Gilles ChanteperdrixGilles, All,
On 2016-06-14 17:11 +0200, Gilles Chanteperdrix spake thusly:
Quoted 13 lines
Remove html and txt documentation from the rootfs as they unlikely to be needed.
Signed-off-by Gilles Chanteperdrix <[email protected]>--- package/wireshark/wireshark.mk | 6 ++++++ 1 file changed, 6 insertions(+)package/wireshark/wireshark.mk +0
-0
package/wireshark/wireshark.mk else · line 103
Quoted 5 lines
package/wireshark/wireshark.mk +2
-0@@ -99,4 +99,10 @@ else WIRESHARK_CONF_OPTS += --with-sbc=no endif +define WIRESHARK_REMOVE_DOCS + find $(TARGET_DIR)/usr/share/wireshark -\( -name '*.txt' -o -name '*.html' -\) -delete
My busybox' find does not like:
- '-(' ')-' : it is not POSIX, is not even talked about in the find manpage. It's a GNUism.
- -delete : it is disabled in our default busybox configuration
Regards,
Yann E. MORIN.
Quoted 12 lines
package/wireshark/wireshark.mk +4
-0+endef + +WIRESHARK_POST_INSTALL_TARGET_HOOKS += WIRESHARK_REMOVE_DOCS + $(eval $(autotools-package))Signature · 6 lines
2.8.2 _______________________________________________ buildroot mailing list buildroot at busybox.net http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'
PATCH 1/5 wireshark: remove documentation
Gilles, All,
On 2016-06-14 21:33 +0200, Yann E. MORIN spake thusly:
Quoted 22 lines
On 2016-06-14 17:11 +0200, Gilles Chanteperdrix spake thusly:
Quoted 13 lines
Remove html and txt documentation from the rootfs as they unlikely to be needed.
Signed-off-by Gilles Chanteperdrix <[email protected]>--- package/wireshark/wireshark.mk | 6 ++++++ 1 file changed, 6 insertions(+)package/wireshark/wireshark.mk +0
-0package/wireshark/wireshark.mk else · line 103
Quoted 5 lines
package/wireshark/wireshark.mk +2
-0@@ -99,4 +99,10 @@ else WIRESHARK_CONF_OPTS += --with-sbc=no endif +define WIRESHARK_REMOVE_DOCS + find $(TARGET_DIR)/usr/share/wireshark -\( -name '*.txt' -o -name '*.html' -\) -deleteMy busybox' find does not like:
Quoted 4 lines
- '-(' ')-' : it is not POSIX, is not even talked about in the find manpage. It's a GNUism.
- -delete : it is disabled in our default busybox configuration
Grr.. Forget it; this is done at build-time...
Sorry for the noise (I should not do two things in parallel in two terminals)...
Regards,
Yann E. MORIN.
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'
PATCH 1/5 wireshark: remove documentation
In reply to Yann E. MORINQuoted 25 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Yann" == Yann E MORIN <[email protected]> writes:
Gilles, All,
On 2016-06-14 17:11 +0200, Gilles Chanteperdrix spake thusly:Quoted 16 lines
Remove html and txt documentation from the rootfs as they unlikely to be needed.
Signed-off-by Gilles Chanteperdrix <[email protected]>---
package/wireshark/wireshark.mk| 6 ++++++1 file changed, 6 insertions(+)package/wireshark/wireshark.mk +0
-0@@ -99,4 +99,10 @@ else
WIRESHARK_CONF_OPTS+= --with-sbc=no
endifpackage/wireshark/wireshark.mk else · line 103
Quoted 2 lines
package/wireshark/wireshark.mk +2
-0+define WIRESHARK_REMOVE_DOCS + find $(TARGET_DIR)/usr/share/wireshark -\( -name '*.txt' -o -name '*.html' -\) -deleteMy busybox' find does not like:
Quoted 4 lines
- '-(' ')-' : it is not POSIX, is not even talked about in the find manpage. It's a GNUism.
- -delete : it is disabled in our default busybox configuration
I agree to stick to posix where possible / sensible, but Are you really *building* on a busybox based system?
Signature · 1 line
Bye, Peter Korsgaard
PATCH 1/5 wireshark: remove documentation
In reply to Yann E. MORINQuoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Yann" == Yann E MORIN <[email protected]> writes:
Hi,
Quoted 9 lines
package/wireshark/wireshark.mk else · line 103
Quoted 2 lines
package/wireshark/wireshark.mk +2
-0+define WIRESHARK_REMOVE_DOCS + find $(TARGET_DIR)/usr/share/wireshark -\( -name '*.txt' -o -name '*.html' -\) -deleteMy busybox' find does not like:
- '-(' ')-' : it is not POSIX, is not even talked about in the find manpage. It's a GNUism.
- -delete : it is disabled in our default busybox configuration
With that said, I've changed it to use xargs:
find $(TARGET_DIR)/usr/share/wireshark -name '*.txt' -o '*.html' -print0 \
| xargs -0 rm -f
Signature · 1 line
Bye, Peter Korsgaard
PATCH 1/5 wireshark: remove documentation
Quoted 6 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Peter" == Peter Korsgaard <[email protected]> writes:
With that said, I've changed it to use xargs:
find $(TARGET_DIR)/usr/share/wireshark -name '*.txt' -o '*.html' -print0 \
| xargs -0 rm -f
Ups, I missed a -print0 after -name '*.txt'.
Signature · 1 line
Bye, Peter Korsgaard
PATCH 1/5 wireshark: remove documentation
In reply to Gilles ChanteperdrixGilles, All,
On 2016-06-14 17:11 +0200, Gilles Chanteperdrix spake thusly:
Quoted 13 lines
Remove html and txt documentation from the rootfs as they unlikely to be needed.
Signed-off-by Gilles Chanteperdrix <[email protected]>--- package/wireshark/wireshark.mk | 6 ++++++ 1 file changed, 6 insertions(+)package/wireshark/wireshark.mk +0
-0
package/wireshark/wireshark.mk else · line 103
Quoted 5 lines
package/wireshark/wireshark.mk +2
-0@@ -99,4 +99,10 @@ else WIRESHARK_CONF_OPTS += --with-sbc=no endif +define WIRESHARK_REMOVE_DOCS + find $(TARGET_DIR)/usr/share/wireshark -\( -name '*.txt' -o -name '*.html' -\) -delete
The slight change that I'd suggest (not request!) is to not add a dash in front of the commas, since it is not even talked about in find's manpage.
Otherwise:
Regards,
Yann E. MORIN.
Quoted 12 lines
package/wireshark/wireshark.mk +4
-0+endef + +WIRESHARK_POST_INSTALL_TARGET_HOOKS += WIRESHARK_REMOVE_DOCS + $(eval $(autotools-package))Signature · 6 lines
2.8.2 _______________________________________________ buildroot mailing list buildroot at busybox.net http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'
PATCH 1/5 wireshark: remove documentation
In reply to Gilles ChanteperdrixQuoted 6 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Gilles" == Gilles Chanteperdrix <[email protected]> writes:
Remove html and txt documentation from the rootfs as they unlikely to be needed.
Signed-off-by Gilles Chanteperdrix <[email protected]>
Committed, thanks.
usr/share/wireshark still contains >5MB of files, mainly xml and similar text files. Do you know if these are all needed?
Signature · 1 line
Bye, Peter Korsgaard
PATCH 1/5 wireshark: remove documentation
Quoted 11 lines · Peter Korsgaard
Quoted 6 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Gilles" == Gilles Chanteperdrix <[email protected]> writes:
Remove html and txt documentation from the rootfs as they unlikely to be needed.
Signed-off-by Gilles Chanteperdrix <[email protected]>Committed, thanks.
usr/share/wiresharkstill contains >5MB of files, mainly xml and similar text files. Do you know if these are all needed?
No, no idea. The only problem I had was that the html documentation made a non reproducible build.
Signature · 2 lines
Gilles. https://click-hack.org