Unable to install Swift Sdk extension #2

Closed
opened 2024-02-10 07:34:20 +01:00 by kdwk · 13 comments
kdwk commented 2024-02-10 07:34:20 +01:00 (Migrated from github.com)

The Sdk extension repo doesn't seem to have Issues so I filed it here.

When running sudo flatpak-builder build-dir org.freedesktop.Sdk.Extension.swift.json --install --force-clean in the downloaded folder, the following error happens:
bwrap: Can't find source path /var/home/kdwk/Projects/org.freedesktop.Sdk.Extension.swift-main/.flatpak-builder/rofiles/rofiles-hG49ny/var/lib: Permission denied Error: module libedit: Child process exited with code 1

And therefore the Sdk extension cannot be installed.

The Sdk extension repo doesn't seem to have Issues so I filed it here. When running `sudo flatpak-builder build-dir org.freedesktop.Sdk.Extension.swift.json --install --force-clean` in the downloaded folder, the following error happens: `bwrap: Can't find source path /var/home/kdwk/Projects/org.freedesktop.Sdk.Extension.swift-main/.flatpak-builder/rofiles/rofiles-hG49ny/var/lib: Permission denied Error: module libedit: Child process exited with code 1 ` And therefore the Sdk extension cannot be installed.
david-swift commented 2024-02-10 07:36:55 +01:00 (Migrated from github.com)

Have you tried executing the following command? It seems to be the same error as in #1.

chmod u+s /usr/bin/bwrap
Have you tried executing the following command? It seems to be the same error as in #1. ``` chmod u+s /usr/bin/bwrap ```
kdwk commented 2024-02-10 07:51:37 +01:00 (Migrated from github.com)

Unfortunately now it fails with

Please review the exported files and the metadata Committing stage finish to cache Exporting org.freedesktop.Sdk.Extension.swift to repo Commit: 050f1e2af0697722e2fd5f0f02c718f4cd029d054162e14b09f65413d8f0de9b Metadata Total: 237 Metadata Written: 2 Content Total: 1095 Content Written: 0 Content Bytes Written: 0 (0 bytes) error: open(O_TMPFILE): Permission denied Install failed: Child process exited with code 1

Unfortunately now it fails with `Please review the exported files and the metadata Committing stage finish to cache Exporting org.freedesktop.Sdk.Extension.swift to repo Commit: 050f1e2af0697722e2fd5f0f02c718f4cd029d054162e14b09f65413d8f0de9b Metadata Total: 237 Metadata Written: 2 Content Total: 1095 Content Written: 0 Content Bytes Written: 0 (0 bytes) error: open(O_TMPFILE): Permission denied Install failed: Child process exited with code 1 `
david-swift commented 2024-02-10 07:53:31 +01:00 (Migrated from github.com)

Are you installing it using the following command?

sudo flatpak-builder build-dir org.freedesktop.Sdk.Extension.swift.json --install --force-clean
Are you installing it using the following command? ``` sudo flatpak-builder build-dir org.freedesktop.Sdk.Extension.swift.json --install --force-clean ```
kdwk commented 2024-02-10 07:54:37 +01:00 (Migrated from github.com)

Yes. That's the same command

Yes. That's the same command
kdwk commented 2024-02-10 07:57:03 +01:00 (Migrated from github.com)

Screenshot from 2024-02-10 14-56-09

The build-dir folder doesn't seem to allow any other user than "user #524288" to create files

![Screenshot from 2024-02-10 14-56-09](https://github.com/AparokshaUI/AdwaitaTemplate/assets/39268094/318fb5d1-1d0f-4bf6-b37b-16b59e89e6e0) The build-dir folder doesn't seem to allow any other user than "user #524288" to create files
david-swift commented 2024-02-10 07:59:04 +01:00 (Migrated from github.com)

Strange, the super user should have the permission.

image

Strange, the super user should have the permission. ![image](https://github.com/AparokshaUI/AdwaitaTemplate/assets/106754840/437d69c9-fa63-45af-81bf-40d329f0dfca)
david-swift commented 2024-02-10 08:01:28 +01:00 (Migrated from github.com)
I found this comment, maybe that helps? https://github.com/flatpak/flatpak/issues/1507#issuecomment-378024458
kdwk commented 2024-02-10 08:07:06 +01:00 (Migrated from github.com)

I found this comment, maybe that helps?

flatpak/flatpak#1507 (comment)

This doesn't work because /var/lib is not mutable on my system

> I found this comment, maybe that helps? > > [flatpak/flatpak#1507 (comment)](https://github.com/flatpak/flatpak/issues/1507#issuecomment-378024458) This doesn't work because /var/lib is not mutable on my system
kdwk commented 2024-02-10 08:08:26 +01:00 (Migrated from github.com)

Screenshot from 2024-02-10 15-07-24

Hmm, it still fails after I gave everyone write access to build-dir

![Screenshot from 2024-02-10 15-07-24](https://github.com/AparokshaUI/AdwaitaTemplate/assets/39268094/364d5ef6-ce3b-46d8-89ee-7ecd38cedf0c) Hmm, it still fails after I gave everyone write access to build-dir
david-swift commented 2024-02-10 08:12:02 +01:00 (Migrated from github.com)

I think that is because the build-dir gets deleted and created again when running the installation command, so the permissions reset.

I think that is because the build-dir gets deleted and created again when running the installation command, so the permissions reset.
david-swift commented 2024-02-10 08:20:45 +01:00 (Migrated from github.com)

Have you tried running flatpak repair? Or installing only for the user by appending the --user flag? I have no idea whether that helps, but it might be worth trying.

Have you tried running `flatpak repair`? Or installing only for the user by appending the `--user` flag? I have no idea whether that helps, but it might be worth trying.
kdwk commented 2024-02-10 09:13:49 +01:00 (Migrated from github.com)

I did --user and it worked. Thanks

I did `--user` and it worked. Thanks
david-swift commented 2024-02-10 09:19:18 +01:00 (Migrated from github.com)

I've just added instructions to the README. Thanks for opening the issue!

I've just added instructions to the README. Thanks for opening the issue!
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: aparoksha/adwaita-template#2
No description provided.