From nobody Tue Dec 27 18:34:06 2022 X-Original-To: freebsd-ports@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NhNbT5dN6z2kwN8 for ; Tue, 27 Dec 2022 18:34:13 +0000 (UTC) (envelope-from idefix@fechner.net) Received: from anny.lostinspace.de (anny.lostinspace.de [195.30.95.33]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4NhNbS3NQMz47VM for ; Tue, 27 Dec 2022 18:34:12 +0000 (UTC) (envelope-from idefix@fechner.net) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=fechner.net header.s=default header.b=IMOJMO2i; spf=pass (mx1.freebsd.org: domain of idefix@fechner.net designates 195.30.95.33 as permitted sender) smtp.mailfrom=idefix@fechner.net; dmarc=pass (policy=none) header.from=fechner.net Received: from server2.idefix.lan (beta.fechner.net [89.58.45.13]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: idefix@fechner.net) by anny.lostinspace.de (Postfix) with ESMTPSA id E06BA62D1B for ; Tue, 27 Dec 2022 19:34:07 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fechner.net; s=default; t=1672166047; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=VRWjX6fdeSZjrNMQ2Lj+Gl7ZMYPIA9SuUH6YgonuIZs=; b=IMOJMO2i804EVrH3PQqiXWSRUincoAgFp3W5r8li+S1IL4fDIiI75wcoCbt3utIvIigNLY gTSFF8uFRlhvIHwFoB15Wkhec40eTmP2AnxVvmD+Fnly/E/U0YLE454qbQLpogWyHGrV8E /iKZX90Ix84KvKTjg2k/qmqvdk3LieI= Received: from [192.168.0.151] (unknown [93.182.109.187]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by server2.idefix.lan (Postfix) with ESMTPSA id 47E5144B3BE for ; Tue, 27 Dec 2022 19:34:07 +0100 (CET) Content-Type: multipart/alternative; boundary="------------87Hdred3Qv8NARIYAbFeV9WQ" Message-ID: Date: Tue, 27 Dec 2022 20:34:06 +0200 List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 From: Matthias Fechner Subject: Need help with strange rubygem: oj-introspect To: FreeBSD Ports Content-Language: en-US X-Rspamd-Action: no action X-Rspamd-Server: anny.lostinspace.de X-Spamd-Result: default: False [-6.69 / 15.00]; DWL_DNSWL_MED(-2.00)[fechner.net:dkim]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.99)[-0.990]; RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; DMARC_POLICY_ALLOW(-0.50)[fechner.net,none]; R_SPF_ALLOW(-0.20)[+a]; RCVD_IN_DNSWL_MED(-0.20)[195.30.95.33:from]; R_DKIM_ALLOW(-0.20)[fechner.net:s=default]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; ASN(0.00)[asn:5539, ipnet:195.30.0.0/16, country:DE]; MIME_TRACE(0.00)[0:+,1:+,2:~]; MLMMJ_DEST(0.00)[freebsd-ports@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[fechner.net:+]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; TO_DN_ALL(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; PREVIOUSLY_DELIVERED(0.00)[freebsd-ports@freebsd.org]; RCVD_TLS_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] X-Rspamd-Queue-Id: 4NhNbS3NQMz47VM X-Spamd-Bar: ------ X-ThisMailContainsUnwantedMimeParts: N This is a multi-part message in MIME format. --------------87Hdred3Qv8NARIYAbFeV9WQ Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Dear all, I currently try to prepare an upgrade to gitlab-ce 15.6 but one port currently blocks me and maybe someone can help my, as I'm currently out of ideas. The problem is with oj-introspect: https://rubygems.org/gems/oj-introspect It expects header files the port rubygem-oj does not install. Not sure if is this a problem that should be fixed upstream, but before I report there anything, I would like to get the port running. What I did now is adding a postinstall target that includes the headers files and I can continue with the process: https://gitlab.fechner.net/mfechner/Gitlab/-/commit/15bc6ed3226ab4ee4cc55a6553c0238160e7f6a4#ac2c957b19f5793163b5c34e6ccc9891c2f8c475_16_16 But if I try to compile the gem oj-introspect: https://gitlab.fechner.net/mfechner/Gitlab/-/tree/42c09fd7c25d1375c3c3e4513b8cba9cb16f3987/devel/rubygem-oj-introspect I get a linker error: current directory: /wrkdirs/usr/ports/devel/rubygem-oj-introspect/work/stage/usr/local/lib/ruby/gems/3.0/gems/oj-introspect-0.7.1/ext/oj-introspect make DESTDIR\= sitearchdir\=./.gem.20221220-79616-gouqlr sitelibdir\=./.gem.20221220-79616-gouqlr compiling introspect.c linking shared-object oj/introspect/introspect_ext.so ld: error: unknown argument '-U' ld: error: unknown argument '-U' ld: error: unknown argument '-U' ld: error: cannot open _oj_init_usual: No such file or directory ld: error: cannot open _oj_parser_new: No such file or directory ld: error: cannot open _oj_parser_set_option: No such file or directory cc: error: linker command failed with exit code 1 (use -v to see invocation) *** Error code 1 The full buildlog is here: https://pkg.fechner.net/data/131amd64-gitlab/2022-12-20_10h29m08s/logs/errors/rubygem-oj-introspect-0.7.1.log Does anyone have an idea how to fix this? Thanks a lot for any tips! Gruß Matthias -- "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning." -- Rich Cook --------------87Hdred3Qv8NARIYAbFeV9WQ Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

Dear all,

I currently try to prepare an upgrade to gitlab-ce 15.6 but one port currently blocks me and maybe someone can help my, as I'm currently out of ideas.

The problem is with oj-introspect:
https://rubygems.org/gems/oj-introspect

It expects header files the port rubygem-oj does not install.
Not sure if is this a problem that should be fixed upstream, but before I report there anything, I would like to get the port running.
What I did now is adding a postinstall target that includes the headers files and I can continue with the process:
https://gitlab.fechner.net/mfechner/Gitlab/-/commit/15bc6ed3226ab4ee4cc55a6553c0238160e7f6a4#ac2c957b19f5793163b5c34e6ccc9891c2f8c475_16_16

But if I try to compile the gem oj-introspect:
https://gitlab.fechner.net/mfechner/Gitlab/-/tree/42c09fd7c25d1375c3c3e4513b8cba9cb16f3987/devel/rubygem-oj-introspect

I get a linker error:

current directory: /wrkdirs/usr/ports/devel/rubygem-oj-introspect/work/stage/usr/local/lib/ruby/gems/3.0/gems/oj-introspect-0.7.1/ext/oj-introspect
make DESTDIR\= sitearchdir\=./.gem.20221220-79616-gouqlr sitelibdir\=./.gem.20221220-79616-gouqlr
compiling introspect.c
linking shared-object oj/introspect/introspect_ext.so
ld: error: unknown argument '-U'
ld: error: unknown argument '-U'
ld: error: unknown argument '-U'
ld: error: cannot open _oj_init_usual: No such file or directory
ld: error: cannot open _oj_parser_new: No such file or directory
ld: error: cannot open _oj_parser_set_option: No such file or directory
cc: error: linker command failed with exit code 1 (use -v to see invocation)
*** Error code 1

The full buildlog is here:
https://pkg.fechner.net/data/131amd64-gitlab/2022-12-20_10h29m08s/logs/errors/rubygem-oj-introspect-0.7.1.log

Does anyone have an idea how to fix this?

Thanks a lot for any tips!
Gruß
Matthias

-- 

"Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs, and the universe trying to
produce bigger and better idiots. So far, the universe is winning." --
Rich Cook
--------------87Hdred3Qv8NARIYAbFeV9WQ--