From 1219bf8a90a7bf8cd3a5363551ef635d51e8fc8e Mon Sep 17 00:00:00 2001 From: Tudor Florea Date: Thu, 8 Oct 2015 22:51:41 +0200 Subject: initial commit for Enea Linux 5.0 arm Signed-off-by: Tudor Florea --- .../autoconf-archive/autoconf-archive.inc | 15 + .../autoconf-archive_2012.04.07.bb | 13 + ...g-add-rudimentary-support-for-ARM-cpuinfo.patch | 49 ++ ...c-os-release-and-use-PRETTY_NAME-for-the-.patch | 39 ++ .../recipes-devtools/bootchart/bootchart_git.bb | 21 + meta-oe/recipes-devtools/breakpad/breakpad_svn.bb | 73 +++ meta-oe/recipes-devtools/cgdb/cgdb/configfix.patch | 40 ++ meta-oe/recipes-devtools/cgdb/cgdb_0.6.7.bb | 16 + ...e-as-interpreter-for-sketches-instead-of-.patch | 29 ++ .../cloud9/cloud9/cloud9-avahi.service | 10 + .../recipes-devtools/cloud9/cloud9/cloud9.service | 11 + meta-oe/recipes-devtools/cloud9/cloud9/index.js | 2 + meta-oe/recipes-devtools/cloud9/cloud9_0.6.bb | 117 +++++ .../concurrencykit/concurrencykit/cross.patch | 69 +++ .../concurrencykit/concurrencykit_git.bb | 41 ++ meta-oe/recipes-devtools/cppunit/cppunit_1.13.1.bb | 11 + .../dejagnu/dejagnu/configure.patch | 45 ++ meta-oe/recipes-devtools/dejagnu/dejagnu_1.4.4.bb | 14 + ...001-configure.ac-remove-additional-c-test.patch | 47 ++ meta-oe/recipes-devtools/geany/geany_1.24.1.bb | 16 + meta-oe/recipes-devtools/giflib/giflib_4.1.6.bb | 20 + ...gnome-doc-utils.make-sysrooted-pkg-config.patch | 51 +++ meta-oe/recipes-devtools/glade/glade3_3.8.5.bb | 27 ++ .../files/0001-Makefile.am-no-examples.patch | 27 ++ .../icon-slicer/icon-slicer_0.3.bb | 13 + meta-oe/recipes-devtools/jq/jq_1.4.bb | 22 + meta-oe/recipes-devtools/lemon/files/lemon.1 | 63 +++ meta-oe/recipes-devtools/lemon/lemon.inc | 25 + meta-oe/recipes-devtools/lemon/lemon_3.5.4.bb | 7 + .../libc-client/files/quote_cctype.patch | 12 + .../libc-client/libc-client_2007e.bb | 35 ++ .../libedit/libedit_20130712-3.1.bb | 20 + .../recipes-devtools/libfribidi/fribidi_0.19.2.bb | 17 + meta-oe/recipes-devtools/libgee/libgee.inc | 18 + meta-oe/recipes-devtools/libgee/libgee_0.6.4.bb | 10 + .../recipes-devtools/log4cplus/log4cplus_1.1.1.bb | 15 + ...ite-Make-sure-to-include-generated-header.patch | 34 ++ meta-oe/recipes-devtools/ltp-ddt/ltp-ddt_0.0.5.bb | 86 ++++ .../ltrace/ltrace-0.7.2-unused-typedef.patch | 49 ++ meta-oe/recipes-devtools/ltrace/ltrace_git.bb | 29 ++ .../recipes-devtools/lua/lua-test/lua-test.patch | 12 + meta-oe/recipes-devtools/lua/lua-test/run-ptest | 19 + meta-oe/recipes-devtools/lua/lua-test_5.2.2.bb | 22 + meta-oe/recipes-devtools/lua/lua/lua.pc | 11 + .../recipes-devtools/lua/lua/uclibc-pthread.patch | 13 + meta-oe/recipes-devtools/lua/lua_5.2.2.bb | 52 +++ ...p-automatically-this-leaves-the-stripping.patch | 33 ++ meta-oe/recipes-devtools/luajit/luajit_2.0.3.bb | 56 +++ meta-oe/recipes-devtools/mcpp/files/ice-mcpp.patch | 208 +++++++++ meta-oe/recipes-devtools/mcpp/mcpp_2.7.2.bb | 16 + meta-oe/recipes-devtools/memstat/memstat_1.0.bb | 30 ++ .../mercurial/mercurial-native_3.0.1.bb | 26 ++ ...uiltin-define-to-denote-hard-abi-when-in-.patch | 60 +++ .../nodejs/nodejs4/libev-cross-cc_0.4.12.patch | 13 + meta-oe/recipes-devtools/nodejs/nodejs4_0.4.12.bb | 47 ++ meta-oe/recipes-devtools/nodejs/nodejs_0.8.18.bb | 44 ++ .../packagegroups/packagegroup-sdk-target.bb | 28 ++ ...deprecated-glib-functions-and-use-the-new.patch | 166 +++++++ .../packagekit/packagekit-0.5.6/configurefix.patch | 13 + .../packagekit/packagekit-0.5.6/opkgfixes.patch | 422 +++++++++++++++++ .../packagekit/packagekit_0.5.6.bb | 62 +++ .../recipes-devtools/perl/libio-pty-perl_1.10.bb | 14 + ...cinclude-use-pkgconfig-for-libxml2-config.patch | 90 ++++ ...01-php-don-t-use-broken-wrapper-for-mkdir.patch | 26 ++ .../php/php/acinclude-xml2-config.patch | 25 + meta-oe/recipes-devtools/php/php/iconv.patch | 32 ++ .../php/php/imap-fix-autofoo.patch | 46 ++ .../recipes-devtools/php/php/pear-makefile.patch | 18 + .../recipes-devtools/php/php/phar-makefile.patch | 33 ++ .../recipes-devtools/php/php/php-fpm-apache.conf | 6 + meta-oe/recipes-devtools/php/php/php-fpm.conf | 510 +++++++++++++++++++++ .../recipes-devtools/php/php/php_exec_native.patch | 18 + meta-oe/recipes-devtools/php/php_5.4.36.bb | 150 ++++++ meta-oe/recipes-devtools/pm-qa/pm-qa_git.bb | 65 +++ .../recipes-devtools/protobuf/protobuf_2.4.1.bb | 22 + .../python/python-futures_2.1.5.bb | 14 + .../python/python-pyopenssl_0.13.bb | 24 + .../recipes-devtools/python/python-pyqt_4.11.3.bb | 54 +++ .../python/python-simplejson_2.2.1.bb | 27 ++ .../0001-disable-AI_ADDRCONFIG-flag.patch | 32 ++ .../recipes-devtools/python/python-tornado_git.bb | 16 + meta-oe/recipes-devtools/swig/swig.inc | 63 +++ ...lf-exe-for-swig-swiglib-on-non-Win32-plat.patch | 69 +++ ...nfigure-use-pkg-config-for-pcre-detection.patch | 64 +++ meta-oe/recipes-devtools/swig/swig_3.0.2.bb | 8 + .../tclap/tclap/Makefile.am-disable-docs.patch | 31 ++ meta-oe/recipes-devtools/tclap/tclap_1.2.1.bb | 14 + .../configure.use.fontconfig.with.xft.patch | 13 + .../tcltk/tk-8.6.0/confsearch.diff | 32 ++ .../recipes-devtools/tcltk/tk-8.6.0/fix-xft.diff | 16 + .../recipes-devtools/tcltk/tk-8.6.0/non-linux.diff | 45 ++ .../recipes-devtools/tcltk/tk-8.6.0/tklibrary.diff | 22 + .../recipes-devtools/tcltk/tk-8.6.0/tkprivate.diff | 41 ++ meta-oe/recipes-devtools/tcltk/tk_8.6.0.bb | 77 ++++ .../vala-dbus-binding-tool.inc | 16 + .../vala-dbus-binding-tool_0.4.0.bb | 4 + .../vala-dbus-binding-tool_git.bb | 9 + meta-oe/recipes-devtools/yajl/yajl_2.1.0.bb | 18 + 98 files changed, 4375 insertions(+) create mode 100644 meta-oe/recipes-devtools/autoconf-archive/autoconf-archive.inc create mode 100644 meta-oe/recipes-devtools/autoconf-archive/autoconf-archive_2012.04.07.bb create mode 100644 meta-oe/recipes-devtools/bootchart/bootchart/0001-svg-add-rudimentary-support-for-ARM-cpuinfo.patch create mode 100644 meta-oe/recipes-devtools/bootchart/bootchart/0002-svg-open-etc-os-release-and-use-PRETTY_NAME-for-the-.patch create mode 100644 meta-oe/recipes-devtools/bootchart/bootchart_git.bb create mode 100644 meta-oe/recipes-devtools/breakpad/breakpad_svn.bb create mode 100644 meta-oe/recipes-devtools/cgdb/cgdb/configfix.patch create mode 100644 meta-oe/recipes-devtools/cgdb/cgdb_0.6.7.bb create mode 100644 meta-oe/recipes-devtools/cloud9/cloud9/0001-ide-use-node-as-interpreter-for-sketches-instead-of-.patch create mode 100644 meta-oe/recipes-devtools/cloud9/cloud9/cloud9-avahi.service create mode 100644 meta-oe/recipes-devtools/cloud9/cloud9/cloud9.service create mode 100644 meta-oe/recipes-devtools/cloud9/cloud9/index.js create mode 100644 meta-oe/recipes-devtools/cloud9/cloud9_0.6.bb create mode 100644 meta-oe/recipes-devtools/concurrencykit/concurrencykit/cross.patch create mode 100644 meta-oe/recipes-devtools/concurrencykit/concurrencykit_git.bb create mode 100644 meta-oe/recipes-devtools/cppunit/cppunit_1.13.1.bb create mode 100644 meta-oe/recipes-devtools/dejagnu/dejagnu/configure.patch create mode 100644 meta-oe/recipes-devtools/dejagnu/dejagnu_1.4.4.bb create mode 100644 meta-oe/recipes-devtools/geany/geany/0001-configure.ac-remove-additional-c-test.patch create mode 100644 meta-oe/recipes-devtools/geany/geany_1.24.1.bb create mode 100644 meta-oe/recipes-devtools/giflib/giflib_4.1.6.bb create mode 100644 meta-oe/recipes-devtools/glade/files/0001-gnome-doc-utils.make-sysrooted-pkg-config.patch create mode 100644 meta-oe/recipes-devtools/glade/glade3_3.8.5.bb create mode 100644 meta-oe/recipes-devtools/icon-slicer/files/0001-Makefile.am-no-examples.patch create mode 100644 meta-oe/recipes-devtools/icon-slicer/icon-slicer_0.3.bb create mode 100644 meta-oe/recipes-devtools/jq/jq_1.4.bb create mode 100644 meta-oe/recipes-devtools/lemon/files/lemon.1 create mode 100644 meta-oe/recipes-devtools/lemon/lemon.inc create mode 100644 meta-oe/recipes-devtools/lemon/lemon_3.5.4.bb create mode 100644 meta-oe/recipes-devtools/libc-client/files/quote_cctype.patch create mode 100644 meta-oe/recipes-devtools/libc-client/libc-client_2007e.bb create mode 100644 meta-oe/recipes-devtools/libedit/libedit_20130712-3.1.bb create mode 100644 meta-oe/recipes-devtools/libfribidi/fribidi_0.19.2.bb create mode 100644 meta-oe/recipes-devtools/libgee/libgee.inc create mode 100644 meta-oe/recipes-devtools/libgee/libgee_0.6.4.bb create mode 100644 meta-oe/recipes-devtools/log4cplus/log4cplus_1.1.1.bb create mode 100644 meta-oe/recipes-devtools/ltp-ddt/ltp-ddt/0001-wdt_test_suite-Make-sure-to-include-generated-header.patch create mode 100644 meta-oe/recipes-devtools/ltp-ddt/ltp-ddt_0.0.5.bb create mode 100644 meta-oe/recipes-devtools/ltrace/ltrace/ltrace-0.7.2-unused-typedef.patch create mode 100644 meta-oe/recipes-devtools/ltrace/ltrace_git.bb create mode 100644 meta-oe/recipes-devtools/lua/lua-test/lua-test.patch create mode 100644 meta-oe/recipes-devtools/lua/lua-test/run-ptest create mode 100644 meta-oe/recipes-devtools/lua/lua-test_5.2.2.bb create mode 100644 meta-oe/recipes-devtools/lua/lua/lua.pc create mode 100644 meta-oe/recipes-devtools/lua/lua/uclibc-pthread.patch create mode 100644 meta-oe/recipes-devtools/lua/lua_5.2.2.bb create mode 100644 meta-oe/recipes-devtools/luajit/luajit/0001-Do-not-strip-automatically-this-leaves-the-stripping.patch create mode 100644 meta-oe/recipes-devtools/luajit/luajit_2.0.3.bb create mode 100644 meta-oe/recipes-devtools/mcpp/files/ice-mcpp.patch create mode 100644 meta-oe/recipes-devtools/mcpp/mcpp_2.7.2.bb create mode 100644 meta-oe/recipes-devtools/memstat/memstat_1.0.bb create mode 100644 meta-oe/recipes-devtools/mercurial/mercurial-native_3.0.1.bb create mode 100644 meta-oe/recipes-devtools/nodejs/nodejs/0001-gcc-has-a-builtin-define-to-denote-hard-abi-when-in-.patch create mode 100644 meta-oe/recipes-devtools/nodejs/nodejs4/libev-cross-cc_0.4.12.patch create mode 100644 meta-oe/recipes-devtools/nodejs/nodejs4_0.4.12.bb create mode 100644 meta-oe/recipes-devtools/nodejs/nodejs_0.8.18.bb create mode 100644 meta-oe/recipes-devtools/packagegroups/packagegroup-sdk-target.bb create mode 100644 meta-oe/recipes-devtools/packagekit/packagekit-0.5.6/0001-Don-t-call-deprecated-glib-functions-and-use-the-new.patch create mode 100644 meta-oe/recipes-devtools/packagekit/packagekit-0.5.6/configurefix.patch create mode 100644 meta-oe/recipes-devtools/packagekit/packagekit-0.5.6/opkgfixes.patch create mode 100644 meta-oe/recipes-devtools/packagekit/packagekit_0.5.6.bb create mode 100644 meta-oe/recipes-devtools/perl/libio-pty-perl_1.10.bb create mode 100644 meta-oe/recipes-devtools/php/php/0001-acinclude-use-pkgconfig-for-libxml2-config.patch create mode 100644 meta-oe/recipes-devtools/php/php/0001-php-don-t-use-broken-wrapper-for-mkdir.patch create mode 100644 meta-oe/recipes-devtools/php/php/acinclude-xml2-config.patch create mode 100644 meta-oe/recipes-devtools/php/php/iconv.patch create mode 100644 meta-oe/recipes-devtools/php/php/imap-fix-autofoo.patch create mode 100644 meta-oe/recipes-devtools/php/php/pear-makefile.patch create mode 100644 meta-oe/recipes-devtools/php/php/phar-makefile.patch create mode 100644 meta-oe/recipes-devtools/php/php/php-fpm-apache.conf create mode 100644 meta-oe/recipes-devtools/php/php/php-fpm.conf create mode 100644 meta-oe/recipes-devtools/php/php/php_exec_native.patch create mode 100644 meta-oe/recipes-devtools/php/php_5.4.36.bb create mode 100644 meta-oe/recipes-devtools/pm-qa/pm-qa_git.bb create mode 100644 meta-oe/recipes-devtools/protobuf/protobuf_2.4.1.bb create mode 100644 meta-oe/recipes-devtools/python/python-futures_2.1.5.bb create mode 100644 meta-oe/recipes-devtools/python/python-pyopenssl_0.13.bb create mode 100644 meta-oe/recipes-devtools/python/python-pyqt_4.11.3.bb create mode 100644 meta-oe/recipes-devtools/python/python-simplejson_2.2.1.bb create mode 100644 meta-oe/recipes-devtools/python/python-tornado/0001-disable-AI_ADDRCONFIG-flag.patch create mode 100644 meta-oe/recipes-devtools/python/python-tornado_git.bb create mode 100644 meta-oe/recipes-devtools/swig/swig.inc create mode 100644 meta-oe/recipes-devtools/swig/swig/0001-Use-proc-self-exe-for-swig-swiglib-on-non-Win32-plat.patch create mode 100644 meta-oe/recipes-devtools/swig/swig/0001-configure-use-pkg-config-for-pcre-detection.patch create mode 100644 meta-oe/recipes-devtools/swig/swig_3.0.2.bb create mode 100644 meta-oe/recipes-devtools/tclap/tclap/Makefile.am-disable-docs.patch create mode 100644 meta-oe/recipes-devtools/tclap/tclap_1.2.1.bb create mode 100644 meta-oe/recipes-devtools/tcltk/tk-8.6.0/configure.use.fontconfig.with.xft.patch create mode 100644 meta-oe/recipes-devtools/tcltk/tk-8.6.0/confsearch.diff create mode 100644 meta-oe/recipes-devtools/tcltk/tk-8.6.0/fix-xft.diff create mode 100644 meta-oe/recipes-devtools/tcltk/tk-8.6.0/non-linux.diff create mode 100644 meta-oe/recipes-devtools/tcltk/tk-8.6.0/tklibrary.diff create mode 100644 meta-oe/recipes-devtools/tcltk/tk-8.6.0/tkprivate.diff create mode 100644 meta-oe/recipes-devtools/tcltk/tk_8.6.0.bb create mode 100644 meta-oe/recipes-devtools/vala-dbus-binding-tool/vala-dbus-binding-tool.inc create mode 100644 meta-oe/recipes-devtools/vala-dbus-binding-tool/vala-dbus-binding-tool_0.4.0.bb create mode 100644 meta-oe/recipes-devtools/vala-dbus-binding-tool/vala-dbus-binding-tool_git.bb create mode 100644 meta-oe/recipes-devtools/yajl/yajl_2.1.0.bb (limited to 'meta-oe/recipes-devtools') diff --git a/meta-oe/recipes-devtools/autoconf-archive/autoconf-archive.inc b/meta-oe/recipes-devtools/autoconf-archive/autoconf-archive.inc new file mode 100644 index 000000000..e8785f4de --- /dev/null +++ b/meta-oe/recipes-devtools/autoconf-archive/autoconf-archive.inc @@ -0,0 +1,15 @@ +LICENSE = "GPLv3" +HOMEPAGE = "http://www.gnu.org/software/autoconf-archive/" +SECTION = "devel" + +DEPENDS += "m4-native" +DEPENDS_virtclass-native = "m4-native gnu-config-native" +DEPENDS_virtclass-nativesdk = "m4-nativesdk gnu-config-nativesdk" + +RDEPENDS_${PN} = "m4 gnu-config" +RDEPENDS_${PN}_virtclass-native = "m4-native gnu-config-native" +RDEPENDS_${PN}_virtclass-nativesdk = "m4-nativesdk gnu-config-nativesdk" + +SRC_URI = "${GNU_MIRROR}/${BPN}/${BPN}-${PV}.tar.bz2" + +inherit autotools diff --git a/meta-oe/recipes-devtools/autoconf-archive/autoconf-archive_2012.04.07.bb b/meta-oe/recipes-devtools/autoconf-archive/autoconf-archive_2012.04.07.bb new file mode 100644 index 000000000..5baaecc34 --- /dev/null +++ b/meta-oe/recipes-devtools/autoconf-archive/autoconf-archive_2012.04.07.bb @@ -0,0 +1,13 @@ +require autoconf-archive.inc + + +PARALLEL_MAKE = "" + +LICENSE = "GPLv2 & GPLv3" +LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" + +SRC_URI[md5sum] = "e842c5b9fae021007bd70550362e5e80" +SRC_URI[sha256sum] = "040b443bf68efd52fbfcb294b556bfbbbfe432db78445ca25e0cfe2e88f96a14" + +EXTRA_OECONF += "ac_cv_path_M4=m4" +BBCLASSEXTEND = "native nativesdk" diff --git a/meta-oe/recipes-devtools/bootchart/bootchart/0001-svg-add-rudimentary-support-for-ARM-cpuinfo.patch b/meta-oe/recipes-devtools/bootchart/bootchart/0001-svg-add-rudimentary-support-for-ARM-cpuinfo.patch new file mode 100644 index 000000000..4581ef25f --- /dev/null +++ b/meta-oe/recipes-devtools/bootchart/bootchart/0001-svg-add-rudimentary-support-for-ARM-cpuinfo.patch @@ -0,0 +1,49 @@ +From 8d40b4c286e005e82fa50b66fbbbde22b7e65e15 Mon Sep 17 00:00:00 2001 +From: Koen Kooi +Date: Sun, 20 May 2012 21:35:34 +0200 +Subject: [PATCH 1/2] svg: add rudimentary support for ARM cpuinfo + +On ARM /proc/cpuinfo looks like this: + +root@beagleboneA3-0428:~# cat /proc/cpuinfo +Processor : ARMv7 Processor rev 2 (v7l) +BogoMIPS : 498.89 +Features : swp half thumb fastmult vfp edsp thumbee neon vfpv3 tls +CPU implementer : 0x41 +CPU architecture: 7 +CPU variant : 0x3 +CPU part : 0xc08 +CPU revision : 2 + +Hardware : am335xevm +Revision : 0000 +Serial : 0000000000000000 + +So no real way to get the actual SoC name, TI AM3359, but a lot better than 'Unknown' + +Signed-off-by: Koen Kooi +--- + +Upstream-Status: submitted + + svg.c | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/svg.c b/svg.c +index 80e0292..53724b2 100644 +--- a/svg.c ++++ b/svg.c +@@ -178,6 +178,10 @@ void svg_title(void) + strncpy(cpu, &buf[13], 255); + break; + } ++ if (strstr(buf, "Processor")) { ++ strncpy(cpu, &buf[12], 255); ++ break; ++ } + } + fclose(f); + } +-- +1.7.10 + diff --git a/meta-oe/recipes-devtools/bootchart/bootchart/0002-svg-open-etc-os-release-and-use-PRETTY_NAME-for-the-.patch b/meta-oe/recipes-devtools/bootchart/bootchart/0002-svg-open-etc-os-release-and-use-PRETTY_NAME-for-the-.patch new file mode 100644 index 000000000..f63d98aee --- /dev/null +++ b/meta-oe/recipes-devtools/bootchart/bootchart/0002-svg-open-etc-os-release-and-use-PRETTY_NAME-for-the-.patch @@ -0,0 +1,39 @@ +From e3adb4c312c6ba3491b7c173559efac7a53e5abc Mon Sep 17 00:00:00 2001 +From: Koen Kooi +Date: Sun, 20 May 2012 22:12:29 +0200 +Subject: [PATCH 2/2] svg: open /etc/os-release and use PRETTY_NAME for the + 'Build' name + +Signed-off-by: Koen Kooi +--- + +Upstream-Status: Submitted + + svg.c | 11 +++++++++++ + 1 file changed, 11 insertions(+) + +diff --git a/svg.c b/svg.c +index 53724b2..c675d84 100644 +--- a/svg.c ++++ b/svg.c +@@ -194,6 +194,17 @@ void svg_title(void) + fclose(f); + } + ++ f = fopen("/etc/os-release", "r"); ++ if(f) { ++ while (fgets(buf, 255, f)) { ++ if (strstr(buf, "PRETTY_NAME=")) { ++ strncpy(build, &buf[12], 255); ++ break; ++ } ++ } ++ fclose(f); ++ } ++ + svg("Bootchart for %s - %s\n", + uts.nodename, date); + svg("System: %s %s %s %s\n", +-- +1.7.10 + diff --git a/meta-oe/recipes-devtools/bootchart/bootchart_git.bb b/meta-oe/recipes-devtools/bootchart/bootchart_git.bb new file mode 100644 index 000000000..a8b81849f --- /dev/null +++ b/meta-oe/recipes-devtools/bootchart/bootchart_git.bb @@ -0,0 +1,21 @@ +DESCRIPTION = "Monitors where the system spends its time at start, creating a graph of all processes, disk utilization, and wait time." +HOMEPAGE = "http://meego.gitorious.org/meego-developer-tools/bootchart" + +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://COPYING;md5=fcb02dc552a041dee27e4b85c7396067" + +PV = "1.16" +PR = "r1" +PE = "1" + +SRC_URI = "git://gitorious.org/meego-developer-tools/bootchart.git \ + file://0001-svg-add-rudimentary-support-for-ARM-cpuinfo.patch \ + file://0002-svg-open-etc-os-release-and-use-PRETTY_NAME-for-the-.patch \ +" + +SRCREV = "872fb107028e377eef3c0c7c8a6e0f7c32b8ebb8" + +S = "${WORKDIR}/git" + +inherit autotools + diff --git a/meta-oe/recipes-devtools/breakpad/breakpad_svn.bb b/meta-oe/recipes-devtools/breakpad/breakpad_svn.bb new file mode 100644 index 000000000..2c5941d7e --- /dev/null +++ b/meta-oe/recipes-devtools/breakpad/breakpad_svn.bb @@ -0,0 +1,73 @@ +# Released under the MIT license (see COPYING.MIT for the terms) + +# Applications using this library needs to add link against libbreakpad_client.a. + +SUMMARY = "An open-source multi-platform crash reporting system" +DESCRIPTION = "Breakpad is a library and tool suite that allows you to distribute an application to users with compiler-provided debugging information removed, record crashes in compact \"minidump\" files, send them back to your server, and produce C and C++ stack traces from these minidumps. " +HOMEPAGE = "https://code.google.com/p/google-breakpad/" +LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM = "file://LICENSE;md5=56c24a43c81c3af6fcf590851931489e" +SECTION = "libs" + +inherit autotools + +BBCLASSEXTEND = "native" + +SRCREV = "r1318" +SRC_URI = "svn://google-breakpad.googlecode.com/svn;module=trunk;protocol=http" +S = "${WORKDIR}/trunk" + +do_install_append() { + install -d ${D}${includedir} + install -d ${D}${includedir}/breakpad + + install -d ${D}${includedir}/breakpad/client/linux/crash_generation + install -m 0644 ${S}/src/client/linux/crash_generation/crash_generation_client.h ${D}${includedir}/breakpad/client/linux/crash_generation/crash_generation_client.h + + install -d ${D}${includedir}/breakpad/client/linux/handler/ + install -m 0644 ${S}/src/client/linux/handler/exception_handler.h ${D}${includedir}/breakpad/client/linux/handler/exception_handler.h + install -m 0644 ${S}/src/client/linux/handler/minidump_descriptor.h ${D}${includedir}/breakpad/client/linux/handler/minidump_descriptor.h + + install -d ${D}${includedir}/breakpad/client/linux/minidump_writer + install -m 0644 ${S}/src/client/linux/minidump_writer/linux_dumper.h ${D}${includedir}/breakpad/client/linux/minidump_writer/linux_dumper.h + install -m 0644 ${S}/src/client/linux/minidump_writer/minidump_writer.h ${D}${includedir}/breakpad/client/linux/minidump_writer/minidump_writer.h + + install -d ${D}${includedir}/breakpad/common + install -m 0644 ${S}/src/common/memory.h ${D}${includedir}/breakpad/common/memory.h + install -m 0644 ${S}/src/common/scoped_ptr.h ${D}${includedir}/breakpad/common/scoped_ptr.h + install -m 0644 ${S}/src/common/using_std_string.h ${D}${includedir}/breakpad/common/using_std_string.h + + install -d ${D}${includedir}/breakpad/google_breakpad/common + install -m 0644 ${S}/src/google_breakpad/common/breakpad_types.h ${D}${includedir}/breakpad/google_breakpad/common/breakpad_types.h + install -m 0644 ${S}/src/google_breakpad/common/minidump_format.h ${D}${includedir}/breakpad/google_breakpad/common/minidump_format.h + install -m 0644 ${S}/src/google_breakpad/common/minidump_cpu_amd64.h ${D}${includedir}/breakpad/google_breakpad/common/minidump_cpu_amd64.h + install -m 0644 ${S}/src/google_breakpad/common/minidump_cpu_arm.h ${D}${includedir}/breakpad/google_breakpad/common/minidump_cpu_arm.h + install -m 0644 ${S}/src/google_breakpad/common/minidump_cpu_arm.h ${D}${includedir}/breakpad/google_breakpad/common/minidump_cpu_arm64.h + install -m 0644 ${S}/src/google_breakpad/common/minidump_cpu_mips.h ${D}${includedir}/breakpad/google_breakpad/common/minidump_cpu_mips.h + install -m 0644 ${S}/src/google_breakpad/common/minidump_cpu_ppc64.h ${D}${includedir}/breakpad/google_breakpad/common/minidump_cpu_ppc64.h + install -m 0644 ${S}/src/google_breakpad/common/minidump_cpu_ppc.h ${D}${includedir}/breakpad/google_breakpad/common/minidump_cpu_ppc.h + install -m 0644 ${S}/src/google_breakpad/common/minidump_cpu_sparc.h ${D}${includedir}/breakpad/google_breakpad/common/minidump_cpu_sparc.h + install -m 0644 ${S}/src/google_breakpad/common/minidump_cpu_x86.h ${D}${includedir}/breakpad/google_breakpad/common/minidump_cpu_x86.h + install -m 0644 ${S}/src/google_breakpad/common/minidump_exception_linux.h ${D}${includedir}/breakpad/google_breakpad/common/minidump_exception_linux.h + install -m 0644 ${S}/src/google_breakpad/common/minidump_exception_mac.h ${D}${includedir}/breakpad/google_breakpad/common/minidump_exception_mac.h + install -m 0644 ${S}/src/google_breakpad/common/minidump_exception_ps3.h ${D}${includedir}/breakpad/google_breakpad/common/minidump_exception_ps3.h + install -m 0644 ${S}/src/google_breakpad/common/minidump_exception_solaris.h ${D}${includedir}/breakpad/google_breakpad/common/minidump_exception_solaris.h + install -m 0644 ${S}/src/google_breakpad/common/minidump_exception_win32.h ${D}${includedir}/breakpad/google_breakpad/common/minidump_exception_win32.h + + install -d ${D}${includedir}/breakpad/third_party/lss + install -m 0644 ${S}/src/third_party/lss/linux_syscall_support.h ${D}${includedir}/breakpad/third_party/lss/linux_syscall_support.h +} + +PACKAGES =+ "${PN}-minidump-upload ${PN}-sym-upload" + +FILES_${PN}-minidump-upload = "${bindir}/minidump_upload" +FILES_${PN}-sym-upload = "${bindir}/sym_upload" + + +SYSROOT_PREPROCESS_FUNCS += "breakpad_populate_sysroot" +breakpad_populate_sysroot() { + sysroot_stage_dir ${D}/usr/include ${SYSROOT_DESTDIR}/usr/include + sysroot_stage_dir ${D}/usr/lib ${SYSROOT_DESTDIR}/usr/lib + sysroot_stage_dir ${D}/usr/lib ${SYSROOT_DESTDIR}/usr/lib +} + diff --git a/meta-oe/recipes-devtools/cgdb/cgdb/configfix.patch b/meta-oe/recipes-devtools/cgdb/cgdb/configfix.patch new file mode 100644 index 000000000..25b13862b --- /dev/null +++ b/meta-oe/recipes-devtools/cgdb/cgdb/configfix.patch @@ -0,0 +1,40 @@ +diff -rupN cgdb-0.6.7-OLD/configure.in cgdb-0.6.7/configure.in +--- cgdb-0.6.7-OLD/configure.in 2013-01-14 05:31:53.000000000 -0600 ++++ cgdb-0.6.7/configure.in 2014-05-08 13:18:13.864632180 -0500 +@@ -65,8 +65,9 @@ AC_CHECK_HEADERS([getopt.h], + [AC_DEFINE(HAVE_GETOPT_H, 1, have getopt_long)]) + + dnl determine if /dev/ptmx is available for pseudo terminals +-AC_CHECK_FILE([/dev/ptmx], +- [AC_DEFINE(HAVE_DEV_PTMX, 1, have /dev/ptmx)]) ++dnl AC_CHECK_FILE([/dev/ptmx], ++dnl [AC_DEFINE(HAVE_DEV_PTMX, 1, have /dev/ptmx)]) ++AC_DEFINE(HAVE_DEV_PTMX, 1, have /dev/ptmx) + + dnl Checks for typedefs, structures, and compiler characteristics. + AC_C_CONST +@@ -167,15 +168,15 @@ fi + + dnl Make sure there is a version of readline that CGDB supports. + dnl Simply putting 5.1* -> 5.9* just to take into accout future versions. +-RL_LIB_READLINE_VERSION +-case "$ac_cv_rl_version" in +-5.1*|5.2*|5.3*|5.4*|5.5*|5.6*|5.7*|5.8*|5.9*|6*|7*|8*|9*) ;; +-*) AC_MSG_ERROR([CGDB requires GNU readline 5.1 or greater to link. +- If you used --with-readline instead of using the system readline library, +- make sure to set the correct readline library on the linker search path +- via LD_LIBRARY_PATH or some other facility.]) +- ;; +-esac ++dnl RL_LIB_READLINE_VERSION ++dnl case "$ac_cv_rl_version" in ++dnl 5.1*|5.2*|5.3*|5.4*|5.5*|5.6*|5.7*|5.8*|5.9*|6*|7*|8*|9*) ;; ++dnl *) AC_MSG_ERROR([CGDB requires GNU readline 5.1 or greater to link. ++dnl If you used --with-readline instead of using the system readline library, ++dnl make sure to set the correct readline library on the linker search path ++dnl via LD_LIBRARY_PATH or some other facility.]) ++dnl ;; ++dnl esac + + dnl This will DEFINE the readline headers. + RL_LIB_READLINE_INCLUDES diff --git a/meta-oe/recipes-devtools/cgdb/cgdb_0.6.7.bb b/meta-oe/recipes-devtools/cgdb/cgdb_0.6.7.bb new file mode 100644 index 000000000..26b2782f0 --- /dev/null +++ b/meta-oe/recipes-devtools/cgdb/cgdb_0.6.7.bb @@ -0,0 +1,16 @@ +SUMMARY = "curses-based interface to gdb" +HOMEPAGE = "http://cgdb.github.io/" +SECTION = "devel" +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" +DEPENDS = "readline ncurses gdb" + +SRC_URI = "http://cgdb.me/files/cgdb-${PV}.tar.gz \ + file://configfix.patch" +SRC_URI[md5sum] = "e2d9a973d2683faf8130a82703bf6a31" +SRC_URI[sha256sum] = "074ed31d1e827a04574add8c27d391447d75313e85ff938005d8ec939499fda9" + +EXTRA_OECONF = "--with-readline=${STAGING_LIBDIR} --with-ncurses=${STAGING_LIBDIR}" + +inherit autotools + diff --git a/meta-oe/recipes-devtools/cloud9/cloud9/0001-ide-use-node-as-interpreter-for-sketches-instead-of-.patch b/meta-oe/recipes-devtools/cloud9/cloud9/0001-ide-use-node-as-interpreter-for-sketches-instead-of-.patch new file mode 100644 index 000000000..b32311a82 --- /dev/null +++ b/meta-oe/recipes-devtools/cloud9/cloud9/0001-ide-use-node-as-interpreter-for-sketches-instead-of-.patch @@ -0,0 +1,29 @@ +From ac1953d04f3f26d6aa5d8f53a9397d3ba0e96fa3 Mon Sep 17 00:00:00 2001 +From: Koen Kooi +Date: Fri, 11 May 2012 15:23:02 +0000 +Subject: [PATCH] ide: use 'node' as interpreter for sketches instead of + argv[0] + +This enables running scripts with node 0.6.x instead of 0.4.x + +Signed-off-by: root +--- + server/cloud9/ide.js | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/server/cloud9/ide.js b/server/cloud9/ide.js +index ce782f5..6c4e0f7 100644 +--- a/server/cloud9/ide.js ++++ b/server/cloud9/ide.js +@@ -53,7 +53,7 @@ var Ide = module.exports = function(options, httpServer, exts, socket) { + }; + + this.$users = {}; +- this.nodeCmd = process.argv[0]; ++ this.nodeCmd = "node"; + + var davOptions = { + node: this.options.mountDir, +-- +1.7.7 + diff --git a/meta-oe/recipes-devtools/cloud9/cloud9/cloud9-avahi.service b/meta-oe/recipes-devtools/cloud9/cloud9/cloud9-avahi.service new file mode 100644 index 000000000..cb9b6e2db --- /dev/null +++ b/meta-oe/recipes-devtools/cloud9/cloud9/cloud9-avahi.service @@ -0,0 +1,10 @@ + + + + + Cloud9 IDE on %h + + _http._tcp + 3000 + + diff --git a/meta-oe/recipes-devtools/cloud9/cloud9/cloud9.service b/meta-oe/recipes-devtools/cloud9/cloud9/cloud9.service new file mode 100644 index 000000000..495b131ff --- /dev/null +++ b/meta-oe/recipes-devtools/cloud9/cloud9/cloud9.service @@ -0,0 +1,11 @@ +[Unit] +Description=Cloud9 IDE +ConditionPathExists=|/var/lib/cloud9 + +[Service] +Restart=always +EnvironmentFile=-/etc/default/node +ExecStart=/usr/bin/node4 /usr/share/cloud9/bin/cloud9.js -l 0.0.0.0 -w /var/lib/cloud9 -p 3000 + +[Install] +WantedBy=multi-user.target diff --git a/meta-oe/recipes-devtools/cloud9/cloud9/index.js b/meta-oe/recipes-devtools/cloud9/cloud9/index.js new file mode 100644 index 000000000..88c9a19f0 --- /dev/null +++ b/meta-oe/recipes-devtools/cloud9/cloud9/index.js @@ -0,0 +1,2 @@ +var o3 = require('./o3.js') +module.exports = o3.xml; diff --git a/meta-oe/recipes-devtools/cloud9/cloud9_0.6.bb b/meta-oe/recipes-devtools/cloud9/cloud9_0.6.bb new file mode 100644 index 000000000..b5dbaa8d8 --- /dev/null +++ b/meta-oe/recipes-devtools/cloud9/cloud9_0.6.bb @@ -0,0 +1,117 @@ +SUMMARY = "Meet Cloud9, development-as-a-service for Javascripters and other developers" +HOMEPAGE = "http://c9.io" +LICENSE = "GPLv3" +LIC_FILES_CHKSUM = "file://LICENSE;md5=4784c3bcff601fd8f9515f52a11e7018" + +PR = "r5" + +# Nodejs-native for node-waf, nodejs4-native for the headers +DEPENDS = "libxml2 nodejs-native nodejs4-native" + +inherit systemd + +SRC_URI = "git://github.com/ajaxorg/cloud9.git;name=cloud9ide \ + git://github.com/ajaxorg/o3;destsuffix=o3;name=o3 \ + git://github.com/ajaxorg/ace.git;destsuffix=git/support/ace;name=ace \ + git://github.com/ajaxorg/ace.wiki.git;destsuffix=git/support/ace/doc/wiki;name=acewiki \ + git://github.com/ajaxorg/apf.git;destsuffix=git/support/apf;name=apf \ + git://github.com/ajaxorg/async.js.git;destsuffix=git/support/asyncjs;name=asyncjs \ + git://github.com/ajaxorg/connect.git;destsuffix=git/support/connect;name=connect;branch=ajaxorg \ + git://github.com/jashkenas/coffee-script.git;destsuffix=git/support/connect/support/coffee-script;name=coffee-script \ + git://github.com/visionmedia/expresso.git;destsuffix=git/support/connect/support/expresso;name=expresso \ + git://github.com/visionmedia/node-jscoverage.git;destsuffix=git/support/connect/support/expresso/deps/jscoverage;name=jscoverage \ + git://github.com/cloudhead/less.js.git;destsuffix=git/support/connect/support/less;name=less \ + git://github.com/matehat/sass.js.git;destsuffix=git/support/connect/support/sass;name=sass \ + git://github.com/ajaxorg/jsDAV.git;destsuffix=git/support/jsdav;name=jsdav \ + git://github.com/fjakobs/async.js.git;destsuffix=git/support/jsdav/support/async.js;name=async-js \ + git://github.com/felixge/node-formidable.git;destsuffix=git/support/jsdav/support/formidable;name=formidable \ + git://github.com/ajaxorg/jsftp.git;destsuffix=git/support/jsdav/support/jsftp;name=jsftp \ + git://github.com/Gozala/streamer.git;destsuffix=git/support/jsdav/support/jsftp/support/streamer;name=streamer \ + git://github.com/ajaxorg/node-sftp.git;destsuffix=git/support/jsdav/support/node-sftp;name=sftp \ + git://github.com/ajaxorg/lib-v8debug.git;destsuffix=git/support/lib-v8debug;name=lib-v8debug \ + git://github.com/ajaxorg/socket.io.git;destsuffix=git/support/socket.io;name=socketio;branch=cadorn-upstream \ + git://github.com/LearnBoost/socket.io-client.git;destsuffix=git/support/socket.io-client;name=socketio-client \ + git://github.com/ajaxorg/treehugger.git;destsuffix=git/support/treehugger;name=treehugger \ + git://github.com/ajaxorg/UglifyJS.git;destsuffix=git/support/uglify-js;name=uglify-js \ + file://index.js \ + file://cloud9-avahi.service \ + file://cloud9.service \ + file://0001-ide-use-node-as-interpreter-for-sketches-instead-of-.patch \ +" + +SRCREV_cloud9ide = "c4e2574896a22bb749f0500b25f41c888d346bed" +SRCREV_o3 = "d66d4e3252e505f44ada6804c8cab39915ce8afd" +SRCREV_ace = "0fc5392cbe46fb134052c3065a238ad8e3b31cfd" +SRCREV_acewiki = "d2a65d0addc2e5ab922bbff9cb6022a4652b4f13" +SRCREV_apf = "2560b762b2b0e5a8b46f8a4062f927a9a9d239f4" +SRCREV_asyncjs = "d36ead408e2959b1e99572114ef3a1b6a48c1072" +SRCREV_connect = "6bec95b51f2286b942bc7f340d62d816bcdc13d4" +SRCREV_coffee-script = "a53c104db16d3ac9d13cf9f16834edec250b9749" +SRCREV_expresso = "7f10ab7fa655299b4e2f519065b0495e6ac34ef2" +SRCREV_jscoverage = "0d4608a6b4275b020ba665389aa75897d5d4a584" +SRCREV_less = "a2807288008587b95c6c2f8ba5cac16f1bcab98f" +SRCREV_sass = "4dfd4c699e7a8baf226215ab044854c4507f4420" +SRCREV_jsdav = "f04ebf3d012cc8aeabfcfb2b8fab8966d52929e9" +SRCREV_async-js = "92fb710a70efd3cdc2376ebfba71a7fb3a4f1651" +SRCREV_formidable = "a37292d4b7d6d76a38909ed670334c9068d40871" +SRCREV_jsftp = "e3f10c8927347c170cdd0150ef38e18272acf942" +SRCREV_streamer = "1a7f75d4065819171ac91a09974199b932dbe17d" +SRCREV_sftp = "a0539345134970d7535a19cb2608e3d1bc119d71" +SRCREV_lib-v8debug = "7c11897f4bc77c7275c2b6dff5becc72ac018662" +SRCREV_socketio = "735d5239b325df2ba67d2b9bb4ec32442283bc06" +SRCREV_socketio-client = "4375ef1344ecb8ad75a3848a00af6b391822f86b" +SRCREV_treehugger = "436d0d6dd0ce43782e6be08ad12c356730626996" +SRCREV_uglify-js = "941c845c4a01e4e47a158458fe846eb36d0828ad" + +SRCREV_FORMAT = "cloud9ide" + +S = "${WORKDIR}/git" + +do_configure () { + cd ${WORKDIR}/o3 + node-waf -vv configure +} + +EXTRA_CXXFLAGS = "-Idefault/include -I../include -Idefault/hosts -I../hosts -Idefault/modules -I../modules -Idefault/deps -I../deps -I${STAGING_DIR_NATIVE}/usr/include/node4 -fPIC -DPIC" + +do_compile () { + cd ${WORKDIR}/o3 + node4 tools/gluegen.js + cd hosts + ${CXX} ${TARGET_CXXFLAGS} ${EXTRA_CXXFLAGS} -c -o sh_node.o node-o3/sh_node.cc + ${CXX} ${TARGET_CXXFLAGS} ${EXTRA_CXXFLAGS} -c -o sh_node_libs.o node-o3/sh_node_libs.cc + cd .. + ${CXX} ${TARGET_LDFLAGS} hosts/sh_node.o hosts/sh_node_libs.o -o o3.node -shared -Wl,-Bdynamic -lxml2 +} + +do_install () { + install -m 0755 -d ${D}${datadir}/cloud9 ${D}${bindir} ${D}/var/lib/cloud9 + rsync -r --exclude=".*" ${S}/* ${D}${datadir}/cloud9 + + touch ${D}${bindir}/cloud9 + echo "#!/bin/sh" > ${D}${bindir}/cloud9 + echo "node4 ${datadir}/cloud9/bin/cloud9.js -l 0.0.0.0 -w /var/lib/cloud9 -p 3000" >> ${D}${bindir}/cloud9 + chmod 0755 ${D}${bindir}/cloud9 + + install -m 0755 -d ${D}${datadir}/cloud9/support/jsdav/support/node-o3-xml-v4/lib/o3-xml + install -m 0644 ${WORKDIR}/index.js ${D}${datadir}/cloud9/support/jsdav/support/node-o3-xml-v4/lib/o3-xml/index.js + install -m 0644 ${WORKDIR}/o3/modules/o3.js ${D}${datadir}/cloud9/support/jsdav/support/node-o3-xml-v4/lib/o3-xml/o3.js + install -m 0755 ${WORKDIR}/o3/o3.node ${D}${datadir}/cloud9/support/jsdav/support/node-o3-xml-v4/lib/o3-xml/o3.node + + install -m 0755 -d ${D}${sysconfdir}/avahi/services/ + install -m 0644 ${WORKDIR}/cloud9-avahi.service ${D}${sysconfdir}/avahi/services/ + + install -d ${D}${systemd_unitdir}/system + install -m 0644 ${WORKDIR}/cloud9.service ${D}${systemd_unitdir}/system +} + +FILES_${PN}-dbg += "${datadir}/cloud9/support/jsdav/support/node-o3-xml-v4/lib/o3-xml/.debug \ + ${datadir}/cloud9/support/jsdav/support/node-o3-xml-v4/lib/.debug \ +" + +RDEPENDS_${PN} = "nodejs4 nodejs gzip" + +RPROVIDES_${PN} += "${PN}-systemd" +RREPLACES_${PN} += "${PN}-systemd" +RCONFLICTS_${PN} += "${PN}-systemd" +SYSTEMD_SERVICE_${PN} = "cloud9.service" diff --git a/meta-oe/recipes-devtools/concurrencykit/concurrencykit/cross.patch b/meta-oe/recipes-devtools/concurrencykit/concurrencykit/cross.patch new file mode 100644 index 000000000..38504fef6 --- /dev/null +++ b/meta-oe/recipes-devtools/concurrencykit/concurrencykit/cross.patch @@ -0,0 +1,69 @@ +Index: git/configure +=================================================================== +--- git.orig/configure 2012-11-19 21:07:51.917429465 -0800 ++++ git/configure 2012-11-19 21:13:19.337437278 -0800 +@@ -275,8 +275,11 @@ + assert "$SYSTEM" "$SYSTEM" "unsupported" + + CORES=${CORES:-${DCORES}} +-printf "Detecting machine architecture..." +-PLATFORM=`uname -m 2> /dev/null` ++if test -z "$PLATFORM"; then ++ printf "Detecting machine architecture..." ++ PLATFORM=`uname -m 2> /dev/null` ++fi ++ + case $PLATFORM in + "macppc"|"Power Macintosh"|"powerpc") + MM="${MM:-"CK_MD_RMO"}" +@@ -439,14 +442,18 @@ + GZIP_SUFFIX=".gz" + fi + +-printf "Finding suitable compiler........" +-CC=`pathsearch "${CC:-cc}"` +-if test -z "$CC" -o ! -x "$CC"; then +- CC=`pathsearch "${CC:-gcc}"` ++if test -z "$CC"; then ++ printf "Finding suitable compiler........" ++ CC=`pathsearch "${CC:-cc}"` ++ if test -z "$CC" -o ! -x "$CC"; then ++ CC=`pathsearch "${CC:-gcc}"` ++ fi + fi + assert "$CC" "not found" + +-cat << EOF > .1.c ++if test -z "$COMPILER"; then ++ ++ cat << EOF > .1.c + #include + int main(void) { + #if defined(__GNUC__) && (__GNUC__ >= 4) +@@ -460,16 +467,16 @@ + #endif + } + EOF +- +-$CC -o .1 .1.c +-COMPILER=`./.1` +-r=$? +-rm -f .1.c .1 +- +-if test "$r" -ne 0; then +- assert "" "update compiler" +-else +- echo "success [$CC]" ++ $CC -o .1 .1.c ++ COMPILER=`./.1` ++ r=$? ++ rm -f .1.c .1 ++ ++ if test "$r" -ne 0; then ++ assert "" "update compiler" ++ else ++ echo "success [$CC]" ++ fi + fi + + if test "$COMPILER" = "suncc"; then diff --git a/meta-oe/recipes-devtools/concurrencykit/concurrencykit_git.bb b/meta-oe/recipes-devtools/concurrencykit/concurrencykit_git.bb new file mode 100644 index 000000000..eebccf01b --- /dev/null +++ b/meta-oe/recipes-devtools/concurrencykit/concurrencykit_git.bb @@ -0,0 +1,41 @@ +DESCRIPTION = "Concurrency Kit provides a plethora of concurrency primitives, \ +safe memory reclamation mechanisms and non-blocking data structures \ +designed to aid in the design and implementation of high performance \ +concurrent systems." + +LICENSE = "BSD & Apache-2.0" +HOMEPAGE = "http://concurrencykit.org" +SECTION = "base" + +PV = "0.4.3+git${SRCPV}" +SRCREV = "900d203aa9e41288545368ea40da0bee89f7907f" +LIC_FILES_CHKSUM = "file://LICENSE;md5=f12611e65e064515ce264249b2bdea98" +SRC_URI = "git://github.com/concurrencykit/ck.git;protocol=https \ + file://cross.patch \ +" + +S = "${WORKDIR}/git" + +COMPATIBLE_HOST = "(i.86|x86_64|powerpc|powerpc64).*-linux*" + +inherit autotools-brokensep + +PLAT_powerpc64 = "ppc64" +PLAT ?= "${HOST_ARCH}" + +do_configure () { + export PLATFORM=${PLAT} + export COMPILER='gcc' + ${S}/configure \ + --prefix=${prefix} \ + --includedir=${includedir} \ + --libdir=${libdir} \ +} + +do_compile () { + oe_runmake +} + +do_install () { + oe_runmake 'DESTDIR=${D}' install +} diff --git a/meta-oe/recipes-devtools/cppunit/cppunit_1.13.1.bb b/meta-oe/recipes-devtools/cppunit/cppunit_1.13.1.bb new file mode 100644 index 000000000..3e525fe4f --- /dev/null +++ b/meta-oe/recipes-devtools/cppunit/cppunit_1.13.1.bb @@ -0,0 +1,11 @@ +DESCRIPTION = "CppUnit is the C++ port of the famous JUnit framework for unit testing. Test output is in XML for automatic testing and GUI based for supervised tests. " +HOMEPAGE = "http://www.freedesktop.org/wiki/Software/cppunit" +LICENSE = "LGPL-2.1" +SECTION = "libs" + +LIC_FILES_CHKSUM = "file://COPYING;md5=7fbc338309ac38fefcd64b04bb903e34" +SRC_URI = "http://dev-www.libreoffice.org/src/cppunit-${PV}.tar.gz" +SRC_URI[md5sum] = "fa9aa839145cdf860bf596532bb8af97" +SRC_URI[sha256sum] = "d5b9f3ffc9f1634d75b20b54f48c02e0817bca6afa1d5160b244889d6bff8e0f" + +inherit autotools diff --git a/meta-oe/recipes-devtools/dejagnu/dejagnu/configure.patch b/meta-oe/recipes-devtools/dejagnu/dejagnu/configure.patch new file mode 100644 index 000000000..2eb8af713 --- /dev/null +++ b/meta-oe/recipes-devtools/dejagnu/dejagnu/configure.patch @@ -0,0 +1,45 @@ +Index: dejagnu-1.4.4/configure.in +=================================================================== +--- dejagnu-1.4.4.orig/configure.in 2014-07-18 07:05:49.997481207 +0000 ++++ dejagnu-1.4.4/configure.in 2014-07-18 07:05:50.085481210 +0000 +@@ -1,10 +1,10 @@ + dnl Process this file with autoconf to produce a configure script. + AC_PREREQ(2.13) +-AC_INIT(runtest.exp) ++AC_INIT(dejagnu, 1.4.4) + dnl AC_CONFIG_AUX_DIR(..) + + dnl These are required by automake +-AM_INIT_AUTOMAKE(dejagnu, 1.4.4) ++AM_INIT_AUTOMAKE([foreign]) + AM_MAINTAINER_MODE + AC_PROG_MAKE_SET + +Index: dejagnu-1.4.4/example/calc/configure.in +=================================================================== +--- dejagnu-1.4.4.orig/example/calc/configure.in 2002-04-26 03:32:40.000000000 +0000 ++++ dejagnu-1.4.4/example/calc/configure.in 2014-07-18 07:11:59.085491266 +0000 +@@ -1,8 +1,8 @@ + dnl Process this file with autoconf to produce a configure script. + AC_PREREQ(2.5) +-AC_INIT(calc.c) ++AC_INIT(calc, 1.1) + AM_CONFIG_HEADER(calc.h) +-AM_INIT_AUTOMAKE(calc, 1.1) ++AM_INIT_AUTOMAKE([foreign]) + + AC_PROG_CC + AC_PROG_INSTALL +Index: dejagnu-1.4.4/example/hello/configure.in +=================================================================== +--- dejagnu-1.4.4.orig/example/hello/configure.in 2002-08-31 05:46:16.000000000 +0000 ++++ dejagnu-1.4.4/example/hello/configure.in 2014-07-18 07:12:23.721491937 +0000 +@@ -25,7 +25,7 @@ + # ------------------------------------------------------------------------ + + AC_INIT(helloworld, demo-version, philip.wilsey@ieee.org) +-AM_INIT_AUTOMAKE(helloworld, demo-version) ++AM_INIT_AUTOMAKE([foreign]) + + #AC_CONFIG_SRCDIR([hello.cc]) + #AC_CONFIG_HEADER([config.h]) diff --git a/meta-oe/recipes-devtools/dejagnu/dejagnu_1.4.4.bb b/meta-oe/recipes-devtools/dejagnu/dejagnu_1.4.4.bb new file mode 100644 index 000000000..63726b232 --- /dev/null +++ b/meta-oe/recipes-devtools/dejagnu/dejagnu_1.4.4.bb @@ -0,0 +1,14 @@ +SUMMARY = "GNU unit testing framework, written in Expect and Tcl" +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://COPYING;md5=c93c0550bd3173f4504b2cbd8991e50b" +SECTION = "devel" + +inherit autotools + +SRC_URI = "${GNU_MIRROR}/${BPN}/${BP}.tar.gz \ + file://configure.patch" + +SRC_URI[md5sum] = "053f18fd5d00873de365413cab17a666" +SRC_URI[sha256sum] = "d0fbedef20fb0843318d60551023631176b27ceb1e11de7468a971770d0e048d" + +BBCLASSEXTEND = "native" diff --git a/meta-oe/recipes-devtools/geany/geany/0001-configure.ac-remove-additional-c-test.patch b/meta-oe/recipes-devtools/geany/geany/0001-configure.ac-remove-additional-c-test.patch new file mode 100644 index 000000000..5166fece0 --- /dev/null +++ b/meta-oe/recipes-devtools/geany/geany/0001-configure.ac-remove-additional-c-test.patch @@ -0,0 +1,47 @@ +From e62d5b59262ec7ffe07931790712c7e247377795 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Andreas=20M=C3=BCller?= +Date: Thu, 21 Feb 2013 09:31:31 +0100 +Subject: [PATCH] configure.ac remove additional c++ test +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +For openembedded cross-builds CXX can contain something like: + +arm-oe-linux-gnueabi-g++ -march=armv5te -marm -mthumb-interwork --sysroot=/home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/sysroots/qemuarm + +This ends up in + +configure:5582: error: No C++ compiler found. Please install a C++ compiler. + +Anyway if [1] is still valid, the combination of AC_PROG_CC and AC_PROG_CXX +should thow an error message. + +[1] http://lists.gnu.org/archive/html/bug-autoconf/2010-05/msg00001.html + +Upstream-Status: Inappropriate [configuration] + +Signed-off-by: Andreas Müller +--- + configure.ac | 5 ----- + 1 files changed, 0 insertions(+), 5 deletions(-) + +diff --git a/configure.ac b/configure.ac +index c37312a..742bf35 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -26,11 +26,6 @@ AC_USE_SYSTEM_EXTENSIONS + AC_PROG_CC + + AC_PROG_CXX +-# check for C++ compiler explicitly and fail if none is found, do this check +-# after AC_PROG_CXX has set the CXX environment variable +-if ! which $CXX >/dev/null 2>&1; then +- AC_MSG_ERROR([No C++ compiler found. Please install a C++ compiler.]) +-fi + + AC_PROG_INSTALL + AC_PROG_LN_S +-- +1.7.6.5 + diff --git a/meta-oe/recipes-devtools/geany/geany_1.24.1.bb b/meta-oe/recipes-devtools/geany/geany_1.24.1.bb new file mode 100644 index 000000000..f765e2c8d --- /dev/null +++ b/meta-oe/recipes-devtools/geany/geany_1.24.1.bb @@ -0,0 +1,16 @@ +SUMMARY = "A fast and lightweight IDE" +HOMEPAGE = "http://www.geany.org/" +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://COPYING;md5=bd7b2c994af21d318bd2cd3b3f80c2d5" +DEPENDS = "gtk+" + +inherit autotools pkgconfig perlnative + +SRC_URI = " \ + http://download.geany.org/${BP}.tar.bz2 \ + file://0001-configure.ac-remove-additional-c-test.patch \ +" +SRC_URI[md5sum] = "d225104cef3973164d70116d46239606" +SRC_URI[sha256sum] = "7fb505d9b01fe6874890525f837644a6a38c23a372bb068c65ef3673108a8c33" + +FILES_${PN} += "${datadir}/icons" diff --git a/meta-oe/recipes-devtools/giflib/giflib_4.1.6.bb b/meta-oe/recipes-devtools/giflib/giflib_4.1.6.bb new file mode 100644 index 000000000..1f853083c --- /dev/null +++ b/meta-oe/recipes-devtools/giflib/giflib_4.1.6.bb @@ -0,0 +1,20 @@ +SUMMARY = "shared library for GIF images" +SECTION = "libs" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://COPYING;md5=ae11c61b04b2917be39b11f78d71519a" +PR = "r3" + +SRC_URI = "${SOURCEFORGE_MIRROR}/giflib/${BP}.tar.bz2" + +inherit autotools + +EXTRA_OECONF = "--disable-x11" + +PACKAGES += "${PN}-utils" +FILES_${PN} = "${libdir}/libgif.so.*" +FILES_${PN}-utils = "${bindir}" + +BBCLASSEXTEND = "native" + +SRC_URI[md5sum] = "7125644155ae6ad33dbc9fc15a14735f" +SRC_URI[sha256sum] = "e1c1ced9c5bc8f93ef0faf0a8c7717abf784d10a7b270d2285e8e1f3b93f2bed" diff --git a/meta-oe/recipes-devtools/glade/files/0001-gnome-doc-utils.make-sysrooted-pkg-config.patch b/meta-oe/recipes-devtools/glade/files/0001-gnome-doc-utils.make-sysrooted-pkg-config.patch new file mode 100644 index 000000000..1b24c39ce --- /dev/null +++ b/meta-oe/recipes-devtools/glade/files/0001-gnome-doc-utils.make-sysrooted-pkg-config.patch @@ -0,0 +1,51 @@ +From aed002cd9ff9e8f972120fbac33b4a65aba952e1 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Andreas=20M=C3=BCller?= +Date: Tue, 25 Sep 2012 10:28:33 +0200 +Subject: [PATCH] gnome-doc-utils.make: sysrooted pkg-config +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +same approach as used used in gnome-disk-utility: + +In cross environment we have to prepend the sysroot to the path found by +pkgconfig since the path returned from pkgconfig does not have sysroot prefixed +it ends up using the files from host system. Now usually people have gnome installed +so the build succeeds but if you dont have gnome installed on build host then +it wont find the files on host system and packages using gnome-doc-utils wont +compile. + +This should work ok with non sysrooted builds too since in those cases PKG_CONFIG_SYSROOT_DIR +will be empty + +Upstream-Status: pending + +Signed-off-by: Andreas Müller +--- + gnome-doc-utils.make | 10 +++++----- + 1 files changed, 5 insertions(+), 5 deletions(-) + +diff --git a/gnome-doc-utils.make b/gnome-doc-utils.make +index 42d9df3..f71bbfa 100644 +--- a/gnome-doc-utils.make ++++ b/gnome-doc-utils.make +@@ -133,11 +133,11 @@ _DOC_ABS_SRCDIR = @abs_srcdir@ + _xml2po ?= `which xml2po` + _xml2po_mode = $(if $(DOC_ID),mallard,docbook) + +-_db2html ?= `$(PKG_CONFIG) --variable db2html gnome-doc-utils` +-_db2omf ?= `$(PKG_CONFIG) --variable db2omf gnome-doc-utils` +-_chunks ?= `$(PKG_CONFIG) --variable xmldir gnome-doc-utils`/gnome/xslt/docbook/utils/chunks.xsl +-_credits ?= `$(PKG_CONFIG) --variable xmldir gnome-doc-utils`/gnome/xslt/docbook/utils/credits.xsl +-_ids ?= $(shell $(PKG_CONFIG) --variable xmldir gnome-doc-utils)/gnome/xslt/docbook/utils/ids.xsl ++_db2html ?= ${PKG_CONFIG_SYSROOT_DIR}`$(PKG_CONFIG) --variable db2html gnome-doc-utils` ++_db2omf ?= ${PKG_CONFIG_SYSROOT_DIR}`$(PKG_CONFIG) --variable db2omf gnome-doc-utils` ++_chunks ?= ${PKG_CONFIG_SYSROOT_DIR}`$(PKG_CONFIG) --variable xmldir gnome-doc-utils`/gnome/xslt/docbook/utils/chunks.xsl ++_credits ?= ${PKG_CONFIG_SYSROOT_DIR}`$(PKG_CONFIG) --variable xmldir gnome-doc-utils`/gnome/xslt/docbook/utils/credits.xsl ++_ids ?= ${PKG_CONFIG_SYSROOT_DIR}`$(PKG_CONFIG) --variable xmldir gnome-doc-utils`/gnome/xslt/docbook/utils/ids.xsl + + if ENABLE_SK + _ENABLE_SK = true +-- +1.7.6.5 + diff --git a/meta-oe/recipes-devtools/glade/glade3_3.8.5.bb b/meta-oe/recipes-devtools/glade/glade3_3.8.5.bb new file mode 100644 index 000000000..4e7ef9b5c --- /dev/null +++ b/meta-oe/recipes-devtools/glade/glade3_3.8.5.bb @@ -0,0 +1,27 @@ +SUMMARY = "Glade - A User Interface Designer" +HOMEPAGE = "http://www.gnu.org/software/gnash" +LICENSE = "GPLv2 & LGPLv2" +LIC_FILES_CHKSUM = "file://COPYING;md5=aabe87591cb8ae0f3c68be6977bb5522 \ + file://COPYING.GPL;md5=9ac2e7cff1ddaf48b6eab6028f23ef88 \ + file://COPYING.LGPL;md5=252890d9eee26aab7b432e8b8a616475" +DEPENDS = "gtk+ gnome-doc-utils-native gnome-common libxml2" + +inherit autotools pkgconfig pythonnative + +SRC_URI = "http://ftp.gnome.org/pub/GNOME/sources/glade3/3.8/glade3-${PV}.tar.xz \ + file://0001-gnome-doc-utils.make-sysrooted-pkg-config.patch" +SRC_URI[md5sum] = "4e4b4f5ee34a03e017e4cef97d796c1f" +SRC_URI[sha256sum] = "58a5f6e4df4028230ddecc74c564808b7ec4471b1925058e29304f778b6b2735" + +EXTRA_OECONF += "--disable-scrollkeeper" + +PACKAGECONFIG ??= "" +PACKAGECONFIG[gnome] = "--enable-gnome,--disable-gnome,libbonoboui libgnomeui" + +do_configure_prepend() { + sed -i '/^if HAVE_GNOME_DOC_UTILS/,/^endif/d' ${S}/Makefile.am +} + +FILES_${PN} += "${datadir}/icons" +FILES_${PN}-dbg += "${libdir}/glade3/modules/.debug" +FILES_${PN}-dev += "${libdir}/glade3/modules/*.la" diff --git a/meta-oe/recipes-devtools/icon-slicer/files/0001-Makefile.am-no-examples.patch b/meta-oe/recipes-devtools/icon-slicer/files/0001-Makefile.am-no-examples.patch new file mode 100644 index 000000000..5d83818c0 --- /dev/null +++ b/meta-oe/recipes-devtools/icon-slicer/files/0001-Makefile.am-no-examples.patch @@ -0,0 +1,27 @@ +From e6d53086524a94d27920614e38966020e0b2b3ef Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Andreas=20M=C3=BCller?= +Date: Mon, 5 Nov 2012 11:25:02 +0100 +Subject: [PATCH] Makefile.am: no examples +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Upstream-Status: Inappropriate [configuration] + +Signed-off-by: Andreas Müller + +--- + Makefile.am | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/Makefile.am b/Makefile.am +index 28ee7eb..af437a6 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -1 +1 @@ +-SUBDIRS = src examples +\ No newline at end of file ++SUBDIRS = src +-- +1.7.6.5 + diff --git a/meta-oe/recipes-devtools/icon-slicer/icon-slicer_0.3.bb b/meta-oe/recipes-devtools/icon-slicer/icon-slicer_0.3.bb new file mode 100644 index 000000000..9768a6e71 --- /dev/null +++ b/meta-oe/recipes-devtools/icon-slicer/icon-slicer_0.3.bb @@ -0,0 +1,13 @@ +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" + +DEPENDS = "gdk-pixbuf popt" + +SRC_URI = "http://freedesktop.org/software/${BPN}/releases/${BPN}-${PV}.tar.gz \ + file://0001-Makefile.am-no-examples.patch" +SRC_URI[md5sum] = "5c5374d4f265b0abe4daef1d03f87104" +SRC_URI[sha256sum] = "05f0216dd0c25a17859de66357f64da5033375b6fbf5f31ca54867311160b64d" + +inherit autotools pkgconfig + +BBCLASSEXTEND = "native" diff --git a/meta-oe/recipes-devtools/jq/jq_1.4.bb b/meta-oe/recipes-devtools/jq/jq_1.4.bb new file mode 100644 index 000000000..6e50803a3 --- /dev/null +++ b/meta-oe/recipes-devtools/jq/jq_1.4.bb @@ -0,0 +1,22 @@ +SUMMARY = "Lightweight and flexible command-line JSON processor" +DESCRIPTION = "jq is like sed for JSON data, you can use it to slice and \ + filter and map and transform structured data with the same \ + ease that sed, awk, grep and friends let you play with text." +HOMEPAGE = "http://stedolan.github.io/jq/" +BUGTRACKER = "https://github.com/stedolan/jq/issues" +SECTION = "utils" + +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://COPYING;md5=244a1fb9cf472474a062d67069dec653" + +DEPENDS = "flex-native bison-native" + +SRC_URI = "http://stedolan.github.io/${BPN}/download/source/${BP}.tar.gz \ +" +SRC_URI[md5sum] = "e3c75a4f805bb5342c9f4b3603fb248f" +SRC_URI[sha256sum] = "998c41babeb57b4304e65b4eb73094279b3ab1e63801b6b4bddd487ce009b39d" + +inherit autotools + +# Don't build documentation (generation requires ruby) +EXTRA_OECONF = "--disable-docs" diff --git a/meta-oe/recipes-devtools/lemon/files/lemon.1 b/meta-oe/recipes-devtools/lemon/files/lemon.1 new file mode 100644 index 000000000..914ee0701 --- /dev/null +++ b/meta-oe/recipes-devtools/lemon/files/lemon.1 @@ -0,0 +1,63 @@ +.Dd 2002-10-04 +.Dt LEMON 1 +.Os "Debian GNU/Linux" +.\" Manual page created by Guus Sliepen +.Sh NAME +.Nm lemon +.Nd The Lemon Parser Generator +.Sh SYNOPSIS +.Nm +.Op Fl bcgmqsx +.Ar input +.Sh DESCRIPTION +.Nm +is an LALR(1) parser generator for C or C++. +It does the same job as bison and yacc. +But +.Nm +is not another bison or yacc clone. +It uses a different grammar syntax which is designed to reduce the number of coding errors. +.Nm +also uses a more sophisticated parsing engine that is faster than yacc and bison +and which is both reentrant and thread-safe. +Furthermore, +.Nm +implements features that can be used to eliminate resource leaks, +making is suitable for use in long-running programs such as graphical user interfaces or embedded controllers. +.Pp +.Nm +will read the grammer from +.Ar input +and write out a parser for that grammar in the C language. +.Sh OPTIONS +.Bl -tag -width indent +.It Fl b +Print only the basis in report. +.It Fl c +Don't compress the action table. +.It Fl g +Print grammar without actions. +.It Fl m +Output a makeheaders compatible file. +.It Fl q +(Quiet) Don't print the report file. +.It Fl s +Print parser stats to standard output. +.It Fl x +Print the version number. +.El +.Sh FILES +.Bl -tag -width indent +.It Pa /usr/share/lemon/lempar.c +Driver template for the +.Nm +parser generator. +.El +.Sh AUTHOR +.Nm +has been written by +.An D. Richard Hipp Aq drh@hwaci.com . +.Pp +This manual page was written by +.An Guus Sliepen Aq guus@debian.org +for the Debian GNU/Linux system. diff --git a/meta-oe/recipes-devtools/lemon/lemon.inc b/meta-oe/recipes-devtools/lemon/lemon.inc new file mode 100644 index 000000000..57b9fb710 --- /dev/null +++ b/meta-oe/recipes-devtools/lemon/lemon.inc @@ -0,0 +1,25 @@ +DESCRIPTION = "The Lemon Parser Generator" +HOMEPAGE = "http://www.hwaci.com/sw/lemon/" +LICENSE = "PD" +SECTION = "devel" + +SRC_URI = "http://www.sqlite.org/sqlite-${PV}.tar.gz \ + file://lemon.1" + +S = "${WORKDIR}/sqlite-${PV}/tool" + +do_compile() { + ${CC} ${CFLAGS} lemon.c -c -o lemon.o + ${CCLD} ${LDFLAGS} lemon.o -o lemon +} + +do_install() { + install -d ${D}${bindir} + install -m 0755 lemon ${D}${bindir} + install -m 0644 lempar.c ${D}${bindir} + install -d ${D}${mandir}/man1 + install -m 0644 ${WORKDIR}/lemon.1 ${D}${mandir}/man1/ +} + +BBCLASSEXTEND = "native" + diff --git a/meta-oe/recipes-devtools/lemon/lemon_3.5.4.bb b/meta-oe/recipes-devtools/lemon/lemon_3.5.4.bb new file mode 100644 index 000000000..7df47d41f --- /dev/null +++ b/meta-oe/recipes-devtools/lemon/lemon_3.5.4.bb @@ -0,0 +1,7 @@ +require lemon.inc + +LIC_FILES_CHKSUM = "file://lemon.c;endline=8;md5=c7551a78fa3fdecd96d1ad6761d205ee" + +SRC_URI[md5sum] = "f17da840eed792e896c3408d0ce97718" +SRC_URI[sha256sum] = "47daba209bd3bcffa1c5fcd5fdfc4f524eae619b4fa855aeeb1bbbc8bd2bb04f" + diff --git a/meta-oe/recipes-devtools/libc-client/files/quote_cctype.patch b/meta-oe/recipes-devtools/libc-client/files/quote_cctype.patch new file mode 100644 index 000000000..f729ee207 --- /dev/null +++ b/meta-oe/recipes-devtools/libc-client/files/quote_cctype.patch @@ -0,0 +1,12 @@ +diff -urN imap-2007.orig/Makefile imap-2007/Makefile +--- imap-2007.orig/Makefile 2007-12-20 23:11:10.000000000 +0100 ++++ imap-2007/Makefile 2008-03-19 14:08:47.000000000 +0100 +@@ -690,7 +690,7 @@ + @$(SH) -c '(test $(BUILDTYPE) = rebuild -o $(BUILDTYPE) = `$(CAT) OSTYPE`) || (echo Already built for `$(CAT) OSTYPE` -- you must do \"make clean\" first && exit 1)' + @echo Rebuilding c-client for `$(CAT) OSTYPE`... + @$(TOUCH) SPECIALS +- $(CD) c-client;$(MAKE) all CC=`$(CAT) CCTYPE` \ ++ $(CD) c-client;$(MAKE) all CC="`$(CAT) CCTYPE`" \ + CFLAGS="`$(CAT) CFLAGS`" `$(CAT) SPECIALS` + + rebuildclean: diff --git a/meta-oe/recipes-devtools/libc-client/libc-client_2007e.bb b/meta-oe/recipes-devtools/libc-client/libc-client_2007e.bb new file mode 100644 index 000000000..150ff9028 --- /dev/null +++ b/meta-oe/recipes-devtools/libc-client/libc-client_2007e.bb @@ -0,0 +1,35 @@ +SUMMARY = "UW c-client library for mail protocols" +SECTION = "devel" + +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=a6a4ddbb7cd2999f6827ee143f6fcd97" + +DEPENDS = "openssl libpam" + +PR = "r1" + +SRC_URI = "ftp://ftp.cac.washington.edu/imap/imap-${PV}.tar.gz \ + file://quote_cctype.patch" + +SRC_URI[md5sum] = "7903800dc2604000016de070e0c55840" +SRC_URI[sha256sum] = "4b1137b87249782496ec3eeacaf83bbf09312a7d2ae3aead262179041b55565f" + +S = "${WORKDIR}/imap-${PV}" + +EXTRA_OEMAKE = "CC='${CC}'" + +HEADERS = "src/c-client/*.h src/osdep/unix/*.h c-client/auths.c c-client/linkage.c c-client/linkage.h c-client/osdep.h" + +do_compile() { + echo "SSLINCLUDE=${STAGING_INCDIR} SSLLIB=${STAGING_LIBDIR}" > ${S}/SPECIALS + oe_runmake lnp +} + +do_install() { + install -d ${D}${includedir}/c-client + install ${HEADERS} ${D}${includedir}/c-client + install -d ${D}${libdir} + install c-client/c-client.a ${D}${libdir}/libc-client.a +} + +ALLOW_EMPTY_${PN} = "1" diff --git a/meta-oe/recipes-devtools/libedit/libedit_20130712-3.1.bb b/meta-oe/recipes-devtools/libedit/libedit_20130712-3.1.bb new file mode 100644 index 000000000..1f76bb2c7 --- /dev/null +++ b/meta-oe/recipes-devtools/libedit/libedit_20130712-3.1.bb @@ -0,0 +1,20 @@ +SUMMARY = "BSD replacement for libreadline" +DESCRIPTION = "Command line editor library providing generic line editing, \ +history, and tokenization functions" +HOMEPAGE = "http://www.thrysoee.dk/editline/" +SECTION = "libs" +LICENSE = "BSD" +LIC_FILES_CHKSUM = "file://COPYING;md5=1e4228d0c5a9093b01aeaaeae6641533" + +DEPENDS = "ncurses" + +inherit autotools + +# upstream site does not allow wget's User-Agent +FETCHCMD_wget += "-U bitbake" +SRC_URI = "http://www.thrysoee.dk/editline/${BPN}-${PV}.tar.gz" + +S = "${WORKDIR}/${BPN}-${PV}" + +SRC_URI[md5sum] = "0891336c697362727a1fa7e60c5cb96c" +SRC_URI[sha256sum] = "5d9b1a9dd66f1fe28bbd98e4d8ed1a22d8da0d08d902407dcc4a0702c8d88a37" diff --git a/meta-oe/recipes-devtools/libfribidi/fribidi_0.19.2.bb b/meta-oe/recipes-devtools/libfribidi/fribidi_0.19.2.bb new file mode 100644 index 000000000..cb4bc24a8 --- /dev/null +++ b/meta-oe/recipes-devtools/libfribidi/fribidi_0.19.2.bb @@ -0,0 +1,17 @@ +SUMMARY = "Fribidi library for bidirectional text" +SECTION = "libs" +PR = "r1" +LICENSE = "LGPLv2.1" +LIC_FILES_CHKSUM = "file://COPYING;md5=7fbc338309ac38fefcd64b04bb903e34" +BBCLASSEXTEND = "native" + +PROVIDES = "libfribidi" + +inherit autotools lib_package pkgconfig + +CFLAGS_append = " -DPAGE_SIZE=4096 " + +SRC_URI = "http://fribidi.org/download/fribidi-${PV}.tar.gz" + +SRC_URI[md5sum] = "626db17d2d99b43615ad9d12500f568a" +SRC_URI[sha256sum] = "49cf91586e48b52fe25872ff66c1da0dff0daac2593f9f300e2af12f44f64177" diff --git a/meta-oe/recipes-devtools/libgee/libgee.inc b/meta-oe/recipes-devtools/libgee/libgee.inc new file mode 100644 index 000000000..fcfd0776e --- /dev/null +++ b/meta-oe/recipes-devtools/libgee/libgee.inc @@ -0,0 +1,18 @@ +DESCRIPTION = "libgee is a collection library providing GObject-based interfaces \ +and classes for commonly used data structures." +HOMEPAGE = "http://live.gnome.org/Libgee" +SECTION = "libs" +DEPENDS = "glib-2.0" +BBCLASSEXTEND = "native" +LICENSE = "LGPLv2.1" +LIC_FILES_CHKSUM = "file://COPYING;md5=fbc093901857fcd118f065f900982c24" +INC_PR = "r6" +PE = "1" + +inherit autotools vala pkgconfig +do_configure_prepend() { + MACROS="libtool.m4 lt~obsolete.m4 ltoptions.m4 ltsugar.m4 ltversion.m4" + for i in ${MACROS}; do + rm -f m4/$i + done +} diff --git a/meta-oe/recipes-devtools/libgee/libgee_0.6.4.bb b/meta-oe/recipes-devtools/libgee/libgee_0.6.4.bb new file mode 100644 index 000000000..fbd14662f --- /dev/null +++ b/meta-oe/recipes-devtools/libgee/libgee_0.6.4.bb @@ -0,0 +1,10 @@ +require libgee.inc +PE = "1" +PR = "${INC_PR}.2" +DEPENDS += "gobject-introspection-stub" +DEPENDS_virtclass-native += "gobject-introspection-stub-native" + +SHRT_VER = "${@d.getVar('PV',1).split('.')[0]}.${@d.getVar('PV',1).split('.')[1]}" +SRC_URI = "http://ftp.gnome.org/pub/GNOME/sources/libgee/${SHRT_VER}/${BP}.tar.xz" +SRC_URI[md5sum] = "a32bf498cf33d5e3417823a7b252ad22" +SRC_URI[sha256sum] = "55f39f3b28e676f6cbd9377d83edd031084436a4da41280a9503c94faffb1665" diff --git a/meta-oe/recipes-devtools/log4cplus/log4cplus_1.1.1.bb b/meta-oe/recipes-devtools/log4cplus/log4cplus_1.1.1.bb new file mode 100644 index 000000000..620177472 --- /dev/null +++ b/meta-oe/recipes-devtools/log4cplus/log4cplus_1.1.1.bb @@ -0,0 +1,15 @@ +SUMMARY = "log4cplus provides a simple C++ logging API for log management" +SECTION = "libs" +HOMEPAGE = "http://sourceforge.net/projects/log4cplus/" +BUGTRACKER = "http://sourceforge.net/p/log4cplus/bugs/" + +LICENSE = "Apache-2.0 BSD-2-Clause" +LIC_FILES_CHKSUM = "file://LICENSE;md5=65053a46f707ee2b93f09ad22f692170" + +SRC_URI = "${SOURCEFORGE_MIRROR}/project/${BPN}/${BPN}-stable/${PV}/${BP}.tar.gz" +SRC_URI[md5sum] = "104bd6dd07ee71bc52ee9adca4d4d5fc" +SRC_URI[sha256sum] = "96905e763fc6f1e3a854c3d1964c21e877de909bdddd0aed99806c62a68be838" + +inherit autotools pkgconfig + +BBCLASSEXTEND += "native" diff --git a/meta-oe/recipes-devtools/ltp-ddt/ltp-ddt/0001-wdt_test_suite-Make-sure-to-include-generated-header.patch b/meta-oe/recipes-devtools/ltp-ddt/ltp-ddt/0001-wdt_test_suite-Make-sure-to-include-generated-header.patch new file mode 100644 index 000000000..56b0333ca --- /dev/null +++ b/meta-oe/recipes-devtools/ltp-ddt/ltp-ddt/0001-wdt_test_suite-Make-sure-to-include-generated-header.patch @@ -0,0 +1,34 @@ +From 4a8f24892514cd5e4d11b9105c843db49eea921b Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Wed, 19 Feb 2014 19:41:33 -0800 +Subject: [PATCH] wdt_test_suite: Make sure to include generated headers + +This makes sure that its using the generated headers +and not the raw headers from kernel, generated headers +are built for the given machine already when kernel is +built and are available in configured/compiled kernel tree +already + +Signed-off-by: Khem Raj +--- + testcases/ddt/wdt_test_suite/Makefile | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/testcases/ddt/wdt_test_suite/Makefile b/testcases/ddt/wdt_test_suite/Makefile +index 90a6a90..22a1cfd 100644 +--- a/testcases/ddt/wdt_test_suite/Makefile ++++ b/testcases/ddt/wdt_test_suite/Makefile +@@ -20,8 +20,8 @@ INCLUDES = -I $(KERNEL_INC) -I src/interface/common -I ../utils/user + INCLUDES = -I src/parser \ + -I src/interface/common \ + -I ../utils/user \ +- -I $(KERNEL_INC)/include \ +- -I $(KERNEL_INC)/arch/arm/include ++ -I $(KERNEL_INC)/include/generated \ ++ -I $(KERNEL_INC)/arch/arm/include/generated \ + + #List of source files- Update this on adding a new C file + SOURCES := \ +-- +1.9.0 + diff --git a/meta-oe/recipes-devtools/ltp-ddt/ltp-ddt_0.0.5.bb b/meta-oe/recipes-devtools/ltp-ddt/ltp-ddt_0.0.5.bb new file mode 100644 index 000000000..db62ac63a --- /dev/null +++ b/meta-oe/recipes-devtools/ltp-ddt/ltp-ddt_0.0.5.bb @@ -0,0 +1,86 @@ +SUMMARY = "Embedded Linux Device Driver Tests based on Linux Test Project" +HOMEPAGE = "http://arago-project.org/git/projects/test-automation/ltp-ddt.git" +SECTION = "console/utils" +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3" + +PROVIDES += "ltp" +DEPENDS += "zip-native virtual/kernel alsa-lib" + +RDEPENDS_${PN} += "pm-qa" + +inherit autotools-brokensep module-base kernel-module-split + +PACKAGE_ARCH = "${MACHINE_ARCH}" + +SRCREV = "903f70a11eb77cbad62d7ecbe7dcbaf61be8ff99" +BRANCH ?= "master" + +SRC_URI = "git://arago-project.org/git/projects/test-automation/ltp-ddt.git;branch=${BRANCH} \ + file://0001-wdt_test_suite-Make-sure-to-include-generated-header.patch \ + " + +S = "${WORKDIR}/git" + +LTPROOT = "/opt/ltp" + +EXTRA_OEMAKE_append = " \ + prefix=${LTPROOT} \ + CROSS_COMPILE=${HOST_PREFIX} \ + SKIP_IDCHECK=1 \ + KERNEL_PATH=${STAGING_KERNEL_DIR} \ + KERNEL_INC=${STAGING_KERNEL_DIR} \ + KERNEL_USR_INC=${STAGING_INCDIR} \ + ALSA_INCPATH=${STAGING_INCDIR} \ + ALSA_LIBPATH=${STAGING_LIBDIR} \ + PLATFORM=${MACHINE} \ + RANLIB=${RANLIB} \ + DESTDIR=${D} \ + CC='${CC}' \ + KERNEL_CC='${KERNEL_CC}' \ +" + +TARGET_CC_ARCH += "${LDFLAGS}" + +FILES_${PN}-dbg += " \ + ${LTPROOT}/.debug \ + ${LTPROOT}/bin/.debug \ + ${LTPROOT}/runtest/.debug \ + ${LTPROOT}/testcases/bin/.debug \ + ${LTPROOT}/testcases/bin/*/bin/.debug \ + ${LTPROOT}/testcases/bin/*/test/.debug \ + ${LTPROOT}/testcases/bin/ddt/.debug \ + ${LTPROOT}/testcases/bin/ddt/*/bin/.debug \ + ${LTPROOT}/testcases/bin/ddt/*/test/.debug \ + ${LTPROOT}/testcases/realtime/*/*/.debug \ +" + +FILES_${PN}-staticdev += "${LTPROOT}/lib" +FILES_${PN} += "${LTPROOT}/*" + +do_configure() { + cp ${S}/include/config.h.default ${S}/include/config.h + cp ${S}/include/mk/config.mk.default ${S}/include/mk/config.mk + cp ${S}/include/mk/features.mk.default ${S}/include/mk/features.mk + echo "${TAG}" > ${S}/ChangeLog +} + +kmoddir = "/lib/modules/${KERNEL_VERSION}/kernel/drivers/ddt" + +do_compile_append () { + oe_runmake modules +} + +do_install() { + oe_runmake install + install -d ${D}${datadir} + install -d ${D}${kmoddir} + cp -a ${D}${LTPROOT}/share/* ${D}${datadir} + rm -rf ${D}${LTPROOT}/share/ + mv ${D}${LTPROOT}/testcases/bin/ddt/*.ko ${D}${kmoddir} +} + +# do_make_scripts should be a separate task for the lock to work +addtask make_scripts before do_compile +do_make_scripts[lockfiles] = "${TMPDIR}/kernel-scripts.lock" +do_make_scripts[deptask] = "do_populate_sysroot" diff --git a/meta-oe/recipes-devtools/ltrace/ltrace/ltrace-0.7.2-unused-typedef.patch b/meta-oe/recipes-devtools/ltrace/ltrace/ltrace-0.7.2-unused-typedef.patch new file mode 100644 index 000000000..8f3c0ecea --- /dev/null +++ b/meta-oe/recipes-devtools/ltrace/ltrace/ltrace-0.7.2-unused-typedef.patch @@ -0,0 +1,49 @@ +diff --git a/value.c b/value.c +index d18db17..b98298e 100644 +--- a/value.c ++++ b/value.c +@@ -1,6 +1,6 @@ + /* + * This file is part of ltrace. +- * Copyright (C) 2011,2012 Petr Machata, Red Hat Inc. ++ * Copyright (C) 2011,2012,2013 Petr Machata, Red Hat Inc. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as +@@ -282,9 +282,9 @@ value_init_deref(struct value *ret_val, struct value *valp) + if (value_extract_word(valp, &l, NULL) < 0) + return -1; + +- /* We need "long" to be long enough to hold platform ++ /* We need "long" to be long enough to hold target + * pointers. */ +- typedef char assert__long_enough_long[-(sizeof(l) < sizeof(void *))]; ++ assert(sizeof(l) >= sizeof(arch_addr_t)); + + value_common_init(ret_val, valp->inferior, valp, + valp->type->u.ptr_info.info, 0); +diff --git a/lens_default.c b/lens_default.c +index ed3d0e1..5d00814 100644 +--- a/lens_default.c ++++ b/lens_default.c +@@ -1,6 +1,6 @@ + /* + * This file is part of ltrace. +- * Copyright (C) 2011,2012 Petr Machata, Red Hat Inc. ++ * Copyright (C) 2011,2012,2013 Petr Machata, Red Hat Inc. + * Copyright (C) 1998,2004,2007,2008,2009 Juan Cespedes + * Copyright (C) 2006 Ian Wienand + * Copyright (C) 2006 Steve Fink +@@ -342,9 +342,9 @@ format_array(FILE *stream, struct value *value, struct value_dict *arguments, + struct expr_node *length, size_t maxlen, int before, + const char *open, const char *close, const char *delim) + { +- /* We need "long" to be long enough to cover the whole address +- * space. */ +- typedef char assert__long_enough_long[-(sizeof(long) < sizeof(void *))]; ++ /* We need "long" to be long enough to cover the whole target ++ * address space. */ ++ assert(sizeof(long) >= sizeof(arch_addr_t)); + long l; + if (expr_eval_word(length, value, arguments, &l) < 0) + return -1; diff --git a/meta-oe/recipes-devtools/ltrace/ltrace_git.bb b/meta-oe/recipes-devtools/ltrace/ltrace_git.bb new file mode 100644 index 000000000..507747ae1 --- /dev/null +++ b/meta-oe/recipes-devtools/ltrace/ltrace_git.bb @@ -0,0 +1,29 @@ +SUMMARY = "ltrace intercepts and records dynamic library calls" + +DESCRIPTION = "ltrace intercepts and records dynamic library calls \ +which are called by an executed process and the signals received by that process. \ +It can also intercept and print the system calls executed by the program.\ +" +HOMEPAGE = "http://ltrace.org/" + +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://COPYING;md5=eb723b61539feef013de476e68b5c50a" + +PE = "1" +PV = "7.2+git${SRCPV}" +SRCREV = "f44b28421979cec88d6d6a778fc27a8cd514f508" + +DEPENDS = "elfutils" +RDEPENDS_${PN} = "elfutils" +SRC_URI = "git://anonscm.debian.org/collab-maint/ltrace.git \ + file://ltrace-0.7.2-unused-typedef.patch \ + " +S = "${WORKDIR}/git" + +inherit autotools + +PACKAGECONFIG[unwind] = "--with-libunwind,--without-libunwind,libunwind" + +do_configure_prepend () { + ( cd ${S}; ./autogen.sh ) +} diff --git a/meta-oe/recipes-devtools/lua/lua-test/lua-test.patch b/meta-oe/recipes-devtools/lua/lua-test/lua-test.patch new file mode 100644 index 000000000..be260c219 --- /dev/null +++ b/meta-oe/recipes-devtools/lua/lua-test/lua-test.patch @@ -0,0 +1,12 @@ +diff --git a/lua-5.2.2-tests/strings.lua b/lua-5.2.2-tests/strings.lua +index b9ef470..a921da4 100644 +--- a/strings.lua ++++ b/strings.lua +@@ -209,7 +209,6 @@ check("%d %d", "no value") + + -- integers out of range + assert(not pcall(string.format, "%d", 2^63)) +-assert(not pcall(string.format, "%x", 2^64)) + assert(not pcall(string.format, "%x", -2^64)) + assert(not pcall(string.format, "%x", -1)) + diff --git a/meta-oe/recipes-devtools/lua/lua-test/run-ptest b/meta-oe/recipes-devtools/lua/lua-test/run-ptest new file mode 100644 index 000000000..8e085e1af --- /dev/null +++ b/meta-oe/recipes-devtools/lua/lua-test/run-ptest @@ -0,0 +1,19 @@ +#!/bin/sh + +cd test +lua -e"_U=true" all.lua > lua-test.tmp + +echo "--- test output ---" +cat lua-test.tmp +echo "" +echo "" +echo "--- ptest result ---" + +grep "final OK \!\!\!" lua-test.tmp > /dev/null +if [ $? -eq 0 ]; then + echo "PASS: lua" +else + echo "FAIL: lua" +fi + +rm -f lua-test.tmp diff --git a/meta-oe/recipes-devtools/lua/lua-test_5.2.2.bb b/meta-oe/recipes-devtools/lua/lua-test_5.2.2.bb new file mode 100644 index 000000000..877df8e37 --- /dev/null +++ b/meta-oe/recipes-devtools/lua/lua-test_5.2.2.bb @@ -0,0 +1,22 @@ +DESCRIPTION = "Lua test suites" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690 \ + file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" +HOMEPAGE = "http://www.lua.org/" + +DEPENDS = "lua" +SRC_URI = "http://www.lua.org/tests/lua-${PV}-tests.tar.gz \ + file://lua-test.patch \ + file://run-ptest \ +" + +S = "${WORKDIR}/lua-${PV}-tests" + +SRC_URI[md5sum] = "a3dabd30e5a364c87191b0c1e6f64178" +SRC_URI[sha256sum] = "07c1071c66d9cb4dc80200ed430fc21ebbbccf1f55148b87eb0b9522932e4eb6" + +inherit ptest + +do_install_ptest () { + cp -a ${S} ${D}${PTEST_PATH}/test +} diff --git a/meta-oe/recipes-devtools/lua/lua/lua.pc b/meta-oe/recipes-devtools/lua/lua/lua.pc new file mode 100644 index 000000000..e6f8b6f09 --- /dev/null +++ b/meta-oe/recipes-devtools/lua/lua/lua.pc @@ -0,0 +1,11 @@ +prefix=/usr +libdir=${prefix}/lib +includedir=${prefix}/include + +Name: Lua +Description: Lua language engine +Version: 5.2.2 +Requires: +Libs: -L${libdir} -llua +Libs.private: -lm +Cflags: -I${includedir} diff --git a/meta-oe/recipes-devtools/lua/lua/uclibc-pthread.patch b/meta-oe/recipes-devtools/lua/lua/uclibc-pthread.patch new file mode 100644 index 000000000..f4cdc5d8c --- /dev/null +++ b/meta-oe/recipes-devtools/lua/lua/uclibc-pthread.patch @@ -0,0 +1,13 @@ +Index: lua-5.1.4/src/Makefile +=================================================================== +--- a/src/Makefile.orig 2013-10-22 22:17:19.929103523 -0400 ++++ a/src/Makefile 2013-10-22 22:18:27.992104545 -0400 +@@ -9,7 +9,7 @@ + CC= gcc + CFLAGS= -O2 -Wall -DLUA_COMPAT_ALL $(SYSCFLAGS) $(MYCFLAGS) + LDFLAGS= $(SYSLDFLAGS) $(MYLDFLAGS) +-LIBS= -lm $(SYSLIBS) $(MYLIBS) ++LIBS= -lm -lpthread $(SYSLIBS) $(MYLIBS) + + AR= ar rcu + RANLIB= ranlib diff --git a/meta-oe/recipes-devtools/lua/lua_5.2.2.bb b/meta-oe/recipes-devtools/lua/lua_5.2.2.bb new file mode 100644 index 000000000..9da170060 --- /dev/null +++ b/meta-oe/recipes-devtools/lua/lua_5.2.2.bb @@ -0,0 +1,52 @@ +DESCRIPTION = "Lua is a powerful light-weight programming language designed \ +for extending applications." +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://doc/readme.html;beginline=364;endline=398;md5=ad3069a42853ac3efd7d379d87f6088b" +HOMEPAGE = "http://www.lua.org/" + +PR = "r0" + +DEPENDS = "readline" +PACKAGES += "${@bb.utils.contains('DISTRO_FEATURES', 'ptest', '${PN}-ptest', '', d)}" +ALLOW_EMPTY_lua-ptest = "1" +RDEPENDS_lua-ptest_class-target = "lua-test-ptest" +SRC_URI = "http://www.lua.org/ftp/lua-${PV}.tar.gz \ + file://lua.pc \ +" + +SRC_URI[md5sum] = "efbb645e897eae37cad4344ce8b0a614" +SRC_URI[sha256sum] = "3fd67de3f5ed133bf312906082fa524545c6b9e1b952e8215ffbd27113f49f00" + +inherit pkgconfig binconfig + +UCLIBC_PATCHES += "file://uclibc-pthread.patch" +SRC_URI_append_libc-uclibc = "${UCLIBC_PATCHES}" + +TARGET_CC_ARCH += " -fPIC ${LDFLAGS}" +EXTRA_OEMAKE = "'CC=${CC} -fPIC' 'MYCFLAGS=${CFLAGS} -DLUA_USE_LINUX -fPIC' MYLDFLAGS='${LDFLAGS}'" + +do_configure_prepend() { + sed -i -e s:/usr/local:${prefix}:g src/luaconf.h +} + +do_compile () { + oe_runmake linux +} + +do_install () { + oe_runmake \ + 'INSTALL_TOP=${D}${prefix}' \ + 'INSTALL_BIN=${D}${bindir}' \ + 'INSTALL_INC=${D}${includedir}/' \ + 'INSTALL_MAN=${D}${mandir}/man1' \ + 'INSTALL_SHARE=${D}${datadir}/lua' \ + 'INSTALL_LIB=${D}${libdir}' \ + 'INSTALL_CMOD=${D}${libdir}/lua/5.2' \ + install + install -d ${D}${libdir}/pkgconfig + install -m 0644 ${WORKDIR}/lua.pc ${D}${libdir}/pkgconfig/ + rmdir ${D}${datadir}/lua/5.2 + rmdir ${D}${datadir}/lua +} + +BBCLASSEXTEND = "native" diff --git a/meta-oe/recipes-devtools/luajit/luajit/0001-Do-not-strip-automatically-this-leaves-the-stripping.patch b/meta-oe/recipes-devtools/luajit/luajit/0001-Do-not-strip-automatically-this-leaves-the-stripping.patch new file mode 100644 index 000000000..f123b3f55 --- /dev/null +++ b/meta-oe/recipes-devtools/luajit/luajit/0001-Do-not-strip-automatically-this-leaves-the-stripping.patch @@ -0,0 +1,33 @@ +From 528009f5ca0685c95ef27f6c8957160499c0576a Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Fri, 10 May 2013 10:42:45 -0700 +Subject: [PATCH] Do not strip automatically, this leaves the stripping + busines to OE + +Upstream-Status: Inappropriate [OE-Specific] + +Signed-off-by: Khem Raj +--- + src/Makefile | 2 -- + 1 file changed, 2 deletions(-) + +diff --git a/src/Makefile b/src/Makefile +index 278324a..5ecd6d5 100644 +--- a/src/Makefile ++++ b/src/Makefile +@@ -665,12 +665,10 @@ $(LUAJIT_A): $(LJVMCORE_O) + $(LUAJIT_SO): $(LJVMCORE_O) + $(E) "DYNLINK $@" + $(Q)$(TARGET_LD) $(TARGET_ASHLDFLAGS) -o $@ $(LJVMCORE_DYNO) $(TARGET_ALIBS) +- $(Q)$(TARGET_STRIP) $@ + + $(LUAJIT_T): $(TARGET_O) $(LUAJIT_O) $(TARGET_DEP) + $(E) "LINK $@" + $(Q)$(TARGET_LD) $(TARGET_ALDFLAGS) -o $@ $(LUAJIT_O) $(TARGET_O) $(TARGET_ALIBS) +- $(Q)$(TARGET_STRIP) $@ + $(E) "OK Successfully built LuaJIT" + + ############################################################################## +-- +1.7.9.5 + diff --git a/meta-oe/recipes-devtools/luajit/luajit_2.0.3.bb b/meta-oe/recipes-devtools/luajit/luajit_2.0.3.bb new file mode 100644 index 000000000..48137e385 --- /dev/null +++ b/meta-oe/recipes-devtools/luajit/luajit_2.0.3.bb @@ -0,0 +1,56 @@ +SUMMARY = "Just-In-Time Compiler for Lua" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=97b6446bbf9d55616838f821585c5978" +HOMEPAGE = "http://luajit.org" + +SRC_URI = "http://luajit.org/download/LuaJIT-${PV}.tar.gz \ + file://0001-Do-not-strip-automatically-this-leaves-the-stripping.patch \ +" +SRC_URI[md5sum] = "f14e9104be513913810cd59c8c658dc0" +SRC_URI[sha256sum] = "55be6cb2d101ed38acca32c5b1f99ae345904b365b642203194c585d27bebd79" + +S = "${WORKDIR}/LuaJIT-${PV}" + +inherit pkgconfig binconfig + +BBCLASSEXTEND = "native" + +do_configure_prepend() { + sed -i -e s:/usr/local:${prefix}:g ${S}/Makefile + sed -i -e s:/lib$:${base_libdir}:g ${S}/Makefile +} + +EXTRA_OEMAKE = 'CROSS=${HOST_PREFIX} \ + TARGET_CFLAGS="${TOOLCHAIN_OPTIONS} ${HOST_CC_ARCH}" \ + TARGET_LDFLAGS="${TOOLCHAIN_OPTIONS}" \ + TARGET_SHLDFLAGS="${TOOLCHAIN_OPTIONS}"' +EXTRA_OEMAKE_append_powerpc = ' HOST_CC="${BUILD_CC} -m32"' +EXTRA_OEMAKE_append_x86-64 = ' HOST_CC="${BUILD_CC}"' +EXTRA_OEMAKE_append_i586 = ' HOST_CC="${BUILD_CC} -m32"' +EXTRA_OEMAKE_append_powerpc64 = ' HOST_CC="${BUILD_CC}"' +EXTRA_OEMAKE_append_arm = ' HOST_CC="${BUILD_CC} -m32"' +EXTRA_OEMAKE_append_mips64 = ' HOST_CC="${BUILD_CC} -m32"' + +do_compile () { + oe_runmake +} + +do_install () { + oe_runmake 'DESTDIR=${D}' install + rmdir ${D}${datadir}/lua/5.* \ + ${D}${datadir}/lua \ + ${D}${libdir}/lua/5.* \ + ${D}${libdir}/lua +} + +PACKAGES += 'luajit-common' + +FILES_${PN} += "${libdir}/libluajit-5.1.so.2 \ + ${libdir}/libluajit-5.1.so.${PV} \ +" +FILES_${PN}-dev += "${libdir}/libluajit-5.1.a \ + ${libdir}/libluajit-5.1.so \ + ${libdir}/pkgconfig/luajit.pc \ +" +FILES_luajit-common = "${datadir}/${BPN}-${PV}" + diff --git a/meta-oe/recipes-devtools/mcpp/files/ice-mcpp.patch b/meta-oe/recipes-devtools/mcpp/files/ice-mcpp.patch new file mode 100644 index 000000000..8103cf092 --- /dev/null +++ b/meta-oe/recipes-devtools/mcpp/files/ice-mcpp.patch @@ -0,0 +1,208 @@ +diff -r -c -N ../mcpp-2.7.2-old/noconfig/vc2010.dif ./noconfig/vc2010.dif +*** ../mcpp-2.7.2-old/noconfig/vc2010.dif Wed Dec 31 20:30:00 1969 +--- ./noconfig/vc2010.dif Fri May 14 12:47:22 2010 +*************** +*** 0 **** +--- 1,67 ---- ++ *** noconfig.H Thu Sep 25 15:34:56 2008 ++ --- noconfig.H.vc2005 Thu Sep 25 17:23:49 2008 ++ *************** ++ *** 15,21 **** ++ */ ++ ++ /* Define target operating-system. */ ++ ! #define SYSTEM SYS_FREEBSD ++ ++ /* Define target compiler. */ ++ #ifndef COMPILER ++ --- 15,21 ---- ++ */ ++ ++ /* Define target operating-system. */ ++ ! #define SYSTEM SYS_WIN32 ++ ++ /* Define target compiler. */ ++ #ifndef COMPILER ++ *************** ++ *** 26,36 **** ++ #define HOST_SYSTEM SYSTEM ++ ++ /* Define host compiler. */ ++ ! #define HOST_COMPILER GNUC ++ ++ /* Version message. */ ++ /* "MCPP V.2.* (200y/mm) compiled by " precedes VERSION_MSG */ ++ ! #define VERSION_MSG "GCC 3.4" ++ #if 0 ++ "LCC-Win32 2006-03" ++ "Visual C 2005" ++ --- 26,36 ---- ++ #define HOST_SYSTEM SYSTEM ++ ++ /* Define host compiler. */ ++ ! #define HOST_COMPILER MSC ++ ++ /* Version message. */ ++ /* "MCPP V.2.* (200y/mm) compiled by " precedes VERSION_MSG */ ++ ! #define VERSION_MSG "Visual C 2010" ++ #if 0 ++ "LCC-Win32 2006-03" ++ "Visual C 2005" ++ *************** ++ *** 212,221 **** ++ #define ONE_PASS TRUE ++ #endif ++ #define COMPILER_EXT "_MSC_VER" ++ ! #define COMPILER_EXT_VAL "1500" /* VC 6.0: "1200" */ ++ /* VC 2002: "1300", VC 2003: "1310", VC 2005: "1400", VC 2008: "1500" */ ++ #define COMPILER_EXT2 "_MSC_FULL_VER" ++ ! #define COMPILER_EXT2_VAL "150021022" /* VC 6.0: "12008804" */ ++ /* VC 2002: "13009466", VC 2003: "13103077", VC 2005: "140050320" */ ++ /* VC 2008: "150021022" */ ++ #define COMPILER_SP1 "_MSC_EXTENSIONS" ++ --- 212,221 ---- ++ #define ONE_PASS TRUE ++ #endif ++ #define COMPILER_EXT "_MSC_VER" ++ ! #define COMPILER_EXT_VAL "1600" /* VC 6.0: "1200" */ ++ /* VC 2002: "1300", VC 2003: "1310", VC 2005: "1400", VC 2008: "1500" */ ++ #define COMPILER_EXT2 "_MSC_FULL_VER" ++ ! #define COMPILER_EXT2_VAL "160030319" /* VC 6.0: "12008804" */ ++ /* VC 2002: "13009466", VC 2003: "13103077", VC 2005: "140050320" */ ++ /* VC 2008: "150021022" */ ++ #define COMPILER_SP1 "_MSC_EXTENSIONS" +diff -r -c -N ../mcpp-2.7.2-old/src/internal.H ./src/internal.H +*** ../mcpp-2.7.2-old/src/internal.H Wed Aug 27 10:31:16 2008 +--- ./src/internal.H Fri May 14 12:40:56 2010 +*************** +*** 390,395 **** +--- 390,397 ---- + extern char identifier[]; /* Lastly scanned name */ + extern IFINFO ifstack[]; /* Information of #if nesting */ + extern char work_buf[]; ++ extern FILEINFO * sh_file; ++ extern int sh_line; + /* Temporary buffer for directive line and macro expansion */ + + /* main.c */ +*************** +*** 557,562 **** + #endif + #endif + +! #if HOST_HAVE_STPCPY + extern char * stpcpy( char * dest, const char * src); + #endif +--- 559,564 ---- + #endif + #endif + +! #if HOST_HAVE_STPCPY && !defined(stpcpy) + extern char * stpcpy( char * dest, const char * src); + #endif +diff -r -c -N ../mcpp-2.7.2-old/src/main.c ./src/main.c +*** ../mcpp-2.7.2-old/src/main.c Wed Nov 5 05:04:46 2008 +--- ./src/main.c Fri May 14 12:40:56 2010 +*************** +*** 326,331 **** +--- 326,333 ---- + = FALSE; + option_flags.trig = TRIGRAPHS_INIT; + option_flags.dig = DIGRAPHS_INIT; ++ sh_file = NULL; ++ sh_line = 0; + } + + int mcpp_lib_main +diff -r -c -N ../mcpp-2.7.2-old/src/support.c ./src/support.c +*** ../mcpp-2.7.2-old/src/support.c Tue Jun 10 06:02:33 2008 +--- ./src/support.c Fri May 14 12:40:56 2010 +*************** +*** 188,194 **** + size_t length + ) + { +! if (mem_buf_p->bytes_avail < length) { /* Need to allocate more memory */ + size_t size = MAX( BUF_INCR_SIZE, length); + + if (mem_buf_p->buffer == NULL) { /* 1st append */ +--- 188,194 ---- + size_t length + ) + { +! if (mem_buf_p->bytes_avail < length + 1) { /* Need to allocate more memory */ + size_t size = MAX( BUF_INCR_SIZE, length); + + if (mem_buf_p->buffer == NULL) { /* 1st append */ +*************** +*** 1722,1727 **** +--- 1722,1729 ---- + sp -= 2; + while (*sp != '\n') /* Until end of line */ + mcpp_fputc( *sp++, OUT); ++ mcpp_fputc( '\n', OUT); ++ wrong_line = TRUE; + } + goto end_line; + default: /* Not a comment */ +diff -r -c -N ../mcpp-2.7.2-old/src/system.c ./src/system.c +*** ../mcpp-2.7.2-old/src/system.c 2008-11-26 10:53:51.000000000 +0100 +--- ./src/system.c 2011-02-21 16:18:05.678058106 +0100 +*************** +*** 3534,3539 **** +--- 3534,3565 ---- + FILEINFO * file; + const char * too_many_include_nest = + "More than %.0s%ld nesting of #include"; /* _F_ _W4_ */ ++ ++ // ++ // When encoding is UTF-8, skip BOM if present. ++ // ++ if(mbchar == UTF8 && fp != NULL && ftell(fp) == 0) ++ { ++ const unsigned char UTF8_BOM[3] = {0xEF, 0xBB, 0xBF}; ++ unsigned char FILE_HEAD[3] = {0, 0, 0}; ++ int i; ++ for(i = 0; i < 3; ++i) ++ { ++ FILE_HEAD[i] = getc(fp); ++ if(FILE_HEAD[i] != UTF8_BOM[i]) ++ { ++ if(FILE_HEAD[i] == (unsigned char)EOF) ++ { ++ i--; ++ } ++ for(; i >= 0; --i) ++ { ++ ungetc(FILE_HEAD[i], fp); ++ } ++ break; ++ } ++ } ++ } + + filename = set_fname( filename); /* Search or append to fnamelist[] */ + fullname = set_fname( fullname); /* Search or append to fnamelist[] */ +*************** +*** 3858,3863 **** +--- 3884,3892 ---- + } + #endif + ++ FILEINFO* sh_file; ++ int sh_line; ++ + void sharp( + FILEINFO * sharp_file, + int flag /* Flag to append to the line for GCC */ +*************** +*** 3868,3875 **** + * else (i.e. 'sharp_file' is NULL) 'infile'. + */ + { +- static FILEINFO * sh_file; +- static int sh_line; + FILEINFO * file; + int line; + +--- 3897,3902 ---- diff --git a/meta-oe/recipes-devtools/mcpp/mcpp_2.7.2.bb b/meta-oe/recipes-devtools/mcpp/mcpp_2.7.2.bb new file mode 100644 index 000000000..a7163a35a --- /dev/null +++ b/meta-oe/recipes-devtools/mcpp/mcpp_2.7.2.bb @@ -0,0 +1,16 @@ +SUMMARY = "MCPP is a portable C/C++ preprocessor" +HOMEPAGE = "http://mcpp.sourceforge.net/" +LICENSE = "BSD" +LIC_FILES_CHKSUM = "file://LICENSE;md5=5ca370b75ec890321888a00cea9bc1d5" + +SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BPN}-${PV}.tar.gz \ + file://ice-mcpp.patch " +SRC_URI[md5sum] = "512de48c87ab023a69250edc7a0c7b05" +SRC_URI[sha256sum] = "3b9b4421888519876c4fc68ade324a3bbd81ceeb7092ecdbbc2055099fcb8864" + +inherit autotools + +EXTRA_OECONF = " --enable-mcpplib " + +BBCLASSEXTEND = "native nativesdk" + diff --git a/meta-oe/recipes-devtools/memstat/memstat_1.0.bb b/meta-oe/recipes-devtools/memstat/memstat_1.0.bb new file mode 100644 index 000000000..825215372 --- /dev/null +++ b/meta-oe/recipes-devtools/memstat/memstat_1.0.bb @@ -0,0 +1,30 @@ +SUMMARY = "Display virtual memory allocation" +DESCRIPTION = "Lists all the processes, executables, and shared libraries \ +that are using up virtual memory. It's helpful to see how the shared memory \ +is used and which 'old' libs are loaded. \ +" +HOMEPAGE = "http://memstattool.sourceforge.net/" +SECTION = "devtool" + +LICENSE = "GPLv2" + +S = "${WORKDIR}/memstattool" + +LIC_FILES_CHKSUM = "file://debian/copyright;md5=87be186443b1ac2cfa466f475e1ee0cb" + +SRC_URI = "http://sourceforge.net/projects/memstattool/files/memstat_${PV}.tar.gz \ + " + +SRC_URI[md5sum] = "2c3acc0c62b2a18f6601b84e54aa7462" +SRC_URI[sha256sum] = "245d5fc7fb87bcfd14486cd34917cae2856e799559ac568434af12c4852bce94" + +do_install_append(){ + install -d ${D}${bindir} + install -m 0755 memstat ${D}${bindir} + install -d ${D}${sysconfdir} + install -m 0755 memstat.conf ${D}${sysconfdir} + install -d ${D}${mandir}/man1 + install -m 0644 memstat.1 ${D}${mandir}/man1 + install -d ${D}${docdir}/${BPN} + install -m 0644 memstat-tutorial.txt ${D}${docdir}/${BPN} +} diff --git a/meta-oe/recipes-devtools/mercurial/mercurial-native_3.0.1.bb b/meta-oe/recipes-devtools/mercurial/mercurial-native_3.0.1.bb new file mode 100644 index 000000000..9a5eebe32 --- /dev/null +++ b/meta-oe/recipes-devtools/mercurial/mercurial-native_3.0.1.bb @@ -0,0 +1,26 @@ +SUMMARY = "The Mercurial distributed SCM" +HOMEPAGE = "http://mercurial.selenic.com/" +SECTION = "console/utils" +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" +DEPENDS = "python-native" + +SRC_URI = "http://mercurial.selenic.com/release/mercurial-${PV}.tar.gz" +SRC_URI[md5sum] = "15de301a673b77f839325dba10ed4fc0" +SRC_URI[sha256sum] = "36e48b59a84ef5a222d06596971e955ac8217e56b076dfb94c8ce5a0c29fd705" + +S = "${WORKDIR}/mercurial-${PV}" + +inherit native + +EXTRA_OEMAKE = "STAGING_LIBDIR=${STAGING_LIBDIR} STAGING_INCDIR=${STAGING_INCDIR} \ + BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} PREFIX=${prefix}" + +do_configure_append () { + sed -i -e 's:PYTHON=python:PYTHON=${STAGING_BINDIR_NATIVE}/python-native/python:g' ${S}/Makefile +} + +do_install () { + oe_runmake -e install-bin DESTDIR=${D} PREFIX=${prefix} +} + diff --git a/meta-oe/recipes-devtools/nodejs/nodejs/0001-gcc-has-a-builtin-define-to-denote-hard-abi-when-in-.patch b/meta-oe/recipes-devtools/nodejs/nodejs/0001-gcc-has-a-builtin-define-to-denote-hard-abi-when-in-.patch new file mode 100644 index 000000000..6268d6940 --- /dev/null +++ b/meta-oe/recipes-devtools/nodejs/nodejs/0001-gcc-has-a-builtin-define-to-denote-hard-abi-when-in-.patch @@ -0,0 +1,60 @@ +From bf701e7cb3616631a354ed9ecbed6dd16f60c60d Mon Sep 17 00:00:00 2001 +From: Koen Kooi +Date: Wed, 30 Jan 2013 10:43:47 +0100 +Subject: [PATCH] gcc has a builtin define to denote hard abi when in use, e.g. + when using -mfloat-abi=hard it will define __ARM_PCS_VFP to 1 and therefore + we should check that to determine which calling convention is in use and not + __VFP_FP__ which merely indicates presence of VFP unit + +The fix has been provided by Khem Raj + +Upstream-Status: Forwarded + +Signed-off-by: Koen Kooi +--- + deps/v8/src/arm/assembler-arm.cc | 4 ++-- + deps/v8/src/platform-linux.cc | 4 ++-- + 2 files changed, 4 insertions(+), 4 deletions(-) + +diff --git a/deps/v8/src/arm/assembler-arm.cc b/deps/v8/src/arm/assembler-arm.cc +index 1787d15..c64ef58 100644 +--- a/deps/v8/src/arm/assembler-arm.cc ++++ b/deps/v8/src/arm/assembler-arm.cc +@@ -71,10 +71,10 @@ static unsigned CpuFeaturesImpliedByCompiler() { + // If the compiler is allowed to use VFP then we can use VFP too in our code + // generation even when generating snapshots. ARMv7 and hardware floating + // point support implies VFPv3, see ARM DDI 0406B, page A1-6. +-#if defined(CAN_USE_ARMV7_INSTRUCTIONS) && defined(__VFP_FP__) \ ++#if defined(CAN_USE_ARMV7_INSTRUCTIONS) && defined(__ARM_PCS_VFP) \ + && !defined(__SOFTFP__) + answer |= 1u << VFP3 | 1u << ARMv7 | 1u << VFP2; +-#endif // defined(CAN_USE_ARMV7_INSTRUCTIONS) && defined(__VFP_FP__) ++#endif // defined(CAN_USE_ARMV7_INSTRUCTIONS) && defined(__ARM_PCS_VFP) + // && !defined(__SOFTFP__) + #endif // _arm__ + +diff --git a/deps/v8/src/platform-linux.cc b/deps/v8/src/platform-linux.cc +index ed9eb79..10d1879 100644 +--- a/deps/v8/src/platform-linux.cc ++++ b/deps/v8/src/platform-linux.cc +@@ -170,7 +170,7 @@ bool OS::ArmCpuHasFeature(CpuFeature feature) { + // calling this will return 1.0 and otherwise 0.0. + static void ArmUsingHardFloatHelper() { + asm("mov r0, #0":::"r0"); +-#if defined(__VFP_FP__) && !defined(__SOFTFP__) ++#if defined(__ARM_PCS_VFP) && !defined(__SOFTFP__) + // Load 0x3ff00000 into r1 using instructions available in both ARM + // and Thumb mode. + asm("mov r1, #3":::"r1"); +@@ -195,7 +195,7 @@ static void ArmUsingHardFloatHelper() { + #else + asm("vmov d0, r0, r1"); + #endif // __thumb__ +-#endif // defined(__VFP_FP__) && !defined(__SOFTFP__) ++#endif // defined(__ARM_PCS_VFP) && !defined(__SOFTFP__) + asm("mov r1, #0":::"r1"); + } + +-- +1.8.1 + diff --git a/meta-oe/recipes-devtools/nodejs/nodejs4/libev-cross-cc_0.4.12.patch b/meta-oe/recipes-devtools/nodejs/nodejs4/libev-cross-cc_0.4.12.patch new file mode 100644 index 000000000..2b9838f0c --- /dev/null +++ b/meta-oe/recipes-devtools/nodejs/nodejs4/libev-cross-cc_0.4.12.patch @@ -0,0 +1,13 @@ +diff --git a/deps/libev/wscript b/deps/libev/wscript +index 4f6c9a8..1796749 100644 +--- a/deps/libev/wscript ++++ b/deps/libev/wscript +@@ -58,7 +58,7 @@ def configure(conf): + return 0; + } + """ +- conf.check_cc(fragment=code, define_name="HAVE_CLOCK_SYSCALL", execute=True, ++ conf.check_cc(fragment=code, define_name="HAVE_CLOCK_SYSCALL", execute=False, + msg="Checking for SYS_clock_gettime") + + have_librt = conf.check(lib='rt', uselib_store='RT') diff --git a/meta-oe/recipes-devtools/nodejs/nodejs4_0.4.12.bb b/meta-oe/recipes-devtools/nodejs/nodejs4_0.4.12.bb new file mode 100644 index 000000000..7e67bcb33 --- /dev/null +++ b/meta-oe/recipes-devtools/nodejs/nodejs4_0.4.12.bb @@ -0,0 +1,47 @@ +SUMMARY = "nodeJS Evented I/O for V8 JavaScript" +HOMEPAGE = "http://nodejs.org" +LICENSE = "MIT & zlib" +LIC_FILES_CHKSUM = "file://LICENSE;md5=d6237f3a840aef5b7880fb4e49eecfe5" + +DEPENDS = "openssl" + +SRC_URI = " \ + http://nodejs.org/dist/node-v${PV}.tar.gz \ + file://libev-cross-cc_${PV}.patch \ +" +SRC_URI[md5sum] = "a6375eaa43db5356bf443e25b828ae16" +SRC_URI[sha256sum] = "c01af05b933ad4d2ca39f63cac057f54f032a4d83cff8711e42650ccee24fce4" + +S = "${WORKDIR}/node-v${PV}" + +# v8 errors out if you have set CCACHE +CCACHE = "" + +do_configure () { + sed -i -e 's:/usr/lib:${STAGING_LIBDIR}:g' wscript + sed -i -e 's:/usr/local/lib:${STAGING_LIBDIR}:g' wscript + ./configure --prefix=${prefix} --without-snapshot +} + +do_compile () { + make +} + +do_install () { + oe_runmake install DESTDIR=${D} + + # fix namespace conflicts with other nodejs recipes + mv ${D}${bindir}/node ${D}${bindir}/node4 + mv ${D}${bindir}/node-waf ${D}${bindir}/node4-waf + + mv ${D}${includedir}/node ${D}${includedir}/node4 + + mv ${D}${libdir}/node ${D}${libdir}/node4 + mv ${D}${libdir}/pkgconfig/nodejs.pc ${D}${libdir}/pkgconfig/nodejs4.pc + sed -i -e s:include/node:include/node4: ${D}${libdir}/pkgconfig/nodejs4.pc + + mv ${D}${datadir}/man/man1/node.1 ${D}${datadir}/man/man1/node4.1 +} + +FILES_${PN} += "${libdir}/node4/wafadmin" +BBCLASSEXTEND = "native" diff --git a/meta-oe/recipes-devtools/nodejs/nodejs_0.8.18.bb b/meta-oe/recipes-devtools/nodejs/nodejs_0.8.18.bb new file mode 100644 index 000000000..839bfa425 --- /dev/null +++ b/meta-oe/recipes-devtools/nodejs/nodejs_0.8.18.bb @@ -0,0 +1,44 @@ +SUMMARY = "nodeJS Evented I/O for V8 JavaScript" +HOMEPAGE = "http://nodejs.org" +LICENSE = "MIT & BSD" +LIC_FILES_CHKSUM = "file://LICENSE;md5=95a589a3257ab7dfe37d8a8379e3c72d" + +DEPENDS = "openssl" + +inherit pythonnative + +SRC_URI = "http://nodejs.org/dist/v${PV}/node-v${PV}.tar.gz \ + file://0001-gcc-has-a-builtin-define-to-denote-hard-abi-when-in-.patch \ +" +SRC_URI[md5sum] = "25ed6aa5710ac46b867ff3f17a4da1d6" +SRC_URI[sha256sum] = "1d63dd42f9bd22f087585ddf80a881c6acbe1664891b1dda3b71306fe9ae00f9" + +S = "${WORKDIR}/node-v${PV}" + +# v8 errors out if you have set CCACHE +CCACHE = "" + +ARCHFLAGS_arm = "${@bb.utils.contains('TUNE_FEATURES', 'callconvention-hard', '--with-arm-float-abi=hard', '--with-arm-float-abi=softfp', d)}" +ARCHFLAGS ?= "" + +# Node is way too cool to use proper autotools, so we install two wrappers to forcefully inject proper arch cflags to workaround gypi +do_configure () { + export LD="${CXX}" + + ./configure --prefix=${prefix} --without-snapshot ${ARCHFLAGS} +} + +do_compile () { + export LD="${CXX}" + make BUILDTYPE=Release +} + +do_install () { + oe_runmake install DESTDIR=${D} +} + +RDEPENDS_${PN} = "curl python-shell python-datetime python-subprocess python-crypt python-textutils python-netclient " +RDEPENDS_${PN}_class-native = "" + +FILES_${PN} += "${libdir}/node/wafadmin ${libdir}/node_modules ${libdir}/dtrace ${libdir}/*" +BBCLASSEXTEND = "native" diff --git a/meta-oe/recipes-devtools/packagegroups/packagegroup-sdk-target.bb b/meta-oe/recipes-devtools/packagegroups/packagegroup-sdk-target.bb new file mode 100644 index 000000000..aafe63acf --- /dev/null +++ b/meta-oe/recipes-devtools/packagegroups/packagegroup-sdk-target.bb @@ -0,0 +1,28 @@ +SUMMARY = "Packages required for a target (on-device) SDK" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690" + +PR = "r1" + +inherit packagegroup allarch + +RPROVIDES_${PN} += "packagegroup-native-sdk" +RREPLACES_${PN} += "packagegroup-native-sdk" +RCONFLICTS_${PN} += "packagegroup-native-sdk" +RDEPENDS_${PN} = "gcc-symlinks g++-symlinks cpp cpp-symlinks \ + binutils-symlinks \ + perl-modules \ + flex flex-dev \ + bison \ + gawk \ + sed \ + grep \ + autoconf automake \ + make \ + patch diffstat diffutils \ + libstdc++-dev \ + libtool libtool-dev libltdl-dev \ + pkgconfig" + +# usefull, but not in oe-core/meta-oe yet: patchutils +RRECOMMENDS_${PN} = " g77-symlinks gfortran-symlinks" diff --git a/meta-oe/recipes-devtools/packagekit/packagekit-0.5.6/0001-Don-t-call-deprecated-glib-functions-and-use-the-new.patch b/meta-oe/recipes-devtools/packagekit/packagekit-0.5.6/0001-Don-t-call-deprecated-glib-functions-and-use-the-new.patch new file mode 100644 index 000000000..ecf8e7493 --- /dev/null +++ b/meta-oe/recipes-devtools/packagekit/packagekit-0.5.6/0001-Don-t-call-deprecated-glib-functions-and-use-the-new.patch @@ -0,0 +1,166 @@ +From 869e52a9055c72970fed036a1510f676e6ce0824 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Thu, 13 Jun 2013 01:24:19 -0700 +Subject: [PATCH] Don't call deprecated glib functions and use the new gthread + API. + +Signed-off-by: Khem Raj + +Upstream-Status: Inappropriate[version Unmaintained Upstream] +--- + client/pk-console.c | 3 ++- + client/pk-generate-pack.c | 3 ++- + client/pk-monitor.c | 3 ++- + contrib/command-not-found/PackageKit.sh | 2 +- + contrib/command-not-found/pk-command-not-found.c | 4 ++-- + contrib/debuginfo-install/pk-debuginfo-install.c | 4 ++-- + src/pk-backend.c | 7 +++++++ + src/pk-main.c | 4 ++-- + 10 files changed, 20 insertions(+), 10 deletions(-) + +diff --git a/client/pk-console.c b/client/pk-console.c +index de927e1..2435f27 100644 +--- a/client/pk-console.c ++++ b/client/pk-console.c +@@ -1264,11 +1264,12 @@ main (int argc, char *argv[]) + bindtextdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR); + bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); + textdomain (GETTEXT_PACKAGE); +- ++#if !GLIB_CHECK_VERSION(2,32,0) + if (! g_thread_supported ()) + g_thread_init (NULL); + g_type_init (); + dbus_g_thread_init (); ++#endif + + /* do stuff on ctrl-c */ + signal (SIGINT, pk_console_sigint_cb); +diff --git a/client/pk-generate-pack.c b/client/pk-generate-pack.c +index 0b2b40f..20d7e8d 100644 +--- a/client/pk-generate-pack.c ++++ b/client/pk-generate-pack.c +@@ -251,12 +251,13 @@ main (int argc, char *argv[]) + bindtextdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR); + bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); + textdomain (GETTEXT_PACKAGE); +- ++#if !GLIB_CHECK_VERSION(2,32,0) + if (! g_thread_supported ()) + g_thread_init (NULL); + + g_type_init (); + dbus_g_thread_init (); ++#endif + + /* do stuff on ctrl-c */ + signal (SIGINT, pk_generate_pack_sigint_cb); +diff --git a/client/pk-monitor.c b/client/pk-monitor.c +index f230f7a..d43007f 100644 +--- a/client/pk-monitor.c ++++ b/client/pk-monitor.c +@@ -285,11 +285,12 @@ main (int argc, char *argv[]) + bindtextdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR); + bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); + textdomain (GETTEXT_PACKAGE); +- ++#if !GLIB_CHECK_VERSION(2,32,0) + if (! g_thread_supported ()) + g_thread_init (NULL); + g_type_init (); + dbus_g_thread_init (); ++#endif + + context = g_option_context_new (NULL); + /* TRANSLATORS: this is a program that monitors PackageKit */ +diff --git a/contrib/command-not-found/PackageKit.sh b/contrib/command-not-found/PackageKit.sh +index d08989c..d708fff 100644 +--- a/contrib/command-not-found/PackageKit.sh ++++ b/contrib/command-not-found/PackageKit.sh +@@ -18,7 +18,7 @@ command_not_found_handle () { + + # run the command, or just print a warning + if [ $runcnf -eq 1 ]; then +- /home/hughsie/.root/libexec/pk-command-not-found $1 ++ /usr/lib/packagekit/pk-command-not-found $1 + retval=$? + else + echo "bash: $1: command not found" +diff --git a/contrib/command-not-found/pk-command-not-found.c b/contrib/command-not-found/pk-command-not-found.c +index 70679c0..9f81ce4 100644 +--- a/contrib/command-not-found/pk-command-not-found.c ++++ b/contrib/command-not-found/pk-command-not-found.c +@@ -659,12 +659,12 @@ main (int argc, char *argv[]) + bindtextdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR); + bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); + textdomain (GETTEXT_PACKAGE); +- ++#if !GLIB_CHECK_VERSION(2,32,0) + if (! g_thread_supported ()) + g_thread_init (NULL); + dbus_g_thread_init (); + g_type_init (); +- ++#endif + context = g_option_context_new (NULL); + /* TRANSLATORS: tool that gets called when the command is not found */ + g_option_context_set_summary (context, _("PackageKit Command Not Found")); +diff --git a/contrib/debuginfo-install/pk-debuginfo-install.c b/contrib/debuginfo-install/pk-debuginfo-install.c +index c12aca5..b0e1e7c 100644 +--- a/contrib/debuginfo-install/pk-debuginfo-install.c ++++ b/contrib/debuginfo-install/pk-debuginfo-install.c +@@ -532,11 +532,11 @@ main (int argc, char *argv[]) + bindtextdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR); + bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); + textdomain (GETTEXT_PACKAGE); +- ++#if !GLIB_CHECK_VERSION(2,32,0) + if (! g_thread_supported ()) + g_thread_init (NULL); + g_type_init (); +- ++#endif + context = g_option_context_new (NULL); + /* TRANSLATORS: tool that gets called when the command is not found */ + g_option_context_set_summary (context, _("PackageKit Debuginfo Installer")); +diff --git a/src/pk-backend.c b/src/pk-backend.c +index 5216b63..5b83ae4 100644 +--- a/src/pk-backend.c ++++ b/src/pk-backend.c +@@ -2103,7 +2103,14 @@ pk_backend_thread_create (PkBackend *backend, PkBackendThreadFunc func) + egg_warning ("already has thread"); + return FALSE; + } ++#if !GLIB_CHECK_VERSION(2,32,0) + backend->priv->thread = g_thread_create ((GThreadFunc) func, backend, FALSE, NULL); ++#else ++ backend->priv->thread = g_thread_try_new ("daemon thread", (GThreadFunc) func, backend, NULL); ++ if (backend->priv->thread != NULL) { ++ g_thread_unref(backend->priv->thread); ++ } ++#endif + if (backend->priv->thread == NULL) { + egg_warning ("failed to create thread"); + return FALSE; +diff --git a/src/pk-main.c b/src/pk-main.c +index 4c758cd..8fa2482 100644 +--- a/src/pk-main.c ++++ b/src/pk-main.c +@@ -219,12 +219,12 @@ main (int argc, char *argv[]) + bindtextdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR); + bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); + textdomain (GETTEXT_PACKAGE); +- ++#if !GLIB_CHECK_VERSION(2,32,0) + if (! g_thread_supported ()) + g_thread_init (NULL); + dbus_g_thread_init (); + g_type_init (); +- ++#endif + /* TRANSLATORS: describing the service that is running */ + context = g_option_context_new (_("PackageKit service")); + g_option_context_add_main_entries (context, options, NULL); +-- +1.7.9.5 + diff --git a/meta-oe/recipes-devtools/packagekit/packagekit-0.5.6/configurefix.patch b/meta-oe/recipes-devtools/packagekit/packagekit-0.5.6/configurefix.patch new file mode 100644 index 000000000..48f959186 --- /dev/null +++ b/meta-oe/recipes-devtools/packagekit/packagekit-0.5.6/configurefix.patch @@ -0,0 +1,13 @@ +Index: PackageKit-0.6.0/configure.ac +=================================================================== +--- PackageKit-0.6.0.orig/configure.ac 2010-01-04 16:32:18.000000000 +0000 ++++ PackageKit-0.6.0/configure.ac 2010-01-29 11:33:48.000000000 +0000 +@@ -90,7 +90,7 @@ + enable_strict=$default_strict) + if test x$enable_strict != xno; then + if test "$GCC" = "yes"; then +- WARNINGFLAGS_CPP="$WARNINGFLAGS_CPP -Werror" ++ : + fi + fi + diff --git a/meta-oe/recipes-devtools/packagekit/packagekit-0.5.6/opkgfixes.patch b/meta-oe/recipes-devtools/packagekit/packagekit-0.5.6/opkgfixes.patch new file mode 100644 index 000000000..5a73a19d5 --- /dev/null +++ b/meta-oe/recipes-devtools/packagekit/packagekit-0.5.6/opkgfixes.patch @@ -0,0 +1,422 @@ +Index: PackageKit-0.6.0/backends/opkg/pk-backend-opkg.c +=================================================================== +--- PackageKit-0.6.0.orig/backends/opkg/pk-backend-opkg.c 2010-01-29 09:39:33.000000000 +0000 ++++ PackageKit-0.6.0/backends/opkg/pk-backend-opkg.c 2010-01-29 11:30:51.000000000 +0000 +@@ -29,8 +29,7 @@ + ++#include + #include + +-static opkg_t *opkg; +- + enum { + SEARCH_NAME, + SEARCH_DESCRIPTION, +@@ -62,7 +60,7 @@ + * check an opkg package for known GUI dependancies + */ + static gboolean +-opkg_is_gui_pkg (opkg_package_t *pkg) ++opkg_is_gui_pkg (pkg_t *pkg) + { + + /* TODO: check appropriate tag */ +@@ -84,7 +82,7 @@ + * check an opkg package to determine if it is a development package + */ + static gboolean +-opkg_is_devel_pkg (opkg_package_t *pkg) ++opkg_is_devel_pkg (pkg_t *pkg) + { + if (g_strrstr (pkg->name, "-dev")) + return TRUE; +@@ -105,7 +103,7 @@ + * returns true if the tag is present + */ + static gboolean +-opkg_check_tag (opkg_package_t *pkg, const gchar *tag) ++opkg_check_tag (pkg_t *pkg, const gchar *tag) + { + if (pkg->tags && tag) + return (g_strrstr (pkg->tags, tag) != NULL); +@@ -118,7 +116,7 @@ + { + switch (err) + { +- case OPKG_NO_ERROR: ++/* case OPKG_NO_ERROR: + break; + case OPKG_PACKAGE_NOT_INSTALLED: + pk_backend_error_code (backend, PK_ERROR_ENUM_PACKAGE_NOT_INSTALLED, NULL); +@@ -140,7 +138,7 @@ + break; + case OPKG_PACKAGE_NOT_AVAILABLE: + pk_backend_error_code (backend, PK_ERROR_ENUM_PACKAGE_NOT_FOUND, NULL); +- break; ++ break;*/ + default: + opkg_unknown_error (backend, err, "Update package"); + } +@@ -152,7 +150,7 @@ + static void + backend_initialize (PkBackend *backend) + { +- opkg = opkg_new (); ++ int opkg = opkg_new (); + + if (!opkg) { + pk_backend_error_code (backend, +@@ -162,8 +160,8 @@ + } + + #ifdef OPKG_OFFLINE_ROOT +- opkg_set_option (opkg, (char *) "offline_root", OPKG_OFFLINE_ROOT); +- opkg_re_read_config_files (opkg); ++ opkg_set_option ((char *) "offline_root", OPKG_OFFLINE_ROOT); ++ opkg_re_read_config_files (); + #endif + + } +@@ -174,22 +172,22 @@ + static void + backend_destroy (PkBackend *backend) + { +- opkg_free (opkg); ++ opkg_free (); + } + + + static void +-pk_opkg_progress_cb (opkg_t *_opkg, const opkg_progress_data_t *pdata, void *data) ++pk_opkg_progress_cb (const opkg_progress_data_t *pdata, void *data) + { +- PkBackend *backend = PK_BACKEND (data); ++ PkBackend *backend = (PkBackend*) data; + if (!backend) + return; + + pk_backend_set_percentage (backend, pdata->percentage); +- if (pdata->package) ++ if (pdata->pkg) + { + gchar *uid; +- opkg_package_t *pkg = pdata->package; ++ pkg_t *pkg = pdata->pkg; + gint status = PK_INFO_ENUM_UNKNOWN; + + uid = g_strdup_printf ("%s;%s;%s;", +@@ -225,12 +223,12 @@ + { + int ret; + +- ret = opkg_update_package_lists (opkg, pk_opkg_progress_cb, backend); ++ ret = opkg_update_package_lists (pk_opkg_progress_cb, backend); + + if (ret) { +- if (ret == OPKG_DOWNLOAD_FAILED) +- pk_backend_error_code (backend, PK_ERROR_ENUM_REPO_NOT_AVAILABLE, NULL); +- else ++// if (ret == OPKG_DOWNLOAD_FAILED) ++// pk_backend_error_code (backend, PK_ERROR_ENUM_REPO_NOT_AVAILABLE, NULL); ++// else + opkg_unknown_error (backend, ret, "Refreshing cache"); + } + pk_backend_finished (backend); +@@ -256,7 +254,7 @@ + */ + + static void +-pk_opkg_package_list_cb (opkg_t *_opkg, opkg_package_t *pkg, void *data) ++pk_opkg_package_list_cb (pkg_t *pkg, void *data) + { + SearchParams *params = (SearchParams*) data; + gchar *uid; +@@ -298,7 +296,7 @@ + uid = g_strdup_printf ("%s;%s;%s;", + pkg->name, pkg->version, pkg->architecture); + +- if (pkg->installed) ++ if (pkg->state_status == SS_INSTALLED) + status = PK_INFO_ENUM_INSTALLED; + else + status = PK_INFO_ENUM_AVAILABLE; +@@ -318,10 +316,10 @@ + opkg_is_gui_pkg (pkg)) + goto end_handle; + if (pk_bitfield_contain(filters, PK_FILTER_ENUM_INSTALLED) && +- (!pkg->installed)) ++ (pkg->state_status != SS_INSTALLED)) + goto end_handle; + if (pk_bitfield_contain(filters, PK_FILTER_ENUM_NOT_INSTALLED) && +- (pkg->installed)) ++ (pkg->state_status == SS_INSTALLED)) + goto end_handle; + + pk_backend_package (params->backend, status, uid, pkg->description); +@@ -338,7 +336,7 @@ + + params = pk_backend_get_pointer (backend, "search-params"); + +- opkg_list_packages (opkg, pk_opkg_package_list_cb, params); ++ opkg_list_packages (pk_opkg_package_list_cb, params); + + pk_backend_finished (params->backend); + +@@ -349,7 +347,7 @@ + } + + static void +-backend_search_name (PkBackend *backend, PkBitfield filters, const gchar *search) ++backend_search_name (PkBackend *backend, PkBitfield filters, gchar **search) + { + SearchParams *params; + +@@ -360,7 +358,7 @@ + params = g_new0 (SearchParams, 1); + params->filters = filters; + params->search_type = SEARCH_NAME; +- params->needle = g_utf8_strdown (search, -1); ++ params->needle = g_utf8_strdown (search[0], -1); + params->backend = backend; + + pk_backend_set_pointer (backend, "search-params", params); +@@ -371,7 +369,7 @@ + * backend_search_description: + */ + static void +-backend_search_description (PkBackend *backend, PkBitfield filters, const gchar *search) ++backend_search_description (PkBackend *backend, PkBitfield filters, gchar **search) + { + SearchParams *params; + +@@ -382,7 +380,7 @@ + params = g_new0 (SearchParams, 1); + params->filters = filters; + params->search_type = SEARCH_DESCRIPTION; +- params->needle = g_utf8_strdown (search, -1); ++ params->needle = g_utf8_strdown (search[0], -1); + params->backend = backend; + + pk_backend_set_pointer (backend, "search-params", params); +@@ -390,7 +388,7 @@ + } + + static void +-backend_search_group (PkBackend *backend, PkBitfield filters, const gchar *search) ++backend_search_group (PkBackend *backend, PkBitfield filters, gchar **search) + { + SearchParams *params; + +@@ -401,7 +399,7 @@ + params = g_new0 (SearchParams, 1); + params->filters = filters; + params->search_type = SEARCH_TAG; +- params->needle = g_strdup_printf ("group::%s", search); ++ params->needle = g_strdup_printf ("group::%s", search[0]); + params->backend = backend; + + pk_backend_set_pointer (backend, "search-params", params); +@@ -412,9 +410,9 @@ + static gboolean + backend_install_packages_thread (PkBackend *backend) + { +- PkPackageId *pi; + gint err, i; + gchar **package_ids; ++ gchar **parts; + + package_ids = pk_backend_get_strv (backend, "pkids"); + +@@ -424,13 +422,13 @@ + { + pk_backend_package (backend, PK_INFO_ENUM_INSTALLING, package_ids[i], NULL); + +- pi = pk_package_id_new_from_string (package_ids[i]); ++ parts = pk_package_id_split (package_ids[i]); + +- err = opkg_install_package (opkg, pi->name, pk_opkg_progress_cb, backend); ++ err = opkg_install_package (parts[PK_PACKAGE_ID_NAME], pk_opkg_progress_cb, backend); + if (err) + handle_install_error (backend, err); + +- pk_package_id_free (pi); ++ g_strfreev (parts); + if (err != 0) + break; + } +@@ -453,9 +451,9 @@ + static gboolean + backend_remove_packages_thread (PkBackend *backend) + { +- PkPackageId *pi; + gint err, i; + gchar **package_ids; ++ gchar **parts; + gboolean allow_deps; + gboolean autoremove; + gpointer *data; +@@ -467,29 +465,30 @@ + autoremove = GPOINTER_TO_INT (data[2]); + g_free (data); + +- opkg_set_option (opkg, (char *)"autoremove", &autoremove); +- opkg_set_option (opkg, (char *)"force_removal_of_dependent_packages", &allow_deps); ++ opkg_set_option ((char *)"autoremove", &autoremove); ++ opkg_set_option ((char *)"force_removal_of_dependent_packages", &allow_deps); + + err = 0; + + for (i = 0; package_ids[i]; i++) + { +- pi = pk_package_id_new_from_string (package_ids[i]); + pk_backend_package (backend, PK_INFO_ENUM_REMOVING, package_ids[i], NULL); + +- err = opkg_remove_package (opkg, pi->name, pk_opkg_progress_cb, backend); ++ parts = pk_package_id_split (package_ids[i]); ++ ++ err = opkg_remove_package (parts[PK_PACKAGE_ID_NAME], pk_opkg_progress_cb, backend); + + switch (err) + { +- case OPKG_NO_ERROR: +- break; +- case OPKG_PACKAGE_NOT_INSTALLED: +- pk_backend_error_code (backend, PK_ERROR_ENUM_PACKAGE_NOT_INSTALLED, NULL); +- break; ++ //case OPKG_NO_ERROR: ++ // break; ++ //case OPKG_PACKAGE_NOT_INSTALLED: ++ // pk_backend_error_code (backend, PK_ERROR_ENUM_PACKAGE_NOT_INSTALLED, NULL); ++ // break; + default: + opkg_unknown_error (backend, err, "Remove"); + } +- pk_package_id_free (pi); ++ g_strfreev (parts); + + if (err != 0) + break; +@@ -540,7 +539,7 @@ + gint err; + + /* FIXME: support only_trusted */ +- err = opkg_upgrade_all (opkg, pk_opkg_progress_cb, backend); ++ err = opkg_upgrade_all (pk_opkg_progress_cb, backend); + + if (err) + opkg_unknown_error (backend, err, "Upgrading system"); +@@ -564,29 +563,28 @@ + static gboolean + backend_update_package_thread (PkBackend *backend) + { +- PkPackageId *pi; ++ gchar **parts; + gint err = 0; + const gchar *package_id; + + /* FIXME: support only_trusted */ + package_id = pk_backend_get_string (backend, "pkgid"); +- pi = pk_package_id_new_from_string (package_id); ++ parts = pk_package_id_split (package_id); + +- if (!pi->name || !pi->version) ++ if (!parts) + { + pk_backend_error_code (backend, PK_ERROR_ENUM_PACKAGE_NOT_FOUND, + "Package not found"); +- pk_package_id_free (pi); + pk_backend_finished (backend); + return FALSE; + } + +- err = opkg_upgrade_package (opkg, pi->name, pk_opkg_progress_cb, backend); ++ err = opkg_upgrade_package (parts[PK_PACKAGE_ID_NAME], pk_opkg_progress_cb, backend); + if (err) + handle_install_error (backend, err); + + +- pk_package_id_free (pi); ++ g_strfreev (parts); + pk_backend_finished (backend); + return (err != 0); + } +@@ -610,13 +608,13 @@ + */ + + static void +-pk_opkg_list_upgradable_cb (opkg_t *_opkg, opkg_package_t *pkg, void *data) ++pk_opkg_list_upgradable_cb (pkg_t *pkg, void *data) + { +- PkBackend *backend = PK_BACKEND (data); ++ PkBackend *backend = (PkBackend*) data; + gchar *uid; + gint status; + +- if (pkg->installed) ++ if (pkg->state_status == SS_INSTALLED) + status = PK_INFO_ENUM_INSTALLED; + else + status = PK_INFO_ENUM_AVAILABLE; +@@ -631,7 +629,7 @@ + static gboolean + backend_get_updates_thread (PkBackend *backend) + { +- opkg_list_upgradable_packages (opkg, pk_opkg_list_upgradable_cb, backend); ++ opkg_list_upgradable_packages (pk_opkg_list_upgradable_cb, backend); + pk_backend_finished (backend); + return TRUE; + } +@@ -668,16 +666,18 @@ + static gboolean + backend_get_details_thread (PkBackend *backend) + { +- PkPackageId *pi; + gchar **package_ids; ++ gchar **parts; + int group_index; + PkGroupEnum group = 0; +- opkg_package_t *pkg; ++ pkg_t *pkg; + gchar *newid; + + package_ids = pk_backend_get_strv(backend, "package_ids"); +- pi = pk_package_id_new_from_string (package_ids[0]); +- if (pi == NULL) ++ parts = pk_package_id_split (package_ids[0]); ++ ++ ++ if (!parts) + { + pk_backend_error_code (backend, PK_ERROR_ENUM_PACKAGE_ID_INVALID, "invalid package id"); + pk_backend_finished (backend); +@@ -685,8 +685,8 @@ + } + + +- pkg = opkg_find_package (opkg, pi->name, pi->version, pi->arch, pi->data); +- pk_package_id_free (pi); ++ pkg = opkg_find_package (parts[PK_PACKAGE_ID_NAME], parts[PK_PACKAGE_ID_VERSION], parts[PK_PACKAGE_ID_ARCH], parts[PK_PACKAGE_ID_DATA]); ++ g_strfreev (parts); + + if (!pkg) + { +@@ -695,7 +695,7 @@ + return FALSE; + } + +- newid = g_strdup_printf ("%s;%s;%s;%s", pkg->name, pkg->version, pkg->architecture, pkg->repository); ++ newid = g_strdup_printf ("%s;%s;%s;%s", pkg->name, pkg->version, pkg->architecture, pkg->src->name); + + if (pkg->tags) { + for (group_index = 0; group < PK_GROUP_ENUM_LAST; group_index++) { +@@ -706,9 +706,8 @@ + } + } + +- pk_backend_details (backend, newid, NULL, group, pkg->description, pkg->url, pkg->size); ++ pk_backend_details (backend, newid, NULL, group, pkg->description, NULL, pkg->size); + g_free (newid); +- opkg_package_free(pkg); + pk_backend_finished (backend); + return TRUE; + } diff --git a/meta-oe/recipes-devtools/packagekit/packagekit_0.5.6.bb b/meta-oe/recipes-devtools/packagekit/packagekit_0.5.6.bb new file mode 100644 index 000000000..96cc468e3 --- /dev/null +++ b/meta-oe/recipes-devtools/packagekit/packagekit_0.5.6.bb @@ -0,0 +1,62 @@ +SUMMARY = "PackageKit package management abstraction" +SECTION = "libs" +LICENSE = "GPL-2.0+" +LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" +DEPENDS = "gtk+ python polkit dbus dbus-glib glib-2.0 sqlite3 opkg intltool intltool-native" +RDEPENDS_${PN} = "opkg" + +inherit gnome pythonnative + +SRC_URI = "http://www.packagekit.org/releases/PackageKit-${PV}.tar.gz;name=archive \ + file://configurefix.patch \ + file://opkgfixes.patch \ + file://0001-Don-t-call-deprecated-glib-functions-and-use-the-new.patch \ + " + +SRC_URI[archive.md5sum] = "6c8d9c48e21b82abeea15c3fd5066242" +SRC_URI[archive.sha256sum] = "0eafd1be5516a41ebc0f0c3acff0b0763da105a4178b5eee0ff16d66ccd04408" + +S = "${WORKDIR}/PackageKit-${PV}" + +PACKAGECONFIG ??= "" +PACKAGECONFIG[service-packs] = "--enable-service-packs,--disable-service-packs,libarchive" + +EXTRA_OECONF = "--with-security-framework=dummy \ + --with-default-backend=opkg \ + --enable-opkg \ + --disable-tests \ + --disable-ruck \ + --disable-qt \ + --disable-gstreamer-plugin \ + --disable-local \ + --disable-networkmanager \ + ac_cv_path_XMLTO=no \ +" + +#do_configure_prepend() { +# mkdir -p m4 +# echo "EXTRA_DIST=" > gtk-doc.make +#} + +do_configure_append() { + for i in $(find . -name Makefile) ; do + sed -i -e s:${STAGING_DIR_NATIVE}::g \ + -e s:${bindir}/mkdir:${STAGING_BINDIR_NATIVE}/mkdir:g \ + -e s:/usr/bin/intltool-merge:${STAGING_BINDIR_NATIVE}/intltool-merge:g \ + $i + done +} + +PACKAGES =+ "${PN}-website" +FILES_${PN}-website = "${datadir}/PackageKit/website" + +PACKAGES =+ "${PN}-python" +FILES_${PN}-python = "${libdir}/python*" + +PACKAGES =+ "${PN}-gtkmodule" +FILES_${PN}-gtkmodule = "${libdir}/gtk-2.0/*/*.so" + +FILES_${PN} += "${libdir}/packagekit-backend/*.so ${libdir}/pm-utils ${datadir}/dbus-1/system-services/ ${datadir}/PolicyKit ${datadir}/PackageKit" +FILES_${PN}-dbg += "${libdir}/packagekit-backend/.debug/*.so ${libdir}/gtk-2.0/*/.debug" +FILES_${PN}-dev += "${libdir}/packagekit-backend/*.la ${libdir}/gtk-2.0/*/*.la" +FILES_${PN}-staticdev += "${libdir}/packagekit-backend/*.a ${libdir}/gtk-2.0/*/*.a" diff --git a/meta-oe/recipes-devtools/perl/libio-pty-perl_1.10.bb b/meta-oe/recipes-devtools/perl/libio-pty-perl_1.10.bb new file mode 100644 index 000000000..88db683b8 --- /dev/null +++ b/meta-oe/recipes-devtools/perl/libio-pty-perl_1.10.bb @@ -0,0 +1,14 @@ +SUMMARY = "Perl module for pseudo tty IO" +SECTION = "libs" +LICENSE = "Artistic-1.0 | GPL-1.0+" +LIC_FILES_CHKSUM = "file://META.yml;beginline=7;endline=8;md5=f86a66cc3d9522a227298d6898b181a2" + +SRC_URI = "http://www.cpan.org/modules/by-module/IO/IO-Tty-${PV}.tar.gz" + +SRC_URI[md5sum] = "46baec86a145e57f0ec661fa412b097c" +SRC_URI[sha256sum] = "31a6e21ad187ec5ea93c2b898d6b3519647c5fce9f394b6d3c05a1f7c3f6f8b1" + +S = "${WORKDIR}/IO-Tty-${PV}" + +inherit cpan + diff --git a/meta-oe/recipes-devtools/php/php/0001-acinclude-use-pkgconfig-for-libxml2-config.patch b/meta-oe/recipes-devtools/php/php/0001-acinclude-use-pkgconfig-for-libxml2-config.patch new file mode 100644 index 000000000..51a5e43b6 --- /dev/null +++ b/meta-oe/recipes-devtools/php/php/0001-acinclude-use-pkgconfig-for-libxml2-config.patch @@ -0,0 +1,90 @@ +From 003c9feaae6ed5c173edcea51193e49bc94ac39a Mon Sep 17 00:00:00 2001 +From: Koen Kooi +Date: Tue, 17 Jun 2014 09:53:00 +0200 +Subject: [PATCH 3/8] acinclude: use pkgconfig for libxml2 config + +Signed-off-by: Koen Kooi +Upstream-Status: pending +--- + acinclude.m4 | 63 ++++++++++++++++++++++-------------------------------------- + 1 file changed, 23 insertions(+), 40 deletions(-) + +diff --git a/acinclude.m4 b/acinclude.m4 +index 206fcbf..a6c0d84 100644 +--- a/acinclude.m4 ++++ b/acinclude.m4 +@@ -2530,48 +2530,31 @@ dnl + dnl Common setup macro for libxml + dnl + AC_DEFUN([PHP_SETUP_LIBXML], [ +-AC_CACHE_CHECK([for xml2-config path], ac_cv_php_xml2_config_path, +-[ +- +- ac_cv_php_xml2_config_path="$PHP_LIBXML_DIR/xml2-config" +- ++PKG_CHECK_MODULES([LIBXML], [libxml-2.0 > 2.6.11], [ ++ PHP_EVAL_LIBLINE($LIBXML_LIBS, $1) ++ PHP_EVAL_INCLINE($LIBXML_CFLAGS) ++ ++ dnl Check that build works with given libs ++ AC_CACHE_CHECK(whether libxml build works, php_cv_libxml_build_works, [ ++ PHP_TEST_BUILD(xmlInitParser, ++ [ ++ php_cv_libxml_build_works=yes ++ AC_MSG_RESULT(yes) ++ ], [ ++ AC_MSG_RESULT(no) ++ AC_MSG_ERROR([build test failed. Please check the config.log for details.]) ++ ], [ ++ [$]$1 ++ ]) ++ ]) ++ if test "$php_cv_libxml_build_works" = "yes"; then ++ AC_DEFINE(HAVE_LIBXML, 1, [ ]) ++ fi ++ $2 ++], [ ++ AC_MSG_ERROR([$LIBXML_PKG_ERRORS]) + ]) + +- if test -x "$ac_cv_php_xml2_config_path"; then +- XML2_CONFIG="$ac_cv_php_xml2_config_path" +- libxml_full_version=`$XML2_CONFIG --version` +- ac_IFS=$IFS +- IFS="." +- set $libxml_full_version +- IFS=$ac_IFS +- LIBXML_VERSION=`expr [$]1 \* 1000000 + [$]2 \* 1000 + [$]3` +- if test "$LIBXML_VERSION" -ge "2006011"; then +- LIBXML_LIBS=`$XML2_CONFIG --libs` +- LIBXML_INCS=`$XML2_CONFIG --cflags` +- PHP_EVAL_LIBLINE($LIBXML_LIBS, $1) +- PHP_EVAL_INCLINE($LIBXML_INCS) +- +- dnl Check that build works with given libs +- AC_CACHE_CHECK(whether libxml build works, php_cv_libxml_build_works, [ +- PHP_TEST_BUILD(xmlInitParser, +- [ +- php_cv_libxml_build_works=yes +- ], [ +- AC_MSG_RESULT(no) +- AC_MSG_ERROR([build test failed. Please check the config.log for details.]) +- ], [ +- [$]$1 +- ]) +- ]) +- if test "$php_cv_libxml_build_works" = "yes"; then +- AC_DEFINE(HAVE_LIBXML, 1, [ ]) +- fi +- $2 +- else +- AC_MSG_ERROR([libxml2 version 2.6.11 or greater required.]) +- fi +-ifelse([$3],[],,[else $3]) +- fi + ]) + + dnl ------------------------------------------------------------------------- +-- +1.9.3 + diff --git a/meta-oe/recipes-devtools/php/php/0001-php-don-t-use-broken-wrapper-for-mkdir.patch b/meta-oe/recipes-devtools/php/php/0001-php-don-t-use-broken-wrapper-for-mkdir.patch new file mode 100644 index 000000000..2f7d58155 --- /dev/null +++ b/meta-oe/recipes-devtools/php/php/0001-php-don-t-use-broken-wrapper-for-mkdir.patch @@ -0,0 +1,26 @@ +From ebc101e0728b9db6c687cff525e5dfc8eb0edbf3 Mon Sep 17 00:00:00 2001 +From: Koen Kooi +Date: Thu, 3 Nov 2011 14:27:15 +0100 +Subject: [PATCH 2/8] php: don't use broken wrapper for mkdir + +Signed-off-by: Koen Kooi +--- + +Upstream-Status: Inappropriate + + Makefile.global | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Makefile.global b/Makefile.global +index ff858c2..ae554b4 100644 +--- a/Makefile.global ++++ b/Makefile.global +@@ -1,4 +1,4 @@ +-mkinstalldirs = $(top_srcdir)/build/shtool mkdir -p ++mkinstalldirs = mkdir -p + INSTALL = $(top_srcdir)/build/shtool install -c + INSTALL_DATA = $(INSTALL) -m 644 + +-- +1.9.3 + diff --git a/meta-oe/recipes-devtools/php/php/acinclude-xml2-config.patch b/meta-oe/recipes-devtools/php/php/acinclude-xml2-config.patch new file mode 100644 index 000000000..30811a74b --- /dev/null +++ b/meta-oe/recipes-devtools/php/php/acinclude-xml2-config.patch @@ -0,0 +1,25 @@ +Upstream-status: Unknown + +diff --git a/acinclude.m4 b/acinclude.m4 +index 4fd452e..206fcbf 100644 +--- a/acinclude.m4 ++++ b/acinclude.m4 +@@ -2532,12 +2532,9 @@ dnl + AC_DEFUN([PHP_SETUP_LIBXML], [ + AC_CACHE_CHECK([for xml2-config path], ac_cv_php_xml2_config_path, + [ +- for i in $PHP_LIBXML_DIR /usr/local /usr; do +- if test -x "$i/bin/xml2-config"; then +- ac_cv_php_xml2_config_path="$i/bin/xml2-config" +- break +- fi +- done ++ ++ ac_cv_php_xml2_config_path="$PHP_LIBXML_DIR/xml2-config" ++ + ]) + + if test -x "$ac_cv_php_xml2_config_path"; then +-- +1.9.3 + diff --git a/meta-oe/recipes-devtools/php/php/iconv.patch b/meta-oe/recipes-devtools/php/php/iconv.patch new file mode 100644 index 000000000..255fbb062 --- /dev/null +++ b/meta-oe/recipes-devtools/php/php/iconv.patch @@ -0,0 +1,32 @@ +Upstream-status: Unknown + +diff --git a/acinclude.m4 b/acinclude.m4 +index a6c0d84..df11abd 100644 +--- a/acinclude.m4 ++++ b/acinclude.m4 +@@ -2452,7 +2452,8 @@ AC_DEFUN([PHP_SETUP_ICONV], [ + dnl Check libc first if no path is provided in --with-iconv + dnl + +- if test "$PHP_ICONV" = "yes"; then ++ dnl must check against no, not against yes as PHP_ICONV can also include a path, which implies yes ++ if test "$PHP_ICONV" != "no"; then + dnl Reset LIBS temporarily as it may have already been included + dnl -liconv in. + LIBS_save="$LIBS" +diff --git a/ext/iconv/config.m4 b/ext/iconv/config.m4 +index d673b0a..1fbef13 100644 +--- a/ext/iconv/config.m4 ++++ b/ext/iconv/config.m4 +@@ -15,7 +15,7 @@ if test "$PHP_ICONV" != "no"; then + + if test "$iconv_avail" != "no"; then + if test -z "$ICONV_DIR"; then +- for i in /usr/local /usr; do ++ for i in $PHP_ICONV /usr/local /usr; do + if test -f "$i/include/iconv.h" || test -f "$i/include/giconv.h"; then + PHP_ICONV_PREFIX="$i" + break +-- +1.9.3 + diff --git a/meta-oe/recipes-devtools/php/php/imap-fix-autofoo.patch b/meta-oe/recipes-devtools/php/php/imap-fix-autofoo.patch new file mode 100644 index 000000000..da04c2d95 --- /dev/null +++ b/meta-oe/recipes-devtools/php/php/imap-fix-autofoo.patch @@ -0,0 +1,46 @@ +Upstream-status: Unknown + +diff --git a/acinclude.m4 b/acinclude.m4 +index df11abd..06e7236 100644 +--- a/acinclude.m4 ++++ b/acinclude.m4 +@@ -2357,7 +2357,7 @@ AC_DEFUN([PHP_SETUP_OPENSSL],[ + PHP_OPENSSL_DIR="/usr/local/ssl /usr/local /usr /usr/local/openssl" + fi + +- for i in $PHP_OPENSSL_DIR; do ++ for i in $PHP_OPENSSL_DIR $PHP_OPENSSL_DIR/usr; do + if test -r $i/include/openssl/evp.h; then + OPENSSL_INCDIR=$i/include + fi +diff --git a/ext/imap/config.m4 b/ext/imap/config.m4 +index 3fcf674..f08caf7 100644 +--- a/ext/imap/config.m4 ++++ b/ext/imap/config.m4 +@@ -109,7 +109,7 @@ if test "$PHP_IMAP" != "no"; then + PHP_NEW_EXTENSION(imap, php_imap.c, $ext_shared) + AC_DEFINE(HAVE_IMAP,1,[ ]) + +- for i in $PHP_IMAP /usr/local /usr; do ++ for i in $PHP_IMAP $PHP_IMAP/usr /usr/local /usr; do + IMAP_INC_CHK() + el[]IMAP_INC_CHK(/include/c-client) + el[]IMAP_INC_CHK(/include/imap) +@@ -198,13 +198,7 @@ if test "$PHP_IMAP" != "no"; then + AC_MSG_ERROR(Cannot find rfc822.h. Please check your c-client installation.) + fi + +- if test ! -r "$IMAP_DIR/c-client/libc-client.a" && test -r "$IMAP_DIR/c-client/c-client.a" ; then +- ln -s "$IMAP_DIR/c-client/c-client.a" "$IMAP_DIR/c-client/libc-client.a" >/dev/null 2>&1 +- elif test ! -r "$IMAP_DIR/$PHP_LIBDIR/libc-client.a" && test -r "$IMAP_DIR/$PHP_LIBDIR/c-client.a"; then +- ln -s "$IMAP_DIR/$PHP_LIBDIR/c-client.a" "$IMAP_DIR/$PHP_LIBDIR/libc-client.a" >/dev/null 2>&1 +- fi +- +- for lib in c-client4 c-client imap; do ++ for lib in /usr/lib c-client4 c-client imap; do + IMAP_LIB=$lib + IMAP_LIB_CHK($PHP_LIBDIR) + IMAP_LIB_CHK(c-client) +-- +1.9.3 + diff --git a/meta-oe/recipes-devtools/php/php/pear-makefile.patch b/meta-oe/recipes-devtools/php/php/pear-makefile.patch new file mode 100644 index 000000000..9927d2d96 --- /dev/null +++ b/meta-oe/recipes-devtools/php/php/pear-makefile.patch @@ -0,0 +1,18 @@ +Upstream-status: Unknown + +diff --git a/pear/Makefile.frag b/pear/Makefile.frag +index 00bacae..739eeca 100644 +--- a/pear/Makefile.frag ++++ b/pear/Makefile.frag +@@ -11,7 +11,7 @@ PEAR_PREFIX = -dp a${program_prefix} + PEAR_SUFFIX = -ds a$(program_suffix) + + install-pear-installer: $(SAPI_CLI_PATH) +- @$(top_builddir)/sapi/cli/php $(PEAR_INSTALL_FLAGS) pear/install-pear-nozlib.phar -d "$(peardir)" -b "$(bindir)" ${PEAR_PREFIX} ${PEAR_SUFFIX} ++ @$(PHP_NATIVE_DIR)/php $(PEAR_INSTALL_FLAGS) $(builddir)/install-pear-nozlib.phar -d "$(peardir)" -b "$(bindir)" ${PEAR_PREFIX} ${PEAR_SUFFIX} + + install-pear: + @echo "Installing PEAR environment: $(INSTALL_ROOT)$(peardir)/" +-- +1.9.3 + diff --git a/meta-oe/recipes-devtools/php/php/phar-makefile.patch b/meta-oe/recipes-devtools/php/php/phar-makefile.patch new file mode 100644 index 000000000..8a1136da5 --- /dev/null +++ b/meta-oe/recipes-devtools/php/php/phar-makefile.patch @@ -0,0 +1,33 @@ +Upstream-status: Unknown + +diff --git a/ext/phar/Makefile.frag b/ext/phar/Makefile.frag +old mode 100644 +new mode 100755 +index ed6de9f..9d03198 +--- a/ext/phar/Makefile.frag ++++ b/ext/phar/Makefile.frag +@@ -5,19 +5,8 @@ pharcmd: $(builddir)/phar.php $(builddir)/phar.phar + + PHP_PHARCMD_SETTINGS = -d 'open_basedir=' -d 'output_buffering=0' -d 'memory_limit=-1' -d phar.readonly=0 -d 'safe_mode=0' + PHP_PHARCMD_EXECUTABLE = ` \ +- if test -x "$(top_builddir)/$(SAPI_CLI_PATH)"; then \ +- $(top_srcdir)/build/shtool echo -n -- "$(top_builddir)/$(SAPI_CLI_PATH) -n"; \ +- if test "x$(PHP_MODULES)" != "x"; then \ +- $(top_srcdir)/build/shtool echo -n -- " -d extension_dir=$(top_builddir)/modules"; \ +- for i in bz2 zlib phar; do \ +- if test -f "$(top_builddir)/modules/$$i.la"; then \ +- . $(top_builddir)/modules/$$i.la; $(top_srcdir)/build/shtool echo -n -- " -d extension=$$dlname"; \ +- fi; \ +- done; \ +- fi; \ +- else \ +- $(top_srcdir)/build/shtool echo -n -- "$(PHP_EXECUTABLE)"; \ +- fi;` ++ $(top_srcdir)/build/shtool echo -n -- "$(PHP_EXECUTABLE)"; ` ++ + PHP_PHARCMD_BANG = `$(top_srcdir)/build/shtool echo -n -- "$(INSTALL_ROOT)$(bindir)/$(program_prefix)php$(program_suffix)$(EXEEXT)";` + + $(builddir)/phar/phar.inc: $(srcdir)/phar/phar.inc +-- +1.9.3 + diff --git a/meta-oe/recipes-devtools/php/php/php-fpm-apache.conf b/meta-oe/recipes-devtools/php/php/php-fpm-apache.conf new file mode 100644 index 000000000..77cdd82a7 --- /dev/null +++ b/meta-oe/recipes-devtools/php/php/php-fpm-apache.conf @@ -0,0 +1,6 @@ +# Taken from http://wiki.apache.org/httpd/PHP-FPM + +LoadModule proxy_module lib/apache2/modules/mod_proxy.so +LoadModule proxy_fcgi_module lib/apache2/modules/mod_proxy_fcgi.so + +ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:9000/usr/share/apache2/htdocs/ diff --git a/meta-oe/recipes-devtools/php/php/php-fpm.conf b/meta-oe/recipes-devtools/php/php/php-fpm.conf new file mode 100644 index 000000000..21e3dfb5c --- /dev/null +++ b/meta-oe/recipes-devtools/php/php/php-fpm.conf @@ -0,0 +1,510 @@ +;;;;;;;;;;;;;;;;;;;;; +; FPM Configuration ; +;;;;;;;;;;;;;;;;;;;;; + +; All relative paths in this configuration file are relative to PHP's install +; prefix (/usr). This prefix can be dynamicaly changed by using the +; '-p' argument from the command line. + +; Include one or more files. If glob(3) exists, it is used to include a bunch of +; files from a glob(3) pattern. This directive can be used everywhere in the +; file. +; Relative path can also be used. They will be prefixed by: +; - the global prefix if it's been set (-p arguement) +; - /usr otherwise +;include=etc/fpm.d/*.conf + +;;;;;;;;;;;;;;;;;; +; Global Options ; +;;;;;;;;;;;;;;;;;; + +[global] +; Pid file +; Note: the default prefix is /var +; Default Value: none +;pid = run/php-fpm.pid + +; Error log file +; If it's set to "syslog", log is sent to syslogd instead of being written +; in a local file. +; Note: the default prefix is /var +; Default Value: log/php-fpm.log +;error_log = log/php-fpm.log + +; syslog_facility is used to specify what type of program is logging the +; message. This lets syslogd specify that messages from different facilities +; will be handled differently. +; See syslog(3) for possible values (ex daemon equiv LOG_DAEMON) +; Default Value: daemon +;syslog.facility = daemon + +; syslog_ident is prepended to every message. If you have multiple FPM +; instances running on the same server, you can change the default value +; which must suit common needs. +; Default Value: php-fpm +;syslog.ident = php-fpm + +; Log level +; Possible Values: alert, error, warning, notice, debug +; Default Value: notice +;log_level = notice + +; If this number of child processes exit with SIGSEGV or SIGBUS within the time +; interval set by emergency_restart_interval then FPM will restart. A value +; of '0' means 'Off'. +; Default Value: 0 +;emergency_restart_threshold = 0 + +; Interval of time used by emergency_restart_interval to determine when +; a graceful restart will be initiated. This can be useful to work around +; accidental corruptions in an accelerator's shared memory. +; Available Units: s(econds), m(inutes), h(ours), or d(ays) +; Default Unit: seconds +; Default Value: 0 +;emergency_restart_interval = 0 + +; Time limit for child processes to wait for a reaction on signals from master. +; Available units: s(econds), m(inutes), h(ours), or d(ays) +; Default Unit: seconds +; Default Value: 0 +;process_control_timeout = 0 + +; The maximum number of processes FPM will fork. This has been design to control +; the global number of processes when using dynamic PM within a lot of pools. +; Use it with caution. +; Note: A value of 0 indicates no limit +; Default Value: 0 +; process.max = 128 + +; Specify the nice(2) priority to apply to the master process (only if set) +; The value can vary from -19 (highest priority) to 20 (lower priority) +; Note: - It will only work if the FPM master process is launched as root +; - The pool process will inherit the master process priority +; unless it specified otherwise +; Default Value: no set +; process.priority = -19 + +; Send FPM to background. Set to 'no' to keep FPM in foreground for debugging. +; Default Value: yes +;daemonize = yes + +; Set open file descriptor rlimit for the master process. +; Default Value: system defined value +;rlimit_files = 1024 + +; Set max core size rlimit for the master process. +; Possible Values: 'unlimited' or an integer greater or equal to 0 +; Default Value: system defined value +;rlimit_core = 0 + +; Specify the event mechanism FPM will use. The following is available: +; - select (any POSIX os) +; - poll (any POSIX os) +; - epoll (linux >= 2.5.44) +; - kqueue (FreeBSD >= 4.1, OpenBSD >= 2.9, NetBSD >= 2.0) +; - /dev/poll (Solaris >= 7) +; - port (Solaris >= 10) +; Default Value: not set (auto detection) +; events.mechanism = epoll + +;;;;;;;;;;;;;;;;;;;; +; Pool Definitions ; +;;;;;;;;;;;;;;;;;;;; + +; Multiple pools of child processes may be started with different listening +; ports and different management options. The name of the pool will be +; used in logs and stats. There is no limitation on the number of pools which +; FPM can handle. Your system will tell you anyway :) + +; Start a new pool named 'www'. +; the variable $pool can we used in any directive and will be replaced by the +; pool name ('www' here) +[www] + +; Per pool prefix +; It only applies on the following directives: +; - 'slowlog' +; - 'listen' (unixsocket) +; - 'chroot' +; - 'chdir' +; - 'php_values' +; - 'php_admin_values' +; When not set, the global prefix (or /usr) applies instead. +; Note: This directive can also be relative to the global prefix. +; Default Value: none +;prefix = /path/to/pools/$pool + +; Unix user/group of processes +; Note: The user is mandatory. If the group is not set, the default user's group +; will be used. +user = nobody +;group = nobody + +; The address on which to accept FastCGI requests. +; Valid syntaxes are: +; 'ip.add.re.ss:port' - to listen on a TCP socket to a specific address on +; a specific port; +; 'port' - to listen on a TCP socket to all addresses on a +; specific port; +; '/path/to/unix/socket' - to listen on a unix socket. +; Note: This value is mandatory. +listen = 127.0.0.1:9000 + +; Set listen(2) backlog. A value of '-1' means unlimited. +; Default Value: 128 (-1 on FreeBSD and OpenBSD) +;listen.backlog = -1 + +; Set permissions for unix socket, if one is used. In Linux, read/write +; permissions must be set in order to allow connections from a web server. Many +; BSD-derived systems allow connections regardless of permissions. +; Default Values: user and group are set as the running user +; mode is set to 0666 +;listen.owner = nobody +;listen.group = nobody +;listen.mode = 0666 + +; List of ipv4 addresses of FastCGI clients which are allowed to connect. +; Equivalent to the FCGI_WEB_SERVER_ADDRS environment variable in the original +; PHP FCGI (5.2.2+). Makes sense only with a tcp listening socket. Each address +; must be separated by a comma. If this value is left blank, connections will be +; accepted from any ip address. +; Default Value: any +;listen.allowed_clients = 127.0.0.1 + +; Specify the nice(2) priority to apply to the pool processes (only if set) +; The value can vary from -19 (highest priority) to 20 (lower priority) +; Note: - It will only work if the FPM master process is launched as root +; - The pool processes will inherit the master process priority +; unless it specified otherwise +; Default Value: no set +; priority = -19 + +; Choose how the process manager will control the number of child processes. +; Possible Values: +; static - a fixed number (pm.max_children) of child processes; +; dynamic - the number of child processes are set dynamically based on the +; following directives. With this process management, there will be +; always at least 1 children. +; pm.max_children - the maximum number of children that can +; be alive at the same time. +; pm.start_servers - the number of children created on startup. +; pm.min_spare_servers - the minimum number of children in 'idle' +; state (waiting to process). If the number +; of 'idle' processes is less than this +; number then some children will be created. +; pm.max_spare_servers - the maximum number of children in 'idle' +; state (waiting to process). If the number +; of 'idle' processes is greater than this +; number then some children will be killed. +; ondemand - no children are created at startup. Children will be forked when +; new requests will connect. The following parameter are used: +; pm.max_children - the maximum number of children that +; can be alive at the same time. +; pm.process_idle_timeout - The number of seconds after which +; an idle process will be killed. +; Note: This value is mandatory. +pm = dynamic + +; The number of child processes to be created when pm is set to 'static' and the +; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'. +; This value sets the limit on the number of simultaneous requests that will be +; served. Equivalent to the ApacheMaxClients directive with mpm_prefork. +; Equivalent to the PHP_FCGI_CHILDREN environment variable in the original PHP +; CGI. The below defaults are based on a server without much resources. Don't +; forget to tweak pm.* to fit your needs. +; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand' +; Note: This value is mandatory. +pm.max_children = 5 + +; The number of child processes created on startup. +; Note: Used only when pm is set to 'dynamic' +; Default Value: min_spare_servers + (max_spare_servers - min_spare_servers) / 2 +pm.start_servers = 2 + +; The desired minimum number of idle server processes. +; Note: Used only when pm is set to 'dynamic' +; Note: Mandatory when pm is set to 'dynamic' +pm.min_spare_servers = 1 + +; The desired maximum number of idle server processes. +; Note: Used only when pm is set to 'dynamic' +; Note: Mandatory when pm is set to 'dynamic' +pm.max_spare_servers = 3 + +; The number of seconds after which an idle process will be killed. +; Note: Used only when pm is set to 'ondemand' +; Default Value: 10s +;pm.process_idle_timeout = 10s; + +; The number of requests each child process should execute before respawning. +; This can be useful to work around memory leaks in 3rd party libraries. For +; endless request processing specify '0'. Equivalent to PHP_FCGI_MAX_REQUESTS. +; Default Value: 0 +;pm.max_requests = 500 + +; The URI to view the FPM status page. If this value is not set, no URI will be +; recognized as a status page. It shows the following informations: +; pool - the name of the pool; +; process manager - static, dynamic or ondemand; +; start time - the date and time FPM has started; +; start since - number of seconds since FPM has started; +; accepted conn - the number of request accepted by the pool; +; listen queue - the number of request in the queue of pending +; connections (see backlog in listen(2)); +; max listen queue - the maximum number of requests in the queue +; of pending connections since FPM has started; +; listen queue len - the size of the socket queue of pending connections; +; idle processes - the number of idle processes; +; active processes - the number of active processes; +; total processes - the number of idle + active processes; +; max active processes - the maximum number of active processes since FPM +; has started; +; max children reached - number of times, the process limit has been reached, +; when pm tries to start more children (works only for +; pm 'dynamic' and 'ondemand'); +; Value are updated in real time. +; Example output: +; pool: www +; process manager: static +; start time: 01/Jul/2011:17:53:49 +0200 +; start since: 62636 +; accepted conn: 190460 +; listen queue: 0 +; max listen queue: 1 +; listen queue len: 42 +; idle processes: 4 +; active processes: 11 +; total processes: 15 +; max active processes: 12 +; max children reached: 0 +; +; By default the status page output is formatted as text/plain. Passing either +; 'html', 'xml' or 'json' in the query string will return the corresponding +; output syntax. Example: +; http://www.foo.bar/status +; http://www.foo.bar/status?json +; http://www.foo.bar/status?html +; http://www.foo.bar/status?xml +; +; By default the status page only outputs short status. Passing 'full' in the +; query string will also return status for each pool process. +; Example: +; http://www.foo.bar/status?full +; http://www.foo.bar/status?json&full +; http://www.foo.bar/status?html&full +; http://www.foo.bar/status?xml&full +; The Full status returns for each process: +; pid - the PID of the process; +; state - the state of the process (Idle, Running, ...); +; start time - the date and time the process has started; +; start since - the number of seconds since the process has started; +; requests - the number of requests the process has served; +; request duration - the duration in µs of the requests; +; request method - the request method (GET, POST, ...); +; request URI - the request URI with the query string; +; content length - the content length of the request (only with POST); +; user - the user (PHP_AUTH_USER) (or '-' if not set); +; script - the main script called (or '-' if not set); +; last request cpu - the %cpu the last request consumed +; it's always 0 if the process is not in Idle state +; because CPU calculation is done when the request +; processing has terminated; +; last request memory - the max amount of memory the last request consumed +; it's always 0 if the process is not in Idle state +; because memory calculation is done when the request +; processing has terminated; +; If the process is in Idle state, then informations are related to the +; last request the process has served. Otherwise informations are related to +; the current request being served. +; Example output: +; ************************ +; pid: 31330 +; state: Running +; start time: 01/Jul/2011:17:53:49 +0200 +; start since: 63087 +; requests: 12808 +; request duration: 1250261 +; request method: GET +; request URI: /test_mem.php?N=10000 +; content length: 0 +; user: - +; script: /home/fat/web/docs/php/test_mem.php +; last request cpu: 0.00 +; last request memory: 0 +; +; Note: There is a real-time FPM status monitoring sample web page available +; It's available in: /usr/share/fpm/status.html +; +; Note: The value must start with a leading slash (/). The value can be +; anything, but it may not be a good idea to use the .php extension or it +; may conflict with a real PHP file. +; Default Value: not set +;pm.status_path = /status + +; The ping URI to call the monitoring page of FPM. If this value is not set, no +; URI will be recognized as a ping page. This could be used to test from outside +; that FPM is alive and responding, or to +; - create a graph of FPM availability (rrd or such); +; - remove a server from a group if it is not responding (load balancing); +; - trigger alerts for the operating team (24/7). +; Note: The value must start with a leading slash (/). The value can be +; anything, but it may not be a good idea to use the .php extension or it +; may conflict with a real PHP file. +; Default Value: not set +;ping.path = /ping + +; This directive may be used to customize the response of a ping request. The +; response is formatted as text/plain with a 200 response code. +; Default Value: pong +;ping.response = pong + +; The access log file +; Default: not set +;access.log = log/$pool.access.log + +; The access log format. +; The following syntax is allowed +; %%: the '%' character +; %C: %CPU used by the request +; it can accept the following format: +; - %{user}C for user CPU only +; - %{system}C for system CPU only +; - %{total}C for user + system CPU (default) +; %d: time taken to serve the request +; it can accept the following format: +; - %{seconds}d (default) +; - %{miliseconds}d +; - %{mili}d +; - %{microseconds}d +; - %{micro}d +; %e: an environment variable (same as $_ENV or $_SERVER) +; it must be associated with embraces to specify the name of the env +; variable. Some exemples: +; - server specifics like: %{REQUEST_METHOD}e or %{SERVER_PROTOCOL}e +; - HTTP headers like: %{HTTP_HOST}e or %{HTTP_USER_AGENT}e +; %f: script filename +; %l: content-length of the request (for POST request only) +; %m: request method +; %M: peak of memory allocated by PHP +; it can accept the following format: +; - %{bytes}M (default) +; - %{kilobytes}M +; - %{kilo}M +; - %{megabytes}M +; - %{mega}M +; %n: pool name +; %o: ouput header +; it must be associated with embraces to specify the name of the header: +; - %{Content-Type}o +; - %{X-Powered-By}o +; - %{Transfert-Encoding}o +; - .... +; %p: PID of the child that serviced the request +; %P: PID of the parent of the child that serviced the request +; %q: the query string +; %Q: the '?' character if query string exists +; %r: the request URI (without the query string, see %q and %Q) +; %R: remote IP address +; %s: status (response code) +; %t: server time the request was received +; it can accept a strftime(3) format: +; %d/%b/%Y:%H:%M:%S %z (default) +; %T: time the log has been written (the request has finished) +; it can accept a strftime(3) format: +; %d/%b/%Y:%H:%M:%S %z (default) +; %u: remote user +; +; Default: "%R - %u %t \"%m %r\" %s" +;access.format = "%R - %u %t \"%m %r%Q%q\" %s %f %{mili}d %{kilo}M %C%%" + +; The log file for slow requests +; Default Value: not set +; Note: slowlog is mandatory if request_slowlog_timeout is set +;slowlog = log/$pool.log.slow + +; The timeout for serving a single request after which a PHP backtrace will be +; dumped to the 'slowlog' file. A value of '0s' means 'off'. +; Available units: s(econds)(default), m(inutes), h(ours), or d(ays) +; Default Value: 0 +;request_slowlog_timeout = 0 + +; The timeout for serving a single request after which the worker process will +; be killed. This option should be used when the 'max_execution_time' ini option +; does not stop script execution for some reason. A value of '0' means 'off'. +; Available units: s(econds)(default), m(inutes), h(ours), or d(ays) +; Default Value: 0 +;request_terminate_timeout = 0 + +; Set open file descriptor rlimit. +; Default Value: system defined value +;rlimit_files = 1024 + +; Set max core size rlimit. +; Possible Values: 'unlimited' or an integer greater or equal to 0 +; Default Value: system defined value +;rlimit_core = 0 + +; Chroot to this directory at the start. This value must be defined as an +; absolute path. When this value is not set, chroot is not used. +; Note: you can prefix with '$prefix' to chroot to the pool prefix or one +; of its subdirectories. If the pool prefix is not set, the global prefix +; will be used instead. +; Note: chrooting is a great security feature and should be used whenever +; possible. However, all PHP paths will be relative to the chroot +; (error_log, sessions.save_path, ...). +; Default Value: not set +;chroot = + +; Chdir to this directory at the start. +; Note: relative path can be used. +; Default Value: current directory or / when chroot +;chdir = /var/www + +; Redirect worker stdout and stderr into main error log. If not set, stdout and +; stderr will be redirected to /dev/null according to FastCGI specs. +; Note: on highloaded environement, this can cause some delay in the page +; process time (several ms). +; Default Value: no +;catch_workers_output = yes + +; Limits the extensions of the main script FPM will allow to parse. This can +; prevent configuration mistakes on the web server side. You should only limit +; FPM to .php extensions to prevent malicious users to use other extensions to +; exectute php code. +; Note: set an empty value to allow all extensions. +; Default Value: .php +;security.limit_extensions = .php .php3 .php4 .php5 + +; Pass environment variables like LD_LIBRARY_PATH. All $VARIABLEs are taken from +; the current environment. +; Default Value: clean env +;env[HOSTNAME] = $HOSTNAME +;env[PATH] = /usr/local/bin:/usr/bin:/bin +;env[TMP] = /tmp +;env[TMPDIR] = /tmp +;env[TEMP] = /tmp + +; Additional php.ini defines, specific to this pool of workers. These settings +; overwrite the values previously defined in the php.ini. The directives are the +; same as the PHP SAPI: +; php_value/php_flag - you can set classic ini defines which can +; be overwritten from PHP call 'ini_set'. +; php_admin_value/php_admin_flag - these directives won't be overwritten by +; PHP call 'ini_set' +; For php_*flag, valid values are on, off, 1, 0, true, false, yes or no. + +; Defining 'extension' will load the corresponding shared extension from +; extension_dir. Defining 'disable_functions' or 'disable_classes' will not +; overwrite previously defined php.ini values, but will append the new value +; instead. + +; Note: path INI options can be relative and will be expanded with the prefix +; (pool, global or /usr) + +; Default Value: nothing is defined by default except the values in php.ini and +; specified at startup with the -d argument +;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f www@my.domain.com +;php_flag[display_errors] = off +;php_admin_value[error_log] = /var/log/fpm-php.www.log +;php_admin_flag[log_errors] = on +;php_admin_value[memory_limit] = 32M diff --git a/meta-oe/recipes-devtools/php/php/php_exec_native.patch b/meta-oe/recipes-devtools/php/php/php_exec_native.patch new file mode 100644 index 000000000..0506bddaf --- /dev/null +++ b/meta-oe/recipes-devtools/php/php/php_exec_native.patch @@ -0,0 +1,18 @@ +Upstream-status: Inappriate + +diff --git a/sapi/cli/config.m4 b/sapi/cli/config.m4 +index cdfa1f7..0fe11e3 100644 +--- a/sapi/cli/config.m4 ++++ b/sapi/cli/config.m4 +@@ -36,7 +36,7 @@ if test "$PHP_CLI" != "no"; then + esac + + dnl Set executable for tests +- PHP_EXECUTABLE="\$(top_builddir)/\$(SAPI_CLI_PATH)" ++ PHP_EXECUTABLE="${PHP_NATIVE_DIR}/php" + PHP_SUBST(PHP_EXECUTABLE) + + dnl Expose to Makefile +-- +1.9.3 + diff --git a/meta-oe/recipes-devtools/php/php_5.4.36.bb b/meta-oe/recipes-devtools/php/php_5.4.36.bb new file mode 100644 index 000000000..43c7736e4 --- /dev/null +++ b/meta-oe/recipes-devtools/php/php_5.4.36.bb @@ -0,0 +1,150 @@ +DESCRIPTION = "A server-side, HTML-embedded scripting language. This package provides the CGI." +HOMEPAGE = "http://www.php.net" +SECTION = "console/network" + +LICENSE = "PHP-3.0" +LIC_FILES_CHKSUM = "file://LICENSE;md5=cb564efdf78cce8ea6e4b5a4f7c05d97" + +BBCLASSEXTEND = "native" +DEPENDS = "zlib libxml2 virtual/libiconv php-native lemon-native \ + libc-client openssl" +DEPENDS_virtclass-native = "zlib-native libxml2-native" + +# The new PHP downloads server groups PHP releases by major version so find +# the major version of the PHP recipe. +PHP_MAJVER = "${@d.getVar('PV',1).split('.')[0]}" + +SRC_URI = "http://php.net/distributions/php-${PV}.tar.bz2 \ + file://acinclude-xml2-config.patch \ + file://0001-php-don-t-use-broken-wrapper-for-mkdir.patch \ + file://0001-acinclude-use-pkgconfig-for-libxml2-config.patch \ + " + +SRC_URI_append_class-target += " \ + file://iconv.patch \ + file://imap-fix-autofoo.patch \ + file://pear-makefile.patch \ + file://phar-makefile.patch \ + file://php_exec_native.patch \ + file://php-fpm.conf \ + file://php-fpm-apache.conf \ + " + +SRC_URI[md5sum] = "70e223be4bb460e465b7a9d7cb5b9cac" +SRC_URI[sha256sum] = "b0951608c3e8afb978a624c7f79a889980210f5258f666c1d997bd6491e13241" + +S = "${WORKDIR}/php-${PV}" + +inherit autotools pkgconfig pythonnative gettext + +SSTATE_SCAN_FILES += "build-defs.h" + +# Common EXTRA_OECONF +COMMON_EXTRA_OECONF = "--enable-sockets --enable-pcntl --enable-shared" +EXTRA_OECONF = "--enable-mbstring \ + --enable-wddx \ + --enable-fpm \ + --with-imap=${STAGING_DIR_HOST} \ + --with-gettext=${STAGING_LIBDIR}/.. \ + --with-imap-ssl=${STAGING_DIR_HOST} \ + --with-zlib=${STAGING_LIBDIR}/.. \ + --with-iconv=${STAGING_LIBDIR}/.. \ + ${COMMON_EXTRA_OECONF} \ +" +EXTRA_OECONF_virtclass-native = " \ + --with-zlib=${STAGING_LIBDIR_NATIVE}/.. \ + --without-iconv \ + ${COMMON_EXTRA_OECONF} \ +" + +PACKAGECONFIG ??= "mysql sqlite3" +PACKAGECONFIG_class-native = "" + +PACKAGECONFIG[mysql] = "--with-mysql=${STAGING_DIR_TARGET}${prefix} \ + --with-mysqli=${STAGING_BINDIR_CROSS}/mysql_config \ + --with-pdo-mysql=${STAGING_BINDIR_CROSS}/mysql_config \ + , \ + ,mysql5" + +PACKAGECONFIG[sqlite3] = "--with-sqlite3=${STAGING_LIBDIR}/.. \ + --with-pdo-sqlite=${STAGING_LIBDIR}/.. \ + , \ + ,sqlite3" + +export PHP_NATIVE_DIR = "${STAGING_BINDIR_NATIVE}" +export PHP_PEAR_PHP_BIN = "${STAGING_BINDIR_NATIVE}/php" +CFLAGS += " -D_GNU_SOURCE" + +EXTRA_OEMAKE = "INSTALL_ROOT=${D}" + +acpaths = "" + +do_install_append_class-native() { + rm -rf ${D}/${libdir}/php/.registry + rm -rf ${D}/${libdir}/php/.channels + rm -rf ${D}/${libdir}/php/.[a-z]* +} + +# fixme +do_install_append_class-target() { + install -d ${D}/${sysconfdir}/ + if [ -d ${D}/${STAGING_DIR_NATIVE}/${sysconfdir} ];then + mv ${D}/${STAGING_DIR_NATIVE}/${sysconfdir}/* ${D}/${sysconfdir}/ + fi + rm -rf ${D}/${TMPDIR} + rm -rf ${D}/.registry + rm -rf ${D}/.channels + rm -rf ${D}/.[a-z]* + rm -rf ${D}/var + rm -f ${D}/${sysconfdir}/php-fpm.conf.default + sed -i 's:${STAGING_DIR_NATIVE}::g' ${D}/${sysconfdir}/pear.conf + install -m 0644 ${WORKDIR}/php-fpm.conf ${D}/${sysconfdir}/php-fpm.conf + install -d ${D}/${sysconfdir}/apache2/conf.d + install -m 0644 ${WORKDIR}/php-fpm-apache.conf ${D}/${sysconfdir}/apache2/conf.d/php-fpm.conf + install -d ${D}${sysconfdir}/init.d + sed -i 's:=/usr/sbin:=${sbindir}:g' ${B}/sapi/fpm/init.d.php-fpm + sed -i 's:=/etc:=${sysconfdir}:g' ${B}/sapi/fpm/init.d.php-fpm + sed -i 's:=/var:=${localstatedir}:g' ${B}/sapi/fpm/init.d.php-fpm + install -m 0755 ${B}/sapi/fpm/init.d.php-fpm ${D}${sysconfdir}/init.d/php-fpm + TMP=`dirname ${D}/${TMPDIR}` + while test ${TMP} != ${D}; do + rmdir ${TMP} + TMP=`dirname ${TMP}`; + done +} + +PACKAGES = "${PN}-dbg ${PN}-cli ${PN}-cgi ${PN}-fpm ${PN}-fpm-apache2 ${PN}-pear ${PN}-dev ${PN}-staticdev ${PN}-doc ${PN}" + +RDEPENDS_${PN}-pear = "${PN}" +RDEPENDS_${PN}-cli = "${PN}" +RDEPENDS_${PN}-dev = "${PN}" + +INITSCRIPT_PACKAGES = "${PN}-fpm" +inherit update-rc.d + +FILES_${PN}-dbg =+ "${bindir}/.debug" +FILES_${PN}-doc += "${libdir}/php/doc" +FILES_${PN}-cli = "${bindir}/php" +FILES_${PN}-cgi = "${bindir}/php-cgi" +FILES_${PN}-fpm = "${sbindir}/php-fpm ${sysconfdir}/php-fpm.conf ${datadir}/fpm ${sysconfdir}/init.d/php-fpm" +FILES_${PN}-fpm-apache2 = "${sysconfdir}/apache2/conf.d/php-fpm.conf" +CONFFILES_${PN}-fpm = "${sysconfdir}/php-fpm.conf" +CONFFILES_${PN}-fpm-apache2 = "${sysconfdir}/apache2/conf.d/php-fpm.conf" +INITSCRIPT_NAME_${PN}-fpm = "php-fpm" +INITSCRIPT_PARAMS_${PN}-fpm = "defaults 60" +FILES_${PN}-pear = "${bindir}/pear* ${bindir}/pecl ${libdir}/php/PEAR \ + ${libdir}/php/PEAR.php ${libdir}/php/System.php \ + ${libdir}php/peclcmd.php ${libdir}/php/pearcmd.php \ + ${libdir}/php/.channels ${libdir}/php/.channels/.alias \ + ${libdir}/php/.channels\__uri.reg \ + ${libdir}/php/.channels\pear.php.net.reg \ + ${libdir}/php/.channels/pecl.php.net.reg \ + ${libdir}/php/.registry ${libdir}/php/Archive/Tar.php \ + ${libdir}/php/Console/Getopt.php ${libdir}/php/OS/Guess.php \ + ${sysconfdir}/pear.conf" +FILES_${PN}-dev = "${includedir}/php ${libdir}/build ${bindir}/phpize \ + ${bindir}/php-config ${libdir}/php/.depdb \ + ${libdir}/php/.depdblock ${libdir}/php/.filemap \ + ${libdir}/php/.lock ${libdir}/php/test" +FILES_${PN} = "${libdir}/php" +FILES_${PN} += "${bindir}" diff --git a/meta-oe/recipes-devtools/pm-qa/pm-qa_git.bb b/meta-oe/recipes-devtools/pm-qa/pm-qa_git.bb new file mode 100644 index 000000000..dc16aef97 --- /dev/null +++ b/meta-oe/recipes-devtools/pm-qa/pm-qa_git.bb @@ -0,0 +1,65 @@ +DESCRIPTION = "Utilities for testing Power Management" +HOMEPAGE = "https://wiki.linaro.org/WorkingGroups/PowerManagement/Resources/TestSuite/PmQa" + +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" + +PV = "0.4.14" + +BRANCH ?= "master" + +# Corresponds to tag pm-qa-v0.4.14 +SRCREV = "9111d1930f02337394cf16e84ad2a27f33607cbb" + +SRC_URI = "git://git.linaro.org/power/pm-qa.git;protocol=git;branch=${BRANCH}" + +S = "${WORKDIR}/git" + +CFLAGS += "-pthread" + +do_compile () { + # Find all the .c files in this project and build them. + for x in `find . -name "*.c"` + do + util=`echo ${x} | sed s/.c$//` + oe_runmake ${util} + done +} + +do_install () { + install -d ${D}${bindir} + install -d ${D}${libdir}/${PN} + + # Install the compiled binaries that were built in the previous step + for x in `find . -name "*.c"` + do + util=`echo ${x} | sed s/.c$//` + util_basename=`basename ${util}` + install -m 0755 ${util} ${D}${bindir}/${util_basename} + done + + # Install the helper scripts in a subdirectory of $libdir + for script in `find . -name "*.sh" | grep include` + do + # Remove hardcoded relative paths + sed -i -e 's#..\/utils\/##' ${script} + + script_basename=`basename ${script}` + install -m 0755 $script ${D}${libdir}/${PN}/${script_basename} + done + + # Install the shell scripts NOT in the $libdir directory since those + # will be installed elsewhere + for script in `find . -name "*.sh" | grep -v include` + do + # if the script includes any helper scripts from the $libdir + # directory then change the source path to the absolute path + # to reflect the install location of the helper scripts. + sed -i -e "s#source ../include#source ${libdir}/${PN}#g" ${script} + # Remove hardcoded relative paths + sed -i -e 's#..\/utils\/##' ${script} + + script_basename=`basename ${script}` + install -m 0755 $script ${D}${bindir}/${script_basename} + done +} diff --git a/meta-oe/recipes-devtools/protobuf/protobuf_2.4.1.bb b/meta-oe/recipes-devtools/protobuf/protobuf_2.4.1.bb new file mode 100644 index 000000000..8386206ea --- /dev/null +++ b/meta-oe/recipes-devtools/protobuf/protobuf_2.4.1.bb @@ -0,0 +1,22 @@ +SUMMARY = "Protocol Buffers - structured data serialisation mechanism" +DESCRIPTION = "Protocol Buffers are a way of encoding structured data in an \ +efficient yet extensible format. Google uses Protocol Buffers for almost \ +all of its internal RPC protocols and file formats." +HOMEPAGE = "http://code.google.com/p/protobuf/" +SECTION = "console/tools" +LICENSE = "BSD-3-Clause" + +DEPENDS = "zlib" + +LIC_FILES_CHKSUM = "file://COPYING.txt;md5=af6809583bfde9a31595a58bb4a24514" + +SRC_URI = "http://protobuf.googlecode.com/files/protobuf-${PV}.tar.gz" + +SRC_URI[md5sum] = "dc84e9912ea768baa1976cb7bbcea7b5" +SRC_URI[sha256sum] = "eac6969b617f397247e805267da2b0db3ff9e5a9163b123503a192fbb5776567" + +EXTRA_OECONF += " --with-protoc=echo" + +inherit autotools + +BBCLASSEXTEND = "native nativesdk" diff --git a/meta-oe/recipes-devtools/python/python-futures_2.1.5.bb b/meta-oe/recipes-devtools/python/python-futures_2.1.5.bb new file mode 100644 index 000000000..817a9179a --- /dev/null +++ b/meta-oe/recipes-devtools/python/python-futures_2.1.5.bb @@ -0,0 +1,14 @@ +DESCRIPTION = "The concurrent.futures module provides a high-level interface for asynchronously executing callables." +SECTION = "devel/python" +LICENSE = "BSD" +LIC_FILES_CHKSUM = "file://PKG-INFO;md5=e96d16356742ac95c07be571717e51a3" +HOMEPAGE = "http://code.google.com/p/pythonfutures" +DEPENDS = "python" + +SRC_URI = "https://pypi.python.org/packages/source/f/futures/futures-${PV}.tar.gz" +SRC_URI[md5sum] = "2fc924890ccd30a5fe676fa9bbcf0ab8" +SRC_URI[sha256sum] = "8f5a627d3aee94cc1859a942965fdebb714be8cdd2366d819cb8fb9b7cc628a6" + +S = "${WORKDIR}/futures-${PV}" + +inherit setuptools diff --git a/meta-oe/recipes-devtools/python/python-pyopenssl_0.13.bb b/meta-oe/recipes-devtools/python/python-pyopenssl_0.13.bb new file mode 100644 index 000000000..01f43da27 --- /dev/null +++ b/meta-oe/recipes-devtools/python/python-pyopenssl_0.13.bb @@ -0,0 +1,24 @@ +SUMMARY = "Simple Python wrapper around the OpenSSL library" +SECTION = "devel/python" + +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57" + +SRCNAME = "pyOpenSSL" + +DEPENDS = "openssl" +PR = "r1" + +SRC_URI = "http://pypi.python.org/packages/source/p/pyOpenSSL/pyOpenSSL-${PV}.tar.gz" +SRC_URI[md5sum] = "767bca18a71178ca353dff9e10941929" +SRC_URI[sha256sum] = "21e12b03abaa0e04ecc8cd9c251598f71bae11c9f385304234e4ea5618c6163b" + +S = "${WORKDIR}/${SRCNAME}-${PV}" + +inherit distutils + +PACKAGES =+ "${PN}-tests" +FILES_${PN}-tests = "${libdir}/${PYTHON_DIR}/site-packages/OpenSSL/test" + +RDEPENDS_${PN} = "python-threading" +RDEPENDS_${PN}-tests = "${PN}" diff --git a/meta-oe/recipes-devtools/python/python-pyqt_4.11.3.bb b/meta-oe/recipes-devtools/python/python-pyqt_4.11.3.bb new file mode 100644 index 000000000..607007ff6 --- /dev/null +++ b/meta-oe/recipes-devtools/python/python-pyqt_4.11.3.bb @@ -0,0 +1,54 @@ +SUMMARY = "Python Qt4 Bindings" +AUTHOR = "Phil Thomson @ riverbank.co.uk" +HOMEPAGE = "http://riverbankcomputing.co.uk" +SECTION = "devel/python" +LICENSE = "GPLv2 & GPLv3 & GPL_EXCEPTION" +LIC_FILES_CHKSUM = "\ + file://GPL_EXCEPTION.TXT;md5=b73b0be471db679533dc94781c14af58 \ + file://GPL_EXCEPTION_ADDENDUM.TXT;md5=c1e04ec2aa0911061005a801abf81e40 \ + file://OPENSOURCE-NOTICE.TXT;md5=6ad9123620cc04a22c394753ad4767d7 \ + file://LICENSE.GPL2;md5=577ff65f6653562af318bfc3944b1f20 \ + file://LICENSE.GPL3;md5=feee51612c3c1191a1d5f41156fa2c75 \ +" +DEPENDS = "sip sip-native qt4-x11-free python" + +SRC_URI = "\ + ${SOURCEFORGE_MIRROR}/pyqt/PyQt-x11-gpl-${PV}.tar.gz \ +" +SRC_URI[md5sum] = "997c3e443165a89a559e0d96b061bf70" +SRC_URI[sha256sum] = "853780dcdbe2e6ba785d703d059b096e1fc49369d3e8d41a060be874b8745686" + +S = "${WORKDIR}/PyQt-x11-gpl-${PV}" + +PARALLEL_MAKE = "" + +inherit qmake2 pythonnative python-dir + +DISABLED_FEATURES = "PyQt_Desktop_OpenGL PyQt_Accessibility PyQt_SessionManager" + +DISABLED_FEATURES_append_arm = " PyQt_qreal_double" + +do_configure() { + echo "py_platform = linux" > pyqt.cfg + echo "py_inc_dir = %(sysroot)/$includedir/python%(py_major).%(py_minor)" >> pyqt.cfg + echo "py_pylib_dir = %(sysroot)/${libdir}/python%(py_major).%(py_minor)" >> pyqt.cfg + echo "py_pylib_lib = python%(py_major).%(py_minor)mu" >> pyqt.cfg + echo "pyqt_module_dir = ${D}/${libdir}/python%(py_major).%(py_minor)/site-packages" >> pyqt.cfg + echo "pyqt_bin_dir = ${D}/${bindir}" >> pyqt.cfg + echo "pyqt_sip_dir = ${D}/${datadir}/sip/PyQt4" >> pyqt.cfg + echo "pyuic_interpreter = ${D}/${bindir}/python%(py_major).%(py_minor)" >> pyqt.cfg + echo "pyqt_disabled_features = ${DISABLED_FEATURES}" >> pyqt.cfg + echo "qt_shared = True" >> pyqt.cfg + echo "[Qt 4.8]" >> pyqt.cfg + echo "pyqt_modules = QtCore QtGui QtDeclarative QtNetwork QtSvg QtWebKit" >> pyqt.cfg + echo yes | python configure-ng.py --verbose --qmake ${STAGING_BINDIR_NATIVE}/qmake2 --configuration pyqt.cfg --sysroot ${STAGING_DIR_HOST} +} +do_install() { + oe_runmake install +} + +RDEPENDS_${PN} = "python-core python-sip" + +FILES_${PN} += "${libdir}/${PYTHON_DIR}/site-packages ${datadir}/sip/PyQt4/" +FILES_${PN}-dbg += "${libdir}/${PYTHON_DIR}/site-packages/*/.debug/" + diff --git a/meta-oe/recipes-devtools/python/python-simplejson_2.2.1.bb b/meta-oe/recipes-devtools/python/python-simplejson_2.2.1.bb new file mode 100644 index 000000000..7e42a7c14 --- /dev/null +++ b/meta-oe/recipes-devtools/python/python-simplejson_2.2.1.bb @@ -0,0 +1,27 @@ +SUMMARY = "Simple, fast, extensible JSON encoder/decoder for Python" +HOMEPAGE = "http://cheeseshop.python.org/pypi/simplejson" +SECTION = "devel/python" + +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=8a9f8dcfcd28c34daa443e5b1d29813b" +PR = "r1" + +SRCNAME = "simplejson" + +SRC_URI = "http://cheeseshop.python.org/packages/source/s/simplejson/${SRCNAME}-${PV}.tar.gz" +SRC_URI[md5sum] = "070c6467462bd63306f1756b01df6d70" +SRC_URI[sha256sum] = "e85c5ae24dd9827113893c1dd2c799528195057388096f0fc45ad4b32b378c26" + +S = "${WORKDIR}/${SRCNAME}-${PV}" + +inherit distutils + +RDEPENDS_${PN} = "\ + python-core \ + python-re \ + python-io \ + python-netserver \ + python-numbers \ +" + + diff --git a/meta-oe/recipes-devtools/python/python-tornado/0001-disable-AI_ADDRCONFIG-flag.patch b/meta-oe/recipes-devtools/python/python-tornado/0001-disable-AI_ADDRCONFIG-flag.patch new file mode 100644 index 000000000..0b0d471a4 --- /dev/null +++ b/meta-oe/recipes-devtools/python/python-tornado/0001-disable-AI_ADDRCONFIG-flag.patch @@ -0,0 +1,32 @@ +From d7fb0a6ef3f3cbdfc1f21f5a67d54fa9d2c1e183 Mon Sep 17 00:00:00 2001 +From: Koen Kooi +Date: Wed, 2 Nov 2011 11:07:24 +0100 +Subject: [PATCH] disable AI_ADDRCONFIG flag + +Signed-off-by: Koen Kooi + +Upstream-Status: unknown +--- + tornado/netutil.py | 6 ------ + 1 files changed, 0 insertions(+), 6 deletions(-) + +diff --git a/tornado/netutil.py b/tornado/netutil.py +index cfff0ba..c181f24 100644 +--- a/tornado/netutil.py ++++ b/tornado/netutil.py +@@ -238,12 +238,6 @@ def bind_sockets(port, address=None, family=socket.AF_UNSPEC, backlog=128): + if address == "": + address = None + flags = socket.AI_PASSIVE +- if hasattr(socket, "AI_ADDRCONFIG"): +- # AI_ADDRCONFIG ensures that we only try to bind on ipv6 +- # if the system is configured for it, but the flag doesn't +- # exist on some platforms (specifically WinXP, although +- # newer versions of windows have it) +- flags |= socket.AI_ADDRCONFIG + for res in set(socket.getaddrinfo(address, port, family, socket.SOCK_STREAM, + 0, flags): + af, socktype, proto, canonname, sockaddr = res +-- +1.7.2.5 + diff --git a/meta-oe/recipes-devtools/python/python-tornado_git.bb b/meta-oe/recipes-devtools/python/python-tornado_git.bb new file mode 100644 index 000000000..28026b352 --- /dev/null +++ b/meta-oe/recipes-devtools/python/python-tornado_git.bb @@ -0,0 +1,16 @@ +DESCRIPTION = "Tornado is an open source version of the scalable, non-blocking web server and tools that power FriendFeed." +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://README;md5=e7fb9954003d7cd93322ccf282210d1c" + +PV = "2.2.1+git${SRCPV}" + +SRCREV = "c501917eba46dec30b1f2ef12497dffc4beec505" +SRC_URI = "git://github.com/facebook/tornado.git;branch=branch2.2 \ + file://0001-disable-AI_ADDRCONFIG-flag.patch \ +" + +S = "${WORKDIR}/git" + +inherit setuptools + + diff --git a/meta-oe/recipes-devtools/swig/swig.inc b/meta-oe/recipes-devtools/swig/swig.inc new file mode 100644 index 000000000..9821fa560 --- /dev/null +++ b/meta-oe/recipes-devtools/swig/swig.inc @@ -0,0 +1,63 @@ +DESCRIPTION = "SWIG - Simplified Wrapper and Interface Generator" +HOMEPAGE = "http://swig.sourceforge.net/" +LICENSE = "BSD & GPLv3" +LIC_FILES_CHKSUM = "file://LICENSE;md5=e7807a6282784a7dde4c846626b08fc6 \ + file://LICENSE-GPL;md5=d32239bcb673463ab874e80d47fae504 \ + file://LICENSE-UNIVERSITIES;md5=8ce9dcc8f7c994de4a408b205c72ba08" + +SECTION = "devel" + +DEPENDS = "libpcre python" + +SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BPN}-${PV}.tar.gz" + +inherit autotools pythonnative + +EXTRA_OECONF = " \ + --with-python=${PYTHON} \ + --without-allegrocl \ + --without-android \ + --without-boost \ + --without-chicken \ + --without-clisp \ + --without-csharp \ + --without-d \ + --without-gcj \ + --without-go \ + --without-guile \ + --without-java \ + --without-lua \ + --without-mzscheme \ + --without-ocaml \ + --without-octave \ + --without-perl5 \ + --without-pike \ + --without-php \ + --without-python3 \ + --without-r \ + --without-ruby \ + --without-tcl \ +" + +BBCLASSEXTEND = "native nativesdk" + +do_configure() { + install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.guess ${S}/Tools/config + install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.sub ${S}/Tools/config + install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.guess ${S} + install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.sub ${S} + oe_runconf +} + +do_install_append_class-nativesdk() { + cd ${D}${bindir} + ln -s swig swig2.0 +} + +def swiglib_relpath(d): + swiglib = d.getVar('datadir', True) + "/" + d.getVar('BPN', True) + "/" + d.getVar('PV', True) + return os.path.relpath(swiglib, d.getVar('bindir', True)) + +do_install_append_class-native() { + create_wrapper ${D}${bindir}/swig SWIG_LIB='`dirname $''realpath`'/${@swiglib_relpath(d)} +} diff --git a/meta-oe/recipes-devtools/swig/swig/0001-Use-proc-self-exe-for-swig-swiglib-on-non-Win32-plat.patch b/meta-oe/recipes-devtools/swig/swig/0001-Use-proc-self-exe-for-swig-swiglib-on-non-Win32-plat.patch new file mode 100644 index 000000000..81df3e264 --- /dev/null +++ b/meta-oe/recipes-devtools/swig/swig/0001-Use-proc-self-exe-for-swig-swiglib-on-non-Win32-plat.patch @@ -0,0 +1,69 @@ +From a4a0440a644c6c5e5da096efe3cf05ba309a284f Mon Sep 17 00:00:00 2001 +From: "NODA, Kai" +Date: Sun, 22 Apr 2012 17:01:02 +0900 +Subject: [PATCH] Use /proc/self/exe for "swig -swiglib" on non-Win32 + platforms. + +If it wasn't found, then fall back to a fixed string just as before. + +Upstream-Status: Submitted +http://sourceforge.net/mailarchive/message.php?msg_id=29179733 + +--- + Source/Modules/main.cxx | 24 ++++++++++++++++++++++-- + 1 file changed, 22 insertions(+), 2 deletions(-) + +diff --git a/Source/Modules/main.cxx b/Source/Modules/main.cxx +index d2f5d3b..cbb0a12 100644 +--- a/Source/Modules/main.cxx ++++ b/Source/Modules/main.cxx +@@ -26,6 +26,11 @@ char cvsroot_main_cxx[] = "$Id$"; + #include "cparse.h" + #include + #include // for INT_MAX ++#ifndef _WIN32 ++#include ++#include // for readlink ++#include // for stat ++#endif + + // Global variables + +@@ -902,9 +907,9 @@ int SWIG_main(int argc, char *argv[], Language *l) { + + // Check for SWIG_LIB environment variable + if ((c = getenv("SWIG_LIB")) == (char *) 0) { ++ char *p; + #if defined(_WIN32) + char buf[MAX_PATH]; +- char *p; + if (!(GetModuleFileName(0, buf, MAX_PATH) == 0 || (p = strrchr(buf, '\\')) == 0)) { + *(p + 1) = '\0'; + SwigLib = NewStringf("%sLib", buf); // Native windows installation path +@@ -914,7 +919,22 @@ int SWIG_main(int argc, char *argv[], Language *l) { + if (Len(SWIG_LIB_WIN_UNIX) > 0) + SwigLibWinUnix = NewString(SWIG_LIB_WIN_UNIX); // Unix installation path using a drive letter (for msys/mingw) + #else +- SwigLib = NewString(SWIG_LIB); ++ char buf[PATH_MAX]; ++ if (0 < ::readlink("/proc/self/exe", buf, sizeof(buf)) && ++ (p = ::strstr(buf, "/bin/swig"))) { ++ int major, minor, patch; ++ const int ret = ::sscanf(VERSION, "%d.%d.%d", &major, &minor, &patch); ++ if (3 == ret) { ++ const ::ptrdiff_t dir_part_len = p - buf; ++ ::snprintf(p, PATH_MAX - dir_part_len, "/share/swig/%d.%d.%d", major, minor, patch); ++ struct ::stat stat_res; ++ if (0 == ::stat(buf, &stat_res) && S_ISDIR(stat_res.st_mode)) { ++ SwigLib = NewString(buf); ++ } ++ } ++ } ++ if (NULL == SwigLib) ++ SwigLib = NewString(SWIG_LIB); + #endif + } else { + SwigLib = NewString(c); +-- +1.7.9.5 + diff --git a/meta-oe/recipes-devtools/swig/swig/0001-configure-use-pkg-config-for-pcre-detection.patch b/meta-oe/recipes-devtools/swig/swig/0001-configure-use-pkg-config-for-pcre-detection.patch new file mode 100644 index 000000000..1b1128aca --- /dev/null +++ b/meta-oe/recipes-devtools/swig/swig/0001-configure-use-pkg-config-for-pcre-detection.patch @@ -0,0 +1,64 @@ +From 5c4d6d8538994d5fe9b3b46bfafaf0a605e3bda6 Mon Sep 17 00:00:00 2001 +From: Koen Kooi +Date: Tue, 17 Jun 2014 08:18:17 +0200 +Subject: [PATCH] configure: use pkg-config for pcre detection + +Signed-off-by: Koen Kooi +Upstream-Status: pending +--- + configure.ac | 38 +++++++------------------------------- + 1 file changed, 7 insertions(+), 31 deletions(-) + +diff --git a/configure.ac b/configure.ac +index 0c984b7..6edcec1 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -70,38 +70,14 @@ AC_MSG_RESULT([$with_pcre]) + + dnl To make configuring easier, check for a locally built PCRE using the Tools/pcre-build.sh script + if test x"${with_pcre}" = xyes ; then +- AC_MSG_CHECKING([whether to use local PCRE]) +- local_pcre_config=no +- if test -z $PCRE_CONFIG; then +- if test -f `pwd`/pcre/pcre-swig-install/bin/pcre-config; then +- PCRE_CONFIG=`pwd`/pcre/pcre-swig-install/bin/pcre-config +- local_pcre_config=$PCRE_CONFIG +- fi +- fi +- AC_MSG_RESULT([$local_pcre_config]) +-fi +-AS_IF([test "x$with_pcre" != xno], +- [AX_PATH_GENERIC([pcre], +- [], dnl Minimal version of PCRE we need -- accept any +- [], dnl custom sed script for version parsing is not needed +- [AC_DEFINE([HAVE_PCRE], [1], [Define if you have PCRE library]) +- LIBS="$LIBS $PCRE_LIBS" +- CPPFLAGS="$CPPFLAGS $PCRE_CFLAGS" +- ], +- [AC_MSG_FAILURE([ +- Cannot find pcre-config script from PCRE (Perl Compatible Regular Expressions) +- library package. This dependency is needed for configure to complete, +- Either: +- - Install the PCRE developer package on your system (preferred approach). +- - Download the PCRE source tarball, build and install on your system +- as you would for any package built from source distribution. +- - Use the Tools/pcre-build.sh script to build PCRE just for SWIG to statically +- link against. Run 'Tools/pcre-build.sh --help' for instructions. +- (quite easy and does not require privileges to install PCRE on your system) +- - Use configure --without-pcre to disable regular expressions support in SWIG +- (not recommended).]) +- ]) ++ PKG_CHECK_MODULES([PCRE], [libpcre], [ ++ AC_DEFINE([HAVE_PCRE], [1], [Define if you have PCRE library]) ++ LIBS="$LIBS $PCRE_LIBS" ++ CPPFLAGS="$CPPFLAGS $PCRE_CFLAGS" ++ ], [ ++ AC_MSG_WARN([$PCRE_PKG_ERRORS]) + ]) ++fi + + + dnl CCache +-- +1.9.3 + diff --git a/meta-oe/recipes-devtools/swig/swig_3.0.2.bb b/meta-oe/recipes-devtools/swig/swig_3.0.2.bb new file mode 100644 index 000000000..ac4191458 --- /dev/null +++ b/meta-oe/recipes-devtools/swig/swig_3.0.2.bb @@ -0,0 +1,8 @@ +require ${BPN}.inc + +SRC_URI += "file://0001-Use-proc-self-exe-for-swig-swiglib-on-non-Win32-plat.patch \ + file://0001-configure-use-pkg-config-for-pcre-detection.patch \ + " + +SRC_URI[md5sum] = "62f9b0d010cef36a13a010dc530d0d41" +SRC_URI[sha256sum] = "a2669657cabcedc371f63c0457407a183e0b6b2ef4e7e303c1ec9a3964cc7813" diff --git a/meta-oe/recipes-devtools/tclap/tclap/Makefile.am-disable-docs.patch b/meta-oe/recipes-devtools/tclap/tclap/Makefile.am-disable-docs.patch new file mode 100644 index 000000000..358cbefdd --- /dev/null +++ b/meta-oe/recipes-devtools/tclap/tclap/Makefile.am-disable-docs.patch @@ -0,0 +1,31 @@ +From c209ed0e7ffca32fe3714bad9cc54bdb00c286bb Mon Sep 17 00:00:00 2001 +From: Ting Liu +Date: Mon, 15 Apr 2013 16:28:37 +0800 +Subject: [PATCH] Makefile.am: disable docs + +Upstream-Status: Inappropriate [OE specific] + +docs need some generating tool (for example, doxygen) from host which may +be not available. Disable it to avoid build issue. + +Signed-off-by: Ting Liu +--- + Makefile.am | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/Makefile.am b/Makefile.am +index 0a6ebc9..6b42f41 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -1,7 +1,7 @@ + + ACLOCAL_AMFLAGS = -I config + +-SUBDIRS = include examples docs tests msc config ++SUBDIRS = include examples tests msc config + + pkgconfigdir = $(libdir)/pkgconfig + pkgconfig_DATA = $(PACKAGE).pc +-- +1.7.5 + diff --git a/meta-oe/recipes-devtools/tclap/tclap_1.2.1.bb b/meta-oe/recipes-devtools/tclap/tclap_1.2.1.bb new file mode 100644 index 000000000..c6bedea09 --- /dev/null +++ b/meta-oe/recipes-devtools/tclap/tclap_1.2.1.bb @@ -0,0 +1,14 @@ +SUMMARY = "Templatized C++ Command Line Parser" +HOMEPAGE = "http://tclap.sourceforge.net/" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://COPYING;md5=c8ab0ff134bcc584d0e6b5b9f8732453" + +SRCREV = "3627d9402e529770df9b0edf2aa8c0e0d6c6bb41" +SRC_URI = "git://git.code.sf.net/p/tclap/code \ + file://Makefile.am-disable-docs.patch \ +" + +S = "${WORKDIR}/git" +inherit autotools + +BBCLASSEXTEND = "native nativesdk" diff --git a/meta-oe/recipes-devtools/tcltk/tk-8.6.0/configure.use.fontconfig.with.xft.patch b/meta-oe/recipes-devtools/tcltk/tk-8.6.0/configure.use.fontconfig.with.xft.patch new file mode 100644 index 000000000..a0c157f5a --- /dev/null +++ b/meta-oe/recipes-devtools/tcltk/tk-8.6.0/configure.use.fontconfig.with.xft.patch @@ -0,0 +1,13 @@ +--- a/configure.in.orig 2014-05-10 14:35:39.859147385 +0000 ++++ b/configure.in 2014-05-10 14:36:20.282925184 +0000 +@@ -554,8 +554,8 @@ + dnl make sure package configurator (xft-config or pkg-config + dnl says that xft is present. + found_xft=yes +- XFT_CFLAGS=`pkg-config --cflags xft 2>/dev/null` || found_xft="no" +- XFT_LIBS=`pkg-config --libs xft 2>/dev/null` || found_xft="no" ++ XFT_CFLAGS=`pkg-config --cflags xft fontconfig 2>/dev/null` || found_xft="no" ++ XFT_LIBS=`pkg-config --libs xft fontconfig 2>/dev/null` || found_xft="no" + AC_MSG_RESULT([$found_xft]) + dnl make sure that compiling against Xft header file doesn't bomb + if test "$found_xft" = "yes" ; then diff --git a/meta-oe/recipes-devtools/tcltk/tk-8.6.0/confsearch.diff b/meta-oe/recipes-devtools/tcltk/tk-8.6.0/confsearch.diff new file mode 100644 index 000000000..c51e47542 --- /dev/null +++ b/meta-oe/recipes-devtools/tcltk/tk-8.6.0/confsearch.diff @@ -0,0 +1,32 @@ +Patch by Sergei Golovan allows to find tclConfig.sh in /usr/share/tcltk/tcl8.5 +and tkConfig.sh in /usr/share/tcltk/tk8.5 where they are located in Debian +installation. + +--- tk8.5-8.5.8.orig/unix/configure ++++ tk8.5-8.5.8/unix/configure +@@ -1431,6 +1431,7 @@ + `ls -d ${prefix}/lib 2>/dev/null` \ + `ls -d /usr/local/lib 2>/dev/null` \ + `ls -d /usr/contrib/lib 2>/dev/null` \ ++ `ls -d /usr/share/tcltk/tcl8.5 2>/dev/null` \ + `ls -d /usr/lib 2>/dev/null` \ + ; do + if test -f "$i/tclConfig.sh" ; then +--- tk8.5-8.5.8.orig/unix/tcl.m4 ++++ tk8.5-8.5.8/unix/tcl.m4 +@@ -93,6 +93,7 @@ + `ls -d ${prefix}/lib 2>/dev/null` \ + `ls -d /usr/local/lib 2>/dev/null` \ + `ls -d /usr/contrib/lib 2>/dev/null` \ ++ `ls -d /usr/share/tcltk/tcl8.5 2>/dev/null` \ + `ls -d /usr/lib 2>/dev/null` \ + ; do + if test -f "$i/tclConfig.sh" ; then +@@ -223,6 +224,7 @@ + `ls -d ${prefix}/lib 2>/dev/null` \ + `ls -d /usr/local/lib 2>/dev/null` \ + `ls -d /usr/contrib/lib 2>/dev/null` \ ++ `ls -d /usr/share/tcltk/tk8.5 2>/dev/null` \ + `ls -d /usr/lib 2>/dev/null` \ + ; do + if test -f "$i/tkConfig.sh" ; then diff --git a/meta-oe/recipes-devtools/tcltk/tk-8.6.0/fix-xft.diff b/meta-oe/recipes-devtools/tcltk/tk-8.6.0/fix-xft.diff new file mode 100644 index 000000000..d1bb7105c --- /dev/null +++ b/meta-oe/recipes-devtools/tcltk/tk-8.6.0/fix-xft.diff @@ -0,0 +1,16 @@ +--- /tmp/configure.in 2010-05-19 13:29:03.000000000 +0200 ++++ unix/configure.in 2010-05-19 13:42:05.000000000 +0200 +@@ -526,13 +526,9 @@ + found_xft="yes" + dnl make sure package configurator (xft-config or pkg-config + dnl says that xft is present. +- XFT_CFLAGS=`xft-config --cflags 2>/dev/null` || found_xft="no" +- XFT_LIBS=`xft-config --libs 2>/dev/null` || found_xft="no" +- if test "$found_xft" = "no" ; then + found_xft=yes + XFT_CFLAGS=`pkg-config --cflags xft 2>/dev/null` || found_xft="no" + XFT_LIBS=`pkg-config --libs xft 2>/dev/null` || found_xft="no" +- fi + AC_MSG_RESULT([$found_xft]) + dnl make sure that compiling against Xft header file doesn't bomb + if test "$found_xft" = "yes" ; then diff --git a/meta-oe/recipes-devtools/tcltk/tk-8.6.0/non-linux.diff b/meta-oe/recipes-devtools/tcltk/tk-8.6.0/non-linux.diff new file mode 100644 index 000000000..9309fc48e --- /dev/null +++ b/meta-oe/recipes-devtools/tcltk/tk-8.6.0/non-linux.diff @@ -0,0 +1,45 @@ +Patch by Sergei Golovan (originally by Mike Markley and Chris Waters) fixes +building on non-linux Debian architectures. + +--- tk8.5-8.5.8.orig/unix/configure ++++ tk8.5-8.5.8/unix/configure +@@ -4742,6 +4742,9 @@ + if test "`uname -s`" = "AIX" ; then + tcl_cv_sys_version=AIX-`uname -v`.`uname -r` + fi ++ if test "`uname -s`" = "NetBSD" -a -f /etc/debian_version ; then ++ tcl_cv_sys_version=NetBSD-Debian ++ fi + fi + fi + +@@ -5546,7 +5549,7 @@ + fi + + ;; +- Linux*) ++ Linux*|GNU*|NetBSD-Debian) + SHLIB_CFLAGS="-fPIC" + SHLIB_LD_LIBS='${LIBS}' + SHLIB_SUFFIX=".so" +--- tk8.5-8.5.8.orig/unix/tcl.m4 ++++ tk8.5-8.5.8/unix/tcl.m4 +@@ -962,6 +962,9 @@ + if test "`uname -s`" = "AIX" ; then + tcl_cv_sys_version=AIX-`uname -v`.`uname -r` + fi ++ if test "`uname -s`" = "NetBSD" -a -f /etc/debian_version ; then ++ tcl_cv_sys_version=NetBSD-Debian ++ fi + fi + fi + ]) +@@ -1422,7 +1425,7 @@ + ]) + ]) + ;; +- Linux*) ++ Linux*|GNU*|NetBSD-Debian) + SHLIB_CFLAGS="-fPIC" + SHLIB_LD_LIBS='${LIBS}' + SHLIB_SUFFIX=".so" diff --git a/meta-oe/recipes-devtools/tcltk/tk-8.6.0/tklibrary.diff b/meta-oe/recipes-devtools/tcltk/tk-8.6.0/tklibrary.diff new file mode 100644 index 000000000..ee38c2a1a --- /dev/null +++ b/meta-oe/recipes-devtools/tcltk/tk-8.6.0/tklibrary.diff @@ -0,0 +1,22 @@ +--- tk8.5-8.5.8.orig/unix/configure ++++ tk8.5-8.5.8/unix/configure +@@ -11070,7 +11070,7 @@ + TCL_STUB_FLAGS="-DUSE_TCL_STUBS" + fi + +-TK_LIBRARY='$(prefix)/lib/tk$(VERSION)' ++test -z "$TK_LIBRARY" && TK_LIBRARY='$(prefix)/lib/tk$(VERSION)' + PRIVATE_INCLUDE_DIR='$(includedir)' + HTML_DIR='$(DISTDIR)/html' + TK_PKG_DIR='tk$(VERSION)' +--- tk8.5-8.5.8.orig/unix/configure.in ++++ tk8.5-8.5.8/unix/configure.in +@@ -607,7 +607,7 @@ + TCL_STUB_FLAGS="-DUSE_TCL_STUBS" + fi + +-TK_LIBRARY='$(prefix)/lib/tk$(VERSION)' ++test -z "$TK_LIBRARY" && TK_LIBRARY='$(prefix)/lib/tk$(VERSION)' + PRIVATE_INCLUDE_DIR='$(includedir)' + HTML_DIR='$(DISTDIR)/html' + TK_PKG_DIR='tk$(VERSION)' diff --git a/meta-oe/recipes-devtools/tcltk/tk-8.6.0/tkprivate.diff b/meta-oe/recipes-devtools/tcltk/tk-8.6.0/tkprivate.diff new file mode 100644 index 000000000..4e1546973 --- /dev/null +++ b/meta-oe/recipes-devtools/tcltk/tk-8.6.0/tkprivate.diff @@ -0,0 +1,41 @@ +Patch by Chris Waters sets path which are normally point to a directory +with Tk sources to a subdirectory of /usr/include/tcl8.4 (debian/rules +puts private Tk headers there). + +--- tk8.5-8.5.8.orig/unix/tkConfig.sh.in ++++ tk8.5-8.5.8/unix/tkConfig.sh.in +@@ -55,7 +55,7 @@ + + # String to pass to linker to pick up the Tk library from its + # build directory. +-TK_BUILD_LIB_SPEC='@TK_BUILD_LIB_SPEC@' ++TK_BUILD_LIB_SPEC='@TK_LIB_SPEC@' + + # String to pass to linker to pick up the Tk library from its + # installed directory. +@@ -71,7 +71,7 @@ + # different place than the directory containing the source files, this + # points to the location of the sources, not the location where Tk was + # compiled. +-TK_SRC_DIR='@TK_SRC_DIR@' ++TK_SRC_DIR='@includedir@/tk-private' + + # Needed if you want to make a 'fat' shared library library + # containing tk objects or link a different wish. +@@ -86,14 +86,14 @@ + + # String to pass to linker to pick up the Tk stub library from its + # build directory. +-TK_BUILD_STUB_LIB_SPEC='@TK_BUILD_STUB_LIB_SPEC@' ++TK_BUILD_STUB_LIB_SPEC='@TK_STUB_LIB_SPEC@' + + # String to pass to linker to pick up the Tk stub library from its + # installed directory. + TK_STUB_LIB_SPEC='@TK_STUB_LIB_SPEC@' + + # Path to the Tk stub library in the build directory. +-TK_BUILD_STUB_LIB_PATH='@TK_BUILD_STUB_LIB_PATH@' ++TK_BUILD_STUB_LIB_PATH='@TK_STUB_LIB_PATH@' + + # Path to the Tk stub library in the install directory. + TK_STUB_LIB_PATH='@TK_STUB_LIB_PATH@' diff --git a/meta-oe/recipes-devtools/tcltk/tk_8.6.0.bb b/meta-oe/recipes-devtools/tcltk/tk_8.6.0.bb new file mode 100644 index 000000000..1177d0368 --- /dev/null +++ b/meta-oe/recipes-devtools/tcltk/tk_8.6.0.bb @@ -0,0 +1,77 @@ +SUMMARY = "Tool Command Language ToolKit Extension" +HOMEPAGE = "http://tcl.sourceforge.net" +SECTION = "devel/tcltk" + +# http://www.tcl.tk/software/tcltk/license.html +LICENSE = "tcl" +LIC_FILES_CHKSUM = "file://../license.terms;md5=c88f99decec11afa967ad33d314f87fe \ + file://../compat/license.terms;md5=c88f99decec11afa967ad33d314f87fe \ + file://../doc/license.terms;md5=c88f99decec11afa967ad33d314f87fe \ + file://../library/license.terms;md5=c88f99decec11afa967ad33d314f87fe \ + file://../macosx/license.terms;md5=c88f99decec11afa967ad33d314f87fe \ + file://../tests/license.terms;md5=c88f99decec11afa967ad33d314f87fe \ + file://../unix/license.terms;md5=c88f99decec11afa967ad33d314f87fe \ + file://../win/license.terms;md5=c88f99decec11afa967ad33d314f87fe \ + file://../xlib/license.terms;md5=c88f99decec11afa967ad33d314f87fe \ +" + +DEPENDS = "tcl virtual/libx11 libxt" + +SRC_URI = "\ + ${SOURCEFORGE_MIRROR}/tcl/${BPN}${PV}-src.tar.gz \ + file://confsearch.diff;striplevel=2 \ + file://non-linux.diff;striplevel=2 \ + file://tklibrary.diff;striplevel=2 \ + file://tkprivate.diff;striplevel=2 \ + file://fix-xft.diff \ + file://configure.use.fontconfig.with.xft.patch \ +" +SRC_URI[md5sum] = "b883a1a3c489c17413fb602a94bf54e8" +SRC_URI[sha256sum] = "5c708b2b6f658916df59190b27750fa1ea2bc10992108e10f961c0700f058de6" + +S = "${WORKDIR}/${BPN}${PV}/unix" + +# Short version format: "8.6" +VER = "${@os.path.splitext(d.getVar('PV', True))[0]}" + +LDFLAGS += "-Wl,-rpath,${libdir}/tcltk/${PV}/lib" +inherit autotools + +EXTRA_OECONF = "\ + --enable-threads \ + --with-x \ + --with-tcl=${STAGING_BINDIR_CROSS} \ + --libdir=${libdir} \ +" + +do_install_append() { + ln -sf libtk${VER}.so ${D}${libdir}/libtk${VER}.so.0 + oe_libinstall -so libtk${VER} ${D}${libdir} + ln -sf wish${VER} ${D}${bindir}/wish + + # Even after passing libdir=${libdir} at config, some incorrect dirs are still generated for the multilib build + if [ "$libdir" != "/usr/lib" ]; then + # Move files to correct library directory + mv ${D}/usr/lib/tk${VER}/* ${D}/${libdir}/tk${VER}/ + # Remove unneeded/incorrect dir ('usr/lib/') + rm -rf ${D}/usr/lib + fi +} + +PACKAGECONFIG ??= "xft" +PACKAGECONFIG[xft] = "--enable-xft,--disable-xft,xft" +PACKAGECONFIG[xss] = "--enable-xss,--disable-xss,libxscrnsaver libxext" + +PACKAGES =+ "${PN}-lib" + +FILES_${PN}-lib = "${libdir}/libtk${VER}.so*" +FILES_${PN} += "${libdir}/tk*" + +# isn't getting picked up by shlibs code +RDEPENDS_${PN} += "tk-lib" +RDEPENDS_${PN}_class-native = "" + +BBCLASSEXTEND = "native" + +# Fix the path in sstate +SSTATE_SCAN_FILES += "*Config.sh" diff --git a/meta-oe/recipes-devtools/vala-dbus-binding-tool/vala-dbus-binding-tool.inc b/meta-oe/recipes-devtools/vala-dbus-binding-tool/vala-dbus-binding-tool.inc new file mode 100644 index 000000000..7c8e341a3 --- /dev/null +++ b/meta-oe/recipes-devtools/vala-dbus-binding-tool/vala-dbus-binding-tool.inc @@ -0,0 +1,16 @@ +DESCRIPTION = "Vala DBus Binding Tool" +SECTION = "devel" +DEPENDS = "vala libgee libxml2 intltool-native" +HOMEPAGE = "http://wiki.freesmartphone.org/index.php/Implementations/vala-dbus-binding-tool" +LICENSE = "GPLv3" +LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" +PE = "1" +INC_PR = "r3" + +export XDG_DATA_DIRS = "${STAGING_DATADIR}" + +SRC_URI = "http://downloads.freesmartphone.org/sources/${BPN}/${BP}.tar.bz2;name=archive" + +inherit autotools perlnative pkgconfig + +BBCLASSEXTEND = "native" diff --git a/meta-oe/recipes-devtools/vala-dbus-binding-tool/vala-dbus-binding-tool_0.4.0.bb b/meta-oe/recipes-devtools/vala-dbus-binding-tool/vala-dbus-binding-tool_0.4.0.bb new file mode 100644 index 000000000..3473971b2 --- /dev/null +++ b/meta-oe/recipes-devtools/vala-dbus-binding-tool/vala-dbus-binding-tool_0.4.0.bb @@ -0,0 +1,4 @@ +require vala-dbus-binding-tool.inc + +SRC_URI[archive.md5sum] = "b7537a087f9f468e25170e81df0ed93f" +SRC_URI[archive.sha256sum] = "6b0d3796e92b031839e2e2f484e294153ad9eaf9d32915056199a49ce8328722" diff --git a/meta-oe/recipes-devtools/vala-dbus-binding-tool/vala-dbus-binding-tool_git.bb b/meta-oe/recipes-devtools/vala-dbus-binding-tool/vala-dbus-binding-tool_git.bb new file mode 100644 index 000000000..32d2818a0 --- /dev/null +++ b/meta-oe/recipes-devtools/vala-dbus-binding-tool/vala-dbus-binding-tool_git.bb @@ -0,0 +1,9 @@ +require vala-dbus-binding-tool.inc + +DEFAULT_PREFERENCE = "-1" + +SRCREV = "53d56816a4154e3467f07bd22f4e27d166e3e3f3" +PV = "0.4.0+gitr${SRCPV}" + +SRC_URI = "${FREESMARTPHONE_GIT}/vala-dbus-binding-tool.git;branch=master" +S = "${WORKDIR}/git" diff --git a/meta-oe/recipes-devtools/yajl/yajl_2.1.0.bb b/meta-oe/recipes-devtools/yajl/yajl_2.1.0.bb new file mode 100644 index 000000000..1bf538955 --- /dev/null +++ b/meta-oe/recipes-devtools/yajl/yajl_2.1.0.bb @@ -0,0 +1,18 @@ +SUMMARY = "Yet Another JSON Library." + +DESCRIPTION = "YAJL is a small event-driven (SAX-style) JSON parser \ +written in ANSI C, and a small validating JSON generator." + +HOMEPAGE = "http://lloyd.github.com/yajl/" + +LICENSE = "ISC" +LIC_FILES_CHKSUM = "file://COPYING;md5=39af6eb42999852bdd3ea00ad120a36d" + +SRC_URI = "git://github.com/lloyd/yajl" +SRCREV = "a0ecdde0c042b9256170f2f8890dd9451a4240aa" + +S = "${WORKDIR}/git" + +inherit cmake lib_package + +EXTRA_OECMAKE = "-DLIB_SUFFIX=${@d.getVar('baselib', True).replace('lib', '')}" -- cgit v1.2.3-54-g00ecf