mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-01-01 13:58:06 +00:00
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@ossystems.com.br>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
parent
db6524d820
commit
5307cf398f
|
|
@ -0,0 +1,29 @@
|
|||
From 4cf7e16fe9b773e2e7763d4b773854eefe2aa9ab Mon Sep 17 00:00:00 2001
|
||||
From: Otavio Salvador <otavio@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@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
|
||||
|
||||
92
meta-oe/recipes-devtools/dt/dt/Use-tcsh-shell.patch
Normal file
92
meta-oe/recipes-devtools/dt/dt/Use-tcsh-shell.patch
Normal file
|
|
@ -0,0 +1,92 @@
|
|||
From e3c6eb8776f659eb9e6eeccf90d785eff18ecf74 Mon Sep 17 00:00:00 2001
|
||||
From: Otavio Salvador <otavio@ossystems.com.br>
|
||||
Date: Mon, 15 Feb 2016 18:00:05 -0200
|
||||
Subject: [PATCH] Use 'tcsh' shell
|
||||
Organization: O.S. Systems Software LTDA.
|
||||
|
||||
Upstream-Status: Pending
|
||||
|
||||
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
|
||||
---
|
||||
Scripts/dta | 2 +-
|
||||
Scripts/dtc | 2 +-
|
||||
Scripts/dtf | 2 +-
|
||||
Scripts/dtr | 2 +-
|
||||
Scripts/dts | 2 +-
|
||||
Scripts/dtt | 2 +-
|
||||
Scripts/dtw | 2 +-
|
||||
7 files changed, 7 insertions(+), 7 deletions(-)
|
||||
|
||||
diff --git a/Scripts/dta b/Scripts/dta
|
||||
index ebc7072..4f90247 100755
|
||||
--- a/Scripts/dta
|
||||
+++ b/Scripts/dta
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/bin/csh
|
||||
+#!/bin/tcsh
|
||||
#
|
||||
# Script file to test asynchronous communication lines.
|
||||
#
|
||||
diff --git a/Scripts/dtc b/Scripts/dtc
|
||||
index da69c2e..89d48c2 100755
|
||||
--- a/Scripts/dtc
|
||||
+++ b/Scripts/dtc
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/bin/csh
|
||||
+#!/bin/tcsh
|
||||
# %Z%%M% %I% %E%
|
||||
#
|
||||
# Date: August 7, 1990
|
||||
diff --git a/Scripts/dtf b/Scripts/dtf
|
||||
index 9f8cd87..321d261 100755
|
||||
--- a/Scripts/dtf
|
||||
+++ b/Scripts/dtf
|
||||
@@ -1,4 +1,4 @@
|
||||
-#! /bin/csh
|
||||
+#! /bin/tcsh
|
||||
#
|
||||
# Script file to gather floppy disk performance data.
|
||||
#
|
||||
diff --git a/Scripts/dtr b/Scripts/dtr
|
||||
index ddb7947..1ff5a0b 100755
|
||||
--- a/Scripts/dtr
|
||||
+++ b/Scripts/dtr
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/bin/csh
|
||||
+#!/bin/tcsh
|
||||
# %Z%%M% %I% %E%
|
||||
#
|
||||
# Date: August 21, 1990
|
||||
diff --git a/Scripts/dts b/Scripts/dts
|
||||
index 6b8a167..42d2312 100755
|
||||
--- a/Scripts/dts
|
||||
+++ b/Scripts/dts
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/bin/csh
|
||||
+#!/bin/tcsh
|
||||
# %Z%%M% %I% %E%
|
||||
#
|
||||
# Date: August 7, 1990
|
||||
diff --git a/Scripts/dtt b/Scripts/dtt
|
||||
index 36cc6bd..df19d2f 100755
|
||||
--- a/Scripts/dtt
|
||||
+++ b/Scripts/dtt
|
||||
@@ -1,4 +1,4 @@
|
||||
-#! /bin/csh
|
||||
+#! /bin/tcsh
|
||||
# %Z%%M% %I% %E%
|
||||
#
|
||||
# Date: August 7, 1990
|
||||
diff --git a/Scripts/dtw b/Scripts/dtw
|
||||
index 8a4ac39..c58e304 100755
|
||||
--- a/Scripts/dtw
|
||||
+++ b/Scripts/dtw
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/bin/csh
|
||||
+#!/bin/tcsh
|
||||
# %Z%%M% %I% %E%
|
||||
#
|
||||
# Date: August 21, 1990
|
||||
--
|
||||
2.1.4
|
||||
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
Patch from http://pkgs.fedoraproject.org/git/rpms/dt.git
|
||||
|
||||
Upstream-Status: Pending
|
||||
|
||||
Signed-off-by: Otavio Salvador <otavio@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;
|
||||
48
meta-oe/recipes-devtools/dt/dt/dt-wformat-security.patch
Normal file
48
meta-oe/recipes-devtools/dt/dt/dt-wformat-security.patch
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
Patch from http://pkgs.fedoraproject.org/git/rpms/dt.git
|
||||
|
||||
Upstream-Status: Pending
|
||||
|
||||
Signed-off-by: Otavio Salvador <otavio@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) */
|
||||
|
||||
47
meta-oe/recipes-devtools/dt/dt_18.32.bb
Normal file
47
meta-oe/recipes-devtools/dt/dt_18.32.bb
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
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-wformat-security.patch \
|
||||
file://Stop-using-relative-path-for-scsilib.c-link.patch \
|
||||
file://Use-tcsh-shell.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/
|
||||
}
|
||||
|
||||
RDEPENDS_${PN} += "tcsh"
|
||||
Loading…
Reference in New Issue
Block a user