Bug 179313 - ruby 1.9.3.429 disagrees with bsd.ruby.mk
Summary: ruby 1.9.3.429 disagrees with bsd.ruby.mk
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Baptiste Daroussin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-04 21:30 UTC by Garrett Wollman
Modified: 2013-06-05 12:50 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Garrett Wollman 2013-06-04 21:30:00 UTC
bsd.ruby.mk thinks that RUBY_ARCH should be "amd64-freebsd9".  However,
the latest lang/ruby19 installs things in "x86_64-freebsd9".  The
result is an unusable package with architecture-dependent files missing.

Fix: 

Don't know -- do we want to follow Ruby here or do we want to hack
Ruby to use the same name as we do?  Where is Ruby even doing this?
How-To-Repeat: 
poudriere testport ... -o lang/ruby19

Extracts from the build logs:

./miniruby -I./lib -I. -I.ext/common  ./tool/rbinstall.rb --make="make" --dest-dir=""  --extout=".ext"  --mflags=""  --make-flags=" ARCH=amd64 OPSYS=FreeBSD OSREL=9.1 OSVERSION=901000 SYSTEMVERSION="  --data-mode=0644  --prog-mode=0755  --installed-list .installed.list  --mantype="doc" --install=all --rdoc-output=".ext/rdoc"
installing binary commands:   /prefix/ruby-1.9.3.429_1/bin
installing base libraries:    /prefix/ruby-1.9.3.429_1/lib
installing arch files:        /prefix/ruby-1.9.3.429_1/lib/ruby/1.9/x86_64-freebsd9
installing pkgconfig data:    /prefix/ruby-1.9.3.429_1/libdata/pkgconfig
installing extension objects: /prefix/ruby-1.9.3.429_1/lib/ruby/1.9/x86_64-freebsd9
installing extension objects: /prefix/ruby-1.9.3.429_1/lib/ruby/site_ruby/1.9/x86_64-freebsd9
installing extension objects: /prefix/ruby-1.9.3.429_1/lib/ruby/vendor_ruby/1.9/x86_64-freebsd9
installing extension headers: /prefix/ruby-1.9.3.429_1/include/ruby-1.9//x86_64-freebsd9

....

pkg-static: lstat(/prefix/ruby-1.9.3.429_1/include/ruby-1.9/amd64-freebsd9/ruby/config.h): No such file or directory
pkg-static: DEVELOPER_MODE: Plist error, missing file: include/ruby-1.9/amd64-freebsd9/ruby/config.h
pkg-static: lstat(/prefix/ruby-1.9.3.429_1/include/ruby-1.9/amd64-freebsd9/ruby/): No such file or directory
pkg-static: DEVELOPER_MODE: Plist error: @dirrm include/ruby-1.9/amd64-freebsd9/ruby
pkg-static: lstat(/prefix/ruby-1.9.3.429_1/include/ruby-1.9/amd64-freebsd9/): No such file or directory
pkg-static: DEVELOPER_MODE: Plist error: @dirrm include/ruby-1.9/amd64-freebsd9
pkg-static: lstat(/prefix/ruby-1.9.3.429_1/lib/ruby/1.9/amd64-freebsd9/bigdecimal.so): No such file or directory
pkg-static: DEVELOPER_MODE: Plist error, missing file: lib/ruby/1.9/amd64-freebsd9/bigdecimal.so
pkg-static: lstat(/prefix/ruby-1.9.3.429_1/lib/ruby/1.9/amd64-freebsd9/continuation.so): No such file or directory

...
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-06-04 21:30:19 UTC
Responsible Changed
From-To: freebsd-ports-bugs->ruby

bsd.ruby.mk is ruby territory (via the GNATS Auto Assign Tool)
Comment 2 Stanislav Sedov freebsd_committer freebsd_triage 2013-06-05 00:01:21 UTC
I have never seen this.  Are you sure it is not a poudriere bug (which
I assume some tool to test a port)?  Can you, please, verify that it
happens when installing from port as well?

Thanks.

-- 
Stanislav Sedov
ST4096-RIPE

()  ascii ribbon campaign - against html e-mail 
/\  www.asciiribbon.org   - against proprietary attachments
Comment 3 Mark Linimon freebsd_committer freebsd_triage 2013-06-05 03:42:12 UTC
Responsible Changed
From-To: ruby->bapt

May be fallout from http://svnweb.freebsd.org/changeset/ports/319866 .
Comment 4 Mark Linimon 2013-06-05 10:38:17 UTC
----- Forwarded message from Garrett Wollman <wollman@bimajority.org> -----

Date: Tue, 4 Jun 2013 23:20:46 -0400
From: Garrett Wollman <wollman@bimajority.org>
To: linimon@freebsd.org
Cc: ruby@freebsd.org, bapt@freebsd.org
Subject: Re: ports/179313: ruby 1.9.3.429 disagrees with bsd.ruby.mk
X-Mailer: VM 7.17 under 21.4 (patch 22) "Instant Classic" XEmacs Lucid

<<On Wed, 5 Jun 2013 02:43:14 GMT, linimon@freebsd.org said:

> May be fallout from http://svnweb.freebsd.org/changeset/ports/319866 .

More likely, r319875 makes *exactly* this change:

Index: config.sub
===================================================================
--- config.sub  (revision 319874)
+++ config.sub  (revision 319875)
@@ -473,6 +473,12 @@
                basic_machine=a29k-none
                os=-bsd
                ;;
+       amd64)
+               basic_machine=x86_64-pc
+               ;;
+       amd64-*)
+               basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
+               ;;
        amdahl)
                basic_machine=580-amdahl
                os=-sysv

...and I can confirm that rolling back to r319483 fixes the problem.

-GAWollman

----- End forwarded message -----
Comment 5 Bryan Drewery freebsd_committer freebsd_triage 2013-06-05 12:50:28 UTC
State Changed
From-To: open->closed

Fixed in r319948, thank you for reporting.