zam@clusterfs.com
2007-Mar-12 01:21 UTC
[Lustre-devel] [Bug 11745] e2fsprogs does not build on SLES 10
Please don''t reply to lustre-devel. Instead, comment in Bugzilla by using the following link: https://bugzilla.lustre.org/show_bug.cgi?id=11745 (In reply to comment #1)> We need to add a configure check for determining the correct "BuildRequires"and> "Requires" lines in the e2fsprogs.spec file. Since e2fsprogs.spec isalready> generated from e2fsprogs.spec.in, and we check in configure (via the > e2fsprogs-lfsck.patch file) for the installed version of db4 this shouldn''tbe> too hard.the following should fix the spec file, however I haven''t tried to build the package. --- e2fsprogs.spec.in.orig 2007-03-12 11:12:23.000000000 +0300 +++ e2fsprogs.spec.in 2007-03-12 11:15:22.000000000 +0300 @@ -13,8 +13,13 @@ Url: http://e2fsprogs.sourceforge.net/ Prereq: /sbin/ldconfig BuildRoot: %{_tmppath}/%{name}-root -@LFSCK_CMT@Requires: db4 -@LFSCK_CMT@BuildRequires: db4-devel +%if %{_vendor} == "suse" +%define db_package db +%else +%define db_package db4 +%endif +@LFSCK_CMT@Requires: %{db_package} +@LFSCK_CMT@BuildRequires: %{db_package}-devel %description