Bug 275776 - www/rubygem-passenger: Unable to build because 'utf8.h' was not found
Summary: www/rubygem-passenger: Unable to build because 'utf8.h' was not found
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Po-Chuan Hsieh
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-12-15 14:01 UTC by Toshimichi Masubuchi
Modified: 2023-12-25 09:19 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (sunpoet)


Attachments
Patch to fix build errors (380 bytes, patch)
2023-12-15 14:01 UTC, Toshimichi Masubuchi
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toshimichi Masubuchi 2023-12-15 14:01:52 UTC
Created attachment 247060 [details]
Patch to fix build errors

The installation location of the utf8cpp package used by Passenger has been changed in commit 743103bbbb14fa36.
The attached patch eliminates build errors caused by this change.

Log:
src/cxx_supportlib/StrIntTools/StrIntUtils.cpp:33:10: fatal error: 'utf8.h' file not found
#include <utf8.h>
         ^~~~~~~~
1 error generated.
Comment 1 commit-hook freebsd_committer freebsd_triage 2023-12-25 09:12:33 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=e88575977c1f95a13821f7619880def91c5eaaea

commit e88575977c1f95a13821f7619880def91c5eaaea
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-12-25 09:03:17 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-12-25 09:03:17 +0000

    www/rubygem-passenger: Fix build with utf8cpp 4.0.3+

    - Update version requirement of BUILD_DEPENDS to avoid using utf8cpp 4.0.2

    utf8cpp 3.* installs to ${PREFIX}/include/utf8cpp/.
    utf8cpp 4.0.{0,1,2} changes to ${PREFIX}/include/.
    utf8cpp 4.0.3 changes back to ${PREFIX}/include/utf8cpp/.

    PR:             275776
    Reported by:    Toshimichi Masubuchi <t.masub@gmail.com>

 www/rubygem-passenger/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Comment 2 Po-Chuan Hsieh freebsd_committer freebsd_triage 2023-12-25 09:19:38 UTC
Committed. Thanks!