Skip to contentSkip to conversation

keyutils: new package

PATCH New Jarkko Sakkinen 2 participants 4 messages Oct 24, 2012 – Oct 25, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 keyutils: new package

Linux key management utilities

---
 package/Config.in            |    1 +
 package/keyutils/Config.in   |    7 +++++++
 package/keyutils/keyutils.mk |   28 ++++++++++++++++++++++++++++
 3 files changed, 36 insertions(+)
 create mode 100644 package/keyutils/Config.in
 create mode 100644 package/keyutils/keyutils.mk
package/Config.in +1 -0
index 1650c71..00d242d 100644
@@ -715,6 +715,7 @@ source "package/supervisor/Config.in"
 source "package/systemd/Config.in"
 source "package/util-linux/Config.in"
 source "package/dsp-tools/Config.in"
+source "package/keyutils/Config.in"
 endmenu
 
 menu "Text editors and viewers"
package/keyutils/Config.in new file +7 -0
new file mode 100644
index 0000000..2296e5b
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_KEYUTILS
+	bool "keyutils"
+	help
+	  Linux key management utilities
+
+	  http://people.redhat.com/dhowells/keyutils/
+
package/keyutils/keyutils.mk new file +28 -0
new file mode 100644
index 0000000..82b1f58
@@ -0,0 +1,28 @@
+#############################################################
+#
+# keyutils
+#
+#############################################################
+
+KEYUTILS_VERSION = 1.5.5
+KEYUTILS_SITE = http://people.redhat.com/dhowells/keyutils/
+KEYUTILS_SOURCE = keyutils-$(KEYUTILS_VERSION).tar.bz2
+
+define KEYUTILS_BUILD_CMDS
+	$(MAKE) CFLAGS="$(TARGET_CFLAGS)" LDFLAGS="$(TARGET_LDFLAGS)" \
+		CC="$(TARGET_CC)" -C $(@D)
+endef
+
+define KEYUTILS_INSTALL_TARGET_CMDS
+	$(INSTALL) -m 0755 -D $(@D)/keyctl $(TARGET_DIR)/bin/keyctl
+endef
+
+define KEYUTILS_UNINSTALL_TARGET_CMDS
+	rm -f $(TARGET_DIR)/bin/keyctl
+endef
+
+define KEYUTILS_CLEAN_CMDS
+	-$(MAKE) -C $(@D) clean
+endef
+
+$(eval $(generic-package))
Signature · 1 line
1.7.10.4
#1 lore raw

PATCH 1/1 keyutils: new package

Jarkko, All,

Quoted 1 line · On Wednesday 24 October 2012 Jarkko Sakkinen wrote:

Linux key management utilities

There are two memleaks known in keyutils.

I'm about to post a patch series that includes keyutils with patches to fix the memleaks.

[--SNIP--]

Quoted 10 lines
package/keyutils/keyutils.mk new file +4 -0
new file mode 100644
index 0000000..82b1f58
@@ -0,0 +1,28 @@
+#############################################################
+#
+# keyutils
+#

package/keyutils/keyutils.mk line 14

Quoted 10 lines
package/keyutils/keyutils.mk new file +10 -0
+#############################################################
+
+KEYUTILS_VERSION = 1.5.5
+KEYUTILS_SITE = http://people.redhat.com/dhowells/keyutils/
+KEYUTILS_SOURCE = keyutils-$(KEYUTILS_VERSION).tar.bz2
+
+define KEYUTILS_BUILD_CMDS
+	$(MAKE) CFLAGS="$(TARGET_CFLAGS)" LDFLAGS="$(TARGET_LDFLAGS)" \
+		CC="$(TARGET_CC)" -C $(@D)
+endef

I have:
define KEYUTILS_BUILD_CMDS

        $(KEYUTILS_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D)

endef

Which includes all our CFLAGS, while doing the way you did overrides the CFLAGS in keytuils' Makefile, and breaks (at least for me on one arch).

Regards,
Yann E. MORIN.

Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
#2 lore raw

PATCH 1/1 keyutils: new package

Jarkko, All,

Quoted 7 lines · On Wednesday 24 October 2012 Yann E. MORIN wrote:
Quoted 1 line · On Wednesday 24 October 2012 Jarkko Sakkinen wrote:

Linux key management utilities

There are two memleaks known in keyutils.

I'm about to post a patch series that includes keyutils with patches to fix the memleaks.

Also, the install rule needs to be fixed. See:
http://lists.busybox.net/pipermail/buildroot/2012-October/060377.html

Regards,
Yann E. MORIN.

Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
#3 lore raw

PATCH 1/1 keyutils: new package

In reply to Yann E. MORIN
Quoted 9 lines · Yann E. MORIN

Jarkko, All,

Quoted 1 line · On Wednesday 24 October 2012 Jarkko Sakkinen wrote:

Linux key management utilities

There are two memleaks known in keyutils.

I'm about to post a patch series that includes keyutils with patches to fix the memleaks.

Ok, great. I'll look forward to that.

Quoted 34 lines

[--SNIP--]

Quoted 10 lines
package/keyutils/keyutils.mk new file +4 -0
new file mode 100644
index 0000000..82b1f58
@@ -0,0 +1,28 @@
+#############################################################
+#
+# keyutils
+#

package/keyutils/keyutils.mk line 14

Quoted 10 lines
package/keyutils/keyutils.mk new file +10 -0
+#############################################################
+
+KEYUTILS_VERSION = 1.5.5
+KEYUTILS_SITE = http://people.redhat.com/dhowells/keyutils/
+KEYUTILS_SOURCE = keyutils-$(KEYUTILS_VERSION).tar.bz2
+
+define KEYUTILS_BUILD_CMDS
+     $(MAKE) CFLAGS="$(TARGET_CFLAGS)" LDFLAGS="$(TARGET_LDFLAGS)" \
+             CC="$(TARGET_CC)" -C $(@D)
+endef

I have:
define KEYUTILS_BUILD_CMDS

        $(KEYUTILS_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D)

endef

Which includes all our CFLAGS, while doing the way you did overrides the CFLAGS in keytuils' Makefile, and breaks (at least for me on one arch).

Regards,
Yann E. MORIN.

Quoted 7 lines

--
.-----------------.--------------------.------------------.--------------------.

|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |

'------------------------------^-------^------------------^--------------------'

/Jarkko