All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-oe][PATCH] ddrescue: update to 1.19
@ 2014-10-26 15:15 Koen Kooi
  2014-10-29 15:49 ` Martin Jansa
  0 siblings, 1 reply; 3+ messages in thread
From: Koen Kooi @ 2014-10-26 15:15 UTC (permalink / raw)
  To: openembedded-devel; +Cc: 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

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
---
 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

diff --git a/meta-oe/recipes-extended/ddrescue/ddrescue_1.16.bb b/meta-oe/recipes-extended/ddrescue/ddrescue_1.16.bb
deleted file mode 100644
index a36c250..0000000
--- a/meta-oe/recipes-extended/ddrescue/ddrescue_1.16.bb
+++ /dev/null
@@ -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}'"
diff --git a/meta-oe/recipes-extended/ddrescue/ddrescue_1.19.bb b/meta-oe/recipes-extended/ddrescue/ddrescue_1.19.bb
new file mode 100644
index 0000000..a605249
--- /dev/null
+++ b/meta-oe/recipes-extended/ddrescue/ddrescue_1.19.bb
@@ -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
+}
+
-- 
1.9.0



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [meta-oe][PATCH] ddrescue: update to 1.19
  2014-10-26 15:15 [meta-oe][PATCH] ddrescue: update to 1.19 Koen Kooi
@ 2014-10-29 15:49 ` Martin Jansa
  2014-10-30  7:21   ` Koen Kooi
  0 siblings, 1 reply; 3+ messages in thread
From: Martin Jansa @ 2014-10-29 15:49 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Koen Kooi

[-- Attachment #1: Type: text/plain, Size: 6216 bytes --]

On Sun, Oct 26, 2014 at 04:15:52PM +0100, Koen Kooi wrote:
> * 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'

> 
> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
> ---
>  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
> 
> diff --git a/meta-oe/recipes-extended/ddrescue/ddrescue_1.16.bb b/meta-oe/recipes-extended/ddrescue/ddrescue_1.16.bb
> deleted file mode 100644
> index a36c250..0000000
> --- a/meta-oe/recipes-extended/ddrescue/ddrescue_1.16.bb
> +++ /dev/null
> @@ -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}'"
> diff --git a/meta-oe/recipes-extended/ddrescue/ddrescue_1.19.bb b/meta-oe/recipes-extended/ddrescue/ddrescue_1.19.bb
> new file mode 100644
> index 0000000..a605249
> --- /dev/null
> +++ b/meta-oe/recipes-extended/ddrescue/ddrescue_1.19.bb
> @@ -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
> +}
> +
> -- 
> 1.9.0
> 
> -- 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 188 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [meta-oe][PATCH] ddrescue: update to 1.19
  2014-10-29 15:49 ` Martin Jansa
@ 2014-10-30  7:21   ` Koen Kooi
  0 siblings, 0 replies; 3+ messages in thread
From: Koen Kooi @ 2014-10-30  7:21 UTC (permalink / raw)
  To: Martin Jansa; +Cc: openembedded-devel


> Op 29 okt. 2014, om 16:49 heeft Martin Jansa <martin.jansa@gmail.com> het volgende geschreven:
> 
> On Sun, Oct 26, 2014 at 04:15:52PM +0100, Koen Kooi wrote:
>> * 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} :/.

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

regards,

Koen

> 
> 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'
> 
>> 
>> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
>> ---
>> 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
>> 
>> diff --git a/meta-oe/recipes-extended/ddrescue/ddrescue_1.16.bb b/meta-oe/recipes-extended/ddrescue/ddrescue_1.16.bb
>> deleted file mode 100644
>> index a36c250..0000000
>> --- a/meta-oe/recipes-extended/ddrescue/ddrescue_1.16.bb
>> +++ /dev/null
>> @@ -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}'"
>> diff --git a/meta-oe/recipes-extended/ddrescue/ddrescue_1.19.bb b/meta-oe/recipes-extended/ddrescue/ddrescue_1.19.bb
>> new file mode 100644
>> index 0000000..a605249
>> --- /dev/null
>> +++ b/meta-oe/recipes-extended/ddrescue/ddrescue_1.19.bb
>> @@ -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
>> +}
>> +
>> -- 
>> 1.9.0
>> 
>> -- 
>> _______________________________________________
>> Openembedded-devel mailing list
>> Openembedded-devel@lists.openembedded.org
>> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
> 
> -- 
> Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-10-30  7:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-26 15:15 [meta-oe][PATCH] ddrescue: update to 1.19 Koen Kooi
2014-10-29 15:49 ` Martin Jansa
2014-10-30  7:21   ` Koen Kooi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.