When using https://src.fedoraproject.org/rpms/bsh/blob/f31/f/bsh.spec for a LibreOffice flatpak build, I only noticed when trying out the resulting flatpak that /app/share/java/bsh.jar was missing. (It turned out that bsh.spec uses %mvn macros that unconditionally put some files under /usr, regardless of %_prefix.) It would have been useful if at least flatpak-module local-build would warn in a noticeable way or even fail upon such /usr files.
/app/share/java/bsh.jar
%mvn
/usr
%_prefix
flatpak-module local-build
At this point, I don't think this is a practical concern any longer, but if you find a new case, I'd like to know what it is.
Metadata Update from @yselkowitz: - Issue status updated to: Closed (was: Open)