Bug 232799 - www/netsurf: fails to build "Unable to find library for: utf8proc"
Summary: www/netsurf: fails to build "Unable to find library for: utf8proc"
Status: Open
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 mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-10-29 23:54 UTC by w.schwarzenfeld
Modified: 2019-06-13 03:36 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description w.schwarzenfeld freebsd_triage 2018-10-29 23:54:28 UTC
netsurf fails to build (on 11.2-RELEASE-amd64) with:
===>  Configuring for netsurf-3.8
===>  Building for netsurf-3.8
gmake[2]: Entering directory '/ram/usr/ports/www/netsurf/work/netsurf-3.8'
M.CONFIG: JPEG (libjpeg)	enabled       (NETSURF_USE_JPEG := YES)
M.CONFIG: PDF export (haru)	disabled      (NETSURF_USE_HARU_PDF := NO)
M.CONFIG: glibc internal iconv	enabled       (NETSURF_USE_LIBICONV_PLUG := YES)
M.CONFIG: Javascript (Duktape)	enabled       (NETSURF_USE_DUKTAPE := YES)
PKG.CNFG: CSS (libcss)	enabled
PKG.CNFG: DOM (libdom)	enabled
PKG.CNFG: nsutils (libnsutils)	enabled
PKG.CNFG: utf8proc (libutf8proc)	failed
Makefile:524: *** Unable to find library for: utf8proc (libutf8proc).  Stop.
gmake[2]: Leaving directory '/ram/usr/ports/www/netsurf/work/netsurf-3.8'
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1
Comment 1 w.schwarzenfeld freebsd_triage 2018-10-29 23:56:26 UTC
Builds if I change

--- Makefile.orig       2018-10-29 23:43:38 UTC
+++ Makefile
@@ -521,10 +521,9 @@ $(eval $(call feature_switch,DUKTAPE,Jav
 $(eval $(call pkg_config_find_and_add,libcss,CSS))
 $(eval $(call pkg_config_find_and_add,libdom,DOM))
 $(eval $(call pkg_config_find_and_add,libnsutils,nsutils))
-$(eval $(call pkg_config_find_and_add,libutf8proc,utf8proc))
 
 # Common libraries without pkg-config support
-LDFLAGS += -lz
+LDFLAGS += -lz -lutf8proc
 
 # Optional libraries with pkgconfig
Comment 2 w.schwarzenfeld freebsd_triage 2018-10-30 00:20:53 UTC
Sorry, my error no bug.
Comment 3 w.schwarzenfeld freebsd_triage 2018-10-30 23:03:15 UTC
Seems I was puzzled yesterday. The problem does exist.
Also it does not find
<libutf8proc/utf8proc.h> in utils/idna.c

I added 
${REINPLACE_CMD} 's|libutf8proc/utf8proc.h|utf8proc.h|g' ${WRKSRC}/utils/idna.c
to the Makefile.
Comment 4 Neel Chauhan 2018-10-31 01:16:07 UTC
No error on my part (without your workaround). FreeBSD 11.2-RELEASE on a HP EliteBook 1040 G3 (i7-6600U, 16GB DDR4, 256GB M.2 SSD, QHD).

/bin/mkdir -p /usr/ports/www/netsurf/work/stage/usr/local/share/applications
/bin/mkdir -p /usr/ports/www/netsurf/work/stage/usr/local/share/pixmaps
install  -m 0644 /usr/ports/www/netsurf/work/netsurf-3.8/frontends/gtk/res/netsurf-gtk.desktop  /usr/ports/www/netsurf/work/stage/usr/local/share/applications
install  -m 0644 /usr/ports/www/netsurf/work/netsurf-3.8/frontends/gtk/res/netsurf.xpm  /usr/ports/www/netsurf/work/stage/usr/local/share/pixmaps
====> Compressing man pages (compress-man)
===>  Installing for netsurf-3.8
===>  Checking if netsurf already installed
===>   Registering installation for netsurf-3.8
Installing netsurf-3.8...
===>  Cleaning for nsgenbind-0.6
===>  Cleaning for netsurf-buildsystem-1.7
===>  Cleaning for flex-2.6.4
===>  Cleaning for help2man-1.47.8
===>  Cleaning for p5-Locale-gettext-1.07
===>  Cleaning for gmake-4.2.1_2
===>  Cleaning for netsurf-3.8
root@xb3:/usr/ports/www/netsurf #

What's your FreeBSD version? Are your ports and packages updated? Do you have libutf8proc installed?
Comment 5 w.schwarzenfeld freebsd_triage 2018-10-31 02:04:51 UTC
Seems it is the old conflict
pkg which /usr/local/lib/libutf8proc.so.2
/usr/local/lib/libutf8proc.so.2 was installed by package utf8proc-2.1.0

pkg info -r utf8proc
utf8proc-2.1.0:
	subversion-1.10.3
Comment 6 w.schwarzenfeld freebsd_triage 2018-10-31 02:06:46 UTC
Ports updated, version freebsd-11.2-RELEASE-amd64.
Comment 7 Christopher 2019-06-13 03:36:08 UTC
I can confirm this bug as I just tried to install this port on two different computers and both error out with:

Makefile:524: *** Unable to find library for: utf8proc (libutf8proc).  Stop.
gmake[2]: Leaving directory '/usr/ports/www/netsurf/work/netsurf-3.8'
===> Compilation failed unexpectedly.

I do have libutf8proc installed:

Name           : utf8proc
Version        : 2.2.0
Installed on   : Mon Mar  4 00:40:19 2019 EST
Origin         : textproc/utf8proc
Architecture   : FreeBSD:12:amd64
Prefix         : /usr/local
Categories     : devel textproc
Licenses       : MIT
Maintainer     : hrs@FreeBSD.org
WWW            : https://juliastrings.github.io/utf8proc/
Comment        : UTF-8 processing library
Options        :
DOCS           : on
Shared Libs provided:
	libutf8proc.so.2
Annotations    :
	FreeBSD_version: 1200086

Both computers are running:
FreeBSD 12.0-RELEASE-p4 amd64

Everything installed on these computers were via ports (portmaster)