Project

General

Profile

Bug #10752

Ruby 2.2.0 does not build on FreeBSD 8.4

Added by swills (Steve Wills) almost 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Target version:
-
ruby -v:
ruby 2.2.0p0 (2014-12-25 revision 49005) [amd64-freebsd8]
[ruby-core:67655]

Description

Trying to build Ruby 2.2.0 on FreeBSD 8.4 produces an error:

vm_dump.c:718:25: error: libprocstat.h: No such file or directory

See http://poudriere.mouf.net/poudriere/data/84amd64-default/2015-01-17_15h18m45s/logs/errors/ruby-2.2.0.log for full log

Libprocstat is not available in 8.4, which is still supported until June 30, 2015. See https://www.freebsd.org/security/ for more details.

This happens because r45306 added support for libprocstat on FreeBSD without checking that libprocstat is available. The configure.in was updated to check for libprocstat in r45309, but nothing uses the result of this check to disable use of libprocstat if it's not available.

Attached is a patch which at least fixes the build issue on 8.4. I haven't verified it beyond that, in paticular, I haven't verified that it doesn't break things on newer versions (I only apply it to builds running on 8.4).


Files

extra-vm_dump.c (687 Bytes) extra-vm_dump.c swills (Steve Wills), 01/17/2015 05:06 PM

Updated by nobu (Nobuyoshi Nakada) almost 6 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

Applied in changeset r49321.


vm_dump.c: check by configured result

  • vm_dump.c (rb_vm_bugreport): check by configured result instead of system name for old FreeBSD. based on a patch by Steve Wills at [ruby-core:67655]. [Bug #10752]
#2

Updated by nobu (Nobuyoshi Nakada) almost 6 years ago

  • Backport changed from 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN to 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: REQUIRED

Updated by naruse (Yui NARUSE) almost 6 years ago

  • Backport changed from 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: REQUIRED to 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: DONE

ruby_2_2 r49330 merged revision(s) 49321.

Also available in: Atom PDF