Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 860343 Details for
Bug 1062432
rpmbuild: Requires depends on mode of source file, not installed file
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
mk-rpmbuild-test - short reproducer (bash script) demonstrating the issue
mk-rpmbuild-test (text/plain), 1.50 KB, created by
Ed Santiago
on 2014-02-06 22:38:12 UTC
(
hide
)
Description:
mk-rpmbuild-test - short reproducer (bash script) demonstrating the issue
Filename:
MIME Type:
Creator:
Ed Santiago
Created:
2014-02-06 22:38:12 UTC
Size:
1.50 KB
patch
obsolete
>#!/bin/sh > >set -e >umask 022 > ># Scratch directory in which to run rpmbuild >workdir=$HOME/rpmbuild-test-case >rm -rf $workdir >mkdir -p $workdir >cd $workdir > ># Create a specfile; we'll use the same spec for both sources >mkdir SPECS >cat >SPECS/foo.spec <<EOF >Summary: Foo >Name: foo >Version: 1.%{onetwo} >Release: 1%{?dist} >License: GPL >Source0: http://fixme/%{name}-%{version}.tar.gz >BuildArch: noarch > >%description >hi there > >%prep >%setup -q >%install >mkdir -p %{buildroot}%{_sbindir} > ># With this chmod in place, there is no difference. >#chmod 755 foo >cp -p foo %{buildroot}%{_sbindir}/ > ># This is ignored! rpmbuild generates Requires based on the mode of ># the above-cp'ed file. >%files >%attr(0750,-,-) %{_sbindir}/foo >EOF > ># Create two tarballs, one with a -x source file, one with +x >mkdir SOURCES >for i in 1 2;do > src=foo-1.${i} > mkdir $src > cat >$src/foo <<EOF >#!/bin/bash >echo "Hello, World!" >EOF > # First one gets default 644 mode; second one gets 755 > if [ $i -eq 2 ]; then chmod 755 $src/foo; fi > > tar czf SOURCES/foo-1.${i}.tar.gz $src > rm -rf $src > > # From spec + tarball, build a noarch RPM > /usr/bin/rpmbuild \ > --quiet \ > --define "_topdir $workdir" \ > --define "onetwo $i" \ > -ba SPECS/foo.spec > > rpm -qp --requires RPMS/noarch/foo-1.${i}-1.*.rpm > requires-$i >done > ># Right-hand side (+x) will include /bin/bash; left-hand side (-x) will not. >diff --side-by-side requires-*
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 1062432
: 860343