Re: rpmbuild question - follow on to gcc issues [SOLVED]

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

 



---- "Mikkel L. Ellertson" <mikkel@xxxxxxxxxxxxxxxx> wrote: 
> Steve wrote:
> > ---- "Mikkel L. Ellertson" <mikkel@xxxxxxxxxxxxxxxx> wrote: 
> >> One way is to create your own patch that is used after the original
> >> patch. Add it to the end of the patch list.
> > 
> > Yukk!! That will get really tiresome really quickly. At this
> > point I don't really know what I'm looking for so I may end up having to
> > add debug statements to several files.
> > 
> > Is there a way to apply all the patches to the source code and
> > them remove them from the spec file?
> > 
> > Steve
> > 
> Well, if you are debugging the program, you would probably be better
> off running "rpmbuild -bp <package>" and then make your changes in
> the build directory. Then run make manually. You can do this all as
> a normal user. Depending on what you are building, you may be able
> to run it as a normal user from the build directory. If not, you are
> probably going to override the make file so it installs relative to
> your home directory. Once you have it debugged, you can transfere
> the changes to the virgin source with a patch, or pass them upstream...

rpmbuild -bp <spec file> did the trick.

After running that I went into the BUILD directory and made my modifications. Next I ran ./configure with all the options from the spec file and finally ran 

$ make CFLAGS='-fPIC -D_GNU_SOURCE"

I also got the CFLAG options from the spec file. The last thing I had to do was set the correct SELinux context for the executable and point the boot script at my executable instead of the system one.

Now I can start.

Thanks for the help.
Steve.

-- 
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