Bug 255895 - rubygems, in turn rubygem-asciidoctor, fails when PREFIX is set during building a port
Summary: rubygems, in turn rubygem-asciidoctor, fails when PREFIX is set during buildi...
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-15 06:54 UTC by parv
Modified: 2021-05-17 11:15 UTC (History)
1 user (show)

See Also:


Attachments
/etc/make.conf (4.53 KB, text/plain)
2021-05-15 06:54 UTC, parv
no flags Details
x11-wm/fvwm3-devel/Makefile -- work in progress, port has yet to be submitted (2.69 KB, text/plain)
2021-05-17 11:14 UTC, parv
no flags Details
x11-wm/fvwm3-devel/distinfo - port has yet to be submitted (517 bytes, text/plain)
2021-05-17 11:15 UTC, parv
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description parv 2021-05-15 06:54:08 UTC
Created attachment 224959 [details]
/etc/make.conf

I was trying to develop a port (x11-wm/fvwm3-devel for bleeding edge) based on an existing one (x11-wm/fvwm3 uses released versions). The updated fvwm3 source code relies on ruby-asciidoctor to convert documentation to manual pages.

The port-in-development successfully builds (as in all the manual pages are produced) when PREFIX (during port building) is not set in /etc/make.conf (same as default LOCALBSE of /usr/local). Otherwise, manual page conversion fails ...

...
gmake[3]: Leaving directory '/src-build/ports-build/src-build/ports/x11-wm/fvwm3-devel/work/fvwm3-32c9abcc/perllib'
Making all in doc
gmake[3]: Entering directory '/src-build/ports-build/src-build/ports/x11-wm/fvwm3-devel/work/fvwm3-32c9abcc/doc'
   DOC      fvwm3/fvwm3.1
/root2/system-local/lib/ruby/site_ruby/2.7/rubygems.rb:284:in `find_spec_for_exe': can't find gem asciidoctor (>= 0.a) with executable asciidoctor (Gem::GemNotFoundException)
	from /root2/system-local/lib/ruby/site_ruby/2.7/rubygems.rb:303:in `activate_bin_path'
	from /usr/local/bin/asciidoctor:23:in `<main>'
gmake[3]: *** [Makefile:538: fvwm3/fvwm3.1] Error 1
gmake[3]: Leaving directory '/src-build/ports-build/src-build/ports/x11-wm/fvwm3-devel/work/fvwm3-32c9abcc/doc'
...


For clarification, /usr/local/ is a symbolic link to /root2/system-local.

In /etc/make.conf (attached)...

PORTSDIR=  /src-build/ports
WRKDIRPREFIX=  /src-build/ports-build
PACKAGES=  /src-build/pkg-save

# Setting $LOCALBASE causes pkg to croak or be confused when it encouters the
# symbolic link to /usr/local.
#LOCALBASE=  /root2/system-local

# LOCALBASE: path where ports generally install.
# PREFIX   : path to install of a port being installed. Default is $LOCALBASE.
PREFIX= /tmp/test-install
...
Comment 1 parv 2021-05-17 11:14:25 UTC
Created attachment 225023 [details]
x11-wm/fvwm3-devel/Makefile -- work in progress, port has yet to be submitted

I have added Makefile for the x11-wm/fvwm3-devel port that I am working on & have yet to be submitted. I will add distinfo file too.
Comment 2 parv 2021-05-17 11:15:13 UTC
Created attachment 225024 [details]
x11-wm/fvwm3-devel/distinfo - port has yet to be submitted