From 0732686e3a2e8d88a0ea0806730804aaaf529ae0 Mon Sep 17 00:00:00 2001 From: Christoph Maser Date: Tue, 8 Jul 2025 18:33:31 +0200 Subject: [PATCH] feat!: remove unnecessary dependencies from RPM spec On most RPM-based systems, mkdir and touch are provided by the coreutils package, which is a fundamental part of the OS. It's highly unlikely for a system to be missing these. On the other hand this currently breaks on amazonlinux because their coreutils package does not provide these commands explicitly. --- resources/rpm/project.spec.erb | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/resources/rpm/project.spec.erb b/resources/rpm/project.spec.erb index 64451ed2..8fb97b02 100644 --- a/resources/rpm/project.spec.erb +++ b/resources/rpm/project.spec.erb @@ -76,23 +76,6 @@ Autoreq: 0 Requires: <%= requires.requirement %><%= requires.version ? " #{requires.version}" : "" %> <%- end -%> -# All rpm packages built by vanagon have the pre-/post-install script -# boilerplates (defined below). These require `mkdir` and `touch` but previously -# did not specify a dependency on these. -# In the future, we will supress pre/post scripts completely if there's nothing -# specified by the project or the components. -<%- if @platform.is_fedora? || @platform.is_amazon? || (@platform.is_el? && @platform.os_version.to_i >= 9) -%> -Requires(pre): /usr/bin/mkdir -Requires(pre): /usr/bin/touch -Requires(post): /usr/bin/mkdir -Requires(post): /usr/bin/touch -<%- elsif !@platform.is_aix? -%> -Requires(pre): /bin/mkdir -Requires(pre): /bin/touch -Requires(post): /bin/mkdir -Requires(post): /bin/touch -<%- end -%> - <%- if has_services? -%> <%- if @platform.get_service_types.include?("systemd") -%> <%- if @platform.is_sles? -%>