Re: Build bash 3.2 rpm package

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

 



Bruno Galindro da Costa writes:

Sam,
 Â When you mean 'nuke all other files' what do you want to mean? Delete all other files?  If I download the source package (e.g. bash-3.2-24.el5.src.rpm for Red Hat 5), install it, grab only the spec file and put it in /usr/src/redhat/SPECS/ directory, put all other files in /usr/src/redhat/SOURCES/ directory and try to do a rpmbuild -ba /usr/src/redhat/SPECS/bash.spec, could it work?

Yes. And you will end up with a perfectly valid bash rpm package.

Unfortunately, you will not be able to install it. That's because the package will install /bin/bash, and you already have this file installed by your existing bash rpm. This is the fundamental function of rpm: to prevent different packages from installing conflicting files and overwriting each other.

And not just /bin/bash, but also the corresponding man page, the locale files, and all other files that you seen when you run "rpm -q -l bash".

That's why I told you that you need to modify the spec file so that the final bash binary gets installed as /bin/bash3, so as to not conflict with your existing bash interpreter, as well as remove all other files from your bash 3 rpm package, so that the only thing that your newly-built bash rpm would install is /bin/bash3.


Attachment: pgpPb7eYpMQom.pgp
Description: PGP signature

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