[17/28] pciutils: Do not make headers executable

Message ID 20220204164748.315559-17-michael.tremer@ipfire.org
State Accepted
Commit f35f213850a5218e2ecc4ec385f62889ac69e169
Headers
Series [01/28] gcc: toolchain stage 2: Set sysroot to /tools_${arch} |

Commit Message

Michael Tremer Feb. 4, 2022, 4:47 p.m. UTC
  Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
---
 lfs/pciutils | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
  

Comments

Adolf Belka Feb. 14, 2022, 9:37 p.m. UTC | #1
Reviewed-by: Adolf Belka <adolf.belka@ipfire.org>

On 04/02/2022 17:47, Michael Tremer wrote:
> Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
> ---
>   lfs/pciutils | 10 +++++-----
>   1 file changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/lfs/pciutils b/lfs/pciutils
> index 995c3c0a4..2dcf9e868 100644
> --- a/lfs/pciutils
> +++ b/lfs/pciutils
> @@ -80,11 +80,11 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
>   
>   	# Install headers.
>   	mkdir -pv /usr/include/pci
> -	cd $(DIR_APP) && install -p lib/pci.h /usr/include/pci
> -	cd $(DIR_APP) && install -p lib/header.h /usr/include/pci
> -	cd $(DIR_APP) && install -p lib/config.h /usr/include/pci
> -	cd $(DIR_APP) && install -p lib/types.h /usr/include/pci
> -	cd $(DIR_APP) && install -p lib/libpci.pc /usr/lib/pkgconfig
> +	cd $(DIR_APP) && install -m 644 lib/pci.h /usr/include/pci
> +	cd $(DIR_APP) && install -m 644 lib/header.h /usr/include/pci
> +	cd $(DIR_APP) && install -m 644 lib/config.h /usr/include/pci
> +	cd $(DIR_APP) && install -m 644 lib/types.h /usr/include/pci
> +	cd $(DIR_APP) && install -m 644 lib/libpci.pc /usr/lib/pkgconfig
>   	chmod -v 755 /usr/lib/libpci.so
>   	@rm -rf $(DIR_APP)
>   	@$(POSTBUILD)
  

Patch

diff --git a/lfs/pciutils b/lfs/pciutils
index 995c3c0a4..2dcf9e868 100644
--- a/lfs/pciutils
+++ b/lfs/pciutils
@@ -80,11 +80,11 @@  $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
 
 	# Install headers.
 	mkdir -pv /usr/include/pci
-	cd $(DIR_APP) && install -p lib/pci.h /usr/include/pci
-	cd $(DIR_APP) && install -p lib/header.h /usr/include/pci
-	cd $(DIR_APP) && install -p lib/config.h /usr/include/pci
-	cd $(DIR_APP) && install -p lib/types.h /usr/include/pci
-	cd $(DIR_APP) && install -p lib/libpci.pc /usr/lib/pkgconfig
+	cd $(DIR_APP) && install -m 644 lib/pci.h /usr/include/pci
+	cd $(DIR_APP) && install -m 644 lib/header.h /usr/include/pci
+	cd $(DIR_APP) && install -m 644 lib/config.h /usr/include/pci
+	cd $(DIR_APP) && install -m 644 lib/types.h /usr/include/pci
+	cd $(DIR_APP) && install -m 644 lib/libpci.pc /usr/lib/pkgconfig
 	chmod -v 755 /usr/lib/libpci.so
 	@rm -rf $(DIR_APP)
 	@$(POSTBUILD)