[lustre-discuss] Building client packages on Fedora 20

Michael Watters wattersm at watters.ws
Tue Dec 26 11:42:04 PST 2017


In case anybody is curious I was able to build packages after fixing the
kernel_module_package rpm macro as follows.

diff -u kmodtool.orig kmodtool
--- kmodtool.orig       2017-12-21 13:04:21.343437273 -0500
+++ kmodtool    2017-12-26 13:34:15.076952532 -0500
@@ -114,7 +114,7 @@
 
 if [ "no" != "$kmp_nobuildreqs" ]
 then
-    echo "BuildRequires: kernel${dashvariant}-devel-%{_target_cpu} =
${verrel}"
+    echo "BuildRequires: kernel${dashvariant}-devel"
 fi
 
 if [ "" != "$kmp_override_preamble" ]

This macro is located in the /usr/lib/rpm/redhat/kmodtool file.


On 12/22/2017 07:56 AM, Michael Watters wrote:
> Has anybody attempted to build lustre client rpms on Fedora 20?  I am
> able to compile the lustre v2_9_59_0 branch however the make rpms
> command fails with an error as follows.
>
> Processing files: lustre-client-2.9.59-1.fc20.x86_64
> error: File not found: /tmp/rpmbuild-lustre-root-nrGADExI/BUILDROOT/lustre-2.9.59-1.x86_64/etc/init.d/lsvcgss
>
> RPM build errors:
>     File not found: /tmp/rpmbuild-lustre-root-nrGADExI/BUILDROOT/lustre-2.9.59-1.x86_64/etc/init.d/lsvcgss
>
> Patching the lustre.spec.in file to avoid this error then results in a
> different error as shown below.
>
> RPM build errors:
>     Installed (but unpackaged) file(s) found:
>    /lib/modules/3.19.8-100.fc20.x86_64/extra/lustre-client-tests/fs/llog_test.ko
>    /lib/modules/3.19.8-100.fc20.x86_64/extra/lustre-client/fs/fid.ko
>    /lib/modules/3.19.8-100.fc20.x86_64/extra/lustre-client/fs/fld.ko
>    /lib/modules/3.19.8-100.fc20.x86_64/extra/lustre-client/fs/lmv.ko
>    /lib/modules/3.19.8-100.fc20.x86_64/extra/lustre-client/fs/lov.ko
>    /lib/modules/3.19.8-100.fc20.x86_64/extra/lustre-client/fs/lustre.ko
>    /lib/modules/3.19.8-100.fc20.x86_64/extra/lustre-client/fs/mdc.ko
>    /lib/modules/3.19.8-100.fc20.x86_64/extra/lustre-client/fs/mgc.ko
>    /lib/modules/3.19.8-100.fc20.x86_64/extra/lustre-client/fs/obdclass.ko
>    /lib/modules/3.19.8-100.fc20.x86_64/extra/lustre-client/fs/obdecho.ko
>    /lib/modules/3.19.8-100.fc20.x86_64/extra/lustre-client/fs/osc.ko
>    /lib/modules/3.19.8-100.fc20.x86_64/extra/lustre-client/fs/ptlrpc.ko
>    /lib/modules/3.19.8-100.fc20.x86_64/extra/lustre-client/net/ko2iblnd.ko
>    /lib/modules/3.19.8-100.fc20.x86_64/extra/lustre-client/net/ksocklnd.ko
>    /lib/modules/3.19.8-100.fc20.x86_64/extra/lustre-client/net/libcfs.ko
>    /lib/modules/3.19.8-100.fc20.x86_64/extra/lustre-client/net/lnet.ko
>    /lib/modules/3.19.8-100.fc20.x86_64/extra/lustre-client/net/lnet_selftest.ko
> make: *** [rpms] Error 1
>
> Here are the commands I used to build the packages.
>
> git checkout v2_9_59_0
> sh ./autogen.sh 
> ./configure --disable-server --enable-client --with-linux=/lib/modules/`uname -r`/build
> make rpms
>
> Any suggestions on how to fix this?  I know that Fedora 20 is EOL
> however I would still like to be able to build a lustre client package
> if possible.
>
>
>
> _______________________________________________
> lustre-discuss mailing list
> lustre-discuss at lists.lustre.org
> http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lustre.org/pipermail/lustre-discuss-lustre.org/attachments/20171226/50f6aa60/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://lists.lustre.org/pipermail/lustre-discuss-lustre.org/attachments/20171226/50f6aa60/attachment.sig>


More information about the lustre-discuss mailing list