From f13663ddf5a87531e1a3bb64fa49f7c2a0671b39 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Fri, 17 Mar 2023 10:54:40 +0000 Subject: [PATCH] build: Drop check-include Signed-off-by: Michael Tremer --- Makefile.am | 1 - src/libpakfire/build.c | 1 - src/scripts/check-include | 43 --------------------------------------- 3 files changed, 45 deletions(-) delete mode 100644 src/scripts/check-include diff --git a/Makefile.am b/Makefile.am index 713898fb3..ffc7599fd 100644 --- a/Makefile.am +++ b/Makefile.am @@ -722,7 +722,6 @@ tests_parser_test_LDADD = \ dist_scripts_SCRIPTS = \ src/scripts/check-buildroot \ src/scripts/check-hardening \ - src/scripts/check-include \ src/scripts/check-interpreters \ src/scripts/check-rpaths \ src/scripts/check-unsafe-files \ diff --git a/src/libpakfire/build.c b/src/libpakfire/build.c index 9887f3480..db54fdc5d 100644 --- a/src/libpakfire/build.c +++ b/src/libpakfire/build.c @@ -1325,7 +1325,6 @@ static const char* post_build_scripts[] = { "check-unsafe-files", "check-rpaths", "check-buildroot", - "check-include", "check-hardening", "check-interpreters", "compress-man-pages", diff --git a/src/scripts/check-include b/src/scripts/check-include deleted file mode 100644 index 9630bf8ab..000000000 --- a/src/scripts/check-include +++ /dev/null @@ -1,43 +0,0 @@ -#!/bin/bash -############################################################################### -# # -# Pakfire - The IPFire package management system # -# Copyright (C) 2021 Pakfire development team # -# # -# This program is free software: you can redistribute it and/or modify # -# it under the terms of the GNU General Public License as published by # -# the Free Software Foundation, either version 3 of the License, or # -# (at your option) any later version. # -# # -# This program is distributed in the hope that it will be useful, # -# but WITHOUT ANY WARRANTY; without even the implied warranty of # -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # -# GNU General Public License for more details. # -# # -# You should have received a copy of the GNU General Public License # -# along with this program. If not, see . # -# # -############################################################################### - -error() { - echo "$@" >&2 -} - -main() { - local buildroot="${1}" - shift - - # Check if BUILDROOT exists - if [ ! -d "${buildroot}" ]; then - error "BUILDROOT does not exist" - return 1 - fi - - if [ -d "${buildroot}/usr/include" ]; then - chown -R "root:root" "${buildroot}/usr/include" - fi - - return 0 -} - -main "$@" || exit $? -- 2.39.5