[Bug 269020] devel/rubygem-oj fails to include header files needed for rubygem-oj-introspect

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 18 Jan 2023 00:17:14 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=269020

            Bug ID: 269020
           Summary: devel/rubygem-oj fails to include header files needed
                    for rubygem-oj-introspect
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: sunpoet@FreeBSD.org
          Reporter: lysfjord.daniel@smokepit.net
             Flags: maintainer-feedback?(sunpoet@FreeBSD.org)
          Assignee: sunpoet@FreeBSD.org
 Attachment #239547 text/plain
         mime type:

Created attachment 239547
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=239547&action=edit
build log

header files are not included in the package, due to the directory
"/wrkdirs/usr/ports/devel/rubygem-oj/work/stage/usr/local/lib/ruby/gems/3.0/gems/oj-3.13.23/ext/oj/"
not existing when trying to do the "hack" in the Makefile, resulting in errors
looking like this: install:
/wrkdirs/usr/ports/devel/rubygem-oj/work/stage/usr/local/lib/ruby/gems/3.0/gems/oj-3.13.23/ext/oj/val_stack.h:
No such file or directory

Changing the Makefile post-install hack to:
cd ${WRKSRC}/ext/oj && ${INSTALL_DATA} -d
"${STAGEDIR}${PREFIX}/${GEMS_DIR}/${PORTNAME}-${PORTVERSION}/ext/oj/" &&
${FIND} * -name "*.h" -type f -exec ${INSTALL_DATA} {}
"${STAGEDIR}${PREFIX}/${GEMS_DIR}/${PORTNAME}-${PORTVERSION}/ext/oj/{}" \;

(even worse hack, I know.. sorry), makes this work as expected again.

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