summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/attr/files
diff options
context:
space:
mode:
authorTudor Florea <tudor.florea@enea.com>2015-10-09 22:59:03 +0200
committerTudor Florea <tudor.florea@enea.com>2015-10-09 22:59:03 +0200
commit972dcfcdbfe75dcfeb777150c136576cf1a71e99 (patch)
tree97a61cd7e293d7ae9d56ef7ed0f81253365bb026 /meta/recipes-support/attr/files
downloadpoky-972dcfcdbfe75dcfeb777150c136576cf1a71e99.tar.gz
initial commit for Enea Linux 5.0 arm
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta/recipes-support/attr/files')
-rw-r--r--meta/recipes-support/attr/files/attr-Missing-configure.ac.patch63
-rw-r--r--meta/recipes-support/attr/files/relative-libdir.patch25
-rw-r--r--meta/recipes-support/attr/files/run-ptest5
3 files changed, 93 insertions, 0 deletions
diff --git a/meta/recipes-support/attr/files/attr-Missing-configure.ac.patch b/meta/recipes-support/attr/files/attr-Missing-configure.ac.patch
new file mode 100644
index 0000000000..20fcc3cee7
--- /dev/null
+++ b/meta/recipes-support/attr/files/attr-Missing-configure.ac.patch
@@ -0,0 +1,63 @@
1Subject: [PATCH] attr: Missing configure.ac
2
3Upstream-Status: Backport [Upstream released tarball missing this file]
4Signed-off-by: Nathan Rossi <nathan.rossi@xilinx.com>
5---
6 configure.ac | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
7 1 file changed, 48 insertions(+)
8 create mode 100644 configure.ac
9
10diff --git a/configure.ac b/configure.ac
11new file mode 100644
12index 0000000..b966d0e
13--- /dev/null
14+++ b/configure.ac
15@@ -0,0 +1,48 @@
16+# Copyright (C) 2009 Andreas Gruenbacher <agruen@suse.de>
17+#
18+# This program is free software: you can redistribute it and/or modify it
19+# under the terms of the GNU General Public License as published by
20+# the Free Software Foundation, either version 2 of the License, or
21+# (at your option) any later version.
22+#
23+# This program is distributed in the hope that it will be useful,
24+# but WITHOUT ANY WARRANTY; without even the implied warranty of
25+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26+# GNU General Public License for more details.
27+#
28+# You should have received a copy of the GNU General Public License
29+# along with this program. If not, see <http://www.gnu.org/licenses/>.
30+#
31+AC_INIT(include/attributes.h)
32+AC_CONFIG_AUX_DIR([.])
33+AC_CONFIG_MACRO_DIR([m4])
34+AC_CONFIG_HEADER(include/config.h)
35+AC_PREFIX_DEFAULT(/usr)
36+
37+AC_PROG_LIBTOOL
38+
39+AC_ARG_ENABLE(shared,
40+[ --enable-shared=[yes/no] Enable use of shared libraries [default=yes]],,
41+ enable_shared=yes)
42+AC_SUBST(enable_shared)
43+
44+AC_ARG_ENABLE(gettext,
45+[ --enable-gettext=[yes/no] Enable alternate language support [default=yes]],,
46+ enable_gettext=yes)
47+AC_SUBST(enable_gettext)
48+
49+AC_ARG_ENABLE(lib64,
50+[ --enable-lib64=[yes/no] Enable lib64 support [default=no]],,
51+ enable_lib64=no)
52+AC_SUBST(enable_lib64)
53+
54+AC_PACKAGE_GLOBALS(attr)
55+AC_PACKAGE_UTILITIES(attr)
56+AC_MANUAL_FORMAT
57+AC_MULTILIB($enable_lib64)
58+
59+AC_C_CONST
60+AC_TYPE_MODE_T
61+AC_FUNC_ALLOCA
62+
63+AC_OUTPUT(include/builddefs)
diff --git a/meta/recipes-support/attr/files/relative-libdir.patch b/meta/recipes-support/attr/files/relative-libdir.patch
new file mode 100644
index 0000000000..b72bf184d6
--- /dev/null
+++ b/meta/recipes-support/attr/files/relative-libdir.patch
@@ -0,0 +1,25 @@
1Upstream-Status: Pending
2
3use relative path in symbolic links, or it fails in staging
4sed expression from udev
5
67/29/2010 - created by Qing He <qing.he@intel.com>
7
8diff -u include.orig/buildmacros include/buildmacros
9--- include.orig/buildmacros 2010-07-29 17:39:48.000000000 +0800
10+++ include/buildmacros 2010-07-29 18:20:34.000000000 +0800
11@@ -88,9 +88,11 @@
12 ../$(INSTALL) -m 755 -d $(PKG_LIB_DIR); \
13 ../$(INSTALL) -T so_base $(LIBNAME).lai $(PKG_LIB_DIR); \
14 if test "x$(PKG_DEVLIB_DIR)" != "x$(PKG_LIB_DIR)" ; then \
15- ../$(INSTALL) -S $(PKG_DEVLIB_DIR)/$(LIBNAME).a $(PKG_LIB_DIR)/$(LIBNAME).a; \
16- ../$(INSTALL) -S $(PKG_DEVLIB_DIR)/$(LIBNAME).la $(PKG_LIB_DIR)/$(LIBNAME).la; \
17- ../$(INSTALL) -S $(PKG_LIB_DIR)/$(LIBNAME).so $(PKG_DEVLIB_DIR)/$(LIBNAME).so; \
18+ rel_lib_prefix=$$(echo $(PKG_LIB_DIR) | sed 's,\(^/\|\)[^/][^/]*,..,g'); \
19+ ../$(INSTALL) -S $$rel_lib_prefix$(PKG_DEVLIB_DIR)/$(LIBNAME).a $(PKG_LIB_DIR)/$(LIBNAME).a; \
20+ ../$(INSTALL) -S $$rel_lib_prefix$(PKG_DEVLIB_DIR)/$(LIBNAME).la $(PKG_LIB_DIR)/$(LIBNAME).la; \
21+ rel_devlib_prefix=$$(echo $(PKG_DEVLIB_DIR) | sed 's,\(^/\|\)[^/][^/]*,..,g'); \
22+ ../$(INSTALL) -S $$rel_devlib_prefix$(PKG_LIB_DIR)/$(LIBNAME).so $(PKG_DEVLIB_DIR)/$(LIBNAME).so; \
23 fi
24 else
25 INSTALL_LTLIB_DEV = $(INSTALL_LTLIB_STATIC)
diff --git a/meta/recipes-support/attr/files/run-ptest b/meta/recipes-support/attr/files/run-ptest
new file mode 100644
index 0000000000..a6c6867f2d
--- /dev/null
+++ b/meta/recipes-support/attr/files/run-ptest
@@ -0,0 +1,5 @@
1#!/bin/sh
2
3make -C test -k tests root-tests |sed \
4 -e 's|^\[.*\] \(.*\) -- ok$|PASS: \1|' \
5 -e 's|^\[.*\] \(.*\) -- failed|FAIL: \1|'