]> TLD Linux GIT Repositories - packages/rpm-build-tools.git/commitdiff
- more directories to trigger systemd excludes
authorMarcin Krol <hawk@tld-linux.org>
Wed, 3 Apr 2024 18:39:29 +0000 (20:39 +0200)
committerMarcin Krol <hawk@tld-linux.org>
Wed, 3 Apr 2024 18:39:29 +0000 (20:39 +0200)
builder.sh

index 587d275c9ba413f0770529a01c0d846a1c6613c0..a6eb3d72279dc333a5ca7eff96c3ce7e5fd2e645 100755 (executable)
@@ -1688,7 +1688,7 @@ build_package() {
        local specdir=$(insert_gitlog $SPECFILE)
        ulimit -c unlimited
        # If required exclude directories with systemd related files from package contents
-       if grep -q -E '(lib/(systemd|tmpfiles.d)|systemd(unitdir|userunitdir|tmpfilesdir))' $specdir/$SPECFILE; then
+       if grep -q -E '(lib/(systemd|binfmt.d|sysctl.d|sysusers.d|tmpfiles.d)|systemd(unitdir|userunitdir|tmpfilesdir))' $specdir/$SPECFILE; then
                sed -i -e '/^%exclude_systemd_files/d; /^%files/s/$/\n%exclude_systemd_files/g;' $specdir/$SPECFILE
        fi
        # Enable/disable distro wide bconds based on ~/.distbcond