From: Peter Korsgaard <jacmet@sunsite.dk>
To: buildroot@busybox.net
Subject: [Buildroot] [git commit] libcap: Add optional support for libattr capabilities
Date: Tue, 19 Mar 2013 16:12:22 +0100 [thread overview]
Message-ID: <87txo7v2y1.fsf@dell.be.48ers.dk> (raw)
In-Reply-To: <CAG2jQ8it65FVV8zQJ+mSUqMpSQ1LCQ=K8ojA71n83T=XigYnfg@mail.gmail.com> (Markos Chandras's message of "Tue, 19 Mar 2013 15:01:07 +0000")
>>>>> "Markos" == Markos Chandras <markos.chandras@gmail.com> writes:
Markos> On 19 March 2013 12:10, Peter Korsgaard <jacmet@sunsite.dk> wrote:
>> commit: http://git.buildroot.net/buildroot/commit/?id=1bf3d6f8cf3a2dca9ce1c6f3e68b077724f21db6
>> branch: http://git.buildroot.net/buildroot/commit/?id=refs/heads/master
>>
>> libcap can optionally link to libattr to support extra
>> file capabilities. Link to this library and pull it as
>> dependency if BR2_PACKAGE_ATTR is selected.
>>
>> [Peter: use LIBCAP_ prefix on variable]
>> Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
>> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
>> ---
>> package/libcap/libcap.mk | 18 +++++++++++++-----
>> 1 files changed, 13 insertions(+), 5 deletions(-)
>>
>> diff --git a/package/libcap/libcap.mk b/package/libcap/libcap.mk
>> index dcd3a18..6adac73 100644
>> --- a/package/libcap/libcap.mk
>> +++ b/package/libcap/libcap.mk
>> @@ -15,19 +15,27 @@ LIBCAP_LICENSE_FILES = License
>> LIBCAP_DEPENDENCIES = host-libcap
>> LIBCAP_INSTALL_STAGING = YES
>>
>> +ifeq ($(BR2_PACKAGE_ATTR),y)
>> + LIBCAP_DEPENDENCIES += attr
>> + LIBCAP_HAVE_LIBATTR = yes
>> +else
>> + LIBCAP_HAVE_LIBATTR = no
>> +endif
>> +
>> define LIBCAP_BUILD_CMDS
>> $(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) \
>> - LIBATTR=no BUILD_CC="$(HOSTCC)" BUILD_CFLAGS="$(HOST_CFLAGS)"
>> + LIBATTR=$(LIBCAP_HAVE_LIBATTR) BUILD_CC="$(HOSTCC)" \
>> + BUILD_CFLAGS="$(HOST_CFLAGS)"
>> endef
>>
>> define LIBCAP_INSTALL_STAGING_CMDS
>> - $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) LIBATTR=no DESTDIR=$(STAGING_DIR) \
>> - prefix=/usr lib=lib install
>> + $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) LIBATTR=$(LIBCAP_HAVE_LIBATTR) \
>> + DESTDIR=$(STAGING_DIR) prefix=/usr lib=lib install
>> endef
>>
>> define LIBCAP_INSTALL_TARGET_CMDS
>> - $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) LIBATTR=no DESTDIR=$(TARGET_DIR) \
>> - prefix=/usr lib=lib install
>> + $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) LIBATTR=$(LIBCAP_HAVE_LIBATTR) \
>> + DESTDIR=$(TARGET_DIR) prefix=/usr lib=lib install
>> endef
>>
>> # progs use fork()
>> _______________________________________________
>> buildroot mailing list
>> buildroot at busybox.net
>> http://lists.busybox.net/mailman/listinfo/buildroot
Markos> Peter,
Markos> After this commit I am seeing this problem
Markos> Applying libcap-2.22-build-system.patch using patch:
Markos> patching file libcap/Makefile
Markos> patching file Make.Rules
Markos> make: *** No rule to make target `host-attr', needed by `host-libcap-depends'.
Markos> I am not sure what tirggers it. Any ideas? host-attr shouldn't be
Markos> needed as I removed that from LIBCAP_DEPENDENCIES
It's because HOST_LIBCAP_DEPENDENCIES defaults to the value of
LIBCAP_DEPENDENCIES, so you need to explicitly set it to the empty
string.
Didn't you see this problem with your version as well? As far as I can
see it isn't caused by my rename.
--
Bye, Peter Korsgaard
next prev parent reply other threads:[~2013-03-19 15:12 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-19 12:10 [Buildroot] [git commit] libcap: Add optional support for libattr capabilities Peter Korsgaard
2013-03-19 15:01 ` Markos Chandras
2013-03-19 15:12 ` Peter Korsgaard [this message]
2013-03-19 15:21 ` Markos Chandras
2013-03-19 15:44 ` Peter Korsgaard
2013-03-19 15:20 ` Markos Chandras
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=87txo7v2y1.fsf@dell.be.48ers.dk \
--to=jacmet@sunsite.dk \
--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