xfs
[Top] [All Lists]

Re: Proper bug report on RH-2.4.5 config failure :)

To: Alan Eldridge <alane@xxxxxxxxxxxx>
Subject: Re: Proper bug report on RH-2.4.5 config failure :)
From: Keith Owens <kaos@xxxxxxxxxxxxxxxxx>
Date: Sat, 09 Jun 2001 14:28:19 +1000
Cc: linux-xfs@xxxxxxxxxxx
In-reply-to: Your message of "Fri, 08 Jun 2001 23:22:23 -0400." <20010608232223.A6660@xxxxxxxxxxxxxxxxxxxxx>
Sender: owner-linux-xfs@xxxxxxxxxxx
On Fri, 8 Jun 2001 23:22:23 -0400, 
Alan Eldridge <alane@xxxxxxxxxxxx> wrote:
>And here's the "rpm -bc kernel-2.4-xfs.spec" run, trimmed to the running of
>the "make oldconfig_nonint" step:
>
>Script started on Fri Jun  8 23:08:32 2001
>[ ... ]
>UFS file system support (read only) (CONFIG_UFS_FS) [M/n/y/?] 
>  UFS file system write support (DANGEROUS) (CONFIG_UFS_FS_WRITE) [N/y/?] 
>Page Buffer support (CONFIG_PAGE_BUF) [N/y/m/?] (NEW) *
>*   Page Buffer support needed for XFS filesystem
>*
>[ note page buffer, XFS are turned off ]
>The following defaults are missing:
>POSIX Access Control List support (CONFIG_FS_POSIX_ACL) [N/y/?] 
>Page Buffer support (CONFIG_PAGE_BUF) [N/y/m/?] 
>make: *** [oldconfig_nonint] Error 1
>error: Bad exit status from /home/alane/rpm/tmp/rpm-tmp.94446 (%build)

The problem is the default config has no entries for the new fields.
Find out which defconfig is used by make oldconfig_nonint, it is
probably arch/i386/defconfig but I don't know for sure, I always build
my own kernels.  Edit that defconfig to add

CONFIG_PAGE_BUF=y
CONFIG_XFS_FS=y
CONFIG_XFS_DMAPI=y
CONFIG_XFS_QUOTA=y

Change y to m if you want modules, you can set dmap and quota to n if
you do not want those options.

Because you are using rpm, you need to do this in steps.  

* rpm -bp to unpack the code.
* Save the current defconfig as .orig and edit defconfig.
* rpm -bc --short-circuit to check it gets past make oldconfig_nonint,
  abort at that point, no need to do a full compile.
* cd redhat/BUILD, diff -u the old and new defconfig, save the patch in
  redhat/SOURCES as kernel-2.4-xfs-defconfig-test.patch.
* Edit redhat/SPECS/kernel-2.4-xfs.spec, add a Patch<n> line to the
  start for kernel-2.4-xfs-defconfig-test.patch, add %patch<n> -p1 to
  the prep section, where <n> is the next free patch number.
* rpm -bc redhat/SPECS/kernel-2.4-xfs.spec to start from scratch.  This
  should apply the correct default config and get past
  oldconfig_nonint.

Send me the patch once it works so I can update our tree for the next
rpm.


<Prev in Thread] Current Thread [Next in Thread>