[Buildroot] [PATCH 1/2] Add package acl

Daniel Mack zonque at gmail.com
Tue May 31 09:06:42 UTC 2011


On Mon, May 30, 2011 at 9:02 PM, Thomas Petazzoni
<thomas.petazzoni at free-electrons.com> wrote:
> On Mon, 30 May 2011 20:16:29 +0200
> Daniel Mack <zonque at gmail.com> wrote:
>
>> +define ACL_INSTALL_TARGET_CMDS
>> +     $(INSTALL) -m 0755 -D $(@D)/getfacl/.libs/getfacl $(TARGET_DIR)/usr/bin/
>> +     $(INSTALL) -m 0755 -D $(@D)/setfacl/.libs/setfacl $(TARGET_DIR)/usr/bin/
>> +     $(INSTALL) -m 0644 -D $(@D)/libacl/.libs/libacl.so* $(STAGING_DIR)/usr/lib/
>> +endef
>> +
>> +define ACL_INSTALL_STAGING_CMDS
>> +     test -d $(STAGING_DIR)/usr/include/acl/ || mkdir $(STAGING_DIR)/usr/include/acl/
>> +     $(INSTALL) -m 0644 -D $(@D)/include/*.h $(STAGING_DIR)/usr/include/acl/
>> +     $(SED) s,sys/acl.h,acl/acl.h, -i $(STAGING_DIR)/usr/include/acl/libacl.h
>> +endef
>
> Any reason to not use the default "make install" behaviour of the
> package ? (And ditto for the attr package).

The libtool crap failed for cross compilation in these cases, so these
workarounds are unfortunately necessary.

Daniel



More information about the buildroot mailing list