Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
qemu arm64 webkit-gtk BubblewrapSandboxChecks
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
vastchen
n00b
n00b


Joined: 22 Apr 2016
Posts: 55

PostPosted: Thu Mar 26, 2020 1:16 am    Post subject: qemu arm64 webkit-gtk BubblewrapSandboxChecks Reply with quote

I use pc qemu build the big package for my raspberry 3 like rust .when i build webkit-gtk-2.26.4-r1

Code:

-- Found LIBSECCOMP: /usr/lib64/libseccomp.so (found version "2.4.2")
CMake Error at Source/cmake/BubblewrapSandboxChecks.cmake:24 (message):
  Failed to run /usr/bin/bwrap
Call Stack (most recent call first):
  Source/cmake/OptionsGTK.cmake:432 (include)
  Source/cmake/WebKitCommon.cmake:56 (include)
  CMakeLists.txt:169 (include)


I build the webkit in qemu i think i should disable BubblewrapSandbox but how to disable BubblewrapSandbox or have other way?
_________________
gentoo user
Back to top
View user's profile Send private message
Soulsmaster
n00b
n00b


Joined: 13 May 2008
Posts: 9

PostPosted: Sat Dec 05, 2020 9:27 am    Post subject: Reply with quote

I know it kinda late, but managed to compile this package with qemu just now.

Had the same problem with bubblewrapSandbox and webkit-gtk-2.28.4 and found this patch that was already applied to my version:
https://trac.webkit.org/changeset/249883/webkit

This patch disable bubblewrapSandbox pre compile checks if you are crosscompiling.
Then I just commented out this part in file Source/cmake/BubblewrapSandboxChecks.cmake, forcing it even if I'm not crosscompiling now with qemu:

Code:

        17       if (NOT CMAKE_CROSSCOMPILING)
    18           execute_process(
    19               COMMAND "${BWRAP_EXECUTABLE}" --version
    20               RESULT_VARIABLE BWRAP_RET
    21               OUTPUT_VARIABLE BWRAP_OUTPUT
    22           )
    23           if (BWRAP_RET)
    24               message(FATAL_ERROR "Failed to run ${BWRAP_EXECUTABLE}")
    25           endif ()
    26           string(REGEX MATCH "[0-9]+\\.[0-9]+\\.[0-9]+" BWRAP_VERSION "${BWRAP_OUTPUT}")
    27           if (NOT "${BWRAP_VERSION}" VERSION_GREATER_EQUAL "0.3.1")
    28               message(FATAL_ERROR "bwrap must be >= 0.3.1 but ${BWRAP_VERSION} found")
    29           endif ()
    30       elseif (NOT SILENCE_CROSS_COMPILATION_NOTICES)
    31           message(NOTICE
    32               "***--------------------------------------------------------***\n"
    33               "***  Cannot check Bubblewrap version when cross-compiling. ***\n"
    34               "***  The target system MUST have version 0.3.1 or newer.   ***\n"
    35               "***  Use the BWRAP_EXECUTABLE and DBUS_PROXY_EXECUTABLE    ***\n"
    36               "***  variables to set the run-time paths for the 'bwrap'   ***\n"
    37               "***  and 'xdg-dbus-proxy' programs.                        ***\n"
    38               "***--------------------------------------------------------***"
    39           )
    40       endif ()


AARCH64: if you are compiling <webkit-gtk-2.29 for aarch64 / arm64 you also need to apply this patch:
https://trac.webkit.org/changeset/260680/webkit

Then you finish compile and installing:
Code:

ebuild ...path-to-ebuild compile
ebuild ...path-to-ebuild install
ebuild ...path-to-ebuild qmerge


GL compiling! (this require tons of ram...)
_________________
ThePayne
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum