[ATrpms-users] How to build rpm for kernel that isn't in repo
xyon
xyon at indigorobot.com
Sun May 4 01:12:41 CEST 2008
> I hate to leave all that quoted e-mail thread, but somehow think my
> question won't make sense without it. How do I find out what the
> option values are that I might include on the rpmbuild command line
> using "--with" options? I have tried unpacking a kernel source rpm
> and the gzipped tarballs inside it and searching around, but I don't
> seem to be getting anywhere.
>
> For example, I know some builders include "--with ntfs". I understand
> that causes support for the ntfs file system to be included in the
> resulting kernel, but I can't figure out how that translates into
> something I see in the .config file, the .spec file, or one of the
> Makefiles, much less how to identify other options.
>
> Would someone please get me on track?
I found this within a proftpd.spec file which may be of some use
CFLAGS=-DHAVE_OPENSSL LIBS=-lcrypto ./configure \
--prefix=%{prefix} \
--sysconfdir=/etc \
--localstatedir=/var/run \
--mandir=%_mandir \
%{?_with_mod_tls:--with-includes=/usr/kerberos/include} \
%{?_with_mod_sql_mysql:--with-includes=/usr/include/mysql} \
%{?_with_mod_sql_mysql:--with-libraries=/usr/lib/mysql} \
%{?_with_mod_facl:--enable-facl} \
%{?_with_ipv6:--enable-ipv6} \
--with-modules=${MODULES}
You could possibly have a 'sed' statement run on the '.config' within a
with declaration:
%prep
%{?_with_ntfs: sed -i -e "s/CONFIG_NTFS not
set/CONFIG_NTFS=y/g" .config}
FYI, I just threw this together off the top of my head and haven't
tested any of it, but hope it at least helps get you going.
More information about the atrpms-users
mailing list