]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
build-essentials: Fix bug that missed EXEC binaries and did not find them.
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 21 Apr 2011 23:36:54 +0000 (01:36 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 21 Apr 2011 23:36:54 +0000 (01:36 +0200)
pkgs/build-essentials/build-essentials.nm
pkgs/build-essentials/buildsystem-tools/functions-files
pkgs/build-essentials/quality-agent/quality-agent.d/050-relro

index 5c8997999e08a0e9a2d94e531acae9d00e1ad9ad..085b0500316b08f5b4d91912bef143be50e3f4e4 100644 (file)
@@ -26,7 +26,7 @@ include $(PKGROOT)/Include
 
 PKG_NAME       = build-essentials
 PKG_VER        = $(DISTRO_VERSION)
-PKG_REL        = 14
+PKG_REL        = 15
 PKG_EPOCH      = 1
 PKG_ARCH       = noarch
 
index 41ce3be0cd748e620f6ac6250f3f934a508f4861..05920c8c0310ecaa707146bf540e64f6de6a74de 100644 (file)
@@ -179,7 +179,7 @@ function find_elf_files() {
        for dir in ${dirs}; do
                dir="${prefix}${dir}"
                for file in $(find ${dir} -type f 2>/dev/null); do
-                       if file_is_elf ${file} && file_is_shared_object ${file} && ! file_is_static ${file}; then
+                       if file_is_elf ${file} && ! file_is_static ${file}; then
                                files="${files} ${file}"
                        fi
                done
index f0110565780413f47334a95808083b184b5e7540..e42e8ff9ce354a5e10008e9b68174b1df4f94841 100755 (executable)
@@ -16,6 +16,9 @@ function check() {
                        continue
                fi
 
+               # Skip all files that are not a shared object.
+               file_is_shared_object ${file} || continue
+
                if ! file_is_relro_full ${file}; then
                        if [ "${QUALITY_AGENT_PERMIT_NOT_FULL_RELRO}" = "yes" ]; then
                                log_warning "  Is not full relro: ${file}"