NetBSD Problem Report #59444
From triaxx@netbsd.org Mon May 26 20:09:03 2025
Return-Path: <triaxx@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(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
client-signature RSA-PSS (2048 bits) client-digest SHA256)
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id C58051A923C
for <gnats-bugs@gnats.NetBSD.org>; Mon, 26 May 2025 20:09:03 +0000 (UTC)
Message-Id: <20250526200901.81ECB1A923D@mollari.NetBSD.org>
Date: Mon, 26 May 2025 20:09:01 +0000 (UTC)
From: triaxx@netbsd.org
Reply-To: triaxx@netbsd.org
To: gnats-bugs@NetBSD.org
Subject: textproc/ruby-nokogiri fails to install
X-Send-Pr-Version: 3.95
>Number: 59444
>Category: pkg
>Synopsis: textproc/ruby-nokogiri fails to install
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon May 26 20:10:00 +0000 2025
>Closed-Date: Sun Jun 01 19:16:18 +0000 2025
>Last-Modified: Sun Jun 01 19:16:18 +0000 2025
>Originator: Frédéric Fauberteau
>Release: NetBSD 10.99.12
>Organization:
>Environment:
System: NetBSD goliath.triaxx.org 10.99.12 NetBSD 10.99.12 (GENERIC) #0: Mon Feb 10 00:52:25 CET 2025 triaxx@goliath.triaxx.org:/usr/obj/sys/arch/amd64/compile/GENERIC amd64
Architecture: x86_64
Machine: amd64
>Description:
When trying to install textproc/ruby-nokogiri, the following error occurs. It occurs with both ruby 5.2 and 5.3.
=> Bootstrap dependency digest>=20211023: found digest-20220214
=> Checksum BLAKE2s OK for nokogiri-1.18.8.gem
=> Checksum SHA512 OK for nokogiri-1.18.8.gem
===> Installing dependencies for ruby33-nokogiri-1.18.8
=> Tool dependency ruby33-pkg-config-[0-9]*: found ruby33-pkg-config-1.6.2
=> Tool dependency mktools-[0-9]*: found mktools-20250213
=> Tool dependency pkgconf-[0-9]*: found pkgconf-2.4.3nb1
=> Tool dependency cwrappers>=20150314: found cwrappers-20220403
=> Tool dependency checkperms>=1.1: found checkperms-1.12
=> Full dependency ruby33-mini_portile2>=2.8.2: found ruby33-mini_portile2-2.8.9
=> Full dependency libxml2>=2.14.2nb1: found libxml2-2.14.2nb2
=> Full dependency libxslt>=1.1.42nb4: found libxslt-1.1.43nb4
=> Full dependency ruby33>=3.3.8: found ruby33-3.3.8
===> Checking for vulnerabilities in ruby33-nokogiri-1.18.8
===> Overriding tools for ruby33-nokogiri-1.18.8
===> Extracting for ruby33-nokogiri-1.18.8
Unpacked gem: '/home/triaxx/pkgsrc/textproc/ruby-nokogiri/work/nokogiri-1.18.8'
===> Patching for ruby33-nokogiri-1.18.8
===> Creating toolchain wrappers for ruby33-nokogiri-1.18.8
===> Configuring for ruby33-nokogiri-1.18.8
=> Generating pkg-config files for builtin xz package.
=> Checking for portability problems in extracted files
===> Building for ruby33-nokogiri-1.18.8
=> Override gemspec
=> Removing backup files of patch before build
WARNING: expected RubyGems version 3.5.22, was 3.6.8
WARNING: bin/nokogiri is not executable
WARNING: See https://guides.rubygems.org/specification-reference/ for help
Successfully built RubyGem
Name: nokogiri
Version: 1.18.8
File: nokogiri-1.18.8.gem
===> Installing for ruby33-nokogiri-1.18.8
=> Generating pre-install file lists
=> Installing gem into installation root
Building native extensions. This could take a while...
ERROR: Error installing /home/triaxx/pkgsrc/textproc/ruby-nokogiri/work/nokogiri-1.18.8/nokogiri-1.18.8.gem:
ERROR: Failed to build gem native extension.
current directory: /home/triaxx/pkgsrc/textproc/ruby-nokogiri/work/.inst/home/triaxx/pkg/lib/ruby/gems/3.3.0/gems/nokogiri-1.18.8/ext/nokogiri
/home/triaxx/pkg/bin/ruby33 extconf.rb
checking for whether -O2 -pthread -I/home/triaxx/pkg/include/libxml2 -I/usr/include -I/home/triaxx/pkg/include is accepted as CFLAGS... yes
checking for whether -I/home/triaxx/pkg/include/libxml2 -I/usr/include -I/home/triaxx/pkg/include is accepted as CPPFLAGS... yes
checking for whether -Wl,-zrelro -L/home/triaxx/pkg/lib -Wl,-R/home/triaxx/pkg/lib -L/usr/lib -Wl,-R/usr/lib -pthread is accepted as LDFLAGS... yes
checking for whether -std=c99 is accepted as CFLAGS... yes
checking for whether -Wno-declaration-after-statement is accepted as CFLAGS... yes
checking for whether -O2 is accepted as CFLAGS... yes
checking for whether -g is accepted as CFLAGS... yes
checking for whether -Winline is accepted as CFLAGS... yes
checking for whether -Wmissing-noreturn is accepted as CFLAGS... yes
checking for whether -Wconversion is accepted as CFLAGS... no
Building nokogiri using system libraries.
checking for gzdopen() in -lz... yes
checking for xmlParseDoc() in -lxml2... yes
checking for xsltParseStylesheetDoc() in -lxslt... yes
checking for exsltFuncRegister() in -lexslt... yes
Using mini_portile version 2.8.9
---------- IMPORTANT NOTICE ----------
Building Nokogiri with a packaged version of libgumbo-1.0.0-nokogiri.
Configuration options: --enable-shared --disable-static
Copying gumbo-parser files into tmp/x86_64--netbsd/ports/libgumbo/1.0.0-nokogiri/gumbo-parser...
Running 'compile' for libgumbo 1.0.0-nokogiri... ERROR. Please review logs to see what happened:
----- contents of '/home/triaxx/pkgsrc/textproc/ruby-nokogiri/work/.inst/home/triaxx/pkg/lib/ruby/gems/3.3.0/gems/nokogiri-1.18.8/ext/nokogiri/tmp/x86_64--netbsd/ports/libgumbo/1.0.0-nokogiri/compile.log' -----
cc -O2 -pthread -I/home/triaxx/pkg/include/libxml2 -I/usr/include -I/home/triaxx/pkg/include -fPIC -O2 -g -std=c99 -Wall -I/home/triaxx/pkg/include/libxml2 -I/usr/include -I/home/triaxx/pkg/include -c ascii.c
cc -O2 -pthread -I/home/triaxx/pkg/include/libxml2 -I/usr/include -I/home/triaxx/pkg/include -fPIC -O2 -g -std=c99 -Wall -I/home/triaxx/pkg/include/libxml2 -I/usr/include -I/home/triaxx/pkg/include -c attribute.c
cc -O2 -pthread -I/home/triaxx/pkg/include/libxml2 -I/usr/include -I/home/triaxx/pkg/include -fPIC -O2 -g -std=c99 -Wall -I/home/triaxx/pkg/include/libxml2 -I/usr/include -I/home/triaxx/pkg/include -c char_ref.c
cc -O2 -pthread -I/home/triaxx/pkg/include/libxml2 -I/usr/include -I/home/triaxx/pkg/include -fPIC -O2 -g -std=c99 -Wall -I/home/triaxx/pkg/include/libxml2 -I/usr/include -I/home/triaxx/pkg/include -c error.c
cc -O2 -pthread -I/home/triaxx/pkg/include/libxml2 -I/usr/include -I/home/triaxx/pkg/include -fPIC -O2 -g -std=c99 -Wall -I/home/triaxx/pkg/include/libxml2 -I/usr/include -I/home/triaxx/pkg/include -c foreign_attrs.c
cc -O2 -pthread -I/home/triaxx/pkg/include/libxml2 -I/usr/include -I/home/triaxx/pkg/include -fPIC -O2 -g -std=c99 -Wall -I/home/triaxx/pkg/include/libxml2 -I/usr/include -I/home/triaxx/pkg/include -c parser.c
cc -O2 -pthread -I/home/triaxx/pkg/include/libxml2 -I/usr/include -I/home/triaxx/pkg/include -fPIC -O2 -g -std=c99 -Wall -I/home/triaxx/pkg/include/libxml2 -I/usr/include -I/home/triaxx/pkg/include -c string_buffer.c
cc -O2 -pthread -I/home/triaxx/pkg/include/libxml2 -I/usr/include -I/home/triaxx/pkg/include -fPIC -O2 -g -std=c99 -Wall -I/home/triaxx/pkg/include/libxml2 -I/usr/include -I/home/triaxx/pkg/include -c string_piece.c
cc -O2 -pthread -I/home/triaxx/pkg/include/libxml2 -I/usr/include -I/home/triaxx/pkg/include -fPIC -O2 -g -std=c99 -Wall -I/home/triaxx/pkg/include/libxml2 -I/usr/include -I/home/triaxx/pkg/include -c svg_attrs.c
cc -O2 -pthread -I/home/triaxx/pkg/include/libxml2 -I/usr/include -I/home/triaxx/pkg/include -fPIC -O2 -g -std=c99 -Wall -I/home/triaxx/pkg/include/libxml2 -I/usr/include -I/home/triaxx/pkg/include -c svg_tags.c
cc -O2 -pthread -I/home/triaxx/pkg/include/libxml2 -I/usr/include -I/home/triaxx/pkg/include -fPIC -O2 -g -std=c99 -Wall -I/home/triaxx/pkg/include/libxml2 -I/usr/include -I/home/triaxx/pkg/include -c tag.c
cc -O2 -pthread -I/home/triaxx/pkg/include/libxml2 -I/usr/include -I/home/triaxx/pkg/include -fPIC -O2 -g -std=c99 -Wall -I/home/triaxx/pkg/include/libxml2 -I/usr/include -I/home/triaxx/pkg/include -c tag_lookup.c
cc -O2 -pthread -I/home/triaxx/pkg/include/libxml2 -I/usr/include -I/home/triaxx/pkg/include -fPIC -O2 -g -std=c99 -Wall -I/home/triaxx/pkg/include/libxml2 -I/usr/include -I/home/triaxx/pkg/include -c token_buffer.c
cc -O2 -pthread -I/home/triaxx/pkg/include/libxml2 -I/usr/include -I/home/triaxx/pkg/include -fPIC -O2 -g -std=c99 -Wall -I/home/triaxx/pkg/include/libxml2 -I/usr/include -I/home/triaxx/pkg/include -c tokenizer.c
cc -O2 -pthread -I/home/triaxx/pkg/include/libxml2 -I/usr/include -I/home/triaxx/pkg/include -fPIC -O2 -g -std=c99 -Wall -I/home/triaxx/pkg/include/libxml2 -I/usr/include -I/home/triaxx/pkg/include -c utf8.c
cc -O2 -pthread -I/home/triaxx/pkg/include/libxml2 -I/usr/include -I/home/triaxx/pkg/include -fPIC -O2 -g -std=c99 -Wall -I/home/triaxx/pkg/include/libxml2 -I/usr/include -I/home/triaxx/pkg/include -c util.c
cc -O2 -pthread -I/home/triaxx/pkg/include/libxml2 -I/usr/include -I/home/triaxx/pkg/include -fPIC -O2 -g -std=c99 -Wall -I/home/triaxx/pkg/include/libxml2 -I/usr/include -I/home/triaxx/pkg/include -c vector.c
ar rl libgumbo.a ascii.o attribute.o char_ref.o error.o foreign_attrs.o parser.o string_buffer.o string_piece.o svg_attrs.o svg_tags.o tag.o tag_lookup.o token_buffer.o tokenizer.o utf8.o util.o vector.o
ar: ascii.o: file format not recognized
*** Error code 1
Stop.
make: stopped making "libgumbo.a" in /home/triaxx/pkgsrc/textproc/ruby-nokogiri/work/.inst/home/triaxx/pkg/lib/ruby/gems/3.3.0/gems/nokogiri-1.18.8/ext/nokogiri/tmp/x86_64--netbsd/ports/libgumbo/1.0.0-nokogiri/gumbo-parser
----- end of file -----
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include=${opt-dir}/include
--without-opt-include
--with-opt-lib=${opt-dir}/lib
--without-opt-lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/home/triaxx/pkg/bin/$(RUBY_BASE_NAME)33
--help
--clean
--prevent-strip
--enable-system-libraries
--disable-system-libraries
--use-system-libraries=true
--enable-system-libraries
--disable-system-libraries
--use-system-libraries=true
--enable-xml2-legacy
--disable-xml2-legacy
--with-zlib-dir
--without-zlib-dir
--with-zlib-include=${zlib-dir}/include
--without-zlib-include
--with-zlib-lib=${zlib-dir}/lib
--without-zlib-lib
--with-z-dir
--without-z-dir
--with-z-include=${z-dir}/include
--without-z-include
--with-z-lib=${z-dir}/lib
--without-z-lib
--with-zlib
--without-zlib
--with-xml2-dir
--without-xml2-dir
--with-xml2-include=${xml2-dir}/include
--without-xml2-include
--with-xml2-lib=${xml2-dir}/lib
--without-xml2-lib
--with-xml2lib
--without-xml2lib
--with-xslt-dir
--without-xslt-dir
--with-xslt-include=${xslt-dir}/include
--without-xslt-include
--with-xslt-lib=${xslt-dir}/lib
--without-xslt-lib
--with-xsltlib
--without-xsltlib
--with-exslt-dir
--without-exslt-dir
--with-exslt-include=${exslt-dir}/include
--without-exslt-include
--with-exslt-lib=${exslt-dir}/lib
--without-exslt-lib
--with-exsltlib
--without-exsltlib
--gumbo-dev
--enable-cross-build
--disable-cross-build
/home/triaxx/pkg/lib/ruby/gems/3.3.0/gems/mini_portile2-2.8.9/lib/mini_portile2/mini_portile.rb:628:in `block in execute': Failed to complete compile task (RuntimeError)
from /home/triaxx/pkg/lib/ruby/gems/3.3.0/gems/mini_portile2-2.8.9/lib/mini_portile2/mini_portile.rb:594:in `chdir'
from /home/triaxx/pkg/lib/ruby/gems/3.3.0/gems/mini_portile2-2.8.9/lib/mini_portile2/mini_portile.rb:594:in `execute'
from extconf.rb:1115:in `compile'
from /home/triaxx/pkg/lib/ruby/gems/3.3.0/gems/mini_portile2-2.8.9/lib/mini_portile2/mini_portile.rb:238:in `cook'
from extconf.rb:550:in `block (2 levels) in process_recipe'
from extconf.rb:329:in `chdir'
from extconf.rb:329:in `chdir_for_build'
from extconf.rb:550:in `block in process_recipe'
from <internal:kernel>:90:in `tap'
from extconf.rb:448:in `process_recipe'
from extconf.rb:1071:in `<main>'
To see why this extension failed to compile, please check the mkmf.log which can be found here:
/home/triaxx/pkgsrc/textproc/ruby-nokogiri/work/.inst/home/triaxx/pkg/lib/ruby/gems/3.3.0/extensions/x86_64-netbsd/3.3.0/nokogiri-1.18.8/mkmf.log
extconf failed, exit code 1
Gem files will remain installed in /home/triaxx/pkgsrc/textproc/ruby-nokogiri/work/.inst/home/triaxx/pkg/lib/ruby/gems/3.3.0/gems/nokogiri-1.18.8 for inspection.
Results logged to /home/triaxx/pkgsrc/textproc/ruby-nokogiri/work/.inst/home/triaxx/pkg/lib/ruby/gems/3.3.0/extensions/x86_64-netbsd/3.3.0/nokogiri-1.18.8/gem_make.out
*** Error code 1
Stop.
bmake[1]: stopped making "install" in /home/triaxx/pkgsrc/textproc/ruby-nokogiri
*** Error code 1
Stop.
bmake: stopped making "install" in /home/triaxx/pkgsrc/textproc/ruby-nokogiri
>How-To-Repeat:
cd ~/pkgsrc/textproc/ruby-nokogiri && ~/pkg/bin/bmake install
>Fix:
No idea
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->tsutsui
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Tue, 27 May 2025 08:54:14 +0000
Responsible-Changed-Why:
Over to maintainer
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
To: gnats-bugs@netbsd.org
Cc: wiz@NetBSD.org, triaxx@netbsd.org, tsutsui@ceres.dti.ne.jp
Subject: Re: pkg/59444 (textproc/ruby-nokogiri fails to install)
Date: Tue, 27 May 2025 19:13:21 +0900
Both of you said that "rl" was specified for ${ARFLAGS}:
https://mail-index.netbsd.org/pkgsrc-bugs/2025/05/26/msg074055.html
>> ar rl libgumbo.a ascii.o attribute.o char_ref.o error.o foreign_attrs.o parser.o string_buffer.o string_piece.o svg_attrs.o svg_tags.o tag.o tag_lookup.o token_buffer.o tokenizer.o utf8.o util.o vector.o
>> ar: ascii.o: file format not recognized
>> *** Error code 1
https://mail-index.netbsd.org/pkgsrc-users/2023/12/27/msg038653.html
>> ar rl libgumbo.a ascii.o attribute.o char_ref.o error.o foreign_attrs.o parser.o string_buffer.o string_piece.o svg_attrs.o svg_tags.o tag.o tag_lookup.o token_buffer.o tokenizer.o utf8.o util.o vector.o
>> ar: ascii.o: file format not recognized
>> *** Error code 1
I cannot reproduce it here (NetBSD/i386 10.1 and pkgsrc-2025Q1 based) and
work.i386/.inst/usr/pkg/lib/ruby/gems/3.2.0/gems/nokogiri-1.18.8/ext/nokogiri/tmp/i486--netbsdelf/ports/libgumbo/1.0.0-nokogiri/compile.log said:
>> ar r libgumbo.a ascii.o attribute.o char_ref.o error.o foreign_attrs.o parser.o string_buffer.o string_piece.o svg_attrs.o svg_tags.o tag.o tag_lookup.o token_buffer.o tokenizer.o utf8.o util.o vector.o
>> ar: creating libgumbo.a
>> (ranlib libgumbo.a || true) >/dev/null 2>&1
As noted in the following message
https://mail-index.netbsd.org/pkgsrc-users/2023/12/27/msg038656.html
"MAKE_ENV+= ARFLAGS=r" in Makefile might help for newer binutils, but
do you know where/how "rl" for ARFLAGS comes from in your environments?
Thanks,
---
Izumi Tsutsui
From: =?UTF-8?Q?Fr=C3=A9d=C3=A9ric_Fauberteau?= <triaxx@NetBSD.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/59444 (textproc/ruby-nokogiri fails to install)
Date: Tue, 27 May 2025 14:37:38 +0200
$ grep -r "ARFLAGS.*=" ~/pkg/share/mk/
/home/triaxx/pkg/share/mk/sys.mk:ARFLAGS?= rl
I encounter the error on NetBSD 10.99.12 amd64 but not on Darwin 24.4.0
arm64.
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
To: gnats-bugs@netbsd.org
Cc: triaxx@netbsd.org, tsutsui@ceres.dti.ne.jp
Subject: Re: pkg/59444 (textproc/ruby-nokogiri fails to install)
Date: Tue, 27 May 2025 22:48:17 +0900
> $ grep -r "ARFLAGS.*=" ~/pkg/share/mk/
> /home/triaxx/pkg/share/mk/sys.mk:ARFLAGS?= rl
>
> I encounter the error on NetBSD 10.99.12 amd64 but not on Darwin 24.4.0
> arm64.
Which version is your sys.mk taken from?
sys.mk from NetBSD 10.1 has "ARFLAGS?= r" but
NetBSD 9.x used "ARFLAGS?= rl".
https://gnats.netbsd.org/57565
https://github.com/NetBSD/src/commit/5e3d878975b77fde0ec4b4a6fa14dd3a0a31b01d
https://github.com/NetBSD/src/commit/0572a20ef7afac4e1c1e69840c5ad4360c883ec0
---
Izumi Tsutsui
From: Thomas Klausner <wiz@NetBSD.org>
To: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
Cc: gnats-bugs@netbsd.org, triaxx@netbsd.org
Subject: Re: pkg/59444 (textproc/ruby-nokogiri fails to install)
Date: Tue, 27 May 2025 16:49:18 +0200
On Tue, May 27, 2025 at 07:13:21PM +0900, Izumi Tsutsui wrote:
> "MAKE_ENV+= ARFLAGS=r" in Makefile might help for newer binutils, but
> do you know where/how "rl" for ARFLAGS comes from in your environments?
I tried today and it built fine for me as-is, on 10.99.14/x86_64.
Thomas
From: =?UTF-8?Q?Fr=C3=A9d=C3=A9ric_Fauberteau?= <triaxx@NetBSD.org>
To: gnats-bugs@netbsd.org
Cc: pkgsrc-users@NetBSD.org
Subject: Re: pkg/59444 (textproc/ruby-nokogiri fails to install)
Date: Tue, 27 May 2025 22:31:54 +0200
I think I now understand my problem: I use a bootstrapped pkgsrc. In
addition to the definition of ARFLAGS provided by NetBSD and defined in
/usr/share/mk/sys.mk, there is another one provided by pkgsrc with
pkgtools/bootstrap-mk-files in ${LOCALBASE}/share/mk/sys.mk. The later
one set ARFLAGS?= rl.
The patch below try to set ARFLAGS to 'r' on NetBSD for binutils
starting from 2.39 (NetBSD 10.0_RC1 / NetBSD 10.99.3).
Do you think pkgsrc-users@ this patch can be applied?
===================================================================
RCS file: /cvsroot/pkgsrc/pkgtools/bootstrap-mk-files/Makefile,v
retrieving revision 1.61
diff -u -p -u -r1.61 Makefile
--- Makefile 19 Apr 2025 08:07:27 -0000 1.61
+++ Makefile 27 May 2025 20:19:50 -0000
@@ -1,6 +1,6 @@
# $NetBSD: Makefile,v 1.61 2025/04/19 08:07:27 wiz Exp $
-PKGNAME= bootstrap-mk-files-20240422
+PKGNAME= bootstrap-mk-files-20250527
CATEGORIES= pkgtools
CONFLICTS+= mk-files-[0-9]*
@@ -21,6 +21,15 @@ USE_TOOLS+= sed
INSTALLATION_DIRS= share/mk
+.include "../../mk/bsd.prefs.mk"
+
+# binutils-2.39 is provided from NetBSD 10.0_RC1 and NetBSD 10.99.3
+.if ${OPSYS} == "NetBSD" && \
+ ((${OPSYS_VERSION} >= 100000 && ${OPSYS_VERSION} < 109900) || \
+ ${OPSYS_VERSION} >= 109903)
+ARFLAGS= r
+.endif
+
do-extract:
${RUN} ${CP} -R ${FILESDIR} ${WRKSRC}
@@ -30,6 +39,10 @@ do-configure:
${CP} -f mods/${OPSYS}.$$file ${WRKSRC}/$$file;
\
done
cd ${WRKSRC};
\
+ if ${TEST} -f mods/${OPSYS}.sys.mk.in; then
\
+ ${SED} -e 's|@ARFLAGS@|'${ARFLAGS}'|g'
\
+ mods/${OPSYS}.sys.mk.in > sys.mk;
\
+ fi;
\
if ${TEST} -f mods/${OPSYS}.bsd.own.mk.in; then
\
own_mk=mods/${OPSYS}.bsd.own.mk.in;
\
else
\
Index: files/mods/NetBSD.sys.mk
===================================================================
RCS file: files/mods/NetBSD.sys.mk
diff -N files/mods/NetBSD.sys.mk
--- files/mods/NetBSD.sys.mk 8 Sep 2016 14:28:12 -0000 1.2
+++ /dev/null 1 Jan 1970 00:00:00 -0000
[...]
-ARFLAGS?= rl
Index: files/mods/NetBSD.sys.mk.in
===================================================================
RCS file: files/mods/NetBSD.sys.mk.in
diff -N files/mods/NetBSD.sys.mk.in
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ files/mods/NetBSD.sys.mk.in 27 May 2025 20:19:50 -0000
[...]
+ARFLAGS?= @ARFLAGS@
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
To: gnats-bugs@netbsd.org
Cc: triaxx@netbsd.org, tsutsui@ceres.dti.ne.jp
Subject: Re: pkg/59444 (textproc/ruby-nokogiri fails to install)
Date: Thu, 29 May 2025 00:59:19 +0900
> The patch below try to set ARFLAGS to 'r' on NetBSD for binutils
> starting from 2.39 (NetBSD 10.0_RC1 / NetBSD 10.99.3).
>
> Do you think pkgsrc-users@ this patch can be applied?
Maybe we can simply remove 'l' from ${ARFLAGS} in all cases.
It looks 'l' flag in binutils ar has been no-op since it was imported
into the NetBSD tree (as binutils 2.1) before NetBSD 1.4:
https://github.com/NetBSD/src/blob/netbsd-1-4/gnu/dist/binutils/ar.1#L405-L406
The 'l' option seems used as 'undocumented' to set temporary directory
in 4.xBSD derived a.out ar(1):
https://github.com/NetBSD/src/blob/netbsd-1-2/usr.bin/ar/ar.c#L119-L120
https://github.com/NetBSD/src/blob/netbsd-1-2/usr.bin/ar/misc.c#L78-L81
---
Izumi Tsutsui
Responsible-Changed-From-To: tsutsui->pkg-manager
Responsible-Changed-By: tsutsui@NetBSD.org
Responsible-Changed-When: Sat, 31 May 2025 21:20:26 +0000
Responsible-Changed-Why:
Not package issue but pkgtools/bootstrap-mk-files problem.
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
To: gnats-bugs@netbsd.org
Cc: tsutsui@ceres.dti.ne.jp
Subject: Re: pkg/59444 (textproc/ruby-nokogiri fails to install)
Date: Sun, 1 Jun 2025 06:19:18 +0900
> Maybe we can simply remove 'l' from ${ARFLAGS} in all cases.
I'm not sure which OSes use ar(1) from binutils,
but maybe we can assume it on Cygwin, Linux, and *BSDs?
---
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/pkgtools/bootstrap-mk-files/Makefile,v
retrieving revision 1.60
diff -u -p -d -r1.60 Makefile
--- Makefile 22 Apr 2024 07:33:05 -0000 1.60
+++ Makefile 31 May 2025 21:17:23 -0000
@@ -1,6 +1,6 @@
# $NetBSD: Makefile,v 1.60 2024/04/22 07:33:05 jperkin Exp $
-PKGNAME= bootstrap-mk-files-20240422
+PKGNAME= bootstrap-mk-files-20240601
CATEGORIES= pkgtools
CONFLICTS+= mk-files-[0-9]*
Index: files/mods/Cygwin.sys.mk
===================================================================
RCS file: /cvsroot/pkgsrc/pkgtools/bootstrap-mk-files/files/mods/Cygwin.sys.mk,v
retrieving revision 1.2
diff -u -p -d -r1.2 Cygwin.sys.mk
--- files/mods/Cygwin.sys.mk 22 Apr 2024 07:33:05 -0000 1.2
+++ files/mods/Cygwin.sys.mk 31 May 2025 21:17:23 -0000
@@ -8,7 +8,7 @@ unix?= We run Unix
.LIBS: .a
AR?= ar
-ARFLAGS?= rl
+ARFLAGS?= r
RANLIB?= ranlib
AS?= as
Index: files/mods/Linux.sys.mk
===================================================================
RCS file: /cvsroot/pkgsrc/pkgtools/bootstrap-mk-files/files/mods/Linux.sys.mk,v
retrieving revision 1.8
diff -u -p -d -r1.8 Linux.sys.mk
--- files/mods/Linux.sys.mk 22 Apr 2024 07:33:05 -0000 1.8
+++ files/mods/Linux.sys.mk 31 May 2025 21:17:23 -0000
@@ -10,7 +10,7 @@ unix?= We run Unix
.LIBS: .a
AR?= ar
-ARFLAGS?= rl
+ARFLAGS?= r
RANLIB?= ranlib
AS?= as
Index: files/mods/MirBSD.sys.mk
===================================================================
RCS file: /cvsroot/pkgsrc/pkgtools/bootstrap-mk-files/files/mods/Attic/MirBSD.sys.mk,v
retrieving revision 1.1
diff -u -p -d -r1.1 MirBSD.sys.mk
--- files/mods/MirBSD.sys.mk 23 Jan 2011 19:07:26 -0000 1.1
+++ files/mods/MirBSD.sys.mk 31 May 2025 21:17:23 -0000
@@ -8,7 +8,7 @@ unix?= We run MirOS BSD.
.LIBS: .a
AR?= ar
-ARFLAGS?= rl
+ARFLAGS?= r
RANLIB?= ranlib
NM?= nm
LORDER?= lorder
Index: files/mods/NetBSD.sys.mk
===================================================================
RCS file: /cvsroot/pkgsrc/pkgtools/bootstrap-mk-files/files/mods/NetBSD.sys.mk,v
retrieving revision 1.2
diff -u -p -d -r1.2 NetBSD.sys.mk
--- files/mods/NetBSD.sys.mk 8 Sep 2016 14:28:12 -0000 1.2
+++ files/mods/NetBSD.sys.mk 31 May 2025 21:17:23 -0000
@@ -9,7 +9,7 @@ unix?= We run NetBSD.
.LIBS: .a
AR?= ar
-ARFLAGS?= rl
+ARFLAGS?= r
RANLIB?= ranlib
AS?= as
Index: files/mods/OpenBSD.sys.mk
===================================================================
RCS file: /cvsroot/pkgsrc/pkgtools/bootstrap-mk-files/files/mods/OpenBSD.sys.mk,v
retrieving revision 1.2
diff -u -p -d -r1.2 OpenBSD.sys.mk
--- files/mods/OpenBSD.sys.mk 8 Sep 2016 14:28:12 -0000 1.2
+++ files/mods/OpenBSD.sys.mk 31 May 2025 21:17:23 -0000
@@ -9,7 +9,7 @@ unix?= We run OpenBSD.
.LIBS: .a
AR?= ar
-ARFLAGS?= rl
+ARFLAGS?= r
RANLIB?= ranlib
AS?= as
---
Izumi Tsutsui
From: =?UTF-8?B?RnLDqWTDqXJpYyBGYXViZXJ0ZWF1?= <triaxx@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/59444 CVS commit: pkgsrc/pkgtools/bootstrap-mk-files
Date: Sun, 1 Jun 2025 19:07:23 +0000
Module Name: pkgsrc
Committed By: triaxx
Date: Sun Jun 1 19:07:23 UTC 2025
Modified Files:
pkgsrc/pkgtools/bootstrap-mk-files: Makefile
pkgsrc/pkgtools/bootstrap-mk-files/files/mods: NetBSD.sys.mk
Log Message:
bootstrap-mk-files: Fix PR pkg/59444
pkgsrc changes:
---------------
* Remove 'l' option from ARFLAGS for NetBSD. This is consistent with base
system. According to https://gnats.netbsd.org/57565, this change shouldn't
have effect since 'l' was not used before. Now, it can break some packages.
To generate a diff of this commit:
cvs rdiff -u -r1.61 -r1.62 pkgsrc/pkgtools/bootstrap-mk-files/Makefile
cvs rdiff -u -r1.2 -r1.3 \
pkgsrc/pkgtools/bootstrap-mk-files/files/mods/NetBSD.sys.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->closed
State-Changed-By: triaxx@NetBSD.org
State-Changed-When: Sun, 01 Jun 2025 19:16:18 +0000
State-Changed-Why:
'l' option removed from pkgtools/bootstrap-mk-files for NetBSD
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.