bug-automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#19614: make dist exits succesfully even when tar exits with error


From: Dimitrios Apostolou
Subject: bug#19614: make dist exits succesfully even when tar exits with error
Date: Fri, 16 Jan 2015 16:01:01 +0100 (CET)
User-agent: Alpine 2.10 (DEB 1266 2009-07-14)

(Please keep me CC'd as I'm not subscribed.)

Hello list,

as the title says, I believe running "make dist" should fail when tar fails. The problem is that because there is a shell pipeline with gzip, the exit code of the pipeline is 0. I'm not aware of a portable way to fix this (named pipes maybe?), but most convenient would be bash's "set -o pipefail".

Relevant output from "make V=1 dist":

tardir=cfengine-3.7.0a1.5ffcc54 && tar --format=ustar -chf - "$tardir" | 
GZIP=--best gzip -c >cfengine-3.7.0a1.5ffcc54.tar.gz
tar: 
cfengine-3.7.0a1.5ffcc54/tests/acceptance/17_users/unsafe/20_password_hash_is_not_cached_hpux_trusted.cf:
 link name is too long; not dumped
tar: 
cfengine-3.7.0a1.5ffcc54/tests/acceptance/17_users/unsafe/20_modify_user_unlock_with_password_hpux_trusted.cf:
 link name is too long; not dumped
tar: 
cfengine-3.7.0a1.5ffcc54/tests/acceptance/17_users/unsafe/10_modify_user_with_many_attributes_warn.cf:
 link name is too long; not dumped
tar: 
cfengine-3.7.0a1.5ffcc54/tests/acceptance/17_users/unsafe/20_modify_user_with_hashed_password_hpux_trusted.cf:
 link name is too long; not dumped
tar: 
cfengine-3.7.0a1.5ffcc54/tests/acceptance/17_users/unsafe/20_modify_user_lock_with_password_hpux_trusted.cf:
 link name is too long; not dumped
tar: 
cfengine-3.7.0a1.5ffcc54/tests/acceptance/17_users/unsafe/20_add_user_with_many_attributes_warn_hpux_trusted.cf:
 link name is too long; not dumped
tar: 
cfengine-3.7.0a1.5ffcc54/tests/acceptance/17_users/unsafe/20_modify_user_with_password_hpux_trusted.cf:
 link name is too long; not dumped
tar: 
cfengine-3.7.0a1.5ffcc54/tests/acceptance/17_users/unsafe/10_newly_created_account_should_not_count_as_locked.cf:
 link name is too long; not dumped
tar: 
cfengine-3.7.0a1.5ffcc54/tests/acceptance/17_users/unsafe/20_modify_user_with_many_attributes_hpux_trusted.cf:
 link name is too long; not dumped
tar: 
cfengine-3.7.0a1.5ffcc54/tests/acceptance/17_users/unsafe/20_add_user_with_hashed_password_hpux_trusted.cf:
 link name is too long; not dumped
tar: Exiting with failure status due to previous errors


(A separate bug report will come soon about the "link failure" despite tar "-h" option being used.)


Thanks,
Dimitris







reply via email to

[Prev in Thread] Current Thread [Next in Thread]