To add a missing dependency on dev-lang/duktape (bug 728592), I had to drop these keywords in the latest version. If possible, please re-add them. Otherwise we'll have to mask USE=duktape.
Sanity check failed: > www-client/netsurf-3.10 > rdepend ~arm stable profile default/linux/arm/17.0 (20 total) > dev-lang/duktape > rdepend ~arm dev profile default/linux/arm/17.0/armv4 (33 total) > dev-lang/duktape
This one's ready now, please check if it builds with USE="javascript duktape" against duktape-2.5.0. It's OK if the test suite fails (it's flaky), but please let me know about any failures so that I can report them upstream.
Created attachment 646826 [details] build.log (ppc64) Tried building on ppc64 now, but got this error, despite having USE='gtk2' set. >>> Compiling source in /var/tmp/portage/www-client/netsurf-3.10/work/netsurf-3.10 ... make -j24 -l24 NSSHARED=/usr/share/netsurf-buildsystem LIBDIR=lib64 PREFIX=/usr Q= CC=powerpc64-unknown-linux-gnu-gcc LD=powerpc64-unknown-linux-gnu-ld HOST_CC=$(CC) BUILD_CC=powerpc64-unknown-linux-gnu-gcc CXX=powerpc64-unknown-linux-gnu-g++ BUILD_CXX=powerpc64-unknown-linux-gnu-g++ CCOPT= CCNOOPT= CCDBG= LDDBG= AR=powerpc64-unknown-linux-gnu-ar WARNFLAGS= COMPONENT_TYPE=binary NETSURF_USE_BMP=YES NETSURF_USE_GIF=YES NETSURF_USE_JPEG=YES NETSURF_USE_PNG=YES NETSURF_USE_NSPSL=YES NETSURF_USE_MNG=YES NETSURF_USE_WEBP=YES NETSURF_USE_MOZJS=NO NETSURF_USE_JS=NO NETSURF_USE_DUKTAPE=YES NETSURF_USE_NSSVG=YES NETSURF_USE_RSVG=NO NETSURF_USE_ROSPRITE=YES PKG_CONFIG=powerpc64-unknown-linux-gnu-pkg-config NETSURF_FB_FONTLIB=freetype NETSURF_FB_FONTPATH=/usr/share/fonts/dejavu NETSURF_USE_VIDEO=NO TARGET=gtk Makefile:116: *** Unknown TARGET "gtk", Must be one of riscos gtk2 gtk3 beos amiga amigaos3 framebuffer windows atari monkey. Stop. * ERROR: www-client/netsurf-3.10::gentoo failed (compile phase): * emake failed
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=af319b8e81df5bcc69b02155d97e905197dc15e4 commit af319b8e81df5bcc69b02155d97e905197dc15e4 Author: Michael Orlitzky <mjo@gentoo.org> AuthorDate: 2020-06-29 01:15:49 +0000 Commit: Michael Orlitzky <mjo@gentoo.org> CommitDate: 2020-06-29 01:15:49 +0000 www-client/netsurf: fix build with USE=gtk2. In the latest release, upstream switched around the names of the GTK targets to reflect that gtk3 is now default. This left the build broken with USE=gtk2, because (ALLEGEDLY) I never tested it. Sorry. Everything should be back to normal. Bug: https://bugs.gentoo.org/728994 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Michael Orlitzky <mjo@gentoo.org> www-client/netsurf/netsurf-3.10.ebuild | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
Thanks for the extra QA. The ebuild needed a tweak to adjust to a recent upstream change. It should work now. I've also set IUSE="+gtk" by default, to avoid prompting people to choose one of fbcon, gtk2, or gtk. The upstream default (and what most people want) is gtk, which means "gtk3."
Created attachment 647090 [details] build.log (ppc64) Now building starts but errors out after a while, complaining "utf8proc.h" is not found. [...] powerpc64-unknown-linux-gnu-gcc -W -Wall -Wundef -Wpointer-arith -Wcast-align -Wwrite-strings -Wmissing-declarations -Wuninitialized -Wno-unused-parameter -Wno-unused-but-set-variable -Wimplicit-fallthrough=3 -Wredundant-decls -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -I. -Iinclude -Ibuild/Linux-gtk3 -Ifrontends -Icontent/handlers -O2 -DWITH_JPEG -UWITH_PDF_EXPORT -DLIBICONV_PLUG -I/usr/include/libxml2 -DWITH_CURL -DWITH_OPENSSL -DUTF8PROC_EXPORTS -DWITH_UTF8PROC -DWITH_WEBP -I/usr/include/libpng16 -DWITH_PNG -DWITH_GIF -I/usr/include/libxml2 -DWITH_NS_SVG -DWITH_NSPSL -DNETSURF_UA_FORMAT_STRING=\""NetSurf/%d.%d (%s)"\" -DNETSURF_HOMEPAGE=\""about:welcome"\" -DNETSURF_LOG_LEVEL=VERBOSE -DNETSURF_BUILTIN_LOG_FILTER=\""(level:WARNING || cat:jserrors)"\" -DNETSURF_BUILTIN_VERBOSE_FILTER=\""(level:VERBOSE || cat:jserrors)"\" -DSTMTEXPR=1 -pthread -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/fribidi -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/uuid -I/usr/lib64/libffi/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -std=c99 -Dgtk -Dnsgtk -g -DG_DISABLE_SINGLE_INCLUDES -DG_DISABLE_DEPRECATED -DGTK_DISABLE_SINGLE_INCLUDES -DGTK_MULTIHEAD_SAFE -DPANGO_DISABLE_DEPRECATED -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=700 -D_POSIX_C_SOURCE=200809L -D_NETBSD_SOURCE -DGTK_RESPATH=\"/usr/share/netsurf/:./frontends/gtk/res/\" -DWITH_GRESOURCE -DDUK_OPT_HAVE_CUSTOM_H -O2 -mcpu=970 -pipe -MMD -MT 'build/Linux-gtk3/deps/utils_idna.d build/Linux-gtk3/utils_idna.o' -MF build/Linux-gtk3/deps/utils_idna.d -o build/Linux-gtk3/utils_idna.o -c utils/idna.c utils/idna.c:170:10: fatal error: utf8proc.h: No such file or directory 170 | #include <utf8proc.h> | ^~~~~~~~~~~~ compilation terminated.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f4b54e2b6fa4f0062d088b97e8c2527aaf745cf4 commit f4b54e2b6fa4f0062d088b97e8c2527aaf745cf4 Author: Michael Orlitzky <mjo@gentoo.org> AuthorDate: 2020-06-29 17:07:20 +0000 Commit: Michael Orlitzky <mjo@gentoo.org> CommitDate: 2020-06-29 17:07:20 +0000 www-client/netsurf: update dev-libs/libutf8proc lower bound. I previously fixed the build with newer versions of libutf8proc, and in the process, broke it with the old stable version. We now require a newer (unstable) version so as to actually build. Bug: https://bugs.gentoo.org/728994 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Michael Orlitzky <mjo@gentoo.org> www-client/netsurf/{netsurf-3.10.ebuild => netsurf-3.10-r1.ebuild} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Fixed once more. Using the stable version of libutf8proc doesn't work, so I've updated the bound. Thanks again for your help.
Unable to check for sanity: > no match for package: www-client/netsurf-3.10
All sanity-check issues have been resolved
Looking good on ppc. Both failed builds fail due to: [...] content/handlers/image/rsvg.c:37:10: fatal error: librsvg/rsvg.h: No such file or directory 37 | #include <librsvg/rsvg.h> | ^~~~~~~~~~~~~~~~ compilation terminated. # cat netsurf-728994.report USE tests started on Mo 29. Jun 23:38:01 CEST 2020 FEATURES=' test' failed for =www-client/netsurf-3.10-r1 USE='bmp -duktape -fbcon -gif -gtk gtk2 -javascript -jpeg mng png -psl -rosprite -svg -svgtiny -truetype -webp' succeeded for =www-client/netsurf-3.10-r1 USE='-bmp duktape fbcon gif -gtk -gtk2 javascript jpeg mng png psl -rosprite -svg -svgtiny -truetype -webp' succeeded for =www-client/netsurf-3.10-r1 USE='-bmp -duktape fbcon gif -gtk gtk2 javascript -jpeg -mng png -psl rosprite -svg -svgtiny -truetype -webp' succeeded for =www-client/netsurf-3.10-r1 USE='bmp -duktape fbcon gif gtk -gtk2 javascript jpeg mng png -psl rosprite -svg -svgtiny truetype -webp' succeeded for =www-client/netsurf-3.10-r1 USE='bmp duktape fbcon gif -gtk gtk2 javascript -jpeg -mng png psl rosprite -svg -svgtiny truetype -webp' succeeded for =www-client/netsurf-3.10-r1 USE='bmp -duktape fbcon -gif gtk -gtk2 -javascript jpeg mng png -psl rosprite svg -svgtiny truetype -webp' failed for =www-client/netsurf-3.10-r1 USE='bmp duktape fbcon -gif gtk gtk2 javascript jpeg mng -png psl -rosprite -svg svgtiny truetype -webp' succeeded for =www-client/netsurf-3.10-r1 USE='-bmp duktape fbcon gif -gtk -gtk2 javascript jpeg mng -png -psl rosprite -svg -svgtiny -truetype webp' succeeded for =www-client/netsurf-3.10-r1 USE='bmp -duktape fbcon -gif -gtk -gtk2 javascript -jpeg -mng -png psl rosprite svg -svgtiny -truetype webp' failed for =www-client/netsurf-3.10-r1 USE='-bmp duktape -fbcon -gif gtk gtk2 javascript -jpeg -mng png -psl -rosprite svg svgtiny truetype webp' succeeded for =www-client/netsurf-3.10-r1 USE='bmp duktape fbcon gif -gtk -gtk2 javascript jpeg -mng -png psl rosprite svg svgtiny truetype webp' succeeded for =www-client/netsurf-3.10-r1 USE='bmp -duktape fbcon gif -gtk gtk2 -javascript -jpeg -mng png psl rosprite svg svgtiny truetype webp' succeeded for =www-client/netsurf-3.10-r1
Created attachment 647108 [details] build.log.xz (ppc + tests)
Looking good on ppc64. Surprisingly it even passes tests. ;) Rest is like on ppc. # cat netsurf-728994.report USE tests started on Di 30. Jun 00:23:42 CEST 2020 FEATURES=' test' USE='gtk' succeeded for =www-client/netsurf-3.10-r1 USE='-bmp -duktape fbcon -gif gtk -gtk2 -javascript -jpeg -mng -png psl rosprite -svg -svgtiny -truetype -webp' succeeded for =www-client/netsurf-3.10-r1 USE='bmp -duktape -fbcon gif gtk -gtk2 -javascript jpeg mng -png psl -rosprite svg -svgtiny -truetype -webp' succeeded for =www-client/netsurf-3.10-r1 USE='bmp -duktape -fbcon -gif -gtk gtk2 -javascript -jpeg -mng -png psl rosprite svg -svgtiny -truetype -webp' succeeded for =www-client/netsurf-3.10-r1 USE='-bmp -duktape fbcon -gif -gtk gtk2 -javascript jpeg -mng -png -psl -rosprite -svg svgtiny -truetype -webp' succeeded for =www-client/netsurf-3.10-r1 USE='-bmp -duktape -fbcon gif -gtk gtk2 javascript jpeg -mng png -psl rosprite -svg svgtiny -truetype -webp' succeeded for =www-client/netsurf-3.10-r1 USE='bmp duktape -fbcon -gif gtk -gtk2 javascript -jpeg mng -png psl rosprite -svg -svgtiny truetype -webp' succeeded for =www-client/netsurf-3.10-r1 USE='-bmp -duktape fbcon gif gtk -gtk2 javascript -jpeg mng png psl -rosprite -svg -svgtiny -truetype webp' succeeded for =www-client/netsurf-3.10-r1 USE='-bmp -duktape -fbcon -gif gtk gtk2 javascript jpeg -mng -png -psl rosprite -svg -svgtiny -truetype webp' failed for =www-client/netsurf-3.10-r1 USE='-bmp duktape fbcon gif gtk gtk2 javascript -jpeg -mng png psl -rosprite svg -svgtiny -truetype webp' failed for =www-client/netsurf-3.10-r1 USE='-bmp duktape fbcon gif -gtk -gtk2 javascript -jpeg mng -png psl rosprite svg -svgtiny -truetype webp' failed for =www-client/netsurf-3.10-r1 USE='-bmp duktape -fbcon -gif gtk gtk2 javascript -jpeg -mng -png psl rosprite -svg -svgtiny truetype webp' succeeded for =www-client/netsurf-3.10-r1 USE='bmp -duktape fbcon gif gtk -gtk2 javascript -jpeg -mng -png psl rosprite -svg svgtiny truetype webp' succeeded for =www-client/netsurf-3.10-r1
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=77e589717e3fe5788ef0030d5cc4a2517670cc9a commit 77e589717e3fe5788ef0030d5cc4a2517670cc9a Author: Michael Orlitzky <mjo@gentoo.org> AuthorDate: 2020-06-30 13:07:37 +0000 Commit: Michael Orlitzky <mjo@gentoo.org> CommitDate: 2020-06-30 13:07:56 +0000 www-client/netsurf: fix build with USE="fbcon svg -svgtiny". The build system for netsurf only does the pkg-config magic needed to find librsvg's headers when it's building the GTK targets (and not when it's building the framebuffer target). As a result, building the framebuffer target can fail if you have USE="svg -svgtiny" set. This commit disables librsvg while building and installing the framebuffer target. Thanks are due to ernsteiswuerfel for the extensive testing on bug 728994. Bug: https://bugs.gentoo.org/728994 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Michael Orlitzky <mjo@gentoo.org> www-client/netsurf/netsurf-3.10-r1.ebuild | 28 +++++++++++++++++++++++----- 1 file changed, 23 insertions(+), 5 deletions(-)
Phew. All other problems should be fixed, leaving us with only that one failed test that I've reported upstream: https://bugs.netsurf-browser.org/mantis/view.php?id=2782 Does that test always fail on PPC(64)? If so, does it always fail the same way? Does MAKEOPTS="-j1" fix it? I'm wondering if it's an important failure or not, and I haven't been able to reproduce it on my boring amd64/en_US system.
~ppc64 keyworded
Created attachment 647804 [details] build.log.xz (ppc + tests)
(In reply to Michael Orlitzky from comment #15) > Does that test always fail on PPC(64)? If so, does it always fail the same > way? Does MAKEOPTS="-j1" fix it? > > I'm wondering if it's an important failure or not, and I haven't been able > to reproduce it on my boring amd64/en_US system. Yes, that test fails every time, also with MAKEOPTS="-j1". But failure is only on ppc. Have not seen this on ppc64 - tests did always pass so far.
Unable to check for sanity: > no match for package: www-client/netsurf-3.10-r1
Unable to check for sanity: > no match for package: www-client/netsurf-3.10-r2
Created attachment 657164 [details] build.log (last failed tatt build) Looking good on ppc. # cat netsurf-728994.report USE tests started on Do 27. Aug 00:55:55 CEST 2020 USE='gtk' FEATURES=' test' failed for =www-client/netsurf-3.10-r3 USE='bmp -duktape fbcon -gif -gtk -gtk2 -javascript -jpeg -mng png psl rosprite -svg -svgtiny -truetype -webp' succeeded for =www-client/netsurf-3.10-r3 USE='bmp duktape fbcon gif gtk -gtk2 javascript -jpeg mng png psl rosprite -svg -svgtiny truetype -webp' succeeded for =www-client/netsurf-3.10-r3 USE='-bmp -duktape fbcon gif -gtk -gtk2 -javascript jpeg -mng -png psl -rosprite -svg svgtiny truetype -webp' succeeded for =www-client/netsurf-3.10-r3 USE='-bmp -duktape fbcon -gif -gtk -gtk2 -javascript jpeg -mng -png -psl rosprite -svg svgtiny truetype -webp' succeeded for =www-client/netsurf-3.10-r3 USE='bmp -duktape fbcon -gif -gtk gtk2 -javascript jpeg -mng -png -psl rosprite -svg svgtiny truetype -webp' succeeded for =www-client/netsurf-3.10-r3 USE='bmp -duktape fbcon -gif -gtk gtk2 -javascript jpeg mng -png -psl rosprite -svg svgtiny truetype -webp' succeeded for =www-client/netsurf-3.10-r3 USE='-bmp -duktape fbcon -gif gtk gtk2 -javascript -jpeg -mng -png -psl -rosprite -svg -svgtiny -truetype webp' failed for =www-client/netsurf-3.10-r3 USE='-bmp -duktape -fbcon -gif gtk -gtk2 javascript -jpeg -mng png -psl rosprite -svg svgtiny -truetype webp' succeeded for =www-client/netsurf-3.10-r3 USE='bmp -duktape fbcon -gif gtk -gtk2 -javascript -jpeg -mng -png -psl -rosprite -svg -svgtiny truetype webp' succeeded for =www-client/netsurf-3.10-r3 USE='-bmp -duktape fbcon -gif gtk -gtk2 javascript jpeg mng png -psl -rosprite -svg -svgtiny truetype webp' succeeded for =www-client/netsurf-3.10-r3 USE='-bmp -duktape -fbcon gif gtk -gtk2 -javascript jpeg -mng -png psl -rosprite svg -svgtiny truetype webp' succeeded for =www-client/netsurf-3.10-r3 USE='bmp -duktape -fbcon gif gtk gtk2 -javascript -jpeg mng -png -psl rosprite -svg svgtiny truetype webp' failed for =www-client/netsurf-3.10-r3 Last build fails due to: [...] GRESORCE: frontends/gtk/res/messages.gresource.xml glib-compile-resources --generate-source --sourcedir frontends/gtk/res --target=build/Linux-gtk3/messages_gresource.c frontends/gtk/res/messages.gresource.xml can't write to file build/Linux-gtk3/messages_gresource.cmake: *** [frontends/gtk/Makefile:118: build/Linux-gtk3/messages_gresource.c] Error 1 * ERROR: www-client/netsurf-3.10-r3::gentoo failed (compile phase): * emake failed Also netsurf-3.10-r3 needed >=net-libs/libdom-0.4.1-r1 or else the build failed with: [...] content/handlers/html/dom_event.c: In function ‘dom_SCRIPT_showed_up’: content/handlers/html/dom_event.c:260:2: error: unknown type name ‘dom_html_script_element_flags’; did you mean ‘dom_html_script_element_h_’? 260 | dom_html_script_element_flags flags; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | dom_html_script_element_h_ rm -f build/Linux-gtk2/content_handlers_html_font.o content/handlers/html/dom_event.c:271:8: warning: implicit declaration of function ‘dom_html_script_element_get_flags’; did you mean ‘dom_html_script_element_get_type’? [-Wimplicit-function-declaration] 271 | exc = dom_html_script_element_get_flags(script, &flags); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | dom_html_script_element_get_type content/handlers/html/dom_event.c:271:8: warning: nested extern declaration of ‘dom_html_script_element_get_flags’ [-Wnested-externs] content/handlers/html/dom_event.c:277:14: error: ‘DOM_HTML_SCRIPT_ELEMENT_FLAG_PARSER_INSERTED’ undeclared (first use in this function) 277 | if (flags & DOM_HTML_SCRIPT_ELEMENT_FLAG_PARSER_INSERTED) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arm done
Unable to check for sanity: > no match for package: www-client/netsurf-3.10-r3
ppc done all arches done