From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 4/5 v3] package/netifrc: new package
Date: Mon, 23 Sep 2019 23:13:42 +0200 [thread overview]
Message-ID: <20190923231342.17874f4b@windsurf> (raw)
In-Reply-To: <cc81a0e258bc330147ac3d1664dcc823649491eb.1564920849.git.yann.morin.1998@free.fr>
On Sun, 4 Aug 2019 14:14:18 +0200
"Yann E. MORIN" <yann.morin.1998@free.fr> wrote:
> +NETIFRC_VERSION = 0.6.1
> +NETIFRC_SITE = $(call github,gentoo,netifrc,$(NETIFRC_VERSION))
> +NETIFRC_LICENSE = BSD-2-Clause
> +NETIFRC_LICENSE_FILES = LICENSE
> +
> +NETIFRC_DEPENDENCIES = openrc
> +
> +# set LIBNAME so netifrc puts files in proper directories and sets proper
> +# paths in installed files. Since in buildroot /lib64 and /lib32 always
> +# points to /lib, it's safe to hardcode it to "lib"
> +NETIFRC_MAKE_OPTS = \
> + LIBNAME=lib \
> + LIBEXECDIR=/usr/libexec/netifrc
> +
> +define NETIFRC_BUILD_CMDS
> + $(MAKE) $(NETIFRC_MAKE_OPTS) -C $(@D)
> +endef
> +
> +ifeq ($(BR2_PACKAGE_HAS_UDEV),)
> +define NETIFRC_REMOVE_UDEV
> + $(RM) $(TARGET_DIR)/lib/udev/net.sh
> + $(RM) $(TARGET_DIR)/lib/udev/rules.d/90-network.rules
> + rmdir --ignore-fail-on-non-empty $(TARGET_DIR)/lib/udev/rules.d
> + rmdir --ignore-fail-on-non-empty $(TARGET_DIR)/lib/udev
This was failing, because netifrc installed its udev stuff
in /usr/lib/udev, because here it queried pkg-config (the host one) of
udevdir. So I've forced that to be /lib/udev by passing
UDEVDIR=/lib/udev in NETIFRC_MAKE_OPTS.
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
next prev parent reply other threads:[~2019-09-23 21:13 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-08-04 12:14 [Buildroot] [PATCH 0/5 v3] openrc: further itegration (branch yem/openrc) Yann E. MORIN
2019-08-04 12:14 ` [Buildroot] [PATCH 1/5 v3] package/skeleton-init-openrc: add support for starting sysv scripts Yann E. MORIN
2019-08-04 12:14 ` [Buildroot] [PATCH 2/5 v3] package/skeleton-init-openrc: add support to remount rootfs as rw Yann E. MORIN
2019-08-04 12:14 ` [Buildroot] [PATCH 3/5 v3] package/openrc: add support for spawning getty Yann E. MORIN
2019-08-04 12:14 ` [Buildroot] [PATCH 4/5 v3] package/netifrc: new package Yann E. MORIN
2019-09-23 21:13 ` Thomas Petazzoni [this message]
2019-08-04 12:14 ` [Buildroot] [PATCH 5/5 v3] package/netifrc: add support for BR2_SYSTEM_DHCP Yann E. MORIN
2019-09-23 21:12 ` [Buildroot] [PATCH 0/5 v3] openrc: further itegration (branch yem/openrc) Thomas Petazzoni
2019-09-24 8:21 ` michal.lyszczek at bofc.pl
2019-09-24 21:50 ` michal.lyszczek at bofc.pl
2019-09-25 7:18 ` Thomas Petazzoni
2019-09-25 8:13 ` michal.lyszczek at bofc.pl
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=20190923231342.17874f4b@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