Bug 277521

Summary: www/netsurf: does not start
Product: Ports & Packages Reporter: Slawomir Wojciech Wojtczak <vermaden>
Component: Individual Port(s)Assignee: Neel Chauhan <nc>
Status: Closed FIXED    
Severity: Affects Only Me CC: alster, arrowd, mew14930xvi, nimaje+fbz
Priority: --- Flags: bugzilla: maintainer-feedback? (nc)
Version: Latest   
Hardware: amd64   
OS: Any   
Attachments:
Description Flags
fix resources error
none
fix resources error
none
Fix Resources Error none

Description Slawomir Wojciech Wojtczak 2024-03-06 06:19:18 UTC
Hi.

Is it just me or 'www/netsurf' is currently broken?


% uname -prism
FreeBSD 14.0-RELEASE-p5 amd64 amd64 GENERIC



% pkg info www/netsurf        
netsurf-3.11
Name           : netsurf
Version        : 3.11
Installed on   : Wed Mar  6 07:13:16 2024 CET
Origin         : www/netsurf
Architecture   : FreeBSD:14:amd64
Prefix         : /usr/local
Categories     : www
Licenses       : MIT and GPLv2
Maintainer     : nc@FreeBSD.org
WWW            : https://www.netsurf-browser.org/
Comment        : Lightweight web browser
Shared Libs required:
        libwebp.so.7
        libwapcaplet.so.0
        libutf8proc.so.3
        librsvg-2.so.2
        libpng16.so.16
        libparserutils.so.0
        libpangocairo-1.0.so.0
        libpango-1.0.so.0
        libnsutils.so.0
        libnspsl.so.0
        libnsgif.so.1
        libnsbmp.so.0
        libjpeg.so.8
        libintl.so.8
        libiconv.so.2
        libhubbub.so.0
        libharfbuzz.so.0
        libgtk-3.so.0
        libgthread-2.0.so.0
        libgobject-2.0.so.0
        libgmodule-2.0.so.0
        libglib-2.0.so.0
        libgio-2.0.so.0
        libgdk_pixbuf-2.0.so.0
        libgdk-3.so.0
        libexpat.so.1
        libdom.so.0
        libcurl.so.4
        libcss.so.0
        libcairo.so.2
        libcairo-gobject.so.2
        libatk-1.0.so.0
Annotations    :
        FreeBSD_version: 1400097
        build_timestamp: 2024-03-02T20:15:10+0000
        built_by       : poudriere-git-3.4.1-1-g1e9f97d6
        cpe            : cpe:2.3:a:netsurf-browser:netsurf:3.11:::::freebsd14:x64
        port_checkout_unclean: no
        port_git_hash  : f2b003b960
        ports_top_checkout_unclean: no
        ports_top_git_hash: 712c7eaa68
        repo_type      : binary
        repository     : FreeBSD
Flat size      : 4.59MiB
Description    :
NetSurf is a lightweight cross-platform Web browser. It supports the
HTML 4 and CSS standards and provides a small, fast, and comprehensive
Web browsing solution. NetSurf was originally written for RISC OS.



% /usr/local/bin/netsurf-gtk     
GTK resources failed to initialise (NotFound)
NetSurf gtk failed to initialise (NotFound)



% doas truss /usr/local/bin/netsurf-gtk 2>&1 | tail -30
openat(AT_FDCWD,"/usr/local/share/locale/en.UTF-8/LC_MESSAGES/glib20.mo",O_RDONLY,00) ERR#2 'No such file or directory'
openat(AT_FDCWD,"/usr/local/share/locale/en.utf8/LC_MESSAGES/glib20.mo",O_RDONLY,00) ERR#2 'No such file or directory'
openat(AT_FDCWD,"/usr/local/share/locale/en/LC_MESSAGES/glib20.mo",O_RDONLY,00) ERR#2 'No such file or directory'
__realpathat(AT_FDCWD,"/home/vermaden/.config/netsurf/deoptions.ui",0x27d809128400,1024,0) ERR#2 'No such file or directory'
fstatat(AT_FDCWD,"/home",{ mode=drwxr-xr-x ,inode=34,size=4,blksize=4096 },AT_SYMLINK_NOFOLLOW) = 0 (0x0)
fstatat(AT_FDCWD,"/home/vermaden",{ mode=drwxr-xr-x ,inode=2,size=240,blksize=16384 },AT_SYMLINK_NOFOLLOW) = 0 (0x0)
fstatat(AT_FDCWD,"/home/vermaden/.config",{ mode=drwxr-xr-x ,inode=302,size=170,blksize=11264 },AT_SYMLINK_NOFOLLOW) = 0 (0x0)
fstatat(AT_FDCWD,"/home/vermaden/.config/netsurf",{ mode=drwx------ ,inode=307409,size=2,blksize=131072 },AT_SYMLINK_NOFOLLOW) = 0 (0x0)
fstatat(AT_FDCWD,"/home/vermaden/.config/netsurf/deoptions.ui",0x821450bd0,AT_SYMLINK_NOFOLLOW) ERR#2 'No such file or directory'
__realpathat(AT_FDCWD,"/usr/local/share/netsurf//en/deoptions.ui",0x27d809128400,1024,0) ERR#2 'No such file or directory'
fstatat(AT_FDCWD,"/usr",{ mode=drwxr-xr-x ,inode=5,size=15,blksize=4096 },AT_SYMLINK_NOFOLLOW) = 0 (0x0)
fstatat(AT_FDCWD,"/usr/local",{ mode=drwxr-xr-x ,inode=458,size=22,blksize=4096 },AT_SYMLINK_NOFOLLOW) = 0 (0x0)
fstatat(AT_FDCWD,"/usr/local/share",{ mode=drwxr-xr-x ,inode=34311,size=264,blksize=16384 },AT_SYMLINK_NOFOLLOW) = 0 (0x0)
fstatat(AT_FDCWD,"/usr/local/share/netsurf",{ mode=drwxr-xr-x ,inode=476408,size=40,blksize=4096 },AT_SYMLINK_NOFOLLOW) = 0 (0x0)
fstatat(AT_FDCWD,"/usr/local/share/netsurf/en",{ mode=drwxr-xr-x ,inode=476412,size=6,blksize=4096 },AT_SYMLINK_NOFOLLOW) = 0 (0x0)
fstatat(AT_FDCWD,"/usr/local/share/netsurf/en/deoptions.ui",0x821450bd0,AT_SYMLINK_NOFOLLOW) ERR#2 'No such file or directory'
__realpathat(AT_FDCWD,"/usr/local/share/netsurf//deoptions.ui",0x27d809128400,1024,0) ERR#2 'No such file or directory'
fstatat(AT_FDCWD,"/usr",{ mode=drwxr-xr-x ,inode=5,size=15,blksize=4096 },AT_SYMLINK_NOFOLLOW) = 0 (0x0)
fstatat(AT_FDCWD,"/usr/local",{ mode=drwxr-xr-x ,inode=458,size=22,blksize=4096 },AT_SYMLINK_NOFOLLOW) = 0 (0x0)
fstatat(AT_FDCWD,"/usr/local/share",{ mode=drwxr-xr-x ,inode=34311,size=264,blksize=16384 },AT_SYMLINK_NOFOLLOW) = 0 (0x0)
fstatat(AT_FDCWD,"/usr/local/share/netsurf",{ mode=drwxr-xr-x ,inode=476408,size=40,blksize=4096 },AT_SYMLINK_NOFOLLOW) = 0 (0x0)
fstatat(AT_FDCWD,"/usr/local/share/netsurf/deoptions.ui",0x821450bd0,AT_SYMLINK_NOFOLLOW) ERR#2 'No such file or directory'
GTK resources failed to initialise (NotFound)
write(2,"GTK resources failed to initiali"...,46) = 46 (0x2e)
NetSurf gtk failed to initialise (NotFound)
write(2,"NetSurf gtk failed to initialise"...,44) = 44 (0x2c)
getpid()                                         = 26764 (0x688c)
getpid()                                         = 26764 (0x688c)
exit(0x2)                                       
process exit, rval = 2




Regards,
vermaden
Comment 1 Älven 2024-03-27 21:29:04 UTC
Exactly the same here.
Comment 2 mew14930xvi 2024-03-28 18:44:39 UTC
Created attachment 249540 [details]
fix resources error

I tested on amd64 14.0R.
Comment 3 mew14930xvi 2024-03-30 13:33:04 UTC
Created attachment 249577 [details]
fix resources error

Fix Resources Error
Fix dependency on xxd
bump PORTREVISION
Comment 4 mew14930xvi 2024-04-12 02:45:03 UTC
Created attachment 249920 [details]
Fix Resources Error

Add LICENSE_FILE
Comment 5 commit-hook freebsd_committer freebsd_triage 2024-05-21 19:06:26 UTC
A commit in branch main references this bug:

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

commit 86cb3a0b425e6bf3ab9b1fb7e826127e649acdc8
Author:     mew14930xvi <mew14930xvi@inbox.lv>
AuthorDate: 2024-05-21 19:05:04 +0000
Commit:     Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2024-05-21 19:06:00 +0000

    www/netsurf: Remove bogus patch

    PR:             277521
    Approved by:    maintainer timeout

 www/netsurf/Makefile                               |  4 +++-
 .../files/patch-frontends_gtk_resources.c (gone)   | 22 ----------------------
 2 files changed, 3 insertions(+), 23 deletions(-)
Comment 6 Slawomir Wojciech Wojtczak 2024-05-21 22:45:48 UTC
Thank You.