diff --git a/gnome-desktop-3.28.2-disable-riscv64-seccomp.patch b/gnome-desktop-3.28.2-disable-riscv64-seccomp.patch new file mode 100644 index 0000000..1d75550 --- /dev/null +++ b/gnome-desktop-3.28.2-disable-riscv64-seccomp.patch @@ -0,0 +1,13 @@ +diff --git a/configure.ac b/configure.ac +index 6c8194a..5e906db 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -155,7 +155,7 @@ dnl Check for bubblewrap compatible platform + case $host_os in + linux*) + case $host_cpu in +- alpha|ia64|m68k|sh4|sparc64) ++ alpha|ia64|m68k|sh4|sparc64|riscv64) + enable_seccomp="no (not available on this architecture)" + AC_MSG_WARN("seccomp not available on this architecture") + ;; diff --git a/gnome-desktop3.spec b/gnome-desktop3.spec index c0aa06f..6d62010 100644 --- a/gnome-desktop3.spec +++ b/gnome-desktop3.spec @@ -7,13 +7,16 @@ Name: gnome-desktop3 Version: 3.28.2 -Release: 2%{?dist} +Release: 2.0.riscv64%{?dist} Summary: Shared code among gnome-panel, gnome-session, nautilus, etc License: GPLv2+ and LGPLv2+ URL: http://www.gnome.org Source0: http://download.gnome.org/sources/gnome-desktop/3.28/gnome-desktop-%{version}.tar.xz +# Seccomp support is missing in RISC-V (riscv64) kernel +Patch0: gnome-desktop-3.28.2-disable-riscv64-seccomp.patch + BuildRequires: pkgconfig(gdk-pixbuf-2.0) >= %{gdk_pixbuf2_version} BuildRequires: pkgconfig(gio-2.0) >= %{glib2_version} BuildRequires: pkgconfig(glib-2.0) >= %{glib2_version} @@ -21,7 +24,9 @@ BuildRequires: pkgconfig(gobject-introspection-1.0) BuildRequires: pkgconfig(gsettings-desktop-schemas) >= %{gsettings_desktop_schemas_version} BuildRequires: pkgconfig(gtk+-3.0) >= %{gtk3_version} BuildRequires: pkgconfig(iso-codes) +%ifnarch riscv64 BuildRequires: pkgconfig(libseccomp) +%endif BuildRequires: pkgconfig(libudev) BuildRequires: pkgconfig(xkeyboard-config) BuildRequires: gettext @@ -29,6 +34,13 @@ BuildRequires: gtk-doc >= %{gtk_doc_version} BuildRequires: intltool BuildRequires: itstool +# Needed to re-gen configure scripts on RISC-V (riscv6) +BuildRequires: autoconf-archive +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: libtool +BuildRequires: yelp-tools + Requires: bubblewrap Requires: gdk-pixbuf2%{?_isa} >= %{gdk_pixbuf2_version} Requires: glib2%{?_isa} >= %{glib2_version} @@ -73,6 +85,9 @@ the functionality of the installed %{name} package. %autosetup -p1 -n gnome-desktop-%{version} %build +# We modified configure.ac to drop seccomp on RISC-V (riscv64) +autoreconf -fiv + %configure --enable-installed-tests make %{?_smp_mflags} @@ -107,6 +122,9 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/*.la %{_datadir}/installed-tests %changelog +* Sat Aug 11 2018 David Abdurachmanov - 3.28.2-2.0.riscv64 +- Disable seccomp on RISC-V (riscv64) + * Fri Jul 13 2018 Fedora Release Engineering - 3.28.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild