]> code.ossystems Code Review - openembedded-core.git/commitdiff
ed: add 1.4 as new recipe
authorZhai Edwin <edwin.zhai@intel.com>
Fri, 6 Aug 2010 07:55:45 +0000 (15:55 +0800)
committerRichard Purdie <rpurdie@linux.intel.com>
Fri, 13 Aug 2010 12:35:59 +0000 (13:35 +0100)
Add a patch(should be GPLv3) to fix the compile issue, otherwise only produce
binary for build system in cross-compile environment. Simple function test
done.

Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
meta-lsb/packages/ed/ed-1.4/ed-1.2-build.patch [new file with mode: 0644]
meta-lsb/packages/ed/ed_1.4.bb [new file with mode: 0644]

diff --git a/meta-lsb/packages/ed/ed-1.4/ed-1.2-build.patch b/meta-lsb/packages/ed/ed-1.4/ed-1.2-build.patch
new file mode 100644 (file)
index 0000000..a65c433
--- /dev/null
@@ -0,0 +1,43 @@
+http://lists.gnu.org/archive/html/bug-ed/2008-12/msg00001.html
+
+2007-04-16  Mike Frysinger  <vapier@gentoo.org>
+
+       * Do not set CC/CXX/CPPFLAGS/LDFLAGS to "" so that user can
+         override if they so choose.
+       * Only set CFLAGS/CXXFLAGS if user did not specify any.
+
+ed had already taken GPLv3 when this patch out, so it should be GPLv3.
+Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
+
+Index: ed-1.4/configure
+===================================================================
+--- ed-1.4.orig/configure      2009-07-10 19:54:33.000000000 +0800
++++ ed-1.4/configure   2010-08-05 17:41:51.000000000 +0800
+@@ -26,12 +26,6 @@
+ mandir='$(datadir)/man'
+ sysconfdir='$(prefix)/etc'
+ program_prefix=
+-CC=
+-CXX=
+-CPPFLAGS=
+-CFLAGS='-Wall -W -O2'
+-CXXFLAGS='-Wall -W -O2'
+-LDFLAGS=
+ # Loop over all args
+ while [ x"$1" != x ] ; do
+@@ -111,6 +105,14 @@
+       esac
+ done
++# Defaults if the user did not select any
++if [ x"${CFLAGS+set}" != xset ] ; then
++      CFLAGS='-Wall -W -O2'
++fi
++if [ x"${CXXFLAGS+set}" != xset ] ; then
++      CXXFLAGS='-Wall -W -O2'
++fi
++
+ # Find the source files, if location was not specified.
+ srcdirtext=
+ if [ x"${srcdir}" = x ] ; then
diff --git a/meta-lsb/packages/ed/ed_1.4.bb b/meta-lsb/packages/ed/ed_1.4.bb
new file mode 100644 (file)
index 0000000..0243769
--- /dev/null
@@ -0,0 +1,22 @@
+DESCRIPTION = "a line-oriented text editor"
+HOMEPAGE = "http://www.gnu.org/software/ed/"
+BUGTRACKER = ""
+
+LICENSE = "GPLv3+"
+LIC_FILES_CHKSUM = "file://COPYING;md5=f27defe1e96c2e1ecd4e0c9be8967949 \
+                    file://ed.h;endline=20;md5=294d5da73d15cd444ca2260fa2538296 \
+                    file://main.c;endline=24;md5=122be7f2751ae819c803441972c7f45b"
+
+SECTION = "base"
+PR = "r0"
+
+SRC_URI = "${GNU_MIRROR}/ed/ed-${PV}.tar.gz \
+           file://ed-1.2-build.patch"
+
+do_configure() {
+       ${S}/configure
+}
+
+do_install() {
+       oe_runmake 'DESTDIR=${D}' install
+}