Summary: | dev-cpp/glibmm-2.18.1: failure unpacking glibmm-2.18.1.tar.bz2 with tar-1.21 | ||
---|---|---|---|
Product: | Portage Development | Reporter: | Etienne Hilson <etienne.hilson> |
Component: | Core - External Interaction | Assignee: | Portage team <dev-portage> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | adamkruk, base-system, gnome-mm+disabled |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
URL: | http://lists.gnu.org/archive/html/bug-tar/2008-12/msg00028.html | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 309001 | ||
Attachments: | revert the commit which removed sys_drain_input_pipe() |
Description
Etienne Hilson
2008-12-27 13:01:40 UTC
tar-1.21? sorry for my english. i emerge tar-1.20 and fix this problem.(In reply to comment #0) Confirming the bug. @portage, `tar -xjf /usr/portage/distfiles/glibmm-2.18.1.tar.bz2` correctly extract the files from the tarball. What could be going wrong here? Thanks It extracted successfully with tar-1.20 and after I upgrading to tar-1.21 it failed. It seems to be some sort of interaction between bzip2 and tar because bzip2's exit code is 141 and tar's exit code is 0: $ bzip2 -dc $DISTDIR/glibmm-2.18.1.tar.bz2 | tar xof - $ echo ${PIPESTATUS[@]} 141 0 Created attachment 176667 [details, diff] revert the commit which removed sys_drain_input_pipe() This patch seem to solve the problem be reverting the following commit: 2008-11-25 Sergey Poznyakoff <gray@gnu.org.ua> Do not try to drain the input pipe before closing the archive. * src/buffer.c (close_archive): Remove call to sys_drain_input_pipe. Pass hit_eof as the second argument to sys_wait_for_child. * src/common.h (sys_drain_input_pipe): Remove (sys_wait_for_child): Declare second argument. * src/system.c (sys_drain_input_pipe): Remove. (sys_wait_for_child): Take two arguments. The second one helps to decide whether to tolerate child termination on SIGPIPE. Patch for tar 1.21 is working. After applying this patch glibmm unpacked and compiled without problems.(In reply to comment #4) thanks Zac for figuring that out. ive committed tar-1.21-r1 with that one change reverted and moved the issue upstream. |