Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v3] add package for pdmenu
@ 2017-08-28 22:22 Brock Williams
  2017-08-30 21:25 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Brock Williams @ 2017-08-28 22:22 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Brock Williams <brock@cottonwoodcomputer.com>
---
Changes v2 -> v3:
  - change to debian snapshot url

Changes v1 -> v2:
  - feedback from Thomas Petazzoni
  - add to DEVELOPERS
  - fix sorting in Config.in
  - change depends on to select
  - fix whitespace / wrapping 
  - add hash file
  - add comment header

 DEVELOPERS                 |  3 +++
 package/Config.in          |  1 +
 package/pdmenu/Config.in   | 15 +++++++++++++++
 package/pdmenu/pdmenu.hash |  1 +
 package/pdmenu/pdmenu.mk   | 15 +++++++++++++++
 5 files changed, 35 insertions(+)
 create mode 100644 package/pdmenu/Config.in
 create mode 100644 package/pdmenu/pdmenu.hash
 create mode 100644 package/pdmenu/pdmenu.mk

diff --git a/DEVELOPERS b/DEVELOPERS
index 73686e2..f3e0dbd 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -326,6 +326,9 @@ N:	Bogdan Radulescu <bogdan@nimblex.net>
 F:	package/iftop/
 F:	package/ncdu/
 
+N:	Brock Williams <brock@cottonwoodcomputer.com>
+F:	package/pdmenu/
+
 N:	Bryan Brinsko <bryan.brinsko@rockwellcollins.com>
 F:	package/pps-tools/
 
diff --git a/package/Config.in b/package/Config.in
index a512827..d837a08 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1837,6 +1837,7 @@ comment "Utilities"
 	source "package/lockfile-progs/Config.in"
 	source "package/logrotate/Config.in"
 	source "package/logsurfer/Config.in"
+	source "package/pdmenu/Config.in"
 	source "package/pinentry/Config.in"
 	source "package/ranger/Config.in"
 	source "package/screen/Config.in"
diff --git a/package/pdmenu/Config.in b/package/pdmenu/Config.in
new file mode 100644
index 0000000..8f35f61
--- /dev/null
+++ b/package/pdmenu/Config.in
@@ -0,0 +1,15 @@
+config BR2_PACKAGE_PDMENU
+	bool "pdmenu"
+	depends on BR2_USE_MMU # slang
+	select BR2_PACKAGE_SLANG
+	help
+	  Pdmenu is a full screen menuing system for Unix. It is
+	  designed to be easy to use, and is suitable as a login shell
+	  for inexperienced users, or it can just be ran at the
+	  command line as a handy menu.
+
+	  Pdmenu features color support and GPM mouse support at the
+	  Linux console. It was developed on Linux, and has now been
+	  compiled on many other unixes without problems.
+
+	  https://joeyh.name/code/pdmenu/
diff --git a/package/pdmenu/pdmenu.hash b/package/pdmenu/pdmenu.hash
new file mode 100644
index 0000000..be6d27a
--- /dev/null
+++ b/package/pdmenu/pdmenu.hash
@@ -0,0 +1 @@
+md5	0623b992572511d5fd90d481c426fa40	pdmenu_1.3.4.tar.gz
diff --git a/package/pdmenu/pdmenu.mk b/package/pdmenu/pdmenu.mk
new file mode 100644
index 0000000..f3d9fba
--- /dev/null
+++ b/package/pdmenu/pdmenu.mk
@@ -0,0 +1,15 @@
+################################################################################
+#
+# pdmenu
+#
+################################################################################
+
+PDMENU_VERSION = 1.3.4
+PDMENU_SOURCE = pdmenu_$(PDMENU_VERSION).tar.gz
+PDMENU_SITE = http://snapshot.debian.org/archive/debian/20170828T160058Z/pool/main/p/pdmenu
+PDMENU_LICENSE = GPL-2.0+
+PDMENU_LICENSE_FILES = COPYING.GPLv2
+PDMENU_DEPENDENCIES = slang
+PDMENU_INSTALL_TARGET_OPTS = INSTALL_PREFIX=$(TARGET_DIR) install
+
+$(eval $(autotools-package))
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Buildroot] [PATCH v3] add package for pdmenu
  2017-08-28 22:22 [Buildroot] [PATCH v3] add package for pdmenu Brock Williams
@ 2017-08-30 21:25 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2017-08-30 21:25 UTC (permalink / raw)
  To: buildroot

Hello,

On Mon, 28 Aug 2017 16:22:29 -0600, Brock Williams wrote:
> Signed-off-by: Brock Williams <brock@cottonwoodcomputer.com>

So, I applied your patch, but after fixing a number of issues. Some
easy, some more complicated. See below.

> diff --git a/package/pdmenu/pdmenu.hash b/package/pdmenu/pdmenu.hash
> new file mode 100644
> index 0000000..be6d27a
> --- /dev/null
> +++ b/package/pdmenu/pdmenu.hash
> @@ -0,0 +1 @@

Missing comment above the hash that says where it comes from.

> +md5	0623b992572511d5fd90d481c426fa40	pdmenu_1.3.4.tar.gz

We use sha256 hashes when locally calculated, so I've added that.

I've also added the hash for the license file.

> diff --git a/package/pdmenu/pdmenu.mk b/package/pdmenu/pdmenu.mk
> new file mode 100644
> index 0000000..f3d9fba
> --- /dev/null
> +++ b/package/pdmenu/pdmenu.mk
> @@ -0,0 +1,15 @@
> +################################################################################
> +#
> +# pdmenu
> +#
> +################################################################################
> +
> +PDMENU_VERSION = 1.3.4
> +PDMENU_SOURCE = pdmenu_$(PDMENU_VERSION).tar.gz
> +PDMENU_SITE = http://snapshot.debian.org/archive/debian/20170828T160058Z/pool/main/p/pdmenu
> +PDMENU_LICENSE = GPL-2.0+

Nowhere they say it's GPLv2 or later. They only include the license
text of the GPLv2, with no further information. So the license is
GPL-2.0 only.

> +PDMENU_LICENSE_FILES = COPYING.GPLv2

This file does not exist, it's doc/COPYING.

> +PDMENU_DEPENDENCIES = slang

Now the more complicated part is that the NLS handling was broken, in
two situations:

 * If NLS support is enabled with uClibc/musl, the gettext functions are
   located in an external library (not in the C library) called
   libintl, and pdmenu was not linking with it. I've added a first
   patch to fix this. I also had to add $(TARGET_NLS_DEPENDENCIES) to
   PDMENU_DEPENDENCIES to make sure host-gettext/gettext get defined as
   necessary.

 * On the other hand, even if NLS support was disabled, pdmenu Makefile
   was trying to use the msgfmt tool on the build machine to
   generate .mo files from .po files, causing a build failure. I fixed
   that by adding another patch that only builds/installs .mo files if
   msgfmt is available.

Thanks for your contribution!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-08-30 21:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-28 22:22 [Buildroot] [PATCH v3] add package for pdmenu Brock Williams
2017-08-30 21:25 ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox