Open
Description
I tried building an app using org.flatpak.Builder
1.2.2 on an Endless OS system with Flatpak 1.10.7 (matching Debian Bullseye). It fails when renaming the desktop file in an unexpected way.
Given the following manifest:
{
"app-id": "uk.me.wjt.FlatpakBuilderTest",
"runtime": "org.freedesktop.Platform",
"runtime-version": "21.08",
"sdk": "org.freedesktop.Sdk",
"command": "/bin/true",
"rename-desktop-file": "test.desktop",
"modules": [
{
"name": "test",
"buildsystem": "simple",
"sources": [
{
"type": "file",
"path": "test.desktop"
}
],
"build-commands": [
"install -D -t /app/share/applications test.desktop"
]
}
]
}
and the following test.desktop
:
[Desktop Entry]
Name=Test
Exec=true
Then with flatpak-builder
1.0.12 (from Debian Bullseye) the build succeeds, but with org.flatpak.Builder
1.2.2 it fails as follows:
Emptying app dir '_app'
Downloading sources
Starting build of uk.me.wjt.FlatpakBuilderTest
Cache hit for test, skipping build
Cache miss, checking out last cache hit
Cleaning up
Renaming test.desktop to uk.me.wjt.FlatpakBuilderTest.desktop
Error: Error moving file /sysroot/home/wjt/tmp/fbtest/.flatpak-builder/rofiles/rofiles-lZv3CH/files/share/applications/test.desktop: No such file or directory