summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/mktemp
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-extended/mktemp
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-extended/mktemp')
-rw-r--r--meta/recipes-extended/mktemp/files/disable-strip.patch15
-rw-r--r--meta/recipes-extended/mktemp/files/fix-parallel-make.patch24
-rw-r--r--meta/recipes-extended/mktemp/mktemp_1.7.bb30
3 files changed, 69 insertions, 0 deletions
diff --git a/meta/recipes-extended/mktemp/files/disable-strip.patch b/meta/recipes-extended/mktemp/files/disable-strip.patch
new file mode 100644
index 0000000000..e06869e3ad
--- /dev/null
+++ b/meta/recipes-extended/mktemp/files/disable-strip.patch
@@ -0,0 +1,15 @@
1Upstream-Status: Inappropriate [configuration]
2
3diff --git a/Makefile.in b/Makefile.in
4index 37b3cc9..f1026f3 100644
5--- a/Makefile.in
6+++ b/Makefile.in
7@@ -95,7 +95,7 @@ install-dirs:
8 $(DESTDIR)$(mandir)/man1
9
10 install-binaries: $(PROG)
11- $(INSTALL) -m 0555 -s $(PROG) $(DESTDIR)$(bindir)/$(PROG)
12+ $(INSTALL) -m 0555 $(PROG) $(DESTDIR)$(bindir)/$(PROG)
13
14 install-man:
15 $(INSTALL) -m 0444 $(srcdir)/mktemp.$(mantype) \
diff --git a/meta/recipes-extended/mktemp/files/fix-parallel-make.patch b/meta/recipes-extended/mktemp/files/fix-parallel-make.patch
new file mode 100644
index 0000000000..f3b6dcc34a
--- /dev/null
+++ b/meta/recipes-extended/mktemp/files/fix-parallel-make.patch
@@ -0,0 +1,24 @@
1This fixes the parallel make install failure
2
3Upstream-Status: Accepted
4http://www.gratisoft.us/bugzilla/show_bug.cgi?id=528
5
6Signed-off-by: Saul Wold <sgw@linux.intel.com>
7
8Index: mktemp-1.7/Makefile.in
9===================================================================
10--- mktemp-1.7.orig/Makefile.in
11+++ mktemp-1.7/Makefile.in
12@@ -94,10 +94,10 @@ install-dirs:
13 $(SHELL) $(srcdir)/mkinstalldirs $(DESTDIR)$(bindir) \
14 $(DESTDIR)$(mandir)/man1
15
16-install-binaries: $(PROG)
17+install-binaries: install-dirs $(PROG)
18 $(INSTALL) -m 0555 $(PROG) $(DESTDIR)$(bindir)/$(PROG)
19
20-install-man:
21+install-man: install-dirs
22 $(INSTALL) -m 0444 $(srcdir)/mktemp.$(mantype) \
23 $(DESTDIR)$(mandir)/man1/mktemp.1
24
diff --git a/meta/recipes-extended/mktemp/mktemp_1.7.bb b/meta/recipes-extended/mktemp/mktemp_1.7.bb
new file mode 100644
index 0000000000..b53fc11b1e
--- /dev/null
+++ b/meta/recipes-extended/mktemp/mktemp_1.7.bb
@@ -0,0 +1,30 @@
1SUMMARY = "Enables safe temporary file creation from shell scripts"
2HOMEPAGE = "http://www.mktemp.org/"
3BUGTRACKER = "http://www.mktemp.org/bugs"
4SECTION = "console/utils"
5LICENSE = "ISC"
6LIC_FILES_CHKSUM = "file://LICENSE;md5=430680f6322a1eb87199b5e01a82c0d4"
7
8PR = "r3"
9
10SRC_URI = "ftp://ftp.mktemp.org/pub/mktemp/${BPN}-${PV}.tar.gz \
11 file://disable-strip.patch \
12 file://fix-parallel-make.patch \
13 "
14
15SRC_URI[md5sum] = "787bbed9fa2ee8e7645733c0e8e65172"
16SRC_URI[sha256sum] = "8e94b9e1edf866b2609545da65b627996ac5d158fda071e492bddb2f4a482675"
17
18inherit autotools update-alternatives
19
20EXTRA_OECONF = "--with-libc"
21
22do_install_append () {
23 install -d ${D}${base_bindir}
24 mv ${D}${bindir}/mktemp ${D}${base_bindir}/mktemp
25 rmdir ${D}${bindir}
26}
27
28ALTERNATIVE_${PN} = "mktemp"
29ALTERNATIVE_LINK_NAME[mktemp] = "${base_bindir}/mktemp"
30ALTERNATIVE_PRIORITY = "100"