brp-check-suse/0001-Remove-brp-75-ar-for-now.patch

34 lines
905 B
Diff

From c40244e7026bfdf1a9379542db03b12f2850f061 Mon Sep 17 00:00:00 2001
From: Martin Liska <mliska@suse.cz>
Date: Tue, 18 Jun 2019 10:45:09 +0200
Subject: [PATCH] Remove brp-75-ar for now.
---
brp-75-ar | 14 --------------
1 file changed, 14 deletions(-)
delete mode 100755 brp-75-ar
diff --git a/brp-75-ar b/brp-75-ar
deleted file mode 100755
index 3b852ac..0000000
--- a/brp-75-ar
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/bin/bash
-# If using normal root, avoid changing anything.
-if [ -z "$RPM_BUILD_ROOT" -o "$RPM_BUILD_ROOT" = "/" ]; then
- echo "RPM_BUILD_ROOT is not set or set to / : skipping ar normalization"
- exit 0
-fi
-if [ -z "$SOURCE_DATE_EPOCH" ] ; then
- echo "SOURCE_DATE_EPOCH is not set: skipping ar normalization"
- exit 0
-fi
-
-while read f; do
- ! file "$f" | grep -q "ar archive" || objcopy -D "$f" || true
-done < <(find "$RPM_BUILD_ROOT" -type f -name "*.a" -print)
--
2.21.0