-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to edit files that are not sources? #345
Comments
roipoussiere
changed the title
how to edit outside the app dir?
how to edit files that are not sources?
May 7, 2020
Symlink it into /app/include, or better yet, create a patch for Open
Cascade that changes the include path.
…On Thu, May 7, 2020, 1:15 AM Nathanaël ***@***.***> wrote:
I'm trying to build Open Cascade
<https://www.opencascade.com/doc/occt-7.2.0/overview/html/occt_dev_guides__building.html>
and I'm facing the error missing file xlocale.h. After some search I
found that a solution
<agracio/electron-edge-js#16 (comment)>
was to create a symlink: ln -s /usr/include/locale.h
/usr/include/xlocale.h
But how to do this from the flatpak context?
I tried this:
- name: occt
sources:
- type: archive
url: https://github.com/tpaviot/oce/releases/download/official-upstream-packages/opencascade-7.2.0.tgz
md5: 5fcdd7a9bcb797ced2e4c00f59b3f5aa
- type: shell
commands:
- ln -s /usr/include/locale.h /usr/include/xlocale.h
buildsystem: cmake
config-opts:
- -DOCE_INSTALL_PREFIX:PATH=/app
But it seems (obviously) that sources.commands is not supposed to edit
non-sources files:
Building module occt in /home/nath/divers/flat_cadquery/.flatpak-builder/build/occt-1
========================================================================
ln: failed to create symbolic link '/usr/include/xlocale.h': Read-only file system
Error: module occt: Child process exited with code 1
What should I do?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#345>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAM4YSKAS7PBDP2LVXHZ44LRQJGZTANCNFSM4M3BGC2Q>
.
|
this works, thanks!
I don't really know how to do this but I reported it here with the solution. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm trying to build Open Cascade and I'm facing the error
missing file xlocale.h
. After some search I found that a solution was to create a symlink:ln -s /usr/include/locale.h /usr/include/xlocale.h
But how to do this from the flatpak context?
I tried this:
But it seems (obviously) that
sources.commands
is not supposed to edit non-sources files:What should I do?
The text was updated successfully, but these errors were encountered: