Bug 210873

Summary: libtracefs: +x bit set on installed headers
Product: Tools Reporter: Jan Engelhardt (ej+bko)
Component: Trace-cmd/KernelsharkAssignee: Default virtual assignee for Trace-cmd and kernelshark (tools_tracecmd_kernelshark)
Status: RESOLVED CODE_FIX    
Severity: normal CC: rostedt
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: libtracefs 1.0.0 Subsystem:
Regression: No Bisected commit-id:
Attachments: Do not install header as executable

Description Jan Engelhardt 2020-12-23 11:10:12 UTC
The +x bit is set on headers.

» make install DESTDIR=$PWD/rt
  COMPILE FPIC       tracefs-utils.o
  COMPILE FPIC       tracefs-instance.o
  COMPILE FPIC       tracefs-events.o
  BUILD STATIC LIB   libtracefs.a
  COMPILE SHARED LIB libtracefs.so.1.0.0
  UPDATE             build_prefix
  INSTALL     ~/libtracefs-1.0.0/libtracefs.pc   to      ~/libtracefs-1.0.0/rt/usr/lib64/pkgconfig
  INSTALL     ~/libtracefs-1.0.0/lib/tracefs/libtracefs.so.1.0.0 to     ~/libtracefs-1.0.0/rt/usr/local/lib64
  INSTALL     ~/libtracefs-1.0.0/include/tracefs.h       to      ~/libtracefs-1.0.0/rt/usr/local/include/tracefs

» ls -l rt/usr/local/include/tracefs/tracefs.h
-rwxr-xr-x 1 jengelh users 2279 Dec 23 12:09 rt/usr/local/include/tracefs/tracefs.h
Comment 1 Steven Rostedt 2020-12-23 15:47:29 UTC
Created attachment 294321 [details]
Do not install header as executable
Comment 2 Steven Rostedt 2021-03-10 22:34:01 UTC
Fixed by 9bd207222b ("libtracefs: Do not install header as executable")