Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 31 Oct 2016 22:17:30 +0000
From:      bugzilla-noreply@freebsd.org
To:        ruby@FreeBSD.org
Subject:   [Bug 213959] textproc/rubygem-nokogiri fails to build via portmaster, succeeds using CLI make package
Message-ID:  <bug-213959-21402@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D213959

            Bug ID: 213959
           Summary: textproc/rubygem-nokogiri fails to build via
                    portmaster, succeeds using CLI make package
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ruby@FreeBSD.org
          Reporter: dewayne@heuristicsystems.com.au
          Assignee: ruby@FreeBSD.org
             Flags: maintainer-feedback?(ruby@FreeBSD.org)

While building security/metasploit on FreeBSD10.3S, I experience consistent
build failures with the textproc/rubygem-nokogiri dependency.  It is not ea=
sy
to reproduce!

I build a large number of ports by passing to portmaster the main ports of
interest, rubygem-nokogiri fails to "package".  However if I build directly=
 on
the command line with "make package", the port completes.  Examining the two
log files provides a clue:

With portmaster - and failure
=3D=3D=3D>  Building for rubygem-nokogiri-1.6.8
  Successfully built RubyGem
  Name: nokogiri
  Version: 1.6.8
  File: nokogiri-1.6.8.gem
=3D=3D=3D>  Staging for rubygem-nokogiri-1.6.8
=3D=3D=3D>   Generating temporary packing list
(cd /var/ports/usr/ports/textproc/rubygem-nokogiri/work/nokogiri-1.6.8;
/usr/bin/env RB_USER_INSTALL=3Dyes LANG=3Den_US.UTF-8 LC_ALL=3Den_US.UTF-8
LC_CTYPE=3DUTF-8 /usr/local/bin/gem22 install -l --no-update-sources
--install-dir
/var/ports/usr/ports/textproc/rubygem-nokogiri/work/stage/usr/local/lib/rub=
y/gems/2.2
--ignore-dependencies
--bindir=3D/var/ports/usr/ports/textproc/rubygem-nokogiri/work/stage/usr/lo=
cal/bin
--no-rdoc --no-ri nokogiri-1.6.8.gem -- --build-args --use-system-libraries)
Building native extensions with: '--build-args --use-system-libraries'
This could take a while...
ERROR:  Error installing nokogiri-1.6.8.gem:
        ERROR: Failed to build gem native extension.


With make - and success
=3D=3D=3D>  Building for rubygem-pkg-config-1.1.7_1
  Successfully built RubyGem
  Name: pkg-config
  Version: 1.1.7
  File: pkg-config-1.1.7.gem
=3D=3D=3D>  Staging for rubygem-pkg-config-1.1.7_1
=3D=3D=3D>   rubygem-pkg-config-1.1.7_1 depends on file: /usr/local/bin/rub=
y22 -
found
=3D=3D=3D>   rubygem-pkg-config-1.1.7_1 depends on file: /usr/local/bin/gem=
22 - found
=3D=3D=3D>   Generating temporary packing list
(cd /var/ports/usr/ports/devel/rubygem-pkg-config/work/pkg-config-1.1.7;
/usr/bin/env RB_USER_INSTALL=3Dyes LANG=3Den_U
Successfully installed pkg-config-1.1.7
1 gem installed


I haven't determined where the problem lies, but the "fix" is to=20
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- /usr/ports/textproc/rubygem-nokogiri/Makefile       (revision 424946)
+++ /usr/ports/textproc/rubygem-nokogiri/Makefile       (working copy)
@@ -10,6 +10,7 @@

 LICENSE=3D       MIT

+BUILD_DEPENDS=3D rubygem-pkg-config>=3D1.1.7:devel/rubygem-pkg-config
 RUN_DEPENDS=3D   rubygem-pkg-config>=3D1.1.7:devel/rubygem-pkg-config

 USE_RUBY=3D      yes

and metasploit completes packaging :)

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-213959-21402>