From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/1] package/vnstat: fix build failure due to double install of programs
Date: Fri, 8 Nov 2019 22:28:26 +0100 [thread overview]
Message-ID: <20191108222826.14ea446c@windsurf> (raw)
In-Reply-To: <20191031121848.7914-1-fontaine.fabrice@gmail.com>
Hello Fabrice,
On Thu, 31 Oct 2019 13:18:48 +0100
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:
> Fixes:
> - http://autobuild.buildroot.org/results/3aefa8d63f710b71720fc114450110d2f885820b
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Why is this happening just 3 times? Is it a parallel build issue? Also,
when I build vnstat a first time, and then do "make vnstat-rebuild",
which reinstalls the same files at the same place, it doesn't fail. So
why does it fail in those situations ?
> +-install-data-hook: install-exec
> ++install-data-hook:
This solution is anyway not good, because it reverts upstream commit
3a76e18434fb033d8ac80955626fc8e2ca966cfa, which is necessary. Look at
the Makefile.am, in the native compilation case:
install-data-hook: install-exec
if [ -f $(DESTDIR)$(man1dir)/vnstatd.1 ]; then rm -f $(DESTDIR)$(man1dir)/vnstatd.1; fi
$(MKDIR_P) $(DESTDIR)$(sysconfdir)
if IS_CROSSCOMPILED
if [ ! -f $(DESTDIR)$(sysconfdir)/vnstat.conf ]; \
then cp -fv $(srcdir)/cfg/vnstat.conf $(DESTDIR)$(sysconfdir)/vnstat.conf; \
fi
else
$(DESTDIR)$(bindir)/vnstat$(EXEEXT) --showconfig >vnstat.conf.new
if [ -f $(DESTDIR)$(sysconfdir)/vnstat.conf ]; \
then cp -fv $(DESTDIR)$(sysconfdir)/vnstat.conf vnstat.conf.old; \
fi
cp -fv vnstat.conf.new $(DESTDIR)$(sysconfdir)/vnstat.conf
endif
It runs the vnstat program itself! So it has to make sure it has been
installed before running it. Of course, this could be changed to run
the vnstat from the build directory instead of from the installation
location.
But as it is, your patch breaks things for upstream. For the Buildroot
case, it works fine, but we want more details as to what the problem
is, and why it happens so infrequently.
Thanks,
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
prev parent reply other threads:[~2019-11-08 21:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-31 12:18 [Buildroot] [PATCH 1/1] package/vnstat: fix build failure due to double install of programs Fabrice Fontaine
2019-11-08 21:28 ` Thomas Petazzoni [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20191108222826.14ea446c@windsurf \
--to=thomas.petazzoni@bootlin.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox