Skip to contentSkip to conversation

ddrescue: update to 1.19

PATCH In review Koen Kooi 2 participants 3 messages Oct 26, 2014 – Oct 30, 2014

lore
Share & tools
lore

Koen Kooi

author
#0 lore raw

PATCH 1/1 ddrescue: update to 1.19

* License changed to GPLv2+
* Although 'configure is present, it isn't autotools.

Nota bene: this requires bitbake and oe-core support for tar.lz

---
 meta-oe/recipes-extended/ddrescue/ddrescue_1.16.bb | 18 ----------
 meta-oe/recipes-extended/ddrescue/ddrescue_1.19.bb | 42 ++++++++++++++++++++++
 2 files changed, 42 insertions(+), 18 deletions(-)
 delete mode 100644 meta-oe/recipes-extended/ddrescue/ddrescue_1.16.bb
 create mode 100644 meta-oe/recipes-extended/ddrescue/ddrescue_1.19.bb
meta-oe/recipes-extended/ddrescue/ddrescue_1.16.bb deleted +0 -18
deleted file mode 100644
index a36c250..0000000
@@ -1,18 +0,0 @@
-SUMMARY = "Data recovery tool"
-DESCRIPTION = "GNU ddrescue is a data recovery tool. It copies data \
-    from one file or block device (hard disc, cdrom, etc) to another, \
-    trying hard to rescue data in case of read errors."
-HOMEPAGE = "http://www.gnu.org/software/ddrescue/ddrescue.html"
-SECTION = "console"
-LICENSE = "GPLv3+"
-
-LIC_FILES_CHKSUM = "file://COPYING;md5=f27defe1e96c2e1ecd4e0c9be8967949 \
-                    file://main_common.cc;beginline=5;endline=16;md5=b5a59150a33658cc1ffc31b1a4ffb9f2"
-
-SRC_URI = "${GNU_MIRROR}/${BPN}/${BP}.tar.gz"
-SRC_URI[md5sum] = "57b67407e882c6418531d48a2f20d16b"
-SRC_URI[sha256sum] = "76b3f2e5fb0306d24f2632c3e168cccb73dc0a348e3a7089cd9230748ff23de6"
-
-inherit autotools
-
-EXTRA_OECONF = "'CXX=${CXX}' 'CPPFLAGS=${CPPFLAGS}' 'CXXFLAGS=${CXXFLAGS}' 'LDFLAGS=${LDFLAGS}'"
meta-oe/recipes-extended/ddrescue/ddrescue_1.19.bb new file +42 -0

42 lines not on this page · raw message

Signature · 1 line
1.9.0
#1 lore raw
Quoted 4 lines · Koen Kooi

* License changed to GPLv2+
* Although 'configure is present, it isn't autotools.

Nota bene: this requires bitbake and oe-core support for tar.lz

Not sure if it's caused by incomplete bitbake and oe-core support for tar.lz when I triggered that build, but it's strange how "silently" it fails, but thinking a bit more about it, it's expected to happend with the tar.lz just fetched into ${WORKDIR} without auto-unpack to create expected ${S} :/.

NOTE: recipe ddrescue-1.19-r0: task do_populate_lic: Started
WARNING: Could not copy license file COPYING: [Errno 2] No such file or
directory:
'/home/jenkins/oe/world/shr-core/tmp-glibc/work/core2-64-oe-linux/ddrescue/1.19-r0/ddrescue-1.19/COPYING'
WARNING: Could not copy license file main_common.cc: [Errno 2] No such
file or directory:
'/home/jenkins/oe/world/shr-core/tmp-glibc/work/core2-64-oe-linux/ddrescue/1.19-r0/ddrescue-1.19/main_common.cc'
NOTE: recipe ddrescue-1.19-r0: task do_populate_lic: Succeeded

NOTE: Running task 20950 of 30030 (ID: 24086, /home/jenkins/oe/world/shr-core/meta-openembedded/meta-oe/recipes-extended/ddrescue/ddrescue_1.19.bb, do_configure)
NOTE: recipe ddrescue-1.19-r0: task do_configure: Started
ERROR: Function failed: do_configure (log file is located at /home/jenkins/oe/world/shr-core/tmp-glibc/work/core2-64-oe-linux/ddrescue/1.19-r0/temp/log.do_configure.10001)
ERROR: Logfile of failure stored in:
/home/jenkins/oe/world/shr-core/tmp-glibc/work/core2-64-oe-linux/ddrescue/1.19-r0/temp/log.do_configure.10001 Log data follows:

| DEBUG: Executing python function sysroot_cleansstate
| DEBUG: Python function sysroot_cleansstate finished
| DEBUG: Executing shell function do_configure
|

/home/jenkins/oe/world/shr-core/tmp-glibc/work/core2-64-oe-linux/ddrescue/1.19-r0/temp/run.do_configure.10001:
98:
/home/jenkins/oe/world/shr-core/tmp-glibc/work/core2-64-oe-linux/ddrescue/1.19-r0/temp/run.do_configure.10001:
/home/jenkins/oe/world/shr-core/tmp-glibc/work/core2-64-oe-linux/ddrescue/1.19-r0/ddrescue-1.19/configure:
not found
| WARNING: exit code 127 from a shell command.
| ERROR: Function failed: do_configure (log file is located at /home/jenkins/oe/world/shr-core/tmp-glibc/work/core2-64-oe-linux/ddrescue/1.19-r0/temp/log.do_configure.10001)
NOTE: recipe ddrescue-1.19-r0: task do_configure: Failed
ERROR: Task 24086 (/home/jenkins/oe/world/shr-core/meta-openembedded/meta-oe/recipes-extended/ddrescue/ddrescue_1.19.bb, do_configure) failed with exit code '1'

Quoted 89 lines
---
 meta-oe/recipes-extended/ddrescue/ddrescue_1.16.bb | 18 ----------
 meta-oe/recipes-extended/ddrescue/ddrescue_1.19.bb | 42 ++++++++++++++++++++++
 2 files changed, 42 insertions(+), 18 deletions(-)
 delete mode 100644 meta-oe/recipes-extended/ddrescue/ddrescue_1.16.bb
 create mode 100644 meta-oe/recipes-extended/ddrescue/ddrescue_1.19.bb
meta-oe/recipes-extended/ddrescue/ddrescue_1.16.bb deleted +0 -18
deleted file mode 100644
index a36c250..0000000
@@ -1,18 +0,0 @@
-SUMMARY = "Data recovery tool"
-DESCRIPTION = "GNU ddrescue is a data recovery tool. It copies data \
-    from one file or block device (hard disc, cdrom, etc) to another, \
-    trying hard to rescue data in case of read errors."
-HOMEPAGE = "http://www.gnu.org/software/ddrescue/ddrescue.html"
-SECTION = "console"
-LICENSE = "GPLv3+"
-
-LIC_FILES_CHKSUM = "file://COPYING;md5=f27defe1e96c2e1ecd4e0c9be8967949 \
-                    file://main_common.cc;beginline=5;endline=16;md5=b5a59150a33658cc1ffc31b1a4ffb9f2"
-
-SRC_URI = "${GNU_MIRROR}/${BPN}/${BP}.tar.gz"
-SRC_URI[md5sum] = "57b67407e882c6418531d48a2f20d16b"
-SRC_URI[sha256sum] = "76b3f2e5fb0306d24f2632c3e168cccb73dc0a348e3a7089cd9230748ff23de6"
-
-inherit autotools
-
-EXTRA_OECONF = "'CXX=${CXX}' 'CPPFLAGS=${CPPFLAGS}' 'CXXFLAGS=${CXXFLAGS}' 'LDFLAGS=${LDFLAGS}'"
meta-oe/recipes-extended/ddrescue/ddrescue_1.19.bb new file +42 -0
new file mode 100644
index 0000000..a605249
@@ -0,0 +1,42 @@
+SUMMARY = "Data recovery tool"
+DESCRIPTION = "GNU ddrescue is a data recovery tool. It copies data \
+    from one file or block device (hard disc, cdrom, etc) to another, \
+    trying hard to rescue data in case of read errors."
+HOMEPAGE = "http://www.gnu.org/software/ddrescue/ddrescue.html"
+SECTION = "console"
+LICENSE = "GPLv2+"
+
+LIC_FILES_CHKSUM = "file://COPYING;md5=76d6e300ffd8fb9d18bd9b136a9bba13 \
+                    file://main_common.cc;beginline=5;endline=16;md5=3ec288b2676528cd2b069364e313016f"
+
+SRC_URI = "${GNU_MIRROR}/${BPN}/${BP}.tar.lz"
+SRC_URI[md5sum] = "ed6b5b82d74cbd925db2b829350e74b1"
+SRC_URI[sha256sum] = "ed8d0c9d9aac80a9110e9cb0d0a91a7390d3bf9f816b67a62ca4eb140f4747b8"
+
+CONFIGUREOPTS = "\
+    '--srcdir=${S}' \
+    '--prefix=${prefix}' \
+    '--exec-prefix=${exec_prefix}' \
+    '--bindir=${bindir}' \
+    '--datadir=${datadir}' \
+    '--infodir=${infodir}' \
+    '--sysconfdir=${sysconfdir}' \
+    'CXX=${CXX}' \
+    'CPPFLAGS=${CPPFLAGS}' \
+    'CXXFLAGS=${CXXFLAGS}' \
+    'LDFLAGS=${LDFLAGS}' \
+"
+EXTRA_OEMAKE = ""
+
+do_configure () {
+    ${S}/configure ${CONFIGUREOPTS}
+}
+
+do_install () {
+    oe_runmake 'DESTDIR=${D}' install
+    # Info dir listing isn't interesting at this point so remove it if it exists.
+    if [ -e "${D}${infodir}/dir" ]; then
+        rm -f ${D}${infodir}/dir
+    fi
+}
+
Signature · 7 lines
1.9.0

-- 
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
author
#2 lore raw
Quoted 7 lines

Op 29 okt. 2014, om 16:49 heeft Martin Jansa <[email protected]> het volgende geschreven:

Quoted 3 lines · Koen Kooi

* License changed to GPLv2+
* Although 'configure is present, it isn't autotools.

Quoted 7 lines
Quoted 1 line

Nota bene: this requires bitbake and oe-core support for tar.lz

Not sure if it's caused by incomplete bitbake and oe-core support for tar.lz when I triggered that build, but it's strange how "silently" it fails, but thinking a bit more about it, it's expected to happend with the tar.lz just fetched into ${WORKDIR} without auto-unpack to create expected ${S} :/.

It took me 3 builds to realize that and start patching bitbake and OE-core :/

regards,

Koen

Quoted 128 lines

NOTE: recipe ddrescue-1.19-r0: task do_populate_lic: Started
WARNING: Could not copy license file COPYING: [Errno 2] No such file or
directory:
'/home/jenkins/oe/world/shr-core/tmp-glibc/work/core2-64-oe-linux/ddrescue/1.19-r0/ddrescue-1.19/COPYING'
WARNING: Could not copy license file main_common.cc: [Errno 2] No such
file or directory:
'/home/jenkins/oe/world/shr-core/tmp-glibc/work/core2-64-oe-linux/ddrescue/1.19-r0/ddrescue-1.19/main_common.cc'
NOTE: recipe ddrescue-1.19-r0: task do_populate_lic: Succeeded

NOTE: Running task 20950 of 30030 (ID: 24086, /home/jenkins/oe/world/shr-core/meta-openembedded/meta-oe/recipes-extended/ddrescue/ddrescue_1.19.bb, do_configure)
NOTE: recipe ddrescue-1.19-r0: task do_configure: Started
ERROR: Function failed: do_configure (log file is located at /home/jenkins/oe/world/shr-core/tmp-glibc/work/core2-64-oe-linux/ddrescue/1.19-r0/temp/log.do_configure.10001)
ERROR: Logfile of failure stored in:
/home/jenkins/oe/world/shr-core/tmp-glibc/work/core2-64-oe-linux/ddrescue/1.19-r0/temp/log.do_configure.10001 Log data follows:

| DEBUG: Executing python function sysroot_cleansstate
| DEBUG: Python function sysroot_cleansstate finished
| DEBUG: Executing shell function do_configure
|

/home/jenkins/oe/world/shr-core/tmp-glibc/work/core2-64-oe-linux/ddrescue/1.19-r0/temp/run.do_configure.10001:
98:
/home/jenkins/oe/world/shr-core/tmp-glibc/work/core2-64-oe-linux/ddrescue/1.19-r0/temp/run.do_configure.10001:
/home/jenkins/oe/world/shr-core/tmp-glibc/work/core2-64-oe-linux/ddrescue/1.19-r0/ddrescue-1.19/configure:
not found
| WARNING: exit code 127 from a shell command.
| ERROR: Function failed: do_configure (log file is located at /home/jenkins/oe/world/shr-core/tmp-glibc/work/core2-64-oe-linux/ddrescue/1.19-r0/temp/log.do_configure.10001)
NOTE: recipe ddrescue-1.19-r0: task do_configure: Failed
ERROR: Task 24086 (/home/jenkins/oe/world/shr-core/meta-openembedded/meta-oe/recipes-extended/ddrescue/ddrescue_1.19.bb, do_configure) failed with exit code '1'

Quoted 89 lines

---
meta-oe/recipes-extended/ddrescue/ddrescue_1.16.bb | 18 ---------- meta-oe/recipes-extended/ddrescue/ddrescue_1.19.bb | 42 ++++++++++++++++++++++

2 files changed, 42 insertions(+), 18 deletions(-)

delete mode 100644 meta-oe/recipes-extended/ddrescue/ddrescue_1.16.bb create mode 100644 meta-oe/recipes-extended/ddrescue/ddrescue_1.19.bb

meta-oe/recipes-extended/ddrescue/ddrescue_1.16.bb deleted +0 -18
deleted file mode 100644
index a36c250..0000000
@@ -1,18 +0,0 @@
-SUMMARY = "Data recovery tool"
-DESCRIPTION = "GNU ddrescue is a data recovery tool. It copies data \
-    from one file or block device (hard disc, cdrom, etc) to another, \
-    trying hard to rescue data in case of read errors."
-HOMEPAGE = "http://www.gnu.org/software/ddrescue/ddrescue.html"
-SECTION = "console"
-LICENSE = "GPLv3+"
-
-LIC_FILES_CHKSUM = "file://COPYING;md5=f27defe1e96c2e1ecd4e0c9be8967949 \
-                    file://main_common.cc;beginline=5;endline=16;md5=b5a59150a33658cc1ffc31b1a4ffb9f2"
-
-SRC_URI = "${GNU_MIRROR}/${BPN}/${BP}.tar.gz"
-SRC_URI[md5sum] = "57b67407e882c6418531d48a2f20d16b"
-SRC_URI[sha256sum] = "76b3f2e5fb0306d24f2632c3e168cccb73dc0a348e3a7089cd9230748ff23de6"
-
-inherit autotools
-
-EXTRA_OECONF = "'CXX=${CXX}' 'CPPFLAGS=${CPPFLAGS}' 'CXXFLAGS=${CXXFLAGS}' 'LDFLAGS=${LDFLAGS}'"
meta-oe/recipes-extended/ddrescue/ddrescue_1.19.bb new file +42 -0
new file mode 100644
index 0000000..a605249
@@ -0,0 +1,42 @@
+SUMMARY = "Data recovery tool"
+DESCRIPTION = "GNU ddrescue is a data recovery tool. It copies data \
+    from one file or block device (hard disc, cdrom, etc) to another, \
+    trying hard to rescue data in case of read errors."
+HOMEPAGE = "http://www.gnu.org/software/ddrescue/ddrescue.html"
+SECTION = "console"
+LICENSE = "GPLv2+"
+
+LIC_FILES_CHKSUM = "file://COPYING;md5=76d6e300ffd8fb9d18bd9b136a9bba13 \
+                    file://main_common.cc;beginline=5;endline=16;md5=3ec288b2676528cd2b069364e313016f"
+
+SRC_URI = "${GNU_MIRROR}/${BPN}/${BP}.tar.lz"
+SRC_URI[md5sum] = "ed6b5b82d74cbd925db2b829350e74b1"
+SRC_URI[sha256sum] = "ed8d0c9d9aac80a9110e9cb0d0a91a7390d3bf9f816b67a62ca4eb140f4747b8"
+
+CONFIGUREOPTS = "\
+    '--srcdir=${S}' \
+    '--prefix=${prefix}' \
+    '--exec-prefix=${exec_prefix}' \
+    '--bindir=${bindir}' \
+    '--datadir=${datadir}' \
+    '--infodir=${infodir}' \
+    '--sysconfdir=${sysconfdir}' \
+    'CXX=${CXX}' \
+    'CPPFLAGS=${CPPFLAGS}' \
+    'CXXFLAGS=${CXXFLAGS}' \
+    'LDFLAGS=${LDFLAGS}' \
+"
+EXTRA_OEMAKE = ""
+
+do_configure () {
+    ${S}/configure ${CONFIGUREOPTS}
+}
+
+do_install () {
+    oe_runmake 'DESTDIR=${D}' install
+    # Info dir listing isn't interesting at this point so remove it if it exists.
+    if [ -e "${D}${infodir}/dir" ]; then
+        rm -f ${D}${infodir}/dir
+    fi
+}
+
Signature · 7 lines
1.9.0

-- 
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]