Skip to contentSkip to conversation

Add two more packages

Buildroot New Daniel Mack 4 participants 11 messages May 30, 2011 – Jun 28, 2011

lore
Share & tools
lore
#0 lore raw

I originally wanted to bring udev to a newer version, but appearantly, there's something broken with epoll in uclibc, so I postponed it.

However, I already added two packages which are dependencies to newer versions of udev, and I think they could be merged independently.

Daniel

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

#1 lore raw

PATCH 1/2 Add package acl

---
 package/Config.in     |    1 +
 package/acl/Config.in |    7 +++++++
 package/acl/acl.mk    |   27 +++++++++++++++++++++++++++
 3 files changed, 35 insertions(+), 0 deletions(-)
 create mode 100644 package/acl/Config.in
 create mode 100644 package/acl/acl.mk
package/Config.in +1 -0
index 40f523d..cefe90e 100644
@@ -483,6 +483,7 @@ source "package/xmlstarlet/Config.in"
 endmenu
 
 menu "System tools"
+source "package/acl/Config.in"
 if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
 source "package/bootutils/Config.in"
 endif
package/acl/Config.in new file +7 -0
new file mode 100644
index 0000000..0a07d1e
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_ACL
+	bool "ACL tools"
+	depends on BR2_PACKAGE_ATTR
+	help
+	  Commands for Manipulating POSIX Access Control Lists
+	  See http://savannah.nongnu.org/projects/acl
+
package/acl/acl.mk new file +27 -0
new file mode 100644
index 0000000..30faad1
@@ -0,0 +1,27 @@
+#############################################################
+#
+# acl
+#
+#############################################################
+ACL_VERSION = 2.2.51
+ACL_SOURCE = acl-$(ACL_VERSION).src.tar.gz
+ACL_SITE = http://mirror.its.uidaho.edu/pub/savannah/acl/
+ACL_LIBTOOL_PATCH = NO
+ACL_INSTALL_STAGING = YES
+ACL_INSTALL_TARGET = YES
+ACL_DEPENDENCIES = attr
+ACL_CONF_OPT = --enable-gettext=no
+
+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
+
+$(eval $(call AUTOTARGETS,package,acl))
Signature · 1 line
1.7.5.1
#2 lore raw

PATCH 1/2 Add package acl

I did send both of these packages in last year, but they never made it into git....

Signature · 3 lines
Regards
   Heiko Zuerker
   http://www.devil-linux.org
Quoted 89 lines

-----Original Message-----
From: buildroot-bounces at busybox.net [mailto:buildroot- bounces at busybox.net] On Behalf Of Daniel Mack
Sent: Monday, May 30, 2011 1:16 PM
To: buildroot at busybox.net
Subject: [Buildroot] [PATCH 1/2] Add package acl

---
 package/Config.in     |    1 +
 package/acl/Config.in |    7 +++++++
 package/acl/acl.mk    |   27 +++++++++++++++++++++++++++
 3 files changed, 35 insertions(+), 0 deletions(-)
 create mode 100644 package/acl/Config.in
 create mode 100644 package/acl/acl.mk
package/Config.in +1 -0
index 40f523d..cefe90e 100644
@@ -483,6 +483,7 @@ source "package/xmlstarlet/Config.in"
 endmenu
 
 menu "System tools"
+source "package/acl/Config.in"
 if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
 source "package/bootutils/Config.in"
 endif
package/acl/Config.in new file +7 -0
new file mode 100644
index 0000000..0a07d1e
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_ACL
+	bool "ACL tools"
+	depends on BR2_PACKAGE_ATTR
+	help
+	  Commands for Manipulating POSIX Access Control Lists
+	  See http://savannah.nongnu.org/projects/acl
+
package/acl/acl.mk new file +1 -0
new file mode 100644
index 0000000..30faad1
@@ -0,0 +1,27 @@
+#########################################################

####

package/acl/acl.mk new file +4 -0
+#
+# acl
+#
+#########################################################

####

package/acl/acl.mk new file +11 -0
+ACL_VERSION = 2.2.51
+ACL_SOURCE = acl-$(ACL_VERSION).src.tar.gz
+ACL_SITE = http://mirror.its.uidaho.edu/pub/savannah/acl/
+ACL_LIBTOOL_PATCH = NO
+ACL_INSTALL_STAGING = YES
+ACL_INSTALL_TARGET = YES
+ACL_DEPENDENCIES = attr
+ACL_CONF_OPT = --enable-gettext=no
+
+define ACL_INSTALL_TARGET_CMDS
+	$(INSTALL) -m 0755 -D $(@D)/getfacl/.libs/getfacl

$(TARGET_DIR)/usr/bin/

package/acl/acl.mk new file +1 -0
+	$(INSTALL) -m 0755 -D $(@D)/setfacl/.libs/setfacl

$(TARGET_DIR)/usr/bin/

package/acl/acl.mk new file +1 -0
+	$(INSTALL) -m 0644 -D $(@D)/libacl/.libs/libacl.so*

$(STAGING_DIR)/usr/lib/

package/acl/acl.mk new file +4 -0
+endef
+
+define ACL_INSTALL_STAGING_CMDS
+	test -d $(STAGING_DIR)/usr/include/acl/ || mkdir

$(STAGING_DIR)/usr/include/acl/

package/acl/acl.mk new file +1 -0
+	$(INSTALL) -m 0644 -D $(@D)/include/*.h

$(STAGING_DIR)/usr/include/acl/

package/acl/acl.mk new file +1 -0
+	$(SED) s,sys/acl.h,acl/acl.h, -i

$(STAGING_DIR)/usr/include/acl/libacl.h

package/acl/acl.mk new file +3 -1
+endef
+
+$(eval $(call AUTOTARGETS,package,acl))
--

1.7.5.1

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

#3 lore raw

PATCH 1/2 Add package acl

In reply to Daniel Mack

package/acl/acl.mk line 25

Quoted 11 lines · On Mon, 30 May 2011 20:16:29 +0200 Daniel Mack <[email protected]> wrote:
package/acl/acl.mk new file +11 -0
+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).

Regards,

Thomas

Signature · 4 lines
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
#4 lore raw

PATCH 1/2 Add package acl

Quoted 17 lines · Thomas Petazzoni

Review

Quoted 11 lines · On Mon, 30 May 2011 20:16:29 +0200 Daniel Mack <[email protected]> wrote:
(quoted diff) +11 -0
+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

#5 lore raw

PATCH 1/2 Add package acl

Quoting Daniel Mack <[email protected]>:

Quoted 26 lines
Quoted 15 lines · Thomas Petazzoni
Quoted 12 lines · On Mon, 30 May 2011 20:16:29 +0200 Daniel Mack <[email protected]> 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/

package/acl/acl.mk new file +4 -0
+endef
+
+define ACL_INSTALL_STAGING_CMDS
+ ? ? test -d $(STAGING_DIR)/usr/include/acl/ || mkdir  

$(STAGING_DIR)/usr/include/acl/

Quoted 8 lines
Quoted 5 lines

+ ? ? $(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).

Quoted 2 lines

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

Actually this isn't necessary, please see my version of the patches.

Signature · 3 lines
Regards
   Heiko Zuerker
   http://www.devil-linux.org
#6 lore raw

PATCH 1/2 Add package acl

Quoted 7 lines · Heiko Zuerker
Quoted 5 lines
Quoted 2 lines

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.

Actually this isn't necessary, please see my version of the patches.

Hmm, ok. Let's bring your patches mainline then, and I'll test again later.

Thanks,
Daniel

#7 lore raw

PATCH 1/2 Add package acl

In reply to Heiko Zuerker

Am 31.05.2011 14:47, schrieb Heiko Zuerker:

Quoted 23 lines

Quoting Daniel Mack <[email protected]>:

Quoted 20 lines
Quoted 17 lines · Thomas Petazzoni

package/acl/acl.mk line 25

Quoted 11 lines · On Mon, 30 May 2011 20:16:29 +0200 Daniel Mack <[email protected]> wrote:
package/acl/acl.mk new file +11 -0
+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).

Quoted 5 lines
Quoted 2 lines

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

Actually this isn't necessary, please see my version of the patches.

Any update on this issue?

#8 lore raw

PATCH 1/2 Add package acl

Quoting Yegor Yefremov <[email protected]>:

Quoted 30 lines

Am 31.05.2011 14:47, schrieb Heiko Zuerker:

Quoted 29 lines

Quoting Daniel Mack <[email protected]>:

Quoted 26 lines
Quoted 23 lines · Thomas Petazzoni
Quoted 11 lines · On Mon, 30 May 2011 20:16:29 +0200 Daniel Mack <[email protected]> wrote:
(quoted diff) +2 -0
+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/

package/acl/acl.mk new file +4 -0
+endef
+
+define ACL_INSTALL_STAGING_CMDS
+     test -d $(STAGING_DIR)/usr/include/acl/ || mkdir  
Quoted 6 lines

$(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).

Quoted 7 lines
Quoted 5 lines
Quoted 2 lines

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

Actually this isn't necessary, please see my version of the patches.

Any update on this issue?

I don't believe that either version of the package has been added.

Signature · 3 lines
Regards
   Heiko Zuerker
   http://www.devil-linux.org
#9 lore raw

PATCH 1/2 Add package acl

Am 21.06.2011 19:40, schrieb Heiko Zuerker:

Quoted 30 lines

Quoting Yegor Yefremov <[email protected]>:

Quoted 27 lines

Am 31.05.2011 14:47, schrieb Heiko Zuerker:

Quoted 26 lines

Quoting Daniel Mack <[email protected]>:

Quoted 22 lines
Quoted 17 lines · Thomas Petazzoni

package/acl/acl.mk line 25

Quoted 11 lines · On Mon, 30 May 2011 20:16:29 +0200 Daniel Mack <[email protected]> wrote:
package/acl/acl.mk new file +11 -0
+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.

Quoted 6 lines
Quoted 4 lines
Quoted 2 lines

Actually this isn't necessary, please see my version of the patches.

Any update on this issue?

I don't believe that either version of the package has been added.

I just sent new patch combined of yours and Daniels. Please review.

Best regards,
Yegor

#10 lore raw

PATCH 2/2 Add package attr

In reply to Daniel Mack
---
 package/Config.in      |    1 +
 package/attr/Config.in |    6 ++++++
 package/attr/attr.mk   |   25 +++++++++++++++++++++++++
 3 files changed, 32 insertions(+), 0 deletions(-)
 create mode 100644 package/attr/Config.in
 create mode 100644 package/attr/attr.mk
package/Config.in +1 -0
index cefe90e..84bb761 100644
@@ -484,6 +484,7 @@ endmenu
 
 menu "System tools"
 source "package/acl/Config.in"
+source "package/attr/Config.in"
 if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
 source "package/bootutils/Config.in"
 endif
package/attr/Config.in new file +6 -0
new file mode 100644
index 0000000..766c346
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_ATTR
+	bool "attr"
+	help
+	  Commands for Manipulating Filesystem Extended Attributes
+	  See http://savannah.nongnu.org/projects/attr
+
package/attr/attr.mk new file +25 -0
new file mode 100644
index 0000000..3f76bd4
@@ -0,0 +1,25 @@
+#############################################################
+#
+# attr
+#
+#############################################################
+ATTR_VERSION = 2.4.46
+ATTR_SOURCE = attr-$(ATTR_VERSION).src.tar.gz
+ATTR_SITE = http://mirror.its.uidaho.edu/pub/savannah/attr/
+ATTR_LIBTOOL_PATCH = NO
+ATTR_INSTALL_STAGING = YES
+ATTR_INSTALL_TARGET = YES
+ATTR_CONF_OPT = --enable-gettext=no
+
+define ATTR_INSTALL_TARGET_CMDS
+	$(INSTALL) -m 0755 -D $(@D)/getfattr/.libs/getfattr $(TARGET_DIR)/usr/bin/
+	$(INSTALL) -m 0755 -D $(@D)/setfattr/.libs/setfattr $(TARGET_DIR)/usr/bin/
+	$(INSTALL) -m 0644 -D $(@D)/libattr/.libs/libattr.so* $(STAGING_DIR)/usr/lib/
+endef
+
+define ATTR_INSTALL_STAGING_CMDS
+	test -d $(STAGING_DIR)/usr/include/attr/ || mkdir $(STAGING_DIR)/usr/include/attr/
+	$(INSTALL) -m 0644 -D $(@D)/include/*.h $(STAGING_DIR)/usr/include/attr/
+endef
+
+$(eval $(call AUTOTARGETS,package,attr))
Signature · 1 line
1.7.5.1