Re: libX11

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

 



On Thu, 2006-05-04 at 14:01 -0600, Rebecca Bendick wrote:
> How would I rebuild the src.rpm to force installation of the one  
> library that I need?

you start by creating an rpmbuild environment in your home directory:

yum install fedora-rpmdevtools

as NON ROOT user:

fedora-buildrpmtree

Then you need to get the appropriate src.rpm - in this case -

libX11-1.0.0-3.src.rpm
I think it is in
http://download.fedora.redhat.com/pub/fedora/linux/core/5/source/SRPMS/

as your regular user, not as root, install the src.rpm

This will put the sources and patches in ~/rpmbuild/SOURCES/

and a spec file in ~/rpmbuild/SPECS/

you need to modify the spec file in ~/rpmbuild/SPECS/ with a text
editor.

1) change the release tag - put a .1
after whatever is there already (Release, not version)

2) depends upon the package. If in %build section, there is

--disable-static

passed to configure, change the --disable-static to --enable-static

Sometimes they way they get rid of static libraries is to simply delete
them in the %install section after install - in which case you need to
remove the lines that delete them.

3) modify the %files sections for the devel subpackage.
Add this to it:

%{_libdir}/*.a

now - you can rebuild the rpm -

cd ~/rpmbuild/SPECS/

rpmbuild -bb libX11.spec

If it complains about missing BuildRequires, you have to install them.
When it finishes, it will put the rpms in

~/rpmbuild/RPMS/arch/

(where arch is i386,x86_64, or ppc)

then upgrade stock libX11 and libX11-devel rpms with what you have
built.

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[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