From b8c835c4dedcda8d2176321413c456cc9c392180 Mon Sep 17 00:00:00 2001 From: Kamil Date: Sat, 27 Dec 2025 23:54:59 +0100 Subject: [PATCH] fix(rpm): remove system modification command from %install section The `update-mime-database` command was being executed in the `%install` section. This caused "Permission denied" errors during the build process because it attempted to modify the host system's `/usr/share/mime` directory instead of the buildroot. This command belongs in `%post` and `%postun` (which are already handled), not in `%install`. --- .../flutter_app_packager/lib/src/makers/rpm/make_rpm_config.dart | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/flutter_app_packager/lib/src/makers/rpm/make_rpm_config.dart b/packages/flutter_app_packager/lib/src/makers/rpm/make_rpm_config.dart index 87a8381c..ae770c1f 100644 --- a/packages/flutter_app_packager/lib/src/makers/rpm/make_rpm_config.dart +++ b/packages/flutter_app_packager/lib/src/makers/rpm/make_rpm_config.dart @@ -136,7 +136,6 @@ class MakeRPMConfig extends MakeConfig { 'cp -r %{name}.desktop %{buildroot}%{_datadir}/applications', 'cp -r %{name}.png %{buildroot}%{_datadir}/pixmaps', 'cp -r %{name}*.xml %{buildroot}%{_datadir}/metainfo || :', - 'update-mime-database %{_datadir}/mime &> /dev/null || :', ].join('\n'), '%postun': ['update-mime-database %{_datadir}/mime &> /dev/null || :'] .join('\n'),