Build bash 3.2 rpm package

Bruno Galindro da Costa bruno.galindro at gmail.com
Thu Sep 23 23:08:52 UTC 2010


Sam,

    Ok. Thank you very much for your explanation!

I´ve tried to do a rpmbuild -ba, after executed the procedure mentioned
before, but the following error was showed:

gcc -c -DHAVE_CONFIG_H -DSHELL  -D_GNU_SOURCE -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -I. -I/usr/src/redhat/BUILD/bash-3.2 -I../..
-I../../lib -DRECYCLES_PIDS -O2 -g -pipe -m32 -march=i386 -mtune=pentium4
readline.c
In file included from readline.c:61:
/usr/include/linux/netlink.h:22: error: syntax error before "__u32"
/usr/include/linux/netlink.h:28: error: syntax error before "__u32"
/usr/include/linux/netlink.h:30: error: syntax error before "nlmsg_flags"
/usr/include/linux/netlink.h:31: error: syntax error before "nlmsg_seq"
/usr/include/linux/netlink.h:32: error: syntax error before "nlmsg_pid"
/usr/include/linux/netlink.h:82: error: field `msg' has incomplete type
readline.c: In function `audit_tty':
readline.c:307: error: storage size of 'addr' isn't known
readline.c:309: error: storage size of 'nlm' isn't known
readline.c:315: error: `NETLINK_AUDIT' undeclared (first use in this
function)
readline.c:315: error: (Each undeclared identifier is reported only once
readline.c:315: error: for each function it appears in.)
readline.c:318: error: invalid application of `sizeof' to incomplete type
`nlmsghdr'
readline.c:319: error: `AUDIT_USER_TTY' undeclared (first use in this
function)
make[1]: *** [readline.o] Error 1
make[1]: Leaving directory `/usr/src/redhat/BUILD/bash-3.2/lib/readline'
make: *** [lib/readline/libreadline.a] Error 1

   I´m using Red Hat Enterprise Linux ES release 4 (Nahant Update 5).

Do you know how can I fix it?


Chris,

   Thank you too!!


2010/9/23 Sam Varshavchik <mrsam at courier-mta.com>

> 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.
>
>
>
> --
> users mailing list
> users at lists.fedoraproject.org
> To unsubscribe or change subscription options:
> https://admin.fedoraproject.org/mailman/listinfo/users
> Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
>
>


-- 
Att.
Bruno Galindro da Costa
bruno.galindro at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.fedoraproject.org/pipermail/users/attachments/20100923/bf09fe30/attachment.html 


More information about the users mailing list