[oe-commits] [meta-openembedded] 65/77: dt: Add 18.32 recipe
git at git.openembedded.org
git at git.openembedded.org
Sat Feb 20 14:02:01 UTC 2016
martin_jansa pushed a commit to branch master-next
in repository meta-openembedded.
commit 1a0cfa5590781f09686dc3c6895209796fd3c775
Author: Otavio Salvador <otavio at ossystems.com.br>
AuthorDate: Mon Feb 15 11:51:19 2016 -0200
dt: Add 18.32 recipe
This includes the version 18.32; this release has been taken from the
Fedora package repository at:
http://pkgs.fedoraproject.org/git/rpms/dt.git
Signed-off-by: Otavio Salvador <otavio at ossystems.com.br>
Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>
---
...op-using-relative-path-for-scsilib.c-link.patch | 29 +++++++++++++
.../dt/dt/dt-default-source-define.patch | 18 ++++++++
meta-oe/recipes-devtools/dt/dt/dt-manpage.patch | 22 ++++++++++
.../dt/dt/dt-wformat-security.patch | 48 ++++++++++++++++++++++
meta-oe/recipes-devtools/dt/dt_18.32.bb | 45 ++++++++++++++++++++
5 files changed, 162 insertions(+)
diff --git a/meta-oe/recipes-devtools/dt/dt/Stop-using-relative-path-for-scsilib.c-link.patch b/meta-oe/recipes-devtools/dt/dt/Stop-using-relative-path-for-scsilib.c-link.patch
new file mode 100644
index 0000000..ccb9a02
--- /dev/null
+++ b/meta-oe/recipes-devtools/dt/dt/Stop-using-relative-path-for-scsilib.c-link.patch
@@ -0,0 +1,29 @@
+From 4cf7e16fe9b773e2e7763d4b773854eefe2aa9ab Mon Sep 17 00:00:00 2001
+From: Otavio Salvador <otavio at ossystems.com.br>
+Date: Tue, 12 Jan 2016 09:59:55 -0200
+Subject: [PATCH] Stop using relative path for scsilib.c link
+Organization: O.S. Systems Software LTDA.
+
+Upstream-Status: Pending
+
+Signed-off-by: Otavio Salvador <otavio at ossystems.com.br>
+---
+ Makefile.linux | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/Makefile.linux b/Makefile.linux
+index 78333ff..e210564 100644
+--- a/Makefile.linux
++++ b/Makefile.linux
+@@ -129,7 +129,7 @@ scsilib.c:
+ echo "Please specify OS={aix,linux,hpux,solaris,windows}"; \
+ exit 1; \
+ fi; \
+- ln -sf ../scsilib-$(OS).c scsilib.c
++ ln -sf scsilib-$(OS).c scsilib.c
+
+ print:;
+ @$(PRINTER) $(PRINTFLAGS) $(ALL_CFILES)
+--
+2.1.4
+
diff --git a/meta-oe/recipes-devtools/dt/dt/dt-default-source-define.patch b/meta-oe/recipes-devtools/dt/dt/dt-default-source-define.patch
new file mode 100644
index 0000000..87016ed
--- /dev/null
+++ b/meta-oe/recipes-devtools/dt/dt/dt-default-source-define.patch
@@ -0,0 +1,18 @@
+Patch from http://pkgs.fedoraproject.org/git/rpms/dt.git
+
+Upstream-Status: Pending
+
+Signed-off-by: Otavio Salvador <otavio at ossystems.com.br>
+
+diff -rupN dt.v18.32.old/common.h dt.v18.32/common.h
+--- dt.v18.32.old/common.h 2013-03-01 23:52:30.000000000 +0100
++++ dt.v18.32/common.h 2014-09-24 17:41:40.777604710 +0200
+@@ -127,7 +127,7 @@ typedef volatile slarge_t v_slarge;
+
+ #endif /* defined(_WIN64) */
+
+-#elif defined(__GNUC__) && defined(_BSD_SOURCE) || defined(SCO) || defined(__QNXNTO__) || defined(SOLARIS) || defined(HP_UX) || defined(AIX) || defined(_NT_SOURCE)
++#elif defined(__GNUC__) && defined(_BSD_SOURCE) || defined (_DEFAULT_SOURCE) || defined(SCO) || defined(__QNXNTO__) || defined(SOLARIS) || defined(HP_UX) || defined(AIX) || defined(_NT_SOURCE)
+
+ #define QuadIsLongLong
+ typedef unsigned long long int large_t;
diff --git a/meta-oe/recipes-devtools/dt/dt/dt-manpage.patch b/meta-oe/recipes-devtools/dt/dt/dt-manpage.patch
new file mode 100644
index 0000000..f5968e3
--- /dev/null
+++ b/meta-oe/recipes-devtools/dt/dt/dt-manpage.patch
@@ -0,0 +1,22 @@
+Patch from http://pkgs.fedoraproject.org/git/rpms/dt.git
+
+Upstream-Status: Pending
+
+Signed-off-by: Otavio Salvador <otavio at ossystems.com.br>
+
+diff --git a/Documentation/dt.man b/Documentation/dt.man
+index af32831..d4960cf 100644
+--- a/Documentation/dt.man
++++ b/Documentation/dt.man
+@@ -299,7 +299,7 @@ Log File Format Keywords:
+ .TP
+ %iodir
+ The I/O direction.
+-.tP
++.TP
+ %iotype
+ The I/O type.
+ .TP
+--
+1.7.8.5
+
diff --git a/meta-oe/recipes-devtools/dt/dt/dt-wformat-security.patch b/meta-oe/recipes-devtools/dt/dt/dt-wformat-security.patch
new file mode 100644
index 0000000..b6780c1
--- /dev/null
+++ b/meta-oe/recipes-devtools/dt/dt/dt-wformat-security.patch
@@ -0,0 +1,48 @@
+Patch from http://pkgs.fedoraproject.org/git/rpms/dt.git
+
+Upstream-Status: Pending
+
+Signed-off-by: Otavio Salvador <otavio at ossystems.com.br>
+
+diff -rupN dt.v18.32.old/dt.c dt.v18.32/dt.c
+--- dt.v18.32.old/dt.c 2014-08-18 14:45:53.242351115 +0200
++++ dt.v18.32/dt.c 2014-08-18 15:11:36.367719880 +0200
+@@ -4378,7 +4378,7 @@ report_error(
+ (void)sprintf(dip->di_msg_buffer, "(%d): '%s', errno = %d - %s\n",
+ dip->di_process_id, error_info, errno, emsg);
+ }
+- syslog(LOG_ERR, dip->di_msg_buffer);
++ syslog(LOG_ERR, "%s", dip->di_msg_buffer);
+ }
+ #endif /* defined(SYSLOG) */
+
+diff -rupN dt.v18.32.old/dtutil.c dt.v18.32/dtutil.c
+--- dt.v18.32.old/dtutil.c 2014-08-18 14:45:53.354350779 +0200
++++ dt.v18.32/dtutil.c 2014-08-18 15:13:53.835307311 +0200
+@@ -5180,7 +5180,7 @@ ReportDeviceInfo (
+ bp += Sprintf(bp,
+ "(%d) Device name: %s\n",
+ dip->di_process_id, dip->di_dname);
+- syslog(LOG_ERR, dip->di_msg_buffer);
++ syslog(LOG_ERR, "%s", dip->di_msg_buffer);
+ bp = dip->di_msg_buffer;
+ # if defined(SCSI)
+ if (dip->di_serial_number) {
+@@ -5193,7 +5193,7 @@ ReportDeviceInfo (
+ dip->di_process_id, dip->di_device_id);
+ }
+ # endif /* defined(SCSI) */
+- syslog(LOG_ERR, dip->di_msg_buffer);
++ syslog(LOG_ERR, "%s", dip->di_msg_buffer);
+ bp = dip->di_msg_buffer;
+ bp += Sprintf(bp,
+ "(%d) Relative block number where the error occurred is " LUF ","
+@@ -5203,7 +5203,7 @@ ReportDeviceInfo (
+ } else {
+ bp += Sprintf(bp, "\n");
+ }
+- syslog(LOG_ERR, dip->di_msg_buffer);
++ syslog(LOG_ERR, "%s", dip->di_msg_buffer);
+ }
+ #endif /* defined(SYSLOG) */
+
diff --git a/meta-oe/recipes-devtools/dt/dt_18.32.bb b/meta-oe/recipes-devtools/dt/dt_18.32.bb
new file mode 100644
index 0000000..f79139c
--- /dev/null
+++ b/meta-oe/recipes-devtools/dt/dt_18.32.bb
@@ -0,0 +1,45 @@
+SUMMARY = "Generic data test program"
+DESCRIPTION = "The Data Test Program (dt) is a generic data test program used to verify proper \
+operation of peripherals, file systems, device drivers, or any data stream supported by the \
+operating system."
+HOMEPAGE = "http://www.scsifaq.org/RMiller_Tools/dt.html"
+
+SECTION = "console/tests"
+
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=be8bb25bbcfaa0725710d188e5152668"
+
+# Source URI taken from Fedora RPM spec file at:
+# http://pkgs.fedoraproject.org/git/rpms/dt.git
+SRC_URI = "http://dl.dropboxusercontent.com/u/32363629/Datatest/dt-source-v${PV}.tar.gz \
+ file://dt-default-source-define.patch \
+ file://dt-manpage.patch \
+ file://dt-wformat-security.patch \
+ file://Stop-using-relative-path-for-scsilib.c-link.patch \
+"
+
+SRC_URI[md5sum] = "3054aeaaba047a1dbe90c2132a382ee2"
+SRC_URI[sha256sum] = "10d164676e918a4d07f233bcd11e4cb6bfd1052c996182cd1827ccd0c063fcc6"
+
+S = "${WORKDIR}/dt.v${PV}"
+
+TARGET_CC_ARCH += "${LDFLAGS}"
+
+EXTRA_OEMAKE += "-f Makefile.linux \
+ OS=linux \
+ CFLAGS="-I.. -DAIO -DFIFO -DMMAP -D__linux__ -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DTHREADS -DSCSI""
+
+do_compile() {
+ oe_runmake
+}
+
+do_install() {
+ install -Dm755 dt ${D}${sbindir}/dt
+ install -Dm644 Documentation/dt.man ${D}${mandir}/man8/dt.8
+
+ install -d ${D}${datadir}/dt/
+ install -d ${D}${docdir}/dt/html/
+ install -m755 Scripts/dt? ${D}${datadir}/dt/
+ install -m644 data/pattern_* ${D}${datadir}/dt/
+ install -m644 html/* ${D}${docdir}/dt/html/
+}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list