Skip to contentSkip to conversation

python-posix-ipc: new package

PATCH Superseded Matt Weber 2 participants 3 messages Jan 6, 2014 – Jan 7, 2014

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Matt Weber

author
#0 lore raw

PATCH 1/1 python-posix-ipc: new package

This patch is based on the original new pkg patch submitted last Jan and is part of the "Patchwork oldest patches cleanup #5". It combines the original "[1/2]/[2/2] new package: python-posix_ipc" patch files.

The libc wrapper code is written in C has dependencies on the rt lib.

---
 package/Config.in                            |    1 +
 package/python-posix-ipc/Config.in           |   10 ++++++++++
 package/python-posix-ipc/python-poxix-ipc.mk |   14 ++++++++++++++
 3 files changed, 25 insertions(+), 0 deletions(-)
 create mode 100644 package/python-posix-ipc/Config.in
 create mode 100644 package/python-posix-ipc/python-poxix-ipc.mk
package/Config.in +1 -0
index e502cde..501bd3d 100644
@@ -406,6 +406,7 @@ source "package/python-meld3/Config.in"
 source "package/python-msgpack/Config.in"
 source "package/python-netifaces/Config.in"
 source "package/python-nfc/Config.in"
+source "package/python-posix-ipc/Config.in"
 source "package/python-protobuf/Config.in"
 source "package/python-pyasn/Config.in"
 source "package/python-pycrypto/Config.in"
package/python-posix-ipc/Config.in new file +10 -0
new file mode 100644
index 0000000..2fbc7a7
@@ -0,0 +1,10 @@
+config BR2_PACKAGE_PYTHON_POSIX_IPC
+	bool "python-posix-ipc"
+	depends on BR2_PACKAGE_PYTHON
+	help
+	  The Python extension module posix_ipc gives access to POSIX
+	  inter-process semaphores, shared memory and message queues
+	  on systems that support the POSIX Realtime Extensions
+	  a.k.a. POSIX 1003.1b-1993.
+
+	  http://semanchuk.com/philip/posix_ipc/
package/python-posix-ipc/python-poxix-ipc.mk new file +14 -0
new file mode 100644
index 0000000..24518b2
@@ -0,0 +1,14 @@
+################################################################################
+#
+# python-posix-ipc
+#
+################################################################################
+
+PYTHON_POSIX_IPC_VERSION = 0.9.6
+PYTHON_POSIX_IPC_SOURCE = posix_ipc-$(PYTHON_POSIX_IPC_VERSION).tar.gz
+PYTHON_POSIX_IPC_SITE = http://semanchuk.com/philip/posix_ipc/
+PYTHON_POSIX_IPC_LICENSE = BSD-2c
+PYTHON_POSIX_IPC_LICENSE_FILES = LICENSE
+PYTHON_POSIX_IPC_SETUP_TYPE = distutils
+
+$(eval $(python-package))
Signature · 1 line
1.7.1
#1 lore raw

PATCH 1/1 python-posix-ipc: new package

Dear Matt Weber,

package/python-posix-ipc/Config.in line 3

Quoted 9 lines · Matt Weber
package/python-posix-ipc/Config.in new file +3 -0
new file mode 100644
index 0000000..2fbc7a7
@@ -0,0 +1,10 @@
+config BR2_PACKAGE_PYTHON_POSIX_IPC
+	bool "python-posix-ipc"
+	depends on BR2_PACKAGE_PYTHON

I see #include <pthread.h> in the C code of the module, so maybe this Python module should depend on BR2_TOOLCHAIN_HAS_THREADS?

package/python-posix-ipc/Config.in line 7

Quoted 4 lines
package/python-posix-ipc/Config.in new file +4 -0
+PYTHON_POSIX_IPC_VERSION = 0.9.6
+PYTHON_POSIX_IPC_SOURCE = posix_ipc-$(PYTHON_POSIX_IPC_VERSION).tar.gz
+PYTHON_POSIX_IPC_SITE = http://semanchuk.com/philip/posix_ipc/
+PYTHON_POSIX_IPC_LICENSE = BSD-2c

License is BSD-3c, not BSD-2c.

package/python-posix-ipc/Config.in line 9

Quoted 2 lines
package/python-posix-ipc/Config.in new file +2 -0
+PYTHON_POSIX_IPC_LICENSE_FILES = LICENSE
+PYTHON_POSIX_IPC_SETUP_TYPE = distutils

Other than that, looks good to me (but I haven't tested).

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#2 lore raw

PATCH 1/1 python-posix-ipc: new package

Hi Thomas,

Thomas Petazzoni <[email protected]> wrote on 01/07/2014 12:17:23 AM:

Quoted 12 lines

From: Thomas Petazzoni <[email protected]>
To: Matt Weber <[email protected]>
Cc: buildroot at busybox.net
Date: 01/07/2014 12:17 AM
Subject: Re: [Buildroot] [PATCH 1/1] python-posix-ipc: new package

Dear Matt Weber,

package/python-

Quoted 1 line · Matt Weber
package/python- renamed from package/python-posix-ipc/Config.in +0 -0

posix-ipc/Config.in

Quoted 11 lines

package/python-posix-ipc/Config.in line 3

Quoted 8 lines

new file mode 100644
index 0000000..2fbc7a7

package/python-posix-ipc/Config.in new file +3 -0
@@ -0,0 +1,10 @@
+config BR2_PACKAGE_PYTHON_POSIX_IPC
+   bool "python-posix-ipc"
+   depends on BR2_PACKAGE_PYTHON

I see #include <pthread.h> in the C code of the module, so maybe this Python module should depend on BR2_TOOLCHAIN_HAS_THREADS?

Good catch, that would make sense as it's using mutex and lock functionality.

Quoted 3 lines

package/python-posix-ipc/Config.in line 5

Quoted 3 lines
package/python-posix-ipc/Config.in new file +2 -0
+PYTHON_POSIX_IPC_VERSION = 0.9.6
+PYTHON_POSIX_IPC_SOURCE = 

posix_ipc-$(PYTHON_POSIX_IPC_VERSION).tar.gz

Quoted 4 lines

package/python-posix-ipc/Config.in line 7

Quoted 2 lines
package/python-posix-ipc/Config.in new file +2 -0
+PYTHON_POSIX_IPC_SITE = http://semanchuk.com/philip/posix_ipc/
+PYTHON_POSIX_IPC_LICENSE = BSD-2c

License is BSD-3c, not BSD-2c.

Ok, he had the link to the BSD-2c (
http://opensource.org/licenses/bsd-license.php)
on his website. However since the source actually had BSD-3c and is more restrictive, I'll update to that.

Quoted 5 lines

package/python-posix-ipc/Config.in line 9

Quoted 3 lines
package/python-posix-ipc/Config.in new file +2 -0
+PYTHON_POSIX_IPC_LICENSE_FILES = LICENSE
+PYTHON_POSIX_IPC_SETUP_TYPE = distutils

Other than that, looks good to me (but I haven't tested).

Thanks!
Matt Weber
mlweber1 at rockwellcollins.com