Description of problem: When dpkg builds a package, it calls gtar --sort, but the version of tar supplied in RHEL 7 / CentOS 7 does not provide this option. Version-Release number of selected component (if applicable): dpkg-1.18.25-8.el7.x86_64 How reproducible: Always Steps to Reproduce: 1. Use dpkg-deb to build a package Actual results: Crash due to gtar not accepting the --sort option. Expected results: Built package. Additional info: The offending call is in scripts/Dpkg/Source/Archive.pm: $spawn_opts{exec} = [ $Dpkg::PROGTAR, '-cf', '-', '--format=gnu', '--sort=name', '--mtime', "\@$mtime", '--clamp-mtime', '--null', '--numeric-owner', '--owner=0', '--group=0', @{$opts{options}}, '-T', '-' ]; It can be solved by just dropping that option. I can provide a patch if needed.
yes please provide a patch , I will review it Thanks
hum --clamp-mtime should not be there ! , it already should be removed by this patch [1]. I will investigate more tomorrow [1] https://src.fedoraproject.org/rpms/dpkg/blob/epel7/f/dpkg-clamp-mtime.patch
A patch removing --sort=name will conflict with your patch removing --clamp-mtime. So either you do both, or I'll post mine after you commit yours.
Or I'll send a patch removing both :)
Created attachment 1608087 [details] patch removing --sort=name options from tar invocation
err , --sort was introduced also just in tar version 1.28 , I will think what is the best solution bundled tar 1.28 or still try user tar 1.27 from el7 . What do you think , we can live with tar without sort or not ? Thanks for the report .
Sorting is just a nice-to-have, I don't think there is any problem in not sorting.
Ping?
FEDORA-EPEL-2019-a3b4d50e09 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2019-a3b4d50e09
done
dpkg-1.18.25-9.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2019-a3b4d50e09
dpkg-1.18.25-9.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report.