[Ocfs2-tools-devel] Re: A patch for ocfs2 source configuration process.

tao.ma tao.ma at oracle.com
Thu Aug 3 01:30:53 PDT 2006


Hi all,
    Seems I send to the wrong maillist.
    Please ignore the original letter I sent. :)

tao.ma wrote:

> Hi,
>    I have downloaded the newest source code ocfs2-1.2.3.tar.gz from
> oss.oracle.com.
>    After do the configuration I find a strange thing. Although my
> kernel is "2.6.9-11.19AX"(Asianux2.0 on a vmware server with a single
> processor configured), the configuration find that it is
> 2.6.9-11.19AX-smp. So after I make and install, those *.ko went to the
> wrong place.
> The reason is:
> 1. When vendor/ax2/vendor.guess runs.
> The script is :if [ "`rpm -qf /etc/asianux-release --qf '%{VERSION}'
> 2>/dev/null`" != "8AX" ]
> while in my machine it is "2.0", not "8AX".
>
> I also modify the script in vendor.guess. In asianux2.0, In /etc, you 
> can find
> redhat-release and asianux-release.  So the vendor.guess will get the 
> wrong string
> "ax2
> rhel4".
>
> Attachment is my patch. Hope it can help.
>
>------------------------------------------------------------------------
>
>diff -urN orig/vendor/ax2/vendor.guess ocfs2-1.2.3/vendor/ax2/vendor.guess
>--- orig/vendor/ax2/vendor.guess	2006-07-26 14:32:52.000000000 -0400
>+++ ocfs2-1.2.3/vendor/ax2/vendor.guess	2006-08-03 14:06:09.820492432 -0400
>@@ -5,7 +5,7 @@
>     exit 1
> fi
> 
>-if [ "`rpm -qf /etc/asianux-release --qf '%{VERSION}' 2>/dev/null`" != "8AX" ]
>+if [ "`rpm -qf /etc/asianux-release --qf '%{VERSION}' 2>/dev/null`" != "2.0" ]
> then
>     exit 1
> fi
>diff -urN orig/vendor.guess ocfs2-1.2.3/vendor.guess
>--- orig/vendor.guess	2006-07-26 14:32:57.000000000 -0400
>+++ ocfs2-1.2.3/vendor.guess	2006-08-03 14:08:28.723375984 -0400
>@@ -22,6 +22,14 @@
>     fi
> }
> 
>+origfile=/etc/redhat-release.$$
>+asian_flag=0
>+if [ -f /etc/asianux-release ] && [ -f /etc/redhat-release ]
>+then
>+	mv /etc/redhat-release ${origfile}
>+	asian_flag=1
>+fi
>+
> list_vendors | while read -r v
> do
>     if [ -x "vendor/${v}/vendor.guess" ]
>@@ -32,3 +40,8 @@
>         fi
>     fi
> done
>+
>+if [ asian_flag ]
>+then
>+    mv ${origfile} /etc/redhat-release
>+fi
>  
>



More information about the Ocfs2-tools-devel mailing list