Re: How to compile a soft same as the version realeased by fedora?

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

 



On Sat, 2011-03-19 at 18:24 -0700, stan wrote:
> Found the cause.  And your observation above seems to be correct.  There
> is a file in /usr/lib/rpm called rpmrc. That file has the compile flags
> that rpmbuild uses. There is a -g on every one.  So anything that is
> built by rpmbuild with a default Fedora system will have debug
> information compiled into the binary.  Maybe the packager does this and
> then strips the debugging information into a separate package, and uses
> the stripped binary as the official binary package?

The debug information should be automatically separated into a
-debuginfo package near the end of the build, leaving you with stripped
binaries.

There are several causes of variations between the distribution builds
and what you get from a local rpmbuild, but one of the main causes is
that rpmbuild uses the tools and libraries that are installed on your
system, while the distribution build is created using koji and mock in a
"cleanroom" environment where only core build tools plus the
BuildRequires specified in the .spec are present. This can make a
difference if (for example) a configure script detects the presence of
particular libraries on your system that aren't present in the mock
cleanroom (chroot) environment.

Note that you can build locally using mock, or you can submit a package
to the Koji system for a remote build using your Fedora credentials
(assuming you have a Fedora account,
https://admin.fedoraproject.org/accounts/). To set up to use Koji,
install the "fedora-packager" package, then run "fedora-packager-setup"
to set up your certificates; to submit a Koji scratch build, run this
command:

  koji  build  dist-f14  --scratch  nameOfTheSRPM

This will submit the package to the remote primary arch koji builders.
You can see summary results on your screen, or you can follow the full
logs using the web interface (http://arm.koji.fedoraproject.org). At the
end of the build, you'll get full buildlogs plus the output RPMs.

-Chris

-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux