#1 Fix generating both Python 2 and 3 dependency for lorax (#1497141)
Closed 2 years ago by bcl. Opened 2 years ago by ishcherb.
rpms/ ishcherb/lorax master  into  master

file modified
+6 -1

@@ -4,7 +4,7 @@ 

  

  Name:           lorax

  Version:        27.11

- Release:        1%{?dist}

+ Release:        2%{?dist}

  Summary:        Tool for creating the anaconda install images

  

  Group:          Applications/System

@@ -120,6 +120,8 @@ 

  

  %prep

  %setup -q -n %{name}-%{version}

+ # Fix shebang.

+ sed -i '1s=^#!/usr/bin/python=#!%{__python3}=' src/bin/mk-s390-cdboot

  

  %build

  

@@ -153,6 +155,9 @@ 

  

  

  %changelog

+ * Wed Oct 11 2017 Iryna Shcherbina <ishcherb@redhat.com> 27.11-2

+ - Fix generating both Python 2 and 3 dependency for lorax (#1497141)

+ 

  * Wed Sep 27 2017 Brian C. Lane <bcl@redhat.com> 27.11-1

  - s390 doesn't need to graft product.img and updates.img into /images (#1496461) (bcl@redhat.com)

  - distribute the mk-s390-cdboot utility (dan@danny.cz)

The stray "/usr/bin/python" shebang in mk-s390-cdboot in the reason why lorax RPM requires both Python 2 and Python 3.

Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1497141
Koji scratch build: https://koji.fedoraproject.org/koji/taskinfo?taskID=22386103

Ugh, no. Don't sed things in the .spec file.
This should be changed upstream at https://github.com/rhinstaller/lorax

Pull-Request has been closed by bcl

2 years ago
Metadata