Your message dated Sat, 01 Jul 2017 15:04:21 +0000 with message-id <[email protected]> and subject line Bug#862409: fixed in gem2deb 0.34 has caused the Debian Bug report #862409, regarding Concurrent gem2deb processes fail updating packages cache to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact [email protected] immediately.) -- 862409: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=862409 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---Package: gem2deb Version: 0.30.1 Tags: patch When two gem2deb processes are executed by the same user concurrently (e.g. in a CI system building many packages), the Gem2Deb::DhMakeRuby class can raise an error when updating its gem_to_package_data cache: -- Creating Debian source package from ./apipie-bindings-0.2.0.tar.gz ... /usr/lib/ruby/vendor_ruby/gem2deb/dh_make_ruby.rb:149:in `stat': No such file or directory @ rb_file_s_stat - /home/jenkins/.cache/gem2deb/gem_to_packages.yaml.new (Errno::ENOENT) from /usr/lib/ruby/vendor_ruby/gem2deb/dh_make_ruby.rb:149:in `generate_or_update_gem_to_package_data' from /usr/lib/ruby/vendor_ruby/gem2deb/dh_make_ruby.rb:66:in `initialize' from ../../gem2deb:96:in `new' from ../../gem2deb:96:in `<main>' It appears that both processes might be running the `apt-file` command, redirecting into the same .new file and then only one succeeds in moving the file, while the other fails to either stat or mv it. Patch against version 0.33.1 attached, which uses a separate temporary cache file per process, so it doesn't matter if another process is also updating the same cache. -- Dominic Cleal [email protected]--- lib/gem2deb/dh_make_ruby.rb.orig 2017-05-12 13:21:53.381044007 +0100 +++ lib/gem2deb/dh_make_ruby.rb 2017-05-12 13:23:06.368255601 +0100 @@ -144,11 +144,11 @@ end if update - new_cache = cache + '.new' + new_cache = cache + ".new.#{$$}" if system('apt-file search /usr/share/rubygems-integration/ > ' + new_cache) if File.stat(new_cache).size > 0 system('sed', '-i', '-e', 's#/.*/##; s/-[0-9.]\+.gemspec//', new_cache) - FileUtils.mv(cache + '.new', cache) + FileUtils.mv(new_cache, cache) else puts 'E: dh-make-ruby needs an up-to-date apt-file cache in order to map gem names' puts 'E: to package names but apt-file has an invalid cache. Please run '
--- End Message ---
--- Begin Message ---Source: gem2deb Source-Version: 0.34 We believe that the bug you reported is fixed in the latest version of gem2deb, which is due to be installed in the Debian FTP archive. A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to [email protected], and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Antonio Terceiro <[email protected]> (supplier of updated gem2deb package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing [email protected]) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Format: 1.8 Date: Sat, 01 Jul 2017 11:30:17 -0300 Source: gem2deb Binary: gem2deb gem2deb-test-runner Architecture: source Version: 0.34 Distribution: unstable Urgency: medium Maintainer: Debian Ruby Extras Maintainers <[email protected]> Changed-By: Antonio Terceiro <[email protected]> Description: gem2deb - Debian Ruby packaging suite gem2deb-test-runner - Debian Ruby packaging suite - tool to run tests Closes: 786521 862409 Changes: gem2deb (0.34) unstable; urgency=medium . [ Dominic Cleal ] * dh-make-ruby: support concurrent dh-make-ruby processes without one of them botching "gem to package" mapping cache (Closes: #862409) . [ Balasankar C ] * Change template copyright to Expat (Closes: #786521) . [ Antonio Terceiro ] * Fix most Ruby warning in the code. They were exposed by rake 12.0.0, which runs tests with warnings enabled by default. * dh-make-ruby: - Bump Standards-Version in produced packages to 4.0.0 * debian/control: - Bump Standards-Version to 4.0.0; no changes needed Checksums-Sha1: 6772cd92b8e87a51c37dc74d67124b61f91d9e32 2287 gem2deb_0.34.dsc 32b6b6a11656a10908721546fb5dc970442ffd5d 66656 gem2deb_0.34.tar.xz b7552e1353e37bc2345cbdcb4d50fe98900f98f6 7975 gem2deb_0.34_source.buildinfo Checksums-Sha256: b8dea4bbc949166fa18650589bc8cb22474f04e05c7f981b13a0deacf78f6ab5 2287 gem2deb_0.34.dsc 994cc473b45bf0dfc3e87e00b4939be361a60a0d365523841da79e7ed6feed80 66656 gem2deb_0.34.tar.xz dcdc1c18de511df59192e5b154b89a22ed2bd5db64a404214b369932604f5d00 7975 gem2deb_0.34_source.buildinfo Files: f3a4cf3d70aa2f4b174ae27c98a289d2 2287 ruby optional gem2deb_0.34.dsc a4de1c871f4d3f1eec2b1a406925334f 66656 ruby optional gem2deb_0.34.tar.xz 600dd5507e80bf9cbb3f0d3ee1e000f3 7975 ruby optional gem2deb_0.34_source.buildinfo -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEst7mYDbECCn80PEM/A2xu81GC94FAllXtEEACgkQ/A2xu81G C94OLhAA22Kl1Js6G1/g8frTs8Jodtn/13RzXW4XWg1oCHp+DHqgvdEyjwB0TiVK uFDXRj/NFzk/vTv+jJkzZ+Wu98IpG7pHcRBajZqpiG6EAvCly09azfgpD3o1sISF oCXwf7l40HB4ywx4lDMW+TD0mxOKI1rmINZXjU+I0y8Yr1HpUJXcji6l6gwzobHx 6kW3tpAujcjFftoBWok8mX2yC2XHf61vJ64BQlZFyPGnq9BEo4zJUJMUCNH3c+TU jn9u06DZCoKDFtCe/vdo7WRmnV1ga5nCvoFKe+1tCHW8fcI/Ax7wIFoV/FRfkRGZ 57wyeDzFcTfFUuG7IU0lM0CUmrMAhwGVpk+kiiQJwa1WQYNzdjEflokBTEe9EYP/ aUgzPyODOuWyn/qOhiDvXPgEVwL6ZIWqn2EaiAfldygoYNTHrKNgbbW6G+wB9FGe RzH7xHySNshzSwiAYMTXo0Ipy5whcwSA8+avf3xKW5Z4sGDfwsPdOlVtKTAEoWXW Nprv7Nyjb9EpvMPa+Xzp0QQDGp8ZUhIT9phx5dus0bqDg2k+jzCD/XpjVpfYNGbI zI1c7cpaVzB0BBSbwCQnPHvuSdAW5XjelRdPs981qWbMrKHmRgtC94NQ5DkNcRxU P/WEqCPqHvZOboPiIEVmJLvzUftVWJYbVuT2i/fEfQLpJBejwi8= =svoR -----END PGP SIGNATURE-----
--- End Message ---
_______________________________________________ Pkg-ruby-extras-maintainers mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-ruby-extras-maintainers
