pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: ruby-nokogiri build problem: ar doesn't accept file



On Wed, Dec 27, 2023 at 10:26:55AM -0000, RVP wrote:
> > When I try building ruby-nokogiri (doesn't matter if Ruby 3.1 or 3.2),
> > on NetBSD-10.99.10/amd64, I get:
> >
> > 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
> >
> 
> The `l' modifier has a different meaning in the newer binutils. I think it
> is trying to add a symbol-index with that `l'. Use instead:
> 
> 	ar rcs libgumbo.a ascii.o attribute.o ...

Thanks, that fixes it!

Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/textproc/ruby-nokogiri/Makefile,v
retrieving revision 1.86
diff -u -r1.86 Makefile
--- Makefile    26 Dec 2023 18:56:09 -0000      1.86
+++ Makefile    27 Dec 2023 11:28:54 -0000
@@ -14,6 +14,7 @@
 USE_TOOLS+=            pkg-config
 CPPFLAGS+=             -I${PREFIX}/include/libxml2
 MAKE_ENV+=             NOKOGIRI_USE_SYSTEM_LIBRARIES=yes
+MAKE_ENV+=             ARFLAGS=rcs
 RUBYGEM_OPTIONS+=      --format-executable
 OVERRIDE_GEMSPEC+=     :files ports/archives/libxml2-2.11.6.tar.gz= \
                        ports/archives/libxslt-1.1.39.tar.gz=

Will that break older binutils?
 Thomas


Home | Main Index | Thread Index | Old Index