iputils: Bump to version s20190324
RFC PATCH 1/1 iputils: Bump to version s20190324
Upstream changed build system to Meson.
Removed patch included in this release.
---
Hi,
I'm trying to update iputils for Buildroot to newest version s20190324, which changed build system to Meson. I cannot figure out which compiler option is missing / wrong, or which dependency is missing or which buildroot config is missing wrong. Any tip / idea?
Kind regards,
Petr
Quoted 1 line
Quoted 1 line
Quoted 1 line
iputils s20190324 Configuring
rm -rf /opt/buildroot/output/build/iputils-s20190324//build
mkdir -p /opt/buildroot/output/build/iputils-s20190324//build
sed -e "s%@TARGET_CROSS@%/opt/buildroot/output/host/bin/arm-linux-%g" -e "s%@TARGET_ARCH@%arm%g" -e "s%@TARGET_CPU@%arm926ej-s%g" -e "s%@TARGET_ENDIAN@%"little"%g" -e "s%@TARGET_CFLAGS@%printf '"%s", ' -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os %g" -e "s%@TARGET_LDFLAGS@%%g" -e "s%@TARGET_CXXFLAGS@%printf '"%s", ' -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os %g" -e "s%@HOST_DIR@%/opt/buildroot/output/host%g" package/meson/cross-compilation.conf.in > /opt/buildroot/output/build/iputils-s20190324//build/cross-compilation.conf The Meson build system
Version: 0.50.1
Source dir: /opt/buildroot/output/build/iputils-s20190324
Build dir: /opt/buildroot/output/build/iputils-s20190324/build
Build type: cross build
Project name: iputils
Project version: s20190324
Native C compiler: ccache cc (gcc 8.3.1 "cc (SUSE Linux) 8.3.1 20190226 [gcc-8-branch revision 269204]")
RFC PATCH 1/1 iputils: Bump to version s20190324
Hello Petr,
Quoted 4 lines · On Mon, 6 May 2019 01:29:23 +0200 Petr Vorel <[email protected]> wrote:
I'm trying to update iputils for Buildroot to newest version s20190324, which changed build system to Meson. I cannot figure out which compiler option is missing / wrong, or which dependency is missing or which buildroot config is missing wrong. Any tip / idea?
ping6_common.c lacks:
#include <stddef.h>
once added, it builds fine. The installation then fails because:
define IPUTILS_INSTALL_TARGET_CMDS
$(INSTALL) -D -m 755 $(@D)/arping $(TARGET_DIR)/sbin/arping
$(INSTALL) -D -m 755 $(@D)/clockdiff $(TARGET_DIR)/bin/clockdiff
$(INSTALL) -D -m 755 $(@D)/ping $(TARGET_DIR)/bin/ping
$(INSTALL) -D -m 755 $(@D)/rarpd $(TARGET_DIR)/sbin/rarpd
$(INSTALL) -D -m 755 $(@D)/rdisc $(TARGET_DIR)/sbin/rdisc
$(INSTALL) -D -m 755 $(@D)/tftpd $(TARGET_DIR)/usr/sbin/in.tftpd
$(INSTALL) -D -m 755 $(@D)/tracepath $(TARGET_DIR)/bin/tracepath
$(INSTALL) -D -m 755 $(@D)/traceroute6 $(TARGET_DIR)/bin/traceroute6endef
is no longer correct, as binaries are now produced in $(@D)/build/. But probably we could use the standard installation procedure of the meson build system instead of having custom install commands ?
Best regards,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
A message that is not in the archive (sent off-list or not yet received): CAG27Bk2yCdpQAw5pEmZjwTs=WDn93Y7XUs0Yy7Wg9JAT+OmLkg@mail.gmail.com
RFC PATCH 1/1 iputils: Bump to version s20190324
Hi Thomas, Sami,
Quoted 10 lines
Quoted 5 lines
ping6_common.clacks:#include <
stddef.h>once added, it builds fine.
Hello,
The include is fixed in upstream commit:
https://github.com/iputils/iputils/commit/f65b38b9317e1298cfc5877b0eed7c7badbe597a
Thanks a lot both for info!
Quoted 14 lines
Maybe it would make sense to do next release sometime soon that takes care of couple issues there were in s20190324, ref:
* 25b552e (HEAD -> master, origin/master) build-sys/doc: make xsltproc required
* 784a67c build-sys: makesetcap-setuid.shrespect ${DESTDIR}
* d45a8c8 build-sys: allow disablingsetcap-setuid.shat install
* c3c04a9 ping: fix use-after-free
* f65b38bping6_common.c: includestddef.h
* 13c24bc arping: fix packets count
* f06ca70 build-sys: make rdisc.service a regular unit
* 0cd6217 tracepath: fix warning: '/*' within block comment [-Wcomment]
* c503834 doc: Use namespace correctly
* c9aca1b tracepath: fix musl build, again
* 991916b (tag: s20190324) release: iputils-s20190324
+1
Quoted 13 lines
Quoted 12 lines
The installation then fails because:
define
IPUTILS_INSTALL_TARGET_CMDS$(INSTALL) -D -m 755 $(@D)/arping $(TARGET_DIR)/sbin/arping $(INSTALL) -D -m 755 $(@D)/clockdiff $(TARGET_DIR)/bin/clockdiff $(INSTALL) -D -m 755 $(@D)/ping $(TARGET_DIR)/bin/ping $(INSTALL) -D -m 755 $(@D)/rarpd $(TARGET_DIR)/sbin/rarpd $(INSTALL) -D -m 755 $(@D)/rdisc $(TARGET_DIR)/sbin/rdisc $(INSTALL) -D -m 755 $(@D)/tftpd $(TARGET_DIR)/usr/sbin/in.tftpd $(INSTALL) -D -m 755 $(@D)/tracepath $(TARGET_DIR)/bin/tracepath $(INSTALL) -D -m 755 $(@D)/traceroute6 $(TARGET_DIR)/bin/traceroute6endef
Quoted 5 lines
Quoted 3 lines
is no longer correct, as binaries are now produced in $(@D)/build/. But probably we could use the standard installation procedure of the meson build system instead of having custom install commands ?
+1. Just let the build system do it's job.
I'll do. I didn't realise this was needed just for previous custom build system.
Kind regards,
Petr