Date: Sun, 04 Oct 2020 22:35:34 +0000 From: bugzilla-noreply@freebsd.org To: gnome@FreeBSD.org Subject: [Bug 250128] www/epiphany: build error (no getrandom(2)) Message-ID: <bug-250128-6497@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D250128 Bug ID: 250128 Summary: www/epiphany: build error (no getrandom(2)) Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: gnome@FreeBSD.org Reporter: jcfyecrayz@liamekaens.com Flags: maintainer-feedback?(gnome@FreeBSD.org) Assignee: gnome@FreeBSD.org Created attachment 218527 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D218527&action= =3Dedit [patch] add alternate implementation for missing getrandom(2) on 11.x 11.x port builds of www/epiphany fail to compile because of a missing proto= type for getrandom(2). Of course, the prototype is missing because the actual syscall is not available on 11.x (as of 11.4). [41/201] cc -Ilib/libephymisc.so.p -Ilib -I../lib -I. -I.. -I../lib/contrib -I../lib/history -I../lib/safe-browsing -I/usr/local/include/cairo -I/usr/local/include -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include/pixman-1 -I/usr/local/include/freetype2 -I/usr/local/include/libdrm -I/usr/local/include/libpng16 -I/usr/local/include/gdk-pixbuf-2.0 -I/usr/local/include/gio-unix-2.0 -I/usr/local/include/gsettings-desktop-schemas -I/usr/local/include/gtk-3.0 -I/usr/local/include/pango-1.0 -I/usr/local/include/fribidi -I/usr/local/include/harfbuzz -I/usr/local/include/libepoll-shim -I/usr/local/include/atk-1.0 -I/usr/local/include/at-spi2-atk/2.0 -I/usr/local/include/dbus-1.0 -I/usr/local/lib/dbus-1.0/include -I/usr/local/include/at-spi-2.0 -I/usr/local/include/json-glib-1.0 -I/usr/local/include/libdazzle-1.0 -I/usr/local/include/libsecret-1 -I/usr/local/include/libsoup-2.4 -I/usr/local/include/libxml2 -I/usr/local/include/webkitgtk-4.0 -Xclang -fcolor-diagnostics -pipe -D_FILE_OFFSET_BITS=3D64 -Wall -Winvalid-pch -Wextra -std=3Dgnu11 -O3 -Werror=3Ddeclaration-after-statement -Werror=3Dimplicit-function-declarati= on -Wno-missing-field-initializers -Wno-unused-parameter -O2 -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -fPIC -pthread -D_THREAD_SAFE -MD -MQ lib/libephymisc.so.p/ephy-sync-utils.c.o -MF lib/libephymisc.so.p/ephy-sync-utils.c.o.d -o lib/libephymisc.so.p/ephy-sync-utils.c.o -c ../lib/ephy-sync-utils.c FAILED: lib/libephymisc.so.p/ephy-sync-utils.c.o=20 cc -Ilib/libephymisc.so.p -Ilib -I../lib -I. -I.. -I../lib/contrib -I../lib/history -I../lib/safe-browsing -I/usr/local/include/cairo -I/usr/local/include -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include/pixman-1 -I/usr/local/include/freetype2 -I/usr/local/include/libdrm -I/usr/local/include/libpng16 -I/usr/local/include/gdk-pixbuf-2.0 -I/usr/local/include/gio-unix-2.0 -I/usr/local/include/gsettings-desktop-schemas -I/usr/local/include/gtk-3.0 -I/usr/local/include/pango-1.0 -I/usr/local/include/fribidi -I/usr/local/include/harfbuzz -I/usr/local/include/libepoll-shim -I/usr/local/include/atk-1.0 -I/usr/local/include/at-spi2-atk/2.0 -I/usr/local/include/dbus-1.0 -I/usr/local/lib/dbus-1.0/include -I/usr/local/include/at-spi-2.0 -I/usr/local/include/json-glib-1.0 -I/usr/local/include/libdazzle-1.0 -I/usr/local/include/libsecret-1 -I/usr/local/include/libsoup-2.4 -I/usr/local/include/libxml2 -I/usr/local/include/webkitgtk-4.0 -Xclang -fcolor-diagnostics -pipe -D_FILE_OFFSET_BITS=3D64 -Wall -Winvalid-pch -Wextra -std=3Dgnu11 -O3 -Werror=3Ddeclaration-after-statement -Werror=3Dimplicit-function-declarati= on -Wno-missing-field-initializers -Wno-unused-parameter -O2 -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -fPIC -pthread -D_THREAD_SAFE -MD -MQ lib/libephymisc.so.p/ephy-sync-utils.c.o -MF lib/libephymisc.so.p/ephy-sync-utils.c.o.d -o lib/libephymisc.so.p/ephy-sync-utils.c.o -c ../lib/ephy-sync-utils.c In file included from ../lib/ephy-sync-utils.c:30: In file included from /usr/local/include/libsoup-2.4/libsoup/soup.h:28: /usr/local/include/libsoup-2.4/libsoup/soup-date.h:63:10: warning: 'GTimeVa= l' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] GTimeVal *time); ^ /usr/local/include/glib-2.0/glib/gtypes.h:545:35: note: 'GTimeVal' has been explicitly marked deprecated here typedef struct _GTimeVal GTimeVal GLIB_DEPRECATED_TYPE_IN_2_62_FOR(GDateTim= e); ^ /usr/local/include/glib-2.0/glib/gversionmacros.h:923:49: note: expanded fr= om macro 'GLIB_DEPRECATED_TYPE_IN_2_62_FOR' # define GLIB_DEPRECATED_TYPE_IN_2_62_FOR(f) GLIB_DEPRECATED_TYPE_FOR(f) ^ /usr/local/include/glib-2.0/glib/gmacros.h:1018:37: note: expanded from mac= ro 'GLIB_DEPRECATED_TYPE_FOR' #define GLIB_DEPRECATED_TYPE_FOR(f) G_DEPRECATED_FOR(f) ^ /usr/local/include/glib-2.0/glib/gmacros.h:952:44: note: expanded from macro 'G_DEPRECATED_FOR' #define G_DEPRECATED_FOR(f) __attribute__((__deprecated__("Use '" #f "' instead"))) ^ ../lib/ephy-sync-utils.c:192:11: error: implicit declaration of function 'getrandom' is invalid in C99 [-Werror,-Wimplicit-function-declaration] ret =3D getrandom (out, num_bytes, 0); ^ 1 warning and 1 error generated. ninja: build stopped: subcommand failed. See also freebsd package builder failure log: http://beefy3.nyi.freebsd.org/data/114amd64-quarterly/551243/logs/epiphany-= 3.38.0.log The attached patch implements a workaround for the missing getrandom(2). W= hen 11.x support ends, this can be removed (or if 11.x gets getrandom(2)). --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-250128-6497>