#2 Remove spurious symlinks when building flatpak
Merged 4 years ago by caolanm. Opened 4 years ago by sbergmann.
rpms/ sbergmann/firebird flatpakfix  into  master

file modified
+6
@@ -261,6 +261,12 @@ 

  mkdir -p .%{_unitdir}

  cp .%{_datadir}/%{name}/misc/%{name}-superserver.service .%{_unitdir}/%{name}-superserver.service

  

+ %if 0%{?flatpak}

+ # Remove spurious symlinks to /app/include/firebird/...:

+ rm -vr usr/include/firebird

+ rm -v usr/include/{ibase,iberror,ib_util}.h

+ %endif

+ 

  

  %pre 

  # Create the firebird group if it doesn't exist

For some unexplored reason, the firebird build system creates some additional
symlinks in the build root when building a flatpak. Instead of trying to patch
the firebird build system to prevent them, just delete them afterwards (to avoid
"Installed (but unpackaged) file(s) found" errors).

To build a LibreOffice F31 flatpak, I would ideally need this commit and also Kalev's 6737b9d "Avoid hardcoding /usr prefix" in f31.

Pull-Request has been merged by caolanm

4 years ago