GNU bug report logs - #5927
`xz' command not found when running 'make dist and distcheck'

Previous Next

Package: coreutils;

Reported by: "jeff.liu" <jeff.liu <at> oracle.com>

Date: Sun, 11 Apr 2010 14:43:02 UTC

Severity: normal

Done: Jim Meyering <jim <at> meyering.net>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 5927 in the body.
You can then email your comments to 5927 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to owner <at> debbugs.gnu.org, bug-coreutils <at> gnu.org:
bug#5927; Package coreutils. (Sun, 11 Apr 2010 14:43:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to "jeff.liu" <jeff.liu <at> oracle.com>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Sun, 11 Apr 2010 14:43:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "jeff.liu" <jeff.liu <at> oracle.com>
To: bug-coreutils <at> gnu.org
Subject: `xz' command not found when running 'make dist and distcheck'
Date: Sun, 11 Apr 2010 22:42:16 +0800
Hello,

I run into a problem when running `make dist/distcheck' on "uBuntu 8.0.4 - the Hardy Heron".

The error message shows the `xz` command not found:
...
tardir=coreutils-8.4.84-8c4b6-dirty && /bin/bash
/home/jeff/opensource_dev/coreutils/build-aux/missing --run tar chof - "$tardir" | xz -c
>coreutils-8.4.84-8c4b6-dirty.tar.xz
/bin/bash: xz: command not found
WARNING: I can't seem to be able to run `tar' with the given arguments.
         You may want to install GNU tar or Free paxutils, or check the
         command line arguments.
make: *** [dist] Error 127


Is it make sense to add the pre-checking for `xz-utils' in 'boottrap.conf' like below?

From e6f6bb41a4bb443cf894c151390182d23b2f957d Mon Sep 17 00:00:00 2001
From: Jie Liu <jeff.liu <at> oracle.com>
Date: Sun, 11 Apr 2010 22:40:52 +0800
Subject: [PATCH] Add `xz-utils` pre-checking in bootstrap.conf

Signed-off-by: Jie Liu <jeff.liu <at> oracle.com>
---
 bootstrap.conf |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/bootstrap.conf b/bootstrap.conf
index ad7d6d5..55b2f60 100644
--- a/bootstrap.conf
+++ b/bootstrap.conf
@@ -321,6 +321,7 @@ makeinfo   -
 perl       5.5
 rsync      -
 tar        -
+xz         -
 "

 # Automake requires that ChangeLog exist.
-- 
1.5.4.3



Cheers,
-Jeff





Information forwarded to owner <at> debbugs.gnu.org, bug-coreutils <at> gnu.org:
bug#5927; Package coreutils. (Sun, 11 Apr 2010 15:17:01 GMT) Full text and rfc822 format available.

Message #8 received at 5927 <at> debbugs.gnu.org (full text, mbox):

From: Jim Meyering <jim <at> meyering.net>
To: "jeff.liu" <jeff.liu <at> oracle.com>
Cc: 5927 <at> debbugs.gnu.org
Subject: Re: bug#5927: `xz' command not found when running 'make dist and
	distcheck'
Date: Sun, 11 Apr 2010 17:16:03 +0200
jeff.liu wrote:
> I run into a problem when running `make dist/distcheck' on "uBuntu 8.0.4 - the Hardy Heron".
>
> The error message shows the `xz` command not found:
> ...
> tardir=coreutils-8.4.84-8c4b6-dirty && /bin/bash
> /home/jeff/opensource_dev/coreutils/build-aux/missing --run tar chof - "$tardir" | xz -c
>>coreutils-8.4.84-8c4b6-dirty.tar.xz
> /bin/bash: xz: command not found
> WARNING: I can't seem to be able to run `tar' with the given arguments.
>          You may want to install GNU tar or Free paxutils, or check the
>          command line arguments.
> make: *** [dist] Error 127
>
> Is it make sense to add the pre-checking for `xz-utils' in 'boottrap.conf' like below?
>
> Subject: [PATCH] Add `xz-utils` pre-checking in bootstrap.conf
>
> Signed-off-by: Jie Liu <jeff.liu <at> oracle.com>

Good idea.  Thanks for the patch.
I've applied that, but adjusted the commit log:
  - remove the signed-off-by part (you're the Author:)
  - add ChangeLog-style line, since a ChangeLog file is generated
      from the commit logs.

      * bootstrap.conf (buildreq): Add xz to the list.

  - prefix one-line summary with "build: " and omit leading capital

For future reference, some of the above is mentioned in HACKING.
Here's what I pushed:

From 20a5a60c61a2a9f6b386b33533203c180de97a6c Mon Sep 17 00:00:00 2001
From: Jie Liu <jeff.liu <at> oracle.com>
Date: Sun, 11 Apr 2010 22:40:52 +0800
Subject: [PATCH] build: tell ./bootstrap to check for xz up-front

* bootstrap.conf (buildreq): Add xz to the list.
---
 bootstrap.conf |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/bootstrap.conf b/bootstrap.conf
index ad7d6d5..55b2f60 100644
--- a/bootstrap.conf
+++ b/bootstrap.conf
@@ -321,6 +321,7 @@ makeinfo   -
 perl       5.5
 rsync      -
 tar        -
+xz         -
 "

 # Automake requires that ChangeLog exist.
--
1.7.1.rc1.237.ge1730




Reply sent to Jim Meyering <jim <at> meyering.net>:
You have taken responsibility. (Sun, 11 Apr 2010 15:22:02 GMT) Full text and rfc822 format available.

Notification sent to "jeff.liu" <jeff.liu <at> oracle.com>:
bug acknowledged by developer. (Sun, 11 Apr 2010 15:22:02 GMT) Full text and rfc822 format available.

Message #13 received at 5927-done <at> debbugs.gnu.org (full text, mbox):

From: Jim Meyering <jim <at> meyering.net>
To: 5927-done <at> debbugs.gnu.org
Subject: Re: bug#5927: `xz' command not found when running 'make dist and
	distcheck'
Date: Sun, 11 Apr 2010 17:21:20 +0200
marking this as "done" in the tracker...




Information forwarded to owner <at> debbugs.gnu.org, bug-coreutils <at> gnu.org:
bug#5927; Package coreutils. (Sun, 11 Apr 2010 15:29:02 GMT) Full text and rfc822 format available.

Message #16 received at 5927 <at> debbugs.gnu.org (full text, mbox):

From: Pádraig Brady <P <at> draigBrady.com>
To: "jeff.liu" <jeff.liu <at> oracle.com>
Cc: 5927 <at> debbugs.gnu.org
Subject: Re: bug#5927: `xz' command not found when running 'make dist and
	distcheck'
Date: Sun, 11 Apr 2010 16:28:02 +0100
On 11/04/10 15:42, jeff.liu wrote:
> Hello,
> 
> I run into a problem when running `make dist/distcheck' on "uBuntu 8.0.4 - the Hardy Heron".
> 
> The error message shows the `xz` command not found:
> ...
> tardir=coreutils-8.4.84-8c4b6-dirty && /bin/bash
> /home/jeff/opensource_dev/coreutils/build-aux/missing --run tar chof - "$tardir" | xz -c
>> coreutils-8.4.84-8c4b6-dirty.tar.xz
> /bin/bash: xz: command not found
> WARNING: I can't seem to be able to run `tar' with the given arguments.
>          You may want to install GNU tar or Free paxutils, or check the
>          command line arguments.
> make: *** [dist] Error 127
> 
> 
> Is it make sense to add the pre-checking for `xz-utils' in 'boottrap.conf' like below?
> 
>>From e6f6bb41a4bb443cf894c151390182d23b2f957d Mon Sep 17 00:00:00 2001
> From: Jie Liu <jeff.liu <at> oracle.com>
> Date: Sun, 11 Apr 2010 22:40:52 +0800
> Subject: [PATCH] Add `xz-utils` pre-checking in bootstrap.conf
> 
> Signed-off-by: Jie Liu <jeff.liu <at> oracle.com>
> ---
>  bootstrap.conf |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/bootstrap.conf b/bootstrap.conf
> index ad7d6d5..55b2f60 100644
> --- a/bootstrap.conf
> +++ b/bootstrap.conf
> @@ -321,6 +321,7 @@ makeinfo   -
>  perl       5.5
>  rsync      -
>  tar        -
> +xz         -
>  "
> 
>  # Automake requires that ChangeLog exist.

Note we used to have a requirement on the equivalent lzma util
but that was removed due to being unavailable on our build bot for example
http://git.savannah.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=cc0f637b
However things have moved forward and xz should be packaged for most
systems, so I think we should probably apply this to get early warning
about the xz dependency.

cheers,
Pádraig.




Information forwarded to owner <at> debbugs.gnu.org, bug-coreutils <at> gnu.org:
bug#5927; Package coreutils. (Mon, 12 Apr 2010 05:56:01 GMT) Full text and rfc822 format available.

Message #19 received at 5927 <at> debbugs.gnu.org (full text, mbox):

From: "jeff.liu" <jeff.liu <at> oracle.com>
To: Pádraig Brady <P <at> draigBrady.com>
Cc: 5927 <at> debbugs.gnu.org
Subject: Re: bug#5927: `xz' command not found when running 'make dist and
	distcheck'
Date: Mon, 12 Apr 2010 13:54:43 +0800
Pádraig Brady wrote:
> On 11/04/10 15:42, jeff.liu wrote:
>> Hello,
>>
>> I run into a problem when running `make dist/distcheck' on "uBuntu 8.0.4 - the Hardy Heron".
>>
>> The error message shows the `xz` command not found:
>> ...
>> tardir=coreutils-8.4.84-8c4b6-dirty && /bin/bash
>> /home/jeff/opensource_dev/coreutils/build-aux/missing --run tar chof - "$tardir" | xz -c
>>> coreutils-8.4.84-8c4b6-dirty.tar.xz
>> /bin/bash: xz: command not found
>> WARNING: I can't seem to be able to run `tar' with the given arguments.
>>          You may want to install GNU tar or Free paxutils, or check the
>>          command line arguments.
>> make: *** [dist] Error 127
>>
>>
>> Is it make sense to add the pre-checking for `xz-utils' in 'boottrap.conf' like below?
>>
>> >From e6f6bb41a4bb443cf894c151390182d23b2f957d Mon Sep 17 00:00:00 2001
>> From: Jie Liu <jeff.liu <at> oracle.com>
>> Date: Sun, 11 Apr 2010 22:40:52 +0800
>> Subject: [PATCH] Add `xz-utils` pre-checking in bootstrap.conf
>>
>> Signed-off-by: Jie Liu <jeff.liu <at> oracle.com>
>> ---
>>  bootstrap.conf |    1 +
>>  1 files changed, 1 insertions(+), 0 deletions(-)
>>
>> diff --git a/bootstrap.conf b/bootstrap.conf
>> index ad7d6d5..55b2f60 100644
>> --- a/bootstrap.conf
>> +++ b/bootstrap.conf
>> @@ -321,6 +321,7 @@ makeinfo   -
>>  perl       5.5
>>  rsync      -
>>  tar        -
>> +xz         -
>>  "
>>
>>  # Automake requires that ChangeLog exist.
> 
> Note we used to have a requirement on the equivalent lzma util
> but that was removed due to being unavailable on our build bot for example
> http://git.savannah.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=cc0f637b
> However things have moved forward and xz should be packaged for most
> systems, so I think we should probably apply this to get early warning
> about the xz dependency.
Thanks for the info!

But I am facing another 'make distcheck' issue even if `xz' available but the `tar' does not updated
to the version which support '-J' or '-xz' options.

The 'make distcheck' error shown as following:
.....
.....
mkdir -p /home/jeff/opensource_dev/coreutils/tests/torture/coreutils/test
/bin/bash /home/jeff/opensource_dev/coreutils/build-aux/missing --run tar -Jxf
coreutils-8.4.86-e6f6bb.tar.xz -C /home/jeff/opensource_dev/coreutils/tests/torture/coreutils/test
tar: invalid option -- J
Try `tar --help' or `tar --usage' for more information.
WARNING: I can't seem to be able to run `tar' with the given arguments.
         You may want to install GNU tar or Free paxutils, or check the
         command line arguments.
make[2]: *** [my-distcheck] Error 1
make[2]: Leaving directory `/home/jeff/opensource_dev/coreutils'
make[1]: *** [distcheck-hook] Error 2
make[1]: Leaving directory `/home/jeff/opensource_dev/coreutils'
make: *** [distcheck] Error 1

AFAICS, there have 3 ways to fix this problem:
1st, add `tar' version requirement for which at least support the xz package format in
bootstrap.conf, but looks this fix is not reasonable.

2nd, by referring to the link
http://git.savannah.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=cc0f637b), maybe a better way is
just skipping the pre-checking for `xz' as well as 'tar -Jxf' during 'make distcheck' if the
'xz-utils' does not shipped with the system.

3rd, still enable the pre-checking for `xz' in bootstrap.conf, but skip `tar -Jxf' in 'make
distcheck' stage.

> cheers,
> Pádraig.

Cheers,
-Jeff






Information forwarded to owner <at> debbugs.gnu.org, bug-coreutils <at> gnu.org:
bug#5927; Package coreutils. (Mon, 12 Apr 2010 05:59:02 GMT) Full text and rfc822 format available.

Message #22 received at 5927 <at> debbugs.gnu.org (full text, mbox):

From: "jeff.liu" <jeff.liu <at> oracle.com>
To: Jim Meyering <jim <at> meyering.net>
Cc: 5927 <at> debbugs.gnu.org
Subject: Re: bug#5927: `xz' command not found when running 'make dist and
	distcheck'
Date: Mon, 12 Apr 2010 13:57:55 +0800
Jim Meyering wrote:
> jeff.liu wrote:
>> I run into a problem when running `make dist/distcheck' on "uBuntu 8.0.4 - the Hardy Heron".
>>
>> The error message shows the `xz` command not found:
>> ...
>> tardir=coreutils-8.4.84-8c4b6-dirty && /bin/bash
>> /home/jeff/opensource_dev/coreutils/build-aux/missing --run tar chof - "$tardir" | xz -c
>>> coreutils-8.4.84-8c4b6-dirty.tar.xz
>> /bin/bash: xz: command not found
>> WARNING: I can't seem to be able to run `tar' with the given arguments.
>>          You may want to install GNU tar or Free paxutils, or check the
>>          command line arguments.
>> make: *** [dist] Error 127
>>
>> Is it make sense to add the pre-checking for `xz-utils' in 'boottrap.conf' like below?
>>
>> Subject: [PATCH] Add `xz-utils` pre-checking in bootstrap.conf
>>
>> Signed-off-by: Jie Liu <jeff.liu <at> oracle.com>
> 
> Good idea.  Thanks for the patch.
> I've applied that, but adjusted the commit log:
>   - remove the signed-off-by part (you're the Author:)
>   - add ChangeLog-style line, since a ChangeLog file is generated
>       from the commit logs.
> 
>       * bootstrap.conf (buildreq): Add xz to the list.
> 
>   - prefix one-line summary with "build: " and omit leading capital
> 
> For future reference, some of the above is mentioned in HACKING.
> Here's what I pushed:
> 
> From 20a5a60c61a2a9f6b386b33533203c180de97a6c Mon Sep 17 00:00:00 2001
> From: Jie Liu <jeff.liu <at> oracle.com>
> Date: Sun, 11 Apr 2010 22:40:52 +0800
> Subject: [PATCH] build: tell ./bootstrap to check for xz up-front
> 
> * bootstrap.conf (buildreq): Add xz to the list.
> ---
>  bootstrap.conf |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/bootstrap.conf b/bootstrap.conf
> index ad7d6d5..55b2f60 100644
> --- a/bootstrap.conf
> +++ b/bootstrap.conf
> @@ -321,6 +321,7 @@ makeinfo   -
>  perl       5.5
>  rsync      -
>  tar        -
> +xz         -
>  "
> 
>  # Automake requires that ChangeLog exist.
> --
> 1.7.1.rc1.237.ge1730
> 
> 
> 
> 

Thanks!

but unfortunately, I run into another issue for 'make distcheck' regarding to the `tar -J' option:

.....
mkdir -p /home/jeff/opensource_dev/coreutils/tests/torture/coreutils/test
/bin/bash /home/jeff/opensource_dev/coreutils/build-aux/missing --run tar -Jxf
coreutils-8.4.86-e6f6bb.tar.xz -C /home/jeff/opensource_dev/coreutils/tests/torture/coreutils/test
tar: invalid option -- J
Try `tar --help' or `tar --usage' for more information.
WARNING: I can't seem to be able to run `tar' with the given arguments.
         You may want to install GNU tar or Free paxutils, or check the
         command line arguments.
make[2]: *** [my-distcheck] Error 1
make[2]: Leaving directory `/home/jeff/opensource_dev/coreutils'
make[1]: *** [distcheck-hook] Error 2
make[1]: Leaving directory `/home/jeff/opensource_dev/coreutils'
make: *** [distcheck] Error 1


Maybe we need another approach to handle the `xz` not available case.


Thanks,
-Jeff




Information forwarded to owner <at> debbugs.gnu.org, bug-coreutils <at> gnu.org:
bug#5927; Package coreutils. (Mon, 12 Apr 2010 06:21:02 GMT) Full text and rfc822 format available.

Message #25 received at 5927 <at> debbugs.gnu.org (full text, mbox):

From: "Gilles Espinasse" <g.esp <at> free.fr>
To: Pádraig Brady <P <at> draigBrady.com>,
	"jeff.liu" <jeff.liu <at> oracle.com>
Cc: 5927 <at> debbugs.gnu.org
Subject: Re: bug#5927: `xz' command not found when running 'make dist
	anddistcheck'
Date: Mon, 12 Apr 2010 08:12:27 +0200
----- Original Message ----- 
From: "jeff.liu" <jeff.liu <at> oracle.com>
To: "Pádraig Brady" <P <at> draigBrady.com>
Cc: <5927 <at> debbugs.gnu.org>
Sent: Monday, April 12, 2010 7:54 AM
Subject: bug#5927: `xz' command not found when running 'make dist
anddistcheck'


Pádraig Brady wrote:
> On 11/04/10 15:42, jeff.liu wrote:
>> Hello,
>>
>> I run into a problem when running `make dist/distcheck' on "uBuntu
8.0.4 - the Hardy Heron".
>>
>> The error message shows the `xz` command not found:
>> ...
>> tardir=coreutils-8.4.84-8c4b6-dirty && /bin/bash
>> /home/jeff/opensource_dev/coreutils/build-aux/missing --run tar chof -
"$tardir" | xz -c
>>> coreutils-8.4.84-8c4b6-dirty.tar.xz
>> /bin/bash: xz: command not found
>> WARNING: I can't seem to be able to run `tar' with the given arguments.
>>          You may want to install GNU tar or Free paxutils, or check the
>>          command line arguments.
>> make: *** [dist] Error 127
>>
there, tar is used with a pipe, so tar has no xz requirement

...

> But I am facing another 'make distcheck' issue even if `xz' available but
the `tar' does not updated
> to the version which support '-J' or '-xz' options.
>
> The 'make distcheck' error shown as following:
> .....
> .....
> mkdir -p /home/jeff/opensource_dev/coreutils/tests/torture/coreutils/test
> /bin/bash /home/jeff/opensource_dev/coreutils/build-aux/missing --run
tar -Jxf
> coreutils-8.4.86-e6f6bb.tar.xz -C
/home/jeff/opensource_dev/coreutils/tests/torture/coreutils/test
> tar: invalid option -- J
>
why not use a pipe there too instead of -J?

Gilles





Information forwarded to owner <at> debbugs.gnu.org, bug-coreutils <at> gnu.org:
bug#5927; Package coreutils. (Mon, 12 Apr 2010 06:24:01 GMT) Full text and rfc822 format available.

Message #28 received at 5927 <at> debbugs.gnu.org (full text, mbox):

From: Jim Meyering <jim <at> meyering.net>
To: "jeff.liu" <jeff.liu <at> oracle.com>
Cc: 5927 <at> debbugs.gnu.org, Pádraig Brady <P <at> draigBrady.com>
Subject: Re: bug#5927: `xz' command not found when running 'make dist and
	distcheck'
Date: Mon, 12 Apr 2010 08:22:53 +0200
jeff.liu wrote:
...
> But I am facing another 'make distcheck' issue even if `xz' available but the `tar' does not updated
> to the version which support '-J' or '-xz' options.
>
> The 'make distcheck' error shown as following:
> /bin/bash /home/jeff/opensource_dev/coreutils/build-aux/missing --run tar -Jxf
> coreutils-8.4.86-e6f6bb.tar.xz -C /home/jeff/opensource_dev/coreutils/tests/torture/coreutils/test
> tar: invalid option -- J
> Try `tar --help' or `tar --usage' for more information.
> WARNING: I can't seem to be able to run `tar' with the given arguments.
>          You may want to install GNU tar or Free paxutils, or check the
>          command line arguments.

For now, I suggest you simply install a new enough version of tar,
as suggested.

We assume that someone interested enough to run "make distcheck" is
also using a system that is sufficiently modern.
If your system/tools are not up to date enough, you'll probably
encounter other problems, too.

From HACKING,

    Run "make syntax-check", or even "make distcheck"
    ================================================
    Making either of those targets runs many integrity and
    project-specific policy-conformance tests.  For example, the former
    ensures that you add no trailing blanks and no uses of certain deprecated
    functions.  The latter performs all "syntax-check" tests, and also
    ensures that the build completes with no warnings when using a certain
    set of gcc -W... options.

**  Don't even bother running "make distcheck"
**  unless you have a reasonably up to date installation including recent
**  versions of gcc and the linux kernel, and modern GNU tools.




Information forwarded to owner <at> debbugs.gnu.org, bug-coreutils <at> gnu.org:
bug#5927; Package coreutils. (Mon, 12 Apr 2010 06:31:01 GMT) Full text and rfc822 format available.

Message #31 received at 5927 <at> debbugs.gnu.org (full text, mbox):

From: "jeff.liu" <jeff.liu <at> oracle.com>
To: Jim Meyering <jim <at> meyering.net>
Cc: 5927 <at> debbugs.gnu.org, Pádraig Brady <P <at> draigBrady.com>
Subject: Re: bug#5927: `xz' command not found when running 'make dist and
	distcheck'
Date: Mon, 12 Apr 2010 14:29:37 +0800
Jim Meyering wrote:
> jeff.liu wrote:
> ...
>> But I am facing another 'make distcheck' issue even if `xz' available but the `tar' does not updated
>> to the version which support '-J' or '-xz' options.
>>
>> The 'make distcheck' error shown as following:
>> /bin/bash /home/jeff/opensource_dev/coreutils/build-aux/missing --run tar -Jxf
>> coreutils-8.4.86-e6f6bb.tar.xz -C /home/jeff/opensource_dev/coreutils/tests/torture/coreutils/test
>> tar: invalid option -- J
>> Try `tar --help' or `tar --usage' for more information.
>> WARNING: I can't seem to be able to run `tar' with the given arguments.
>>          You may want to install GNU tar or Free paxutils, or check the
>>          command line arguments.
> 
> For now, I suggest you simply install a new enough version of tar,
> as suggested.
> 
Yeah, I updated to the upstream tar, its ok now.

> We assume that someone interested enough to run "make distcheck" is
> also using a system that is sufficiently modern.
> If your system/tools are not up to date enough, you'll probably
> encounter other problems, too.
> 
> From HACKING,
> 
>     Run "make syntax-check", or even "make distcheck"
>     ================================================
>     Making either of those targets runs many integrity and
>     project-specific policy-conformance tests.  For example, the former
>     ensures that you add no trailing blanks and no uses of certain deprecated
>     functions.  The latter performs all "syntax-check" tests, and also
>     ensures that the build completes with no warnings when using a certain
>     set of gcc -W... options.
> 
> **  Don't even bother running "make distcheck"
> **  unless you have a reasonably up to date installation including recent
> **  versions of gcc and the linux kernel, and modern GNU tools.

Thanks,
-Jeff




Information forwarded to owner <at> debbugs.gnu.org, bug-coreutils <at> gnu.org:
bug#5927; Package coreutils. (Mon, 12 Apr 2010 06:38:02 GMT) Full text and rfc822 format available.

Message #34 received at 5927 <at> debbugs.gnu.org (full text, mbox):

From: "jeff.liu" <jeff.liu <at> oracle.com>
To: Gilles Espinasse <g.esp <at> free.fr>
Cc: 5927 <at> debbugs.gnu.org, Pádraig Brady <P <at> draigBrady.com>
Subject: Re: bug#5927: `xz' command not found when running 'make dist
	anddistcheck'
Date: Mon, 12 Apr 2010 14:36:30 +0800
Gilles Espinasse wrote:
> ----- Original Message ----- 
> From: "jeff.liu" <jeff.liu <at> oracle.com>
> To: "Pádraig Brady" <P <at> draigBrady.com>
> Cc: <5927 <at> debbugs.gnu.org>
> Sent: Monday, April 12, 2010 7:54 AM
> Subject: bug#5927: `xz' command not found when running 'make dist
> anddistcheck'
> 
> 
> Pádraig Brady wrote:
>> On 11/04/10 15:42, jeff.liu wrote:
>>> Hello,
>>>
>>> I run into a problem when running `make dist/distcheck' on "uBuntu
> 8.0.4 - the Hardy Heron".
>>> The error message shows the `xz` command not found:
>>> ...
>>> tardir=coreutils-8.4.84-8c4b6-dirty && /bin/bash
>>> /home/jeff/opensource_dev/coreutils/build-aux/missing --run tar chof -
> "$tardir" | xz -c
>>>> coreutils-8.4.84-8c4b6-dirty.tar.xz
>>> /bin/bash: xz: command not found
>>> WARNING: I can't seem to be able to run `tar' with the given arguments.
>>>          You may want to install GNU tar or Free paxutils, or check the
>>>          command line arguments.
>>> make: *** [dist] Error 127
>>>
> there, tar is used with a pipe, so tar has no xz requirement
> 
> ...
> 
>> But I am facing another 'make distcheck' issue even if `xz' available but
> the `tar' does not updated
>> to the version which support '-J' or '-xz' options.
>>
>> The 'make distcheck' error shown as following:
>> .....
>> .....
>> mkdir -p /home/jeff/opensource_dev/coreutils/tests/torture/coreutils/test
>> /bin/bash /home/jeff/opensource_dev/coreutils/build-aux/missing --run
> tar -Jxf
>> coreutils-8.4.86-e6f6bb.tar.xz -C
> /home/jeff/opensource_dev/coreutils/tests/torture/coreutils/test
>> tar: invalid option -- J
>>
> why not use a pipe there too instead of -J?
hah, really a good idea, but as Jim mentioned, update tar to the proper version conform to the
'HACKING'  preferences.

> 
> Gilles
> 
Thanks,
-Jeff




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 10 May 2010 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 15 years and 47 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.