#11 Remove shebang and executable bit from python-macro-helper (#1538657)
Closed 2 years ago by ignatenkobrain. Opened 2 years ago by churchyard.
rpms/ churchyard/rpm shebang  into  master

file modified
+13 -2

@@ -23,7 +23,7 @@ 

  

  %global rpmver 4.14.1

  #global snapver rc2

- %global rel 5

+ %global rel 6

  

  %global srcver %{version}%{?snapver:-%{snapver}}

  %global srcdir %{?snapver:testing}%{!?snapver:%{name}-%(echo %{version} | cut -d'.' -f1-2).x}

@@ -341,6 +341,11 @@ 

  ln -s db-%{bdbver} db

  %endif

  

+ # https://bugzilla.redhat.com/show_bug.cgi?id=1538657

+ head -n1 scripts/python-macro-helper | grep -E '^#!/usr/bin/' && sed -i '1d' scripts/python-macro-helper

+ chmod -x scripts/python-macro-helper

+ 

+ 

  %build

  %if %{without int_bdb}

  #CPPFLAGS=-I%{_includedir}/db%{bdbver} 

@@ -443,6 +448,9 @@ 

  # Axe unused cruft

  rm -f $RPM_BUILD_ROOT/%{rpmhome}/{tcl.req,osgideps.pl}

  

+ # https://bugzilla.redhat.com/show_bug.cgi?id=1538657

+ chmod -x $RPM_BUILD_ROOT/%{rpmhome}/python-macro-helper

+ 

  %if %{with check}

  %check

  make check || cat tests/rpmtests.log

@@ -585,7 +593,10 @@ 

  %doc doc/librpm/html/*

  

  %changelog

- * Tue Jan 30 2018 Tomas Orsava <torsava@redhat.com> - 4.14.1-4

+ * Wed Jan 31 2018 Miro Hrončok <mhroncok@redhat.com> - 4.14.1-6

+ - Remove shebang and executable bit from python-macro-helper (#1538657)

+ 

+ * Tue Jan 30 2018 Tomas Orsava <torsava@redhat.com> - 4.14.1-5

  - Add envvar that will be present during RPM build,

    Part of a Fedora Change for F28: "Avoid /usr/bin/python in RPM build"

    https://fedoraproject.org/wiki/Changes/Avoid_usr_bin_python_in_RPM_Build

no initial comment

Pull-Request has been closed by pmatilai

2 years ago

Pull-Request has been closed by ignatenkobrain

2 years ago