Debian Bug report logs - #341256
ruby1.8: configure.in uses non cross compilable AC_FUNC_SETPGRP

version graph

Package: ruby1.8; Maintainer for ruby1.8 is (unknown);

Reported by: "Marcus Crafter" <crafterm@debian.org>

Date: Tue, 29 Nov 2005 16:18:20 UTC

Severity: normal

Tags: patch

Found in version ruby1.8/1.8.3-3

Fixed in version ruby1.8/1.8.6.114-2

Done: Lucas Nussbaum <lucas@lucas-nussbaum.net>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, akira yamada <akira@debian.org>:
Bug#341256; Package ruby1.8. (full text, mbox, link).


Acknowledgement sent to "Marcus Crafter" <crafterm@debian.org>:
New Bug report received and forwarded. Copy sent to akira yamada <akira@debian.org>. (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: "Marcus Crafter" <crafterm@debian.org>
To: "Debian Bug Tracking System" <submit@bugs.debian.org>
Subject: ruby1.8: configure.in uses non cross compilable AC_FUNC_SETPGRP
Date: Tue, 29 Nov 2005 17:12:54 +0100
Package: ruby1.8
Version: 1.8.3-3
Severity: normal
Tags: patch

Hi There,

When cross compiling the ruby source to another arch, the autoconf
AC_FUNC_SETPGRP fails to work properly. Attached is a patch to fix this.

Cheers,

Marcus

--- ruby-1.8.3/configure.in.orig	2005-11-29 11:18:27.000000000 +0100
+++ ruby-1.8.3/configure.in	2005-11-29 11:19:46.000000000 +0100
@@ -529,7 +529,25 @@
 fi
 
 AC_FUNC_GETPGRP
-AC_FUNC_SETPGRP  
+
+dnl AC_FUNC_SETPGRP does not work if cross compiling
+dnl Instead, assume we will have a prototype for setpgrp if cross compiling.
+if test "$cross_compiling" = no; then
+  AC_FUNC_SETPGRP
+else
+  AC_CACHE_CHECK([whether setpgrp takes no argument], ac_cv_func_setpgrp_void,
+    [AC_TRY_COMPILE([
+#include <unistd.h>
+], [
+  if (setpgrp(1,1) == -1)
+    exit (0);
+  else
+    exit (1);
+], ac_cv_func_setpgrp_void=no, ac_cv_func_setpgrp_void=yes)])
+if test $ac_cv_func_setpgrp_void = yes; then
+  AC_DEFINE(SETPGRP_VOID, 1)
+fi
+fi
 
 AC_C_BIGENDIAN
 AC_C_CONST


-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (1200, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.14n
Locale: LANG=C, LC_CTYPE=C (charmap=ISO-8859-1) (ignored: LC_ALL set to en_US)

Versions of packages ruby1.8 depends on:
ii  libc6                         2.3.5-8    GNU C Library: Shared libraries an
ii  libruby1.8                    1.8.3-3    Libraries necessary to run Ruby 1.

ruby1.8 recommends no packages.

-- no debconf information



Information forwarded to debian-bugs-dist@lists.debian.org, akira yamada <akira@debian.org>:
Bug#341256; Package ruby1.8. (full text, mbox, link).


Acknowledgement sent to Lucas Nussbaum <lucas@lucas-nussbaum.net>:
Extra info received and forwarded to list. Copy sent to akira yamada <akira@debian.org>. (full text, mbox, link).


Message #10 received at 341256@bugs.debian.org (full text, mbox, reply):

From: Lucas Nussbaum <lucas@lucas-nussbaum.net>
To: 341256@bugs.debian.org
Subject: Re: Bug#341256: ruby1.8: configure.in uses non cross compilable AC_FUNC_SETPGRP
Date: Mon, 29 Oct 2007 18:43:39 +0100
On 29/11/05 at 17:12 +0100, Marcus Crafter wrote:
> Package: ruby1.8
> Version: 1.8.3-3
> Severity: normal
> Tags: patch
> 
> Hi There,
> 
> When cross compiling the ruby source to another arch, the autoconf
> AC_FUNC_SETPGRP fails to work properly. Attached is a patch to fix this.

Hi,

Is there any reason why we don't include that patch?

Thank you,

Lucas




Reply sent to Lucas Nussbaum <lucas@lucas-nussbaum.net>:
You have taken responsibility. (full text, mbox, link).


Notification sent to "Marcus Crafter" <crafterm@debian.org>:
Bug acknowledged by developer. (full text, mbox, link).


Message #15 received at 341256-close@bugs.debian.org (full text, mbox, reply):

From: Lucas Nussbaum <lucas@lucas-nussbaum.net>
To: 341256-close@bugs.debian.org
Subject: Bug#341256: fixed in ruby1.8 1.8.6.114-2
Date: Fri, 21 Mar 2008 11:47:09 +0000
Source: ruby1.8
Source-Version: 1.8.6.114-2

We believe that the bug you reported is fixed in the latest version of
ruby1.8, which is due to be installed in the Debian FTP archive:

irb1.8_1.8.6.114-2_all.deb
  to pool/main/r/ruby1.8/irb1.8_1.8.6.114-2_all.deb
libdbm-ruby1.8_1.8.6.114-2_i386.deb
  to pool/main/r/ruby1.8/libdbm-ruby1.8_1.8.6.114-2_i386.deb
libgdbm-ruby1.8_1.8.6.114-2_i386.deb
  to pool/main/r/ruby1.8/libgdbm-ruby1.8_1.8.6.114-2_i386.deb
libopenssl-ruby1.8_1.8.6.114-2_i386.deb
  to pool/main/r/ruby1.8/libopenssl-ruby1.8_1.8.6.114-2_i386.deb
libreadline-ruby1.8_1.8.6.114-2_i386.deb
  to pool/main/r/ruby1.8/libreadline-ruby1.8_1.8.6.114-2_i386.deb
libruby1.8-dbg_1.8.6.114-2_i386.deb
  to pool/main/r/ruby1.8/libruby1.8-dbg_1.8.6.114-2_i386.deb
libruby1.8_1.8.6.114-2_i386.deb
  to pool/main/r/ruby1.8/libruby1.8_1.8.6.114-2_i386.deb
libtcltk-ruby1.8_1.8.6.114-2_i386.deb
  to pool/main/r/ruby1.8/libtcltk-ruby1.8_1.8.6.114-2_i386.deb
rdoc1.8_1.8.6.114-2_all.deb
  to pool/main/r/ruby1.8/rdoc1.8_1.8.6.114-2_all.deb
ri1.8_1.8.6.114-2_all.deb
  to pool/main/r/ruby1.8/ri1.8_1.8.6.114-2_all.deb
ruby1.8-dev_1.8.6.114-2_i386.deb
  to pool/main/r/ruby1.8/ruby1.8-dev_1.8.6.114-2_i386.deb
ruby1.8-elisp_1.8.6.114-2_all.deb
  to pool/main/r/ruby1.8/ruby1.8-elisp_1.8.6.114-2_all.deb
ruby1.8-examples_1.8.6.114-2_all.deb
  to pool/main/r/ruby1.8/ruby1.8-examples_1.8.6.114-2_all.deb
ruby1.8_1.8.6.114-2.diff.gz
  to pool/main/r/ruby1.8/ruby1.8_1.8.6.114-2.diff.gz
ruby1.8_1.8.6.114-2.dsc
  to pool/main/r/ruby1.8/ruby1.8_1.8.6.114-2.dsc
ruby1.8_1.8.6.114-2_i386.deb
  to pool/main/r/ruby1.8/ruby1.8_1.8.6.114-2_i386.deb



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 341256@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Lucas Nussbaum <lucas@lucas-nussbaum.net> (supplier of updated ruby1.8 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 ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Fri, 21 Mar 2008 11:56:47 +0100
Source: ruby1.8
Binary: ruby1.8 libruby1.8 libruby1.8-dbg ruby1.8-dev libdbm-ruby1.8 libgdbm-ruby1.8 libreadline-ruby1.8 libtcltk-ruby1.8 libopenssl-ruby1.8 ruby1.8-examples ruby1.8-elisp ri1.8 rdoc1.8 irb1.8
Architecture: source all i386
Version: 1.8.6.114-2
Distribution: unstable
Urgency: low
Maintainer: akira yamada <akira@debian.org>
Changed-By: Lucas Nussbaum <lucas@lucas-nussbaum.net>
Description: 
 irb1.8     - Interactive Ruby (for Ruby 1.8)
 libdbm-ruby1.8 - DBM interface for Ruby 1.8
 libgdbm-ruby1.8 - GDBM interface for Ruby 1.8
 libopenssl-ruby1.8 - OpenSSL interface for Ruby 1.8
 libreadline-ruby1.8 - Readline interface for Ruby 1.8
 libruby1.8 - Libraries necessary to run Ruby 1.8
 libruby1.8-dbg - Debugging symbols for Ruby 1.8
 libtcltk-ruby1.8 - Tcl/Tk interface for Ruby 1.8
 rdoc1.8    - Generate documentation from Ruby source files (for Ruby 1.8)
 ri1.8      - Ruby Interactive reference (for Ruby 1.8)
 ruby1.8    - Interpreter of object-oriented scripting language Ruby 1.8
 ruby1.8-dev - Header files for compiling extension modules for the Ruby 1.8
 ruby1.8-elisp - ruby-mode for Emacsen
 ruby1.8-examples - Examples for Ruby 1.8
Closes: 341256 463297
Changes: 
 ruby1.8 (1.8.6.114-2) unstable; urgency=low
 .
   * No longer build using gcc-4.1 on m68k. Use the default gcc version.
     (Closes: #463297)
   * Added patch 102_configure.in-crosscompile to allow cross-compiling
     (Closes: #341256)
   * Add -g to CFLAGS (noticed by the Ubuntu folks).
Files: 
 5c410084e5f00716bcd007f4cb6a7c07 1228 interpreters optional ruby1.8_1.8.6.114-2.dsc
 27f80a71547c4bbb178ed0f8d5fabfbf 46398 interpreters optional ruby1.8_1.8.6.114-2.diff.gz
 5c7a3b836091519d4fc6f1294e3ea8ca 267820 interpreters optional ruby1.8-examples_1.8.6.114-2_all.deb
 e204c91e5d50b1a33f6b8ff5d75c53ad 237854 interpreters optional ruby1.8-elisp_1.8.6.114-2_all.deb
 2a15aad704d2fbac54fd9c00ef11c58d 1318346 interpreters optional ri1.8_1.8.6.114-2_all.deb
 795566819dce5c2a29229bb7f6ad43a8 337154 doc optional rdoc1.8_1.8.6.114-2_all.deb
 e7a50a202e39004ef76e867339f38517 262008 interpreters optional irb1.8_1.8.6.114-2_all.deb
 2919a97bc8393f663b067f9fd5ff8d9d 242464 interpreters optional ruby1.8_1.8.6.114-2_i386.deb
 021245549586edf436bcf54940073d17 1573790 libs optional libruby1.8_1.8.6.114-2_i386.deb
 1b56731c0397d47d1db257ada33c4862 1324452 libdevel extra libruby1.8-dbg_1.8.6.114-2_i386.deb
 2440115fdd018f4c05271adf41fb1cc6 744906 devel optional ruby1.8-dev_1.8.6.114-2_i386.deb
 8a085606f46492a6fae24fafc49698d2 223638 interpreters optional libdbm-ruby1.8_1.8.6.114-2_i386.deb
 01bd1811a65dac387bfbd3b9efa2083f 222580 interpreters optional libgdbm-ruby1.8_1.8.6.114-2_i386.deb
 e55373ad71489c7b168d3418c3c1a16b 222394 interpreters optional libreadline-ruby1.8_1.8.6.114-2_i386.deb
 a88726cb9cab9d9469a61652f6a11172 1887808 interpreters optional libtcltk-ruby1.8_1.8.6.114-2_i386.deb
 320d8d2014e8691cdd1e5357dbddbeb9 320432 interpreters optional libopenssl-ruby1.8_1.8.6.114-2_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFH45vx2hliNwI7P08RAuwBAKCp0BtjYZzCu8zujaxCZgzop8KSrwCfY3t+
emGbYG7Xx+MOSja2ilqr8tI=
=VSuI
-----END PGP SIGNATURE-----





Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Mon, 05 May 2008 07:35:48 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sat Dec 23 09:49:53 2023; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.