Re: Building an rpm with a modified Makefile

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jonathan Ryshpan wrote:
> I may need to build audacity with the Makefile modified to set
> __WXDEBUG__ .  The natural way to do this would seem to be to invoke
> 	$ rpmbuild -bb SPECS/audacity.spec
> edit the Makefile, and then run something like
> 	$ rpmbuild --short-circuit -bb audacity.spec
> but --short circuit only works for -bc and -bi .

Right, this is to prevent creating packages that are not
reproducible.

> What's the easiest way to do this kind of thing?  Would it be to run
> 	$ rpmbuild --short-circuit -bc audacity.spec
> followed by a make install <somewhere>?  If so, where should the
> 	$ make install
> be invoked?

I'd never recommend running make install as anything other than a
test, and certainly not as root.  If you look just a bit at many
upstream Makefile's, you'd probably be similarly hesitant. :)

What I think you should do is install the SRPM as a normal user (which
rpmbuild in F-10 and above encourage by placing files in ~/rpmbuild by
default, rather than in /usr/src/redhat).  Then, edit the spec file as
needed to set __WXDEBUG__.  You should also bump the release field
(and add a changelog entry).  If the release field is 1%{?dist},
appending a .1 to the end would be customary.

Then rebuild the package with rpmbuild -bb SPECS/audacity.spec (or -ba
if you want to also create a source rpm).

-- 
Todd        OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The turtle makes progress only when he sticks his neck out.
    -- James Bryant Conant

Attachment: pgpweT1ZKPpeR.pgp
Description: PGP signature

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux