NetBSD Problem Report #55469

From tsutsui@ceres.dti.ne.jp  Tue Jul  7 14:16:27 2020
Return-Path: <tsutsui@ceres.dti.ne.jp>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 8753D1A9213
	for <gnats-bugs@gnats.NetBSD.org>; Tue,  7 Jul 2020 14:16:27 +0000 (UTC)
Message-Id: <202007071416.067EGHC7020455@ceres.dti.ne.jp>
Date: Tue, 7 Jul 2020 23:16:17 +0900 (JST)
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
Reply-To: tsutsui@ceres.dti.ne.jp
To: gnats-bugs@NetBSD.org
Cc: tsutsui@ceres.dti.ne.jp
Subject: ruby-http-parser build fails on NetBSD/i386 9.0 and 2020Q2
X-Send-Pr-Version: 3.95

>Number:         55469
>Category:       pkg
>Synopsis:       ruby-http-parser build fails on NetBSD/i386 9.0 and 2020Q2
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jul 07 14:20:00 +0000 2020
>Closed-Date:    Tue Oct 13 14:28:17 +0000 2020
>Last-Modified:  Mon Nov 02 15:15:01 +0000 2020
>Originator:     Izumi Tsutsui
>Release:        NetBSD 9.0
>Organization:
>Environment:
System: NetBSD optiplex 9.0 NetBSD 9.0 (GENERIC) #0: Fri Feb 14 00:06:28 UTC 2020  mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
pkgsrc/www/ruby-http-parser build on NetBSD/i386 9.0 and pkgsrc-2020Q2 fails:

---
===> Installing for ruby26-http-parser-1.2.1
=> Generating pre-install file lists
=> Installing gem into installation root
Building native extensions. This could take a while...
Successfully installed http-parser-1.2.1
Parsing documentation for http-parser-1.2.1
Installing ri documentation for http-parser-1.2.1
Done installing documentation for http-parser after 0 seconds
1 gem installed
=> Cleaning intermediate gem build files
rm http-parser-1.2.1/ext/i386-netbsd/http-parser/http_parser.o
rm -f gem_make.out
rm -f *.log
=> gem install
=> Automatic manual page handling
=> Generating post-install file lists
pkg_create: can't stat `/s/obj.i386/pkgsrc/www/ruby-http-parser/work.i386/.destd
ir/usr/pkg/lib/ruby/gems/2.6.0/gems/http-parser-1.2.1/ext/i486-netbsdelf/libhttp
-parser-ext.so'
=> Checking file-check results for ruby26-http-parser-1.2.1
ERROR: ************************************************************
ERROR: The following files are in the PLIST but not in /s/obj.i386/pkgsrc/www/ru
by-http-parser/work.i386/.destdir/usr/pkg:
ERROR:         /s/obj.i386/pkgsrc/www/ruby-http-parser/work.i386/.destdir/usr/pk
g/lib/ruby/gems/2.6.0/gems/http-parser-1.2.1/ext/i486-netbsdelf/libhttp-parser-ext.so
ERROR: ************************************************************
ERROR: The following files are in /s/obj.i386/pkgsrc/www/ruby-http-parser/work.i386/.destdir/usr/pkg but not in the PLIST:
ERROR:         /s/obj.i386/pkgsrc/www/ruby-http-parser/work.i386/.destdir/usr/pkg/lib/ruby/gems/2.6.0/gems/http-parser-1.2.1/ext/i386-netbsd/libhttp-parser-ext.so
*** Error code 1

Stop.
make[5]: stopped in /usr/pkgsrc/www/ruby-http-parser
*** Error code 1
---

Note no problem on NetBSD/amd64 9.0.

>How-To-Repeat:
Build pkgsrc/www/ruby-http-parser on NetBSD/i386 9.0.

>Fix:
No idea where "i386-netbsd" comes from.
Something wrong around ruby-ffi?
/usr/pkg/lib/ruby/gems/2.6.0/gems/ffi-1.13.1/lib/ffi/platform.rb

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: tsutsui@NetBSD.org
State-Changed-When: Tue, 13 Oct 2020 14:28:17 +0000
State-Changed-Why:
Superseded by PR/55727 for 2020Q3.


From: "Takahiro Kambe" <taca@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/55469 CVS commit: pkgsrc/devel/ruby-ffi-compiler
Date: Mon, 2 Nov 2020 15:13:27 +0000

 Module Name:	pkgsrc
 Committed By:	taca
 Date:		Mon Nov  2 15:13:27 UTC 2020

 Modified Files:
 	pkgsrc/devel/ruby-ffi-compiler: Makefile distinfo
 Added Files:
 	pkgsrc/devel/ruby-ffi-compiler/patches:
 	    patch-lib_ffi-compiler_compile__task.rb

 Log Message:
 devel/ruby-ffi-compiler: fix runtime problem

 Install loadable modules into GEM_EXTSDIR.

 On some platform, ruby-ffi/ruby-ffi-compiler defines their own OS/ARCH name
 and it cause using diffrernt directory to install loadable modules.

 In this case (NetBSD/i386), installed loadable modules never loaded
 successfully since they exists on a directory which dose not contained in
 Ruby's global variable "$:".

 Focus to PR pkg/55469.

 Bump PKGREVISION.


 To generate a diff of this commit:
 cvs rdiff -u -r1.2 -r1.3 pkgsrc/devel/ruby-ffi-compiler/Makefile
 cvs rdiff -u -r1.1 -r1.2 pkgsrc/devel/ruby-ffi-compiler/distinfo
 cvs rdiff -u -r0 -r1.1 \
     pkgsrc/devel/ruby-ffi-compiler/patches/patch-lib_ffi-compiler_compile__task.rb

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.