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

Re: Bug#740564: apt-listbugs: auxiliary script send-hook-info.rb fails to work with Ruby 2.0



On Sun, 02 Mar 2014 23:32:07 +0100 Francesco Poli (wintermute) wrote:

[...]
> I am filing this bug report against my own package, since I noticed
> something awkward that I am unable to understand.
> Hence this is intended as both a reminder of the issue and a call for
> help.
[...]
> Do anyone have any idea of what's wrong and how it may be fixed?

Hello Debian Ruby regulars,
could some of you please take a look at bug #740564, hoping it is not
too much bother?
Does anyone have any idea of what's wrong?

I had initially contacted Antonio Terceiro, who was kind enough to
point out
http://developer.zendesk.com/blog/2013/10/09/ruby-2-0-changes-exec-bundler/
which "looks related", as he said.

However, I failed to understand how I could fix the script: I tried with
the following modification

--- apt-listbugs/examples/send-hook-info.rb     2014-02-23 16:31:54.000000000 +0100
+++ TEST_send-hook-info.rb      2014-03-03 23:17:29.000000000 +0100
@@ -6,7 +6,7 @@
 #                    "apt-listbugs apt" without the need to invoke APT)
 #
 # Copyright (C) 2013       Google Inc
-# Copyright (C) 2013       Francesco Poli <invernomuto@paranoici.org>
+# Copyright (C) 2013-2014  Francesco Poli <invernomuto@paranoici.org>
 #
 #  This program is free software; you can redistribute it and/or modify
 #  it under the terms of the GNU General Public License as published by
@@ -52,7 +52,7 @@
 if Process.fork().nil?
   # the child
   write_fd.close
-  exec command
+  exec(command, :close_others=>false)
   read_fd.close
   exit 0
 else



but it does not seem to change anything in the tests described in bug
#740564...

Any more brilliant idea than my clumsy attempt?!?   ;-)

Thanks a lot for any help you may provide.


P.S.: please keep the bug address in Cc:, thanks!

-- 
 http://www.inventati.org/frx/frx-gpg-key-transition-2010.txt
 New GnuPG key, see the transition document!
..................................................... Francesco Poli .
 GnuPG key fpr == CA01 1147 9CD2 EFDF FB82  3925 3E1C 27E1 1F69 BFFE

Attachment: pgplEaNPZFts3.pgp
Description: PGP signature


Reply to: