Skip to content
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

Closed
roipoussiere opened this issue May 7, 2020 · 2 comments
Closed

how to edit files that are not sources? #345

roipoussiere opened this issue May 7, 2020 · 2 comments

Comments

@roipoussiere
Copy link

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:

  - 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?

@roipoussiere roipoussiere changed the title how to edit outside the app dir? how to edit files that are not sources? May 7, 2020
@refi64
Copy link
Contributor

refi64 commented May 7, 2020 via email

@roipoussiere
Copy link
Author

Symlink it into /app/include

this works, thanks!

or better yet, create a patch for OpenCascade that changes the include path.

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants