Bug#698147: ruby-prof: cannot load such file: ruby-prof
Package: ruby-prof Version: 0.7.3-1.1 Severity: important Dear Maintainer, With the default version of the ruby interpreter now 1.9, ruby-prof does not run anymore on the shell commandline: $ ruby-prof /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- ruby-prof (LoadError) from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /usr/bin/ruby-prof:45:in `' A quick fix is to update the shebang line in /usr/bin/ruby-prof from #!/usr/bin/ruby to #!/usr/bin/ruby1.8 Regards, -- Yoann Guillot -- System Information: Debian Release: 7.0 APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (x86_64) Kernel: Linux 3.3.8-grsec (SMP w/2 CPU cores) Locale: LANG=C, LC_CTYPE=fr_FR (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C) Shell: /bin/sh linked to /bin/bash Versions of packages ruby-prof depends on: ii libc6 2.13-38 ii libruby1.8 1.8.7.358-6 ii rake0.9.2.2-4 ii ruby1.8 1.8.7.358-6 ruby-prof recommends no packages. ruby-prof suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Bug#632071: ruby-cairo is fully broken
Package: ruby-cairo Version: 1.10.0-1 Severity: grave Justification: renders package unusable Current ruby-cairo is fully broken in debian unstable with ruby1.8. $ ruby -v ruby 1.8.7 (2011-02-18 patchlevel 334) [i486-linux] $ ruby -r cairo -e 'puts :ok' /usr/lib/ruby/vendor_ruby/1.8/i486-linux/cairo.so: uninitialized constant Cairo::Color (NameError) $ echo $? 1 This also breaks libgtk2-ruby1.8 that depends on it $ ruby -r gtk2 -e '' /usr/lib/ruby/vendor_ruby/1.8/i486-linux/cairo.so: uninitialized constant Cairo::Color (NameError) from /usr/lib/ruby/1.8/pango.rb:12 from /usr/lib/ruby/1.8/gtk2/base.rb:13:in `require' from /usr/lib/ruby/1.8/gtk2/base.rb:13 from /usr/lib/ruby/1.8/gtk2.rb:10:in `require' from /usr/lib/ruby/1.8/gtk2.rb:10 -- System Information: Debian Release: wheezy/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'stable') Architecture: i386 (x86_64) Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores) Locale: LANG=C, LC_CTYPE=fr_FR@euro (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C) Shell: /bin/sh linked to /bin/bash Versions of packages ruby-cairo depends on: ii libc62.13-7 Embedded GNU C Library: Shared lib ii libcairo21.10.2-6The Cairo 2D vector graphics libra ii libruby1.8 1.8.7.334-5 Libraries necessary to run Ruby 1. ii ruby 4.8 Transitional package for ruby1.8 ii ruby1.8 [ruby-interpreter] 1.8.7.334-5 Interpreter of object-oriented scr ruby-cairo recommends no packages. ruby-cairo suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Bug#592063: bip should be compiled with -pie
Package: bip Version: 0.8.4-1 Severity: wishlist Bip should be compiled with gcc -pie, in order to be ASLR-aware. Many other network services are already pic in debian, eg apache, sshd. -- System Information: Debian Release: squeeze/sid APT prefers unstable Architecture: i386 (x86_64) Kernel: Linux 2.0.12-zob Locale: LANG=C, LC_CTYPE=fruh_FRUH (ignored: LC_ALL set to C) Shell: /bin/sh linked to /bin/bush Versions of packages bip depends on: ii adduser 3.112 add and remove users and groups ii libc6 2.11.2-2 Embedded GNU C Library: Shared lib ii libssl0.9.8 0.9.8o-1 SSL shared libraries ii lsb-base 3.2-23.1 Linux Standard Base 3.2 init scrip bip recommends no packages. bip suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Bug#587889: netcat6: nc6 does not wait on stdin when open in client mode
Package: netcat6 Version: 1.0-6 Severity: important Hi, Netcat6 does not wait on stdin when in client mode. Steps to repeat: $ nc www.google.com 80 Effects: the nc binary returns immediately after connecting Expected effect: nc waits for lines on stdin, then forwards them through the remote socket The expected behavior exists on Ubuntu, which has nc6 1.0-5, so the bug may have been introduced in 1.0-6. -- System Information: Debian Release: squeeze/sid APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: i386 (x86_64) Kernel: Linux 2.6.33.2 (SMP w/1 CPU core) Locale: LANG=C, LC_CTYPE=fr_FR (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C) Shell: /bin/sh linked to /bin/bash Versions of packages netcat6 depends on: ii libc6 2.11.2-1 Embedded GNU C Library: Shared lib netcat6 recommends no packages. netcat6 suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Bug#498277: readline: readline discards input data when run with rl_event_hook
Package: libreadline5 Version: 5.2-3 Severity: important File: readline Tags: patch Readline discards input data due to an off-by-one error on the ibuffer free size calculation. This buffer is only used when the program defines the rl_event_hook callback. To reproduce, run the following code: ***sample*** #include #include int dummy(void) { return 0; } int main(void) { char *str; rl_event_hook = &dummy; str = readline("> "); printf("got '%s'\n", str); return 0; } // try to run ruby -e 'puts "01"*513' | ./readtest *** end of sample *** this should display a 1026 character string, but the first 2*512 char are discarded. You can also generate the same string, fire irb (the interactive ruby shell), and paste it on the prompt: you'll notice that the characters at position 511 and 1022 have disappeared. The following patch fixes these issues. ***patch*** --- input.c.old 2008-09-08 18:12:04.0 +0200 +++ input.c 2008-09-08 18:13:27.0 +0200 @@ -134,7 +134,7 @@ *key = ibuffer[pop_index++]; - if (pop_index >= ibuffer_len) + if (pop_index > ibuffer_len) pop_index = 0; return (1); @@ -373,7 +373,7 @@ RL_SETSTATE (RL_STATE_INPUTPENDING); } ibuffer[push_index++] = key; - if (push_index >= ibuffer_len) + if (push_index > ibuffer_len) push_index = 0; return 1; *** end of patch *** -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Kernel: Linux 2.6.21.1-grsec Locale: LANG=C, LC_CTYPE=fr_FR (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C) Shell: /bin/sh linked to /bin/bash Versions of packages libreadline5 depends on: ii libc6 2.7-13 GNU C Library: Shared libraries ii libncurses5 5.6+20080906-1 shared libraries for terminal hand ii readline-common 5.2-3 GNU readline and history libraries libreadline5 recommends no packages. libreadline5 suggests no packages. -- no debconf information -- Yoann Guillot -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#481488: home directory readonly makes bip segfault
Package: bip Version: 0.7.1-1 Severity: minor Tags: patch When run with a read-only $HOME directory, bip segfaults as it tries to create the ~/.oidentd.conf due to improper return value check. The attached patch fixes the issue. It also remove the warning 'users logs will be mixed' when only one user is configured. -- jj -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Kernel: Linux 2.6.21.1-grsec Locale: LANG=C, LC_CTYPE=fr_FR (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C) Shell: /bin/sh linked to /bin/bash Versions of packages bip depends on: ii adduser 3.107 add and remove users and groups ii libc6 2.7-11 GNU C Library: Shared libraries ii libssl0.9.8 0.9.8g-10 SSL shared libraries ii lsb-base 3.2-12 Linux Standard Base 3.2 init scrip bip recommends no packages. -- no debconf information diff -ur bip-0.7.1-old/src/bip.c bip-0.7.1-new/src/bip.c --- bip-0.7.1-old/src/bip.c 2008-04-02 23:49:48.0 +0200 +++ bip-0.7.1-new/src/bip.c 2008-05-16 14:53:31.0 +0200 @@ -848,7 +848,9 @@ } } - if (strstr(conf_log_format, "%u") == NULL) + hash_it_init(&bip->users, &it); + hash_it_next(&it); + if (hash_it_item(&it) && !strstr(conf_log_format, "%u")) mylog(LOG_WARN, "log_format does not contain %%u, all users'" " logs will be mixed !"); return r; diff -ur bip-0.7.1-old/src/irc.c bip-0.7.1-new/src/irc.c --- bip-0.7.1-old/src/irc.c 2008-04-02 23:49:48.0 +0200 +++ bip-0.7.1-new/src/irc.c 2008-05-16 15:08:50.0 +0200 @@ -2121,8 +2121,7 @@ char tag_written = 0; if (stat(bip->oidentdpath, &stats) == -1) { - if (errno == ENOENT) { - f = fopen(bip->oidentdpath, "w+"); + if (errno == ENOENT && (f = fopen(bip->oidentdpath, "w+"))) fchmod(fileno(f), 0644); } else { mylog(LOG_WARN, "Can't open/create %s", @@ -2130,6 +2129,7 @@ return; } } else { + /* strip previously autogenerated content */ char *content; f = fopen(bip->oidentdpath, "r+"); @@ -2143,7 +2143,7 @@ if (content == NULL){ fatal("out of memory"); - return; + goto clean_oidentd; } if (fread(content, 1, stats.st_size, f) !=
Bug#473999: bip: bugs in the configuration file validation
Package: bip Version: 0.7.0-1 Severity: normal Tags: patch when you have a user with no default nick/user/realname, even if all connections have one defined, bip quits with the simple message 'FATAL: Not starting: error in config file.' The patch fixes the check, and adds a log message. There is also an invalid check for whether ssl_check_mode has been defined : the legal value "none" is treated as if the option was not specified, and bip quits. The patch removes this check, which may not be the best solution (maybe change SSL_CHECK_NONE to something != 0) Not in patch: The -s option is not documented, and should supersede the $HOME environment value. -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Kernel: Linux 2.6.21.1-grsec Locale: LANG=C, LC_CTYPE=fr_FR (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C) Shell: /bin/sh linked to /bin/bash Versions of packages bip depends on: ii adduser 3.107 add and remove users and groups ii libc6 2.7-10 GNU C Library: Shared libraries ii libssl0.9.8 0.9.8g-8 SSL shared libraries ii lsb-base 3.2-6 Linux Standard Base 3.2 init scrip bip recommends no packages. -- no debconf information Only in bip-0.7.0-patch: Makefile Only in bip-0.7.0-patch: config.log Only in bip-0.7.0-patch: config.status Only in bip-0.7.0-patch/samples: Makefile Only in bip-0.7.0-patch/src: .bip.c.swp Only in bip-0.7.0-patch/src: .deps Only in bip-0.7.0-patch/src: Makefile diff -r -u bip-0.7.0/src/bip.c bip-0.7.0-patch/src/bip.c --- bip-0.7.0/src/bip.c 2008-02-16 11:24:34.0 +0100 +++ bip-0.7.0-patch/src/bip.c 2008-04-02 17:14:42.0 +0200 @@ -565,6 +565,8 @@ l->ssl_check_mode = SSL_CHECK_BASIC; if (strcmp(t->pdata, "ca") == 0) l->ssl_check_mode = SSL_CHECK_CA; + if (strcmp(t->pdata, "none") == 0) +l->ssl_check_mode = SSL_CHECK_NONE; break; #else case LEX_SSL_CHECK_MODE: @@ -744,10 +746,12 @@ break; #ifdef HAVE_LIBSSL case LEX_SSL_CHECK_MODE: - if (!strncmp(t->pdata, "basic", 5)) + if (!strcmp(t->pdata, "basic")) u->ssl_check_mode = SSL_CHECK_BASIC; - if (!strncmp(t->pdata, "ca", 2)) + if (!strcmp(t->pdata, "ca")) u->ssl_check_mode = SSL_CHECK_CA; + if (!strcmp(t->pdata, "none")) +u->ssl_check_mode = SSL_CHECK_NONE; free(t->pdata); t->pdata = NULL; break; @@ -800,44 +804,38 @@ for (hash_it_init(&bip->users, &it); (user = hash_it_item(&it)); hash_it_next(&it)) { - if (!user->default_nick || !user->default_username || -!user->default_realname) { - for (hash_it_init(&user->connections, &sit); - (link = hash_it_item(&sit)); - hash_it_next(&sit)) { + for (hash_it_init(&user->connections, &sit); +(link = hash_it_item(&sit)); +hash_it_next(&sit)) { + if (!user->default_nick || !user->default_username || + !user->default_realname) { if ((!link->username && !user->default_username) || (!link->connect_nick && !user->default_nick) || (!link->realname && - !user->default_realname)) + !user->default_realname)) { + conf_die(bip, "user %s, " + "connection %s: you must defin" + "e nick, user and realname.", + user->name, link->name); link_kill(bip, link); + r = 0; +} + } -#ifdef HAVE_LIBSSL -if (link->network->ssl && -!link->ssl_check_mode) { - conf_die(bip, "user %s, " - "connection %s: you should " - "define a ssl_check_mode.", - user->name, link->name); - return 0; -} -#endif - -r = 0; - -for (hash_it_init(&link->chan_infos, &cit); - (ci = hash_it_item(&cit)); - hash_it_next(&cit)) { - if (!ci->name) { - conf_die(bip, "user %s, " - "connection " - "%s: channel must have" - "a name.", user->name, - link->name); - return 0; - } -} +// SSL_CHECK_NONE is 0 + for (hash_it_init(&link->chan_infos, &cit); + (ci = hash_it_item(&cit)); + hash_it_next(&cit)) { +if (!ci->name) { + conf_die(bip, "user %s, " + "connection " + "%s: channel must have" + "a name.", user->name, + link->name); + return 0; +} } } @@ -1194,6 +1192,7 @@ check_rlimits(); + // XXX jj: home VS conf_biphome.. home = getenv("HOME"); if (!home) { conf_die(&bip, "no $HOME !, do you live in a trailer ?"); Only in bip-0.7.0-patch/src: conf.c Only in bip-0.7.0-patch/src: conf.h Only in bip-0.7.0-patch/src: config.h Only in bip-0.7.0-patch/src: lex.c Only in bip-0.7.0-patch/src: stamp-h1