Bug 26640

Summary: automake generates projects that are not portable
Product: Mageia Reporter: Dan Fandrich <dan>
Component: RPM PackagesAssignee: Shlomi Fish <shlomif>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal    
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
URL: https://github.com/libexif/libexif/issues/44
Whiteboard:
Source RPM: automake-1.16.2-1.mga8.src.rpm CVE:
Status comment:

Description Dan Fandrich 2020-05-19 09:34:30 CEST
Description of problem:
When automake is built, /usr/lib/rpm/redhat/brp-mangle-shebangs changes /bin/sh to /usr/bin/sh in the various helper scripts like /usr/share/automake-1.16/missing and /usr/share/automake-1.16/config.guess. This is fine on Magiea, except that these scripts are copied into packages that are intended to run on any *NIX system, including those that don't have /usr/bin/sh.

This mangling should be removed for these scripts so they remain portable.

Version-Release number of selected component (if applicable):
1.16.2-1

How reproducible:
It's a problem on systems that haven't done the usr merge.

Steps to Reproduce:
1. autoreconf -if some autoconf-using project
2. make a tar ball
3. extract that tar ball on another distro that hasn't done usr merge and try to configure it
Dan Fandrich 2020-05-19 09:34:51 CEST

Assignee: bugsquad => shlomif

Comment 1 Shlomi Fish 2020-05-19 11:07:57 CEST
(In reply to Dan Fandrich from comment #0)
> Description of problem:
> When automake is built, /usr/lib/rpm/redhat/brp-mangle-shebangs changes
> /bin/sh to /usr/bin/sh in the various helper scripts like
> /usr/share/automake-1.16/missing and /usr/share/automake-1.16/config.guess.
> This is fine on Magiea, except that these scripts are copied into packages
> that are intended to run on any *NIX system, including those that don't have
> /usr/bin/sh.
> 
> This mangling should be removed for these scripts so they remain portable.
> 
> Version-Release number of selected component (if applicable):
> 1.16.2-1
> 
> How reproducible:
> It's a problem on systems that haven't done the usr merge.
> 
> Steps to Reproduce:
> 1. autoreconf -if some autoconf-using project
> 2. make a tar ball
> 3. extract that tar ball on another distro that hasn't done usr merge and
> try to configure it

Thanks, Dan! Please try again with automake-1.16.2-2.mga8 which I submitted now: http://pkgsubmit.mageia.org/
Comment 2 Dan Fandrich 2020-05-19 12:00:56 CEST
That fixed it! Thanks for the quick turnaround.

Resolution: (none) => FIXED
Status: NEW => RESOLVED