Bug 23187 - tar -t regression
Summary: tar -t regression
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: tar (show other bugs)
Version: unstable
Hardware: all Linux
: P3 minor
Assignee: placeholder@altlinux.org
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-19 09:02 MSK by Andrey Rahmatullin
Modified: 2010-03-21 01:16 MSK (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Rahmatullin 2010-03-19 09:02:14 MSK
+ LC_ALL=C
+ grep -qs '^QtCurve-KDE4-1\.2\.0\(/\|$\)'
+ tar -tf /home/wrar/tmp/QtCurve-KDE4-1.2.0.tar.bz2
tar: ошибка записи

Повторяется на разных репозиториях и тарболах. Файлы при этом, кажется, в рабкопии обновляются нормально.
Comment 1 Dmitry V. Levin 2010-03-19 20:02:00 MSK
В summary указан gear-update, однако в приведённом примере gear-update не упоминается.  Просьба уточнить, в чём проблема.
Comment 2 Andrey Rahmatullin 2010-03-19 20:06:02 MSK
Пример - кусок sh -efux gear-update ~/tmp/QtCurve-KDE4-1.2.0.tar.bz2 QtCurve-KDE4
Comment 3 Dmitry V. Levin 2010-03-19 20:24:26 MSK
А, это tar получает EPIPE, потому что grep уже всё нашёл, что искал, и завершился.
Я не помню, зачем в install_cleanup_handler() обрабатывается PIPE, но в результате пользователи видят шум в stderr.
Comment 4 Andrey Rahmatullin 2010-03-19 20:26:15 MSK
Т.е. программой можно спокойно пользоваться, она всё что надо сделала?
Comment 5 Dmitry V. Levin 2010-03-19 20:50:59 MSK
Да, это ложная тревога, все обработалось нормально.
Попробуйте убрать PIPE из install_cleanup_handler() -- эта ложная ошибка исчезнет, но не появится ли ещё какае-нибудь ругань?
Comment 6 Andrey Rahmatullin 2010-03-19 20:58:06 MSK
Из /usr/bin/gear-sh-functions? Сообщение не пропало.
Comment 7 Dmitry V. Levin 2010-03-19 21:32:20 MSK
А, так это, оказывается, regression в новой версии tar:
http://git.savannah.gnu.org/gitweb/?p=tar.git;a=commit;h=release_1_22-41-g0c6c288

Test case:
$ touch empty && tar -cf empty.tar empty && tar -tf empty.tar |:
tar: write error
Comment 8 Dmitry V. Levin 2010-03-20 15:17:25 MSK
I've finally convinced upstream that the change in tar is a bug:
http://lists.gnu.org/archive/html/bug-tar/2010-03/msg00046.html
Comment 9 Repository Robot 2010-03-21 01:16:36 MSK
tar-1.23-alt3 -> sisyphus:

* Sat Mar 20 2010 Dmitry V. Levin <ldv@altlinux> 1.23-alt3

- Updated to release_1_23-7-g340dbf5 (closes: #23187).
- Changed --rsh-command to have no default.