[Yast4debian-devel] New howto

Ramon Acedo ramon@linux-labs.net
Sun, 13 Mar 2005 18:36:16 +0100


--=-R9EsCu3JLxfXap6KK98I
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Hi guys, firstly I have to apologize for being disconnected from
the project, since January I live for my job, I'm sure you know
what I'm talking about.

Jose Luis (pikota) wanted me to assist him in the compilation process
which made me start again (weekends and some evenings). We have done
a translation into Spanish and I have rewritten the howto (see
attatchments). 

The new howto is easier to understand (hopefully) and as it is done as 
well in Spanish it will probably reach more people. That's what we need
to get people interested in starting to hack.

Thanks to the SuSE people for they support, I have one mail from
Stanislav pending to check.

See you,

Ramon



--=-R9EsCu3JLxfXap6KK98I
Content-Disposition: attachment; filename=compilacion-yast-en.html
Content-Type: text/html; name=compilacion-yast-en.html; charset=ISO-8859-15
Content-Transfer-Encoding: 7bit

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd">
<HTML
><HEAD
><TITLE
>Compiling YaST2 in Debian</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"></HEAD
><BODY
CLASS="article"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="ARTICLE"
><DIV
CLASS="TITLEPAGE"
><H1
CLASS="title"
><A
NAME="AEN2"
>Compiling YaST2 in Debian</A
></H1
><DIV
CLASS="authorgroup"
><A
NAME="AEN3"
></A
><H3
CLASS="author"
><A
NAME="AEN4"
>Ramon Acedo</A
></H3
></DIV
><DIV
CLASS="revhistory"
><TABLE
WIDTH="100%"
BORDER="0"
><TR
><TH
ALIGN="LEFT"
VALIGN="TOP"
COLSPAN="3"
><B
>Revision History</B
></TH
></TR
><TR
><TD
ALIGN="LEFT"
>Revision 0.2</TD
><TD
ALIGN="LEFT"
>13 / 03 / 05</TD
><TD
ALIGN="LEFT"
>Revised by: R.A</TD
></TR
><TR
><TD
ALIGN="LEFT"
COLSPAN="3"
>Rewritten from the original and with DocBook and with some pikota's remarks (Thanks
					Jose Luis!).</TD
></TR
></TABLE
></DIV
><DIV
><DIV
CLASS="abstract"
><P
></P
><A
NAME="AEN6"
></A
><P
>&#13;			  This article documents how to compile yast2-core in debian. 
			</P
><P
></P
></DIV
></DIV
><HR></DIV
><DIV
CLASS="TOC"
><DL
><DT
><B
>Table of Contents</B
></DT
><DT
>1. <A
HREF="#AEN15"
>Installation of some necessary programs</A
></DT
><DT
>2. <A
HREF="#AEN21"
>SuSE's rpm compilation</A
></DT
><DT
>3. <A
HREF="#AEN55"
>yast2-devtools compilation</A
></DT
><DT
>4. <A
HREF="#AEN63"
>liby2util compilation</A
></DT
><DT
>5. <A
HREF="#AEN72"
>yast2-packamanager compilation</A
></DT
><DT
>6. <A
HREF="#AEN76"
>hwinfo</A
></DT
><DT
>7. <A
HREF="#AEN83"
>yast2-core compilation</A
></DT
><DT
>8. <A
HREF="#AEN87"
>yast2-testsuite compilation</A
></DT
><DT
>9. <A
HREF="#AEN90"
>yast2 compilation</A
></DT
><DT
>10. <A
HREF="#AEN94"
>yast2-ncurses compilation</A
></DT
><DT
>11. <A
HREF="#AEN101"
>Conclusions</A
></DT
></DL
></DIV
><DIV
CLASS="section"
><H2
CLASS="section"
><A
NAME="AEN15"
>1. Installation of some necessary programs</A
></H2
><P
>We have to install some packages to begin:</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="programlisting"
>&#13;ramon@pangeadm:~/$ apt-get install libxml-writer-perl dejagnu flex-old doxygen electric-fence \
libslp-dev libcurl3-dev libstdc++6-dbg libsysfs-dev  checkinstall
		</PRE
></FONT
></TD
></TR
></TABLE
><P
>After the installation make the following symbolic links:</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="programlisting"
>&#13;ramon@pangeadm:~/$ ln -sf /usr/lib/debug/libstdc++.la /usr/lib/
ramon@pangeadm:~/$ ln -sf /usr/lib/debug/libstdc++.so /usr/lib/
		</PRE
></FONT
></TD
></TR
></TABLE
></DIV
><DIV
CLASS="section"
><HR><H2
CLASS="section"
><A
NAME="AEN21"
>2. SuSE's rpm compilation</A
></H2
><P
>We need the Debian rom to extract it and some additional packages so that getting it compiled:</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="programlisting"
>&#13;ramon@pangeadm:~/$ apt-get install rpm bzip2 libelfg0
		</PRE
></FONT
></TD
></TR
></TABLE
><P
>Download and extract the rpm</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="programlisting"
>&#13;ramon@pangeadm:~/$ wget	ftp://ftp.suse.com/pub/suse/i386/9.2/suse/src/rpm-4.1.1-191.src.rpm
ramon@pangeadm:~/$ rpm2cpio rpm-4.1.1-191.src.rpm | cpio -
		</PRE
></FONT
></TD
></TR
></TABLE
><P
>&#13;			Now let's patch. In the <EM
>.spec</EM
> file we can see the order
			in which patches should be applied.
		</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="programlisting"
>&#13;ramon@pangeadm:~/$ grep ^Patch ../rpm.spec
Patch:        rpm-4.1.1.diff
Patch1:       rpmqpack.diff
Patch2:       rpm-4.1.1-findlang.diff
Patch3:       ia64-asm.patch
Patch4:       rpm-4.1.1-fdleak.diff
Patch6:       rpm-4.1.1-hppa.diff
Patch7:       rpm-4.1.1-ice.diff
Patch8:       rpm-4.1.1-ppc-no-mfspr_jmpbuf.diff
Patch9:       lvalue.diff
Patch11:      brp-compress.diff
		</PRE
></FONT
></TD
></TR
></TABLE
><P
>&#13;			Extract the <EM
>.tar.gz</EM
> and start patching:
		</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="programlisting"
>&#13;ramon@pangeadm:~/$ patch -p0 ../patch.diff
		</PRE
></FONT
></TD
></TR
></TABLE
><P
>Now we can start the compilation process. First we configure it to live under /usr:</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="programlisting"
>&#13;pangeadm:~/YaST4Debian/src.rpm/rpm/rpm-4.1.1# ./configure --prefix=/usr
		</PRE
></FONT
></TD
></TR
></TABLE
><P
>And some more packages to install:</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="programlisting"
>&#13;apt-get install python2.3-dev libltdl3-dev libelf-0.8.5 libdwarf-dev
		</PRE
></FONT
></TD
></TR
></TABLE
><P
>&#13;			Remove the <EM
>-Werror</EM
> option from the Makefiles under 
			elfutils/lib*/Makefile and elfutils/test/Makefile.
			Some of the Makefiles are created while compiling. When we notice errors which begin
			in a line containing <EM
>-Werror</EM
> we have to remove them again:
		</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="programlisting"
>&#13;grep Werror elfutils/*/Makefile
		</PRE
></FONT
></TD
></TR
></TABLE
><P
>Now it needs some files, let's give them to it:</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="programlisting"
>	
pangeadm:~/YaST4Debian/src.rpm/rpm/rpm-4.1.1# touch po/mkinstalldirs elfutils/po/mkinstalldirs
		</PRE
></FONT
></TD
></TR
></TABLE
><P
>&#13;			It looks for the headers of Python2.3 and a dwarf.h under /usr/local/include so we make 
			them available there and start compiling:
		</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="programlisting"
>&#13;ramon@pangeadm:~/$ ln -s /usr/include/Python2.3/* /usr/include
ramon@pangeadm:~/$ ln -s /usr/include/libdwarf/dwarf.h  /usr/local/include/
pangeadm:~/YaST4Debian/src.rpm/rpm/rpm-4.1.1# make
pangeadm:~/YaST4Debian/src.rpm/rpm/rpm-4.1.1# checkinstall
		</PRE
></FONT
></TD
></TR
></TABLE
><DIV
CLASS="note"
><P
></P
><TABLE
CLASS="note"
WIDTH="100%"
BORDER="0"
><TR
><TD
WIDTH="25"
ALIGN="CENTER"
VALIGN="TOP"
><IMG
SRC="../images/note.gif"
HSPACE="5"
ALT="Note"></TD
><TH
ALIGN="LEFT"
VALIGN="MIDDLE"
><B
>checkinstall and mkinstalldirs</B
></TH
></TR
><TR
><TD
>&nbsp;</TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
><P
>&#13;				If you get in troubles at <EM
>make</EM
> time modifying the Makefile
				as I show bellow may solve them:
			</P
><P
><EM
>MKINSTALLDIRS = $(top_builddir)/./mkinstalldirs</EM
></P
></TD
></TR
></TABLE
></DIV
><DIV
CLASS="note"
><P
></P
><TABLE
CLASS="note"
WIDTH="100%"
BORDER="0"
><TR
><TD
WIDTH="25"
ALIGN="CENTER"
VALIGN="TOP"
><IMG
SRC="../images/note.gif"
HSPACE="5"
ALT="Note"></TD
><TH
ALIGN="LEFT"
VALIGN="MIDDLE"
><B
>checkinstall and dpkg</B
></TH
></TR
><TR
><TD
>&nbsp;</TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
><P
>&#13;				At the end checkinstall will try to install the Debian package it has created and
				it may conflict with the Debian rpm package. Just remove it and install by hand:
			</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="programlisting"
>&#13;apt-get remove rpm librpm4 libpopt0
dpkg -i rpm-4.1.1_4.1.1-1_i386.deb
			</PRE
></FONT
></TD
></TR
></TABLE
></TD
></TR
></TABLE
></DIV
></DIV
><DIV
CLASS="section"
><HR><H2
CLASS="section"
><A
NAME="AEN55"
>3. yast2-devtools compilation</A
></H2
><P
>Install the following packages:</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="programlisting"
>&#13;#apt-get install sgmltools-lite linuxdoc-tools gettext g++
		</PRE
></FONT
></TD
></TR
></TABLE
><P
>&#13;			Download and extract the package:
		</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="programlisting"
>&#13;ramon@pangeadm:~/$ wget ftp://yast4debian.alioth.debian.org/pub/yast4debian/yast2-devtools-2.9.17.tar.bz2
ramon@pangeadm:~/$ rpm2cpio yast2-devtools-2.9.17.tar.bz2 | cpio -
		</PRE
></FONT
></TD
></TR
></TABLE
><P
>And now let's compile:</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="programlisting"
>&#13;ramon@pangeadm:~/YaST4Debian/src.rpm/yast2-devtools/yast2-devtools-2.9.17$ ./configure
ramon@pangeadm:~/YaST4Debian/src.rpm/yast2-devtools/yast2-devtools-2.9.17$ make
ramon@pangeadm:~/YaST4Debian/src.rpm/yast2-devtools/yast2-devtools-2.9.17$ checkinstall
		</PRE
></FONT
></TD
></TR
></TABLE
></DIV
><DIV
CLASS="section"
><HR><H2
CLASS="section"
><A
NAME="AEN63"
>4. liby2util compilation</A
></H2
><P
>&#13;			Once again:
		</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="programlisting"
>&#13;ramon@pangeadm:~/$ wget ftp://ftp.suse.com/pub/suse/i386/9.1/suse/src/liby2util-2.9.22-0.src.rpm
		</PRE
></FONT
></TD
></TR
></TABLE
><P
>It requires libtool and automake1.6</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="programlisting"
>&#13;ramon@pangeadm:~/$ apt-get install libtool
ramon@pangeadm:~/$ apt-get install automake1.6
		</PRE
></FONT
></TD
></TR
></TABLE
><P
>If we have automake1.4 installed we have to remove it.</P
><P
>Now compiling with the help of SuSE's y2tool.</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="programlisting"
>&#13;ramon@pangeadm:~/$ /usr/bin/y2tool y2autoconf
ramon@pangeadm:~/$ /usr/bin/y2tool y2automake
ramon@pangeadm:~/$ autoreconf --force --install
ramon@pangeadm:~/$ ./configure
ramon@pangeadm:~/$ make
ramon@pangeadm:~/$ checkinstall
		</PRE
></FONT
></TD
></TR
></TABLE
></DIV
><DIV
CLASS="section"
><HR><H2
CLASS="section"
><A
NAME="AEN72"
>5. yast2-packamanager compilation</A
></H2
><P
>Almost like before:</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="programlisting"
>&#13;pangeadm:~/YaST4Debian/src.rpm/yast2-packagemanager/yast2-packagemanager-2.9.37# ln -s /usr/lib/libpopt.la /usr/local/lib/
pangeadm:~/YaST4Debian/src.rpm/yast2-packagemanager/yast2-packagemanager-2.9.37# ln -s /usr/lib/libpopt.so /usr/local/lib/
pangeadm:~/YaST4Debian/src.rpm/yast2-packagemanager/yast2-packagemanager-2.9.37# y2tool autoconf
pangeadm:~/YaST4Debian/src.rpm/yast2-packagemanager/yast2-packagemanager-2.9.37# y2tool automake
pangeadm:~/YaST4Debian/src.rpm/yast2-packagemanager/yast2-packagemanager-2.9.37# autoreconf --force --install
pangeadm:~/YaST4Debian/src.rpm/yast2-packagemanager/yast2-packagemanager-2.9.37# ./configure
pangeadm:~/YaST4Debian/src.rpm/yast2-packagemanager/yast2-packagemanager-2.9.37# make
pangeadm:~/YaST4Debian/src.rpm/yast2-packagemanager/yast2-packagemanager-2.9.37# checkinstall
		</PRE
></FONT
></TD
></TR
></TABLE
></DIV
><DIV
CLASS="section"
><HR><H2
CLASS="section"
><A
NAME="AEN76"
>6. hwinfo</A
></H2
><P
>&#13;			This is necessary to get yast2-core compiled:	
		</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="programlisting"
>&#13;pangeadm:~/YaST4Debian/src.rpm/hwinfo# wget ftp://ftp.suse.com/pub/suse/i386/9.1/suse/src/hwinfo-8.38-0.src.rpm
pangeadm:~/YaST4Debian/src.rpm/hwinfo# rpm2cpio hwinfo-9.31-1.1.src.rpm  |cpio -i
pangeadm:~/YaST4Debian/src.rpm/hwinfo/hwinfo-8.38# make
		</PRE
></FONT
></TD
></TR
></TABLE
><P
>&#13;			Now we have to copy <EM
>libhd.a</EM
> to /usr/lib
			and hd.h to /usr/include.
		</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="programlisting"
>&#13;ramon@pangeadm:~/$ rpm2cpio hwinfo-9.31-1.1.src.rpm  |cpio -i
pangeadm:~/YaST4Debian/src.rpm/hwinfo/hwinfo-8.38# cp src/libhd.a /usr/lib
pangeadm:~/YaST4Debian/src.rpm/hwinfo/hwinfo-8.38# cp src/hd/hd.h /usr/include/
		</PRE
></FONT
></TD
></TR
></TABLE
></DIV
><DIV
CLASS="section"
><HR><H2
CLASS="section"
><A
NAME="AEN83"
>7. yast2-core compilation</A
></H2
><P
>We now the procedure:</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="programlisting"
>&#13;pangeadm:~/YaST4Debian/src.rpm/yast2-core# apt-get install bison ncurses-dev libxcrypt-dev
pangeadm:~/YaST4Debian/src.rpm/yast2-core# wget ftp://yast4debian.alioth.debian.org/pub/yast4debian/yast2-core-2.9.79.tar.bz2  
pangeadm:~/YaST4Debian/src.rpm/yast2-core# ln -sf /lib/libpopt.so.0 /usr/lib/libpopt.so.1
pangeadm:~/YaST4Debian/src.rpm/yast2-core/yast2-core-2.9.79# /usr/bin/y2tool y2autoconf
pangeadm:~/YaST4Debian/src.rpm/yast2-core/yast2-core-2.9.79# /usr/bin/y2tool y2automake
pangeadm:~/YaST4Debian/src.rpm/yast2-core/yast2-core-2.9.79#  autoreconf --force --install
pangeadm:~/YaST4Debian/src.rpm/yast2-core/yast2-core-2.9.79# ./configure 
pangeadm:~/YaST4Debian/src.rpm/yast2-core/yast2-core-2.9.79#  make
pangeadm:~/YaST4Debian/src.rpm/yast2-core/yast2-core-2.9.79#  checkinstall 
	</PRE
></FONT
></TD
></TR
></TABLE
></DIV
><DIV
CLASS="section"
><HR><H2
CLASS="section"
><A
NAME="AEN87"
>8. yast2-testsuite compilation</A
></H2
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="programlisting"
>&#13;pangeadm:~/YaST4Debian/src.rpm/yast2-testsuite# wget ftp://yast4debian.alioth.debian.org/pub/yast4debian/yast2-testsuite-2.9.9.tar.bz2
pangeadm:~/YaST4Debian/src.rpm/yast2-testsuite# tar xfj yast2-testsuite-2.9.9.tar.bz2
pangeadm:~/YaST4Debian/src.rpm/yast2-testsuite/yast2-testsuite-2.9.9# ./configure
pangeadm:~/YaST4Debian/src.rpm/yast2-testsuite/yast2-testsuite-2.9.9# /usr/bin/y2tool y2autoconf
pangeadm:~/YaST4Debian/src.rpm/yast2-testsuite/yast2-testsuite-2.9.9# /usr/bin/y2tool y2automake
pangeadm:~/YaST4Debian/src.rpm/yast2-testsuite/yast2-testsuite-2.9.9# autoreconf --force --install
pangeadm:~/YaST4Debian/src.rpm/yast2-testsuite/yast2-testsuite-2.9.9# ./configure
pangeadm:~/YaST4Debian/src.rpm/yast2-testsuite/yast2-testsuite-2.9.9# make
pangeadm:~/YaST4Debian/src.rpm/yast2-testsuite/yast2-testsuite-2.9.9# checkinstall
	</PRE
></FONT
></TD
></TR
></TABLE
></DIV
><DIV
CLASS="section"
><HR><H2
CLASS="section"
><A
NAME="AEN90"
>9. yast2 compilation</A
></H2
><P
>Finally!</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="programlisting"
>&#13;pangeadm:~/YaST4Debian/src.rpm/yast2# wget ftp://yast4debian.alioth.debian.org/pub/yast4debian/yast2-2.9.60.tar.bz2
pangeadm:~/YaST4Debian/src.rpm/yast2# tar xfj yast2-2.9.60.tar.bz2
pangeadm:~/YaST4Debian/src.rpm/yast2/yast2-2.9.60# /usr/bin/y2tool y2autoconf
pangeadm:~/YaST4Debian/src.rpm/yast2/yast2-2.9.60# /usr/bin/y2tool y2automake
pangeadm:~/YaST4Debian/src.rpm/yast2/yast2-2.9.60# autoreconf --force --install
pangeadm:~/YaST4Debian/src.rpm/yast2/yast2-2.9.60# ./configure
pangeadm:~/YaST4Debian/src.rpm/yast2/yast2-2.9.60# make
pangeadm:~/YaST4Debian/src.rpm/yast2/yast2-2.9.60# checkinstall
	</PRE
></FONT
></TD
></TR
></TABLE
></DIV
><DIV
CLASS="section"
><HR><H2
CLASS="section"
><A
NAME="AEN94"
>10. yast2-ncurses compilation</A
></H2
><P
>Come on, we almost have it:</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="programlisting"
>&#13;# apt-get install libncursesw5-dev
# ln -s /usr/lib/libpopt.a /usr/local/lib
		</PRE
></FONT
></TD
></TR
></TABLE
><P
>	
			add to yast2-ncurses-2.9.20/src/Makefile y yast2-ncurses-2.9.20/Makefile the following line:
			<B
CLASS="command"
>include: -I$(oldincludedir)/ncursesw</B
> 
		</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="programlisting"
>&#13;# /usr/bin/y2tool y2autoconf
# /usr/bin/y2tool y2automake
# autoreconf --force --install
# ./configure
# make
# checkinstall
		</PRE
></FONT
></TD
></TR
></TABLE
></DIV
><DIV
CLASS="section"
><HR><H2
CLASS="section"
><A
NAME="AEN101"
>11. Conclusions</A
></H2
><P
>&#13;			If we succeeded now we can start compiling YaST2 modules and trying to use them under
			Debian. Some modules are quite different and need a lot of hacking before using them
			under Debian (eg: network congiguring module) but others should be the same (eg: users
			module). If you 
		</P
><P
>&#13;			If you want to contribute or you have comments about this article your feedback is welcome:
			ramon@linux-labs.net.
		</P
></DIV
></DIV
></BODY
></HTML
>
--=-R9EsCu3JLxfXap6KK98I
Content-Disposition: attachment; filename=compilacion-yast.html
Content-Type: text/html; name=compilacion-yast.html; charset=ISO-8859-15
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by avant.pangea.org id j2DHXVOZ019870

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www=
.w3.org/TR/html4/loose.dtd">
<HTML
><HEAD
><TITLE
>Compilaci=F3n de YaST bajo Debian</TITLE
><META
NAME=3D"GENERATOR"
CONTENT=3D"Modular DocBook HTML Stylesheet Version 1.79"></HEAD
><BODY
CLASS=3D"article"
BGCOLOR=3D"#FFFFFF"
TEXT=3D"#000000"
LINK=3D"#0000FF"
VLINK=3D"#840084"
ALINK=3D"#0000FF"
><DIV
CLASS=3D"ARTICLE"
><DIV
CLASS=3D"TITLEPAGE"
><H1
CLASS=3D"title"
><A
NAME=3D"AEN2"
>Compilaci=F3n de YaST bajo Debian</A
></H1
><DIV
CLASS=3D"authorgroup"
><A
NAME=3D"AEN3"
></A
><H3
CLASS=3D"author"
><A
NAME=3D"AEN4"
>Ramon Acedo</A
></H3
><H3
CLASS=3D"author"
><A
NAME=3D"AEN6"
>Jose Luis Cantos (pikota)</A
></H3
></DIV
><DIV
CLASS=3D"revhistory"
><TABLE
WIDTH=3D"100%"
BORDER=3D"0"
><TR
><TH
ALIGN=3D"LEFT"
VALIGN=3D"TOP"
COLSPAN=3D"3"
><B
>Historial de revisiones</B
></TH
></TR
><TR
><TD
ALIGN=3D"LEFT"
>Revisi=F3n 0.2</TD
><TD
ALIGN=3D"LEFT"
>13 / 03 / 05</TD
><TD
ALIGN=3D"LEFT"
>Revisado por: R.A</TD
></TR
><TR
><TD
ALIGN=3D"LEFT"
COLSPAN=3D"3"
>A=F1adidos varios comentarios aclaratorios. Conversi=F3n a DocBook</TD
></TR
><TR
><TD
ALIGN=3D"LEFT"
>Revisi=F3n 0.1</TD
><TD
ALIGN=3D"LEFT"
>06 / 03 / 05</TD
><TD
ALIGN=3D"LEFT"
>Revisado por: J.L.C</TD
></TR
><TR
><TD
ALIGN=3D"LEFT"
COLSPAN=3D"3"
>Primera versi=F3n en castellano basada en la how-to en ingl=E9s</TD
></TR
></TABLE
></DIV
><DIV
><DIV
CLASS=3D"abstract"
><P
></P
><A
NAME=3D"AEN8"
></A
><P
>&#13;				El objetivo de este documento es redactar los pasos hasta conse=
guir compilar YaST=20
				bajo Debian, tarea no demasiado f=E1cil, aunque tampoco imposible, es=
te how-to, intentar=E1
				amenizar esa tarea.
			</P
><P
>Todo lo aqu=ED lo relatado ha sido hecho bajo Debian Sid, con kernel 2.6=
.10. </P
><P
></P
></DIV
></DIV
><HR></DIV
><DIV
CLASS=3D"TOC"
><DL
><DT
><B
>Tabla de contenidos</B
></DT
><DT
>1. <A
HREF=3D"#AEN23"
>Instalaci=F3n de los programas necesarios</A
></DT
><DT
>2. <A
HREF=3D"#AEN29"
>Instalaci=F3n de RPM de SuSE</A
></DT
><DT
>3. <A
HREF=3D"#AEN59"
>Compilaci=F3n de yast2-devtools</A
></DT
><DT
>4. <A
HREF=3D"#AEN68"
>Compilaci=F3n de liby2util</A
></DT
><DT
>5. <A
HREF=3D"#AEN76"
>Compilaci=F3n yast2-packamanager</A
></DT
><DT
>6. <A
HREF=3D"#AEN82"
>Instalaci=F3n de los fuentes de hwinfo</A
></DT
><DT
>7. <A
HREF=3D"#AEN89"
>Compilaci=F3n de yast2-core</A
></DT
><DT
>8. <A
HREF=3D"#AEN93"
>Compilaci=F3n de yast2-testsuite</A
></DT
><DT
>9. <A
HREF=3D"#AEN96"
>Compilaci=F3n de yast2</A
></DT
><DT
>10. <A
HREF=3D"#AEN100"
>Compilaci=F3n de yast2-ncurses</A
></DT
><DT
>11. <A
HREF=3D"#AEN107"
>Conclusiones</A
></DT
></DL
></DIV
><DIV
CLASS=3D"section"
><H2
CLASS=3D"section"
><A
NAME=3D"AEN23"
>1. Instalaci=F3n de los programas necesarios</A
></H2
><P
>Instalaremos los siguientes paquetes desde apt:</P
><TABLE
BORDER=3D"0"
BGCOLOR=3D"#E0E0E0"
WIDTH=3D"100%"
><TR
><TD
><FONT
COLOR=3D"#000000"
><PRE
CLASS=3D"programlisting"
>&#13;ramon@pangeadm:~/$ apt-get install libxml-writer-perl dejagnu flex-=
old doxygen electric-fence \
libslp-dev libcurl3-dev libstdc++6-dbg libsysfs-dev  checkinstall
		</PRE
></FONT
></TD
></TR
></TABLE
><P
>Despu=E9s de haber instalado esos paquetes, hacemos los siguientes enlac=
es:</P
><TABLE
BORDER=3D"0"
BGCOLOR=3D"#E0E0E0"
WIDTH=3D"100%"
><TR
><TD
><FONT
COLOR=3D"#000000"
><PRE
CLASS=3D"programlisting"
>&#13;ramon@pangeadm:~/$ ln -sf /usr/lib/debug/libstdc++.la /usr/lib/
ramon@pangeadm:~/$ ln -sf /usr/lib/debug/libstdc++.so /usr/lib/
		</PRE
></FONT
></TD
></TR
></TABLE
></DIV
><DIV
CLASS=3D"section"
><HR><H2
CLASS=3D"section"
><A
NAME=3D"AEN29"
>2. Instalaci=F3n de RPM de SuSE</A
></H2
><P
>Necesitamos el rpm de Debian para extraerlo y varios paquetes m=E1s para=
 compilarlo:</P
><TABLE
BORDER=3D"0"
BGCOLOR=3D"#E0E0E0"
WIDTH=3D"100%"
><TR
><TD
><FONT
COLOR=3D"#000000"
><PRE
CLASS=3D"programlisting"
>&#13;ramon@pangeadm:~/$ apt-get install rpm bzip2 libelfg0
		</PRE
></FONT
></TD
></TR
></TABLE
><P
>Nos bajamos el rpm y lo extraemos</P
><TABLE
BORDER=3D"0"
BGCOLOR=3D"#E0E0E0"
WIDTH=3D"100%"
><TR
><TD
><FONT
COLOR=3D"#000000"
><PRE
CLASS=3D"programlisting"
>&#13;ramon@pangeadm:~/$ wget	ftp://ftp.suse.com/pub/suse/i386/9.2/suse/s=
rc/rpm-4.1.1-191.src.rpm
ramon@pangeadm:~/$ rpm2cpio rpm-4.1.1-191.src.rpm | cpio -
		</PRE
></FONT
></TD
></TR
></TABLE
><P
>&#13;			Ahora tenemos que aplicar los parches, de SuSE, en el archivo rp=
m.spec, viene el=20
			orden de los patch, veremos algo parecido a esto:
		</P
><TABLE
BORDER=3D"0"
BGCOLOR=3D"#E0E0E0"
WIDTH=3D"100%"
><TR
><TD
><FONT
COLOR=3D"#000000"
><PRE
CLASS=3D"programlisting"
>&#13;ramon@pangeadm:~/$ grep ^Patch ../rpm.spec
Patch:        rpm-4.1.1.diff
Patch1:       rpmqpack.diff
Patch2:       rpm-4.1.1-findlang.diff
Patch3:       ia64-asm.patch
Patch4:       rpm-4.1.1-fdleak.diff
Patch6:       rpm-4.1.1-hppa.diff
Patch7:       rpm-4.1.1-ice.diff
Patch8:       rpm-4.1.1-ppc-no-mfspr_jmpbuf.diff
Patch9:       lvalue.diff
Patch11:      brp-compress.diff
		</PRE
></FONT
></TD
></TR
></TABLE
><P
>&#13;			Extraemos el tar.gz del c=F3digo fuente, nos situamos en el dire=
ctorio y lo parcheamos en el
			orden que vemos con el grep:
		</P
><TABLE
BORDER=3D"0"
BGCOLOR=3D"#E0E0E0"
WIDTH=3D"100%"
><TR
><TD
><FONT
COLOR=3D"#000000"
><PRE
CLASS=3D"programlisting"
>&#13;ramon@pangeadm:~/$ patch -p0 ../patch.diff
		</PRE
></FONT
></TD
></TR
></TABLE
><P
>Despu=E9s de aplicar todos los parches, ejecutamos el configure:</P
><TABLE
BORDER=3D"0"
BGCOLOR=3D"#E0E0E0"
WIDTH=3D"100%"
><TR
><TD
><FONT
COLOR=3D"#000000"
><PRE
CLASS=3D"programlisting"
>&#13;./configure --prefix=3D/usr
		</PRE
></FONT
></TD
></TR
></TABLE
><P
> Ahora instalamos los siguientes paquetes:</P
><TABLE
BORDER=3D"0"
BGCOLOR=3D"#E0E0E0"
WIDTH=3D"100%"
><TR
><TD
><FONT
COLOR=3D"#000000"
><PRE
CLASS=3D"programlisting"
>&#13;apt-get install python2.3-dev libltdl3-dev libelf-0.8.5 libdwarf-de=
v
		</PRE
></FONT
></TD
></TR
></TABLE
><P
>&#13;			Tenemos que quitar la opci=F3n -Werror de los Makefiles situados=
 en=20
			elfutils/lib*/Makefile y elfutils/test/Makefile dentro del c=F3digo fu=
ente del rpm.=20
			Algunos se generan mientras se compila, cuando de error veremos qu=E9 =
Makefile es y le=20
			quitamos el -Werror.
		</P
><P
>Para detectarlos podemos hacer:  grep Werror elfutils/*/Makefile</P
><P
>&#13;			Hacemos  <B
CLASS=3D"command"
>touch po/mkinstalldirs elfutils/po/mkinstalldirs</B
> en el directorio
			fuente rpm-4.1.
		</P
><P
>&#13;			Ahora hacemos un enlace con de los archivos de cabecera de Pytho=
n2.3 a /usr/include y=20
			empezamos la compilaci=F3n:
		</P
><TABLE
BORDER=3D"0"
BGCOLOR=3D"#E0E0E0"
WIDTH=3D"100%"
><TR
><TD
><FONT
COLOR=3D"#000000"
><PRE
CLASS=3D"programlisting"
>&#13;ramon@pangeadm:~/$ ln -s /usr/include/Python2.3/* /usr/include
ramon@pangeadm:~/$ ln -s /usr/include/libdwarf/dwarf.h  /usr/local/includ=
e/
#make
#checkinstall
		</PRE
></FONT
></TD
></TR
></TABLE
><DIV
CLASS=3D"note"
><P
></P
><TABLE
CLASS=3D"note"
WIDTH=3D"100%"
BORDER=3D"0"
><TR
><TD
WIDTH=3D"25"
ALIGN=3D"CENTER"
VALIGN=3D"TOP"
><IMG
SRC=3D"../images/note.gif"
HSPACE=3D"5"
ALT=3D"Nota"></TD
><TH
ALIGN=3D"LEFT"
VALIGN=3D"MIDDLE"
><B
>checkinstall y mkinstalldirs</B
></TH
></TR
><TR
><TD
>&nbsp;</TD
><TD
ALIGN=3D"LEFT"
VALIGN=3D"TOP"
><P
>&#13;				Si ten=E9is un problema al hacer make y os sale un fallo de com=
pilaci=F3n,=20
				yo lo arregle modificando el Makefile de popt/po ya que en el MKINSTA=
LLDIRS=20
				ten=EDa un directorio de m=E1s. Lo deje as=ED:
			</P
><P
><EM
>MKINSTALLDIRS =3D $(top_builddir)/./mkinstalldirs</EM
></P
></TD
></TR
></TABLE
></DIV
><DIV
CLASS=3D"note"
><P
></P
><TABLE
CLASS=3D"note"
WIDTH=3D"100%"
BORDER=3D"0"
><TR
><TD
WIDTH=3D"25"
ALIGN=3D"CENTER"
VALIGN=3D"TOP"
><IMG
SRC=3D"../images/note.gif"
HSPACE=3D"5"
ALT=3D"Nota"></TD
><TH
ALIGN=3D"LEFT"
VALIGN=3D"MIDDLE"
><B
>checkinstall y dpkg</B
></TH
></TR
><TR
><TD
>&nbsp;</TD
><TD
ALIGN=3D"LEFT"
VALIGN=3D"TOP"
><P
>&#13;				Al acabar el checkinstall intentar=E1 instalar el paquete debia=
n creado y quiz=E1 tenga=20
			        problemas de conflicto con el rpm de debian. Borramos el de de=
bian=20
				<B
CLASS=3D"command"
>apt-get remove rpm librpm4 libpopt0</B
> e instalamos a mano el paquete
				generado <B
CLASS=3D"command"
>dpkg -i rpm-4.1.1_4.1.1-1_i386.deb</B
>
			</P
></TD
></TR
></TABLE
></DIV
></DIV
><DIV
CLASS=3D"section"
><HR><H2
CLASS=3D"section"
><A
NAME=3D"AEN59"
>3. Compilaci=F3n de yast2-devtools</A
></H2
><P
>Instalamos los siguientes paquetes:</P
><TABLE
BORDER=3D"0"
BGCOLOR=3D"#E0E0E0"
WIDTH=3D"100%"
><TR
><TD
><FONT
COLOR=3D"#000000"
><PRE
CLASS=3D"programlisting"
>&#13;#apt-get install sgmltools-lite linuxdoc-tools gettext g++
		</PRE
></FONT
></TD
></TR
></TABLE
><P
>&#13;			Nos bajamos el c=F3digo fuente de yast2-devtools del ftp de Suse=
. Yo lo he hecho todo con la=20
			SuSE 9.1, quitando el paquete rpm4.1, debido a que con la versi=F3n 9.=
2 tuve fallos en algunos
			paquetes. Eso si no hag=E1is una mezcla de paquetes de las dos version=
es, ya que os saldr=E1n=20
			muchos errores de compilaci=F3n.
		</P
><P
>Extraemos el c=F3digo fuente</P
><TABLE
BORDER=3D"0"
BGCOLOR=3D"#E0E0E0"
WIDTH=3D"100%"
><TR
><TD
><FONT
COLOR=3D"#000000"
><PRE
CLASS=3D"programlisting"
>&#13;ramon@pangeadm:~/$ rpm2cpio package.src.rpm | cpio -
		</PRE
></FONT
></TD
></TR
></TABLE
><P
>y dentro de la carpeta de c=F3digo fuente:</P
><TABLE
BORDER=3D"0"
BGCOLOR=3D"#E0E0E0"
WIDTH=3D"100%"
><TR
><TD
><FONT
COLOR=3D"#000000"
><PRE
CLASS=3D"programlisting"
>&#13;ramon@pangeadm:~/YaST4Debian/src.rpm/yast2-devtools/yast2-devtools-=
2.9.17$ ./configure
ramon@pangeadm:~/YaST4Debian/src.rpm/yast2-devtools/yast2-devtools-2.9.17=
$ make
ramon@pangeadm:~/YaST4Debian/src.rpm/yast2-devtools/yast2-devtools-2.9.17=
$ checkinstall
		</PRE
></FONT
></TD
></TR
></TABLE
></DIV
><DIV
CLASS=3D"section"
><HR><H2
CLASS=3D"section"
><A
NAME=3D"AEN68"
>4. Compilaci=F3n de liby2util</A
></H2
><P
>&#13;			Mismo procedimiento que antes, nos bajamos el c=F3digo fuente de=
l ftp de suse,=20
			extraemos dicho c=F3digo y ejecutamos:
		</P
><TABLE
BORDER=3D"0"
BGCOLOR=3D"#E0E0E0"
WIDTH=3D"100%"
><TR
><TD
><FONT
COLOR=3D"#000000"
><PRE
CLASS=3D"programlisting"
>&#13;ramon@pangeadm:~/$ wget ftp://ftp.suse.com/pub/suse/i386/9.1/suse/s=
rc/liby2util-2.9.22-0.src.rpm
		</PRE
></FONT
></TD
></TR
></TABLE
><P
>Hace falta el paquete libtool y automake1.6</P
><TABLE
BORDER=3D"0"
BGCOLOR=3D"#E0E0E0"
WIDTH=3D"100%"
><TR
><TD
><FONT
COLOR=3D"#000000"
><PRE
CLASS=3D"programlisting"
>&#13;ramon@pangeadm:~/$ apt-get install libtool
ramon@pangeadm:~/$ apt-get install automake1.6
		</PRE
></FONT
></TD
></TR
></TABLE
><P
>Si tenemos instalado el automake1.4 lo eliminamos</P
><TABLE
BORDER=3D"0"
BGCOLOR=3D"#E0E0E0"
WIDTH=3D"100%"
><TR
><TD
><FONT
COLOR=3D"#000000"
><PRE
CLASS=3D"programlisting"
>&#13;ramon@pangeadm:~/$ /usr/bin/y2tool y2autoconf
ramon@pangeadm:~/$ /usr/bin/y2tool y2automake
ramon@pangeadm:~/$ autoreconf --force --install
ramon@pangeadm:~/$ ./configure
ramon@pangeadm:~/$ make
ramon@pangeadm:~/$ checkinstall
		</PRE
></FONT
></TD
></TR
></TABLE
></DIV
><DIV
CLASS=3D"section"
><HR><H2
CLASS=3D"section"
><A
NAME=3D"AEN76"
>5. Compilaci=F3n yast2-packamanager</A
></H2
><P
>Lo mismo, nos bajamos el c=F3digo fuente lo extraemos y ejecutamos:</P
><TABLE
BORDER=3D"0"
BGCOLOR=3D"#E0E0E0"
WIDTH=3D"100%"
><TR
><TD
><FONT
COLOR=3D"#000000"
><PRE
CLASS=3D"programlisting"
>&#13;pangeadm:~/YaST4Debian/src.rpm/yast2-packagemanager/yast2-packagema=
nager-2.9.37# ln -s /usr/lib/libpopt.la /usr/local/lib/
pangeadm:~/YaST4Debian/src.rpm/yast2-packagemanager/yast2-packagemanager-=
2.9.37# ln -s /usr/lib/libpopt.so /usr/local/lib/
pangeadm:~/YaST4Debian/src.rpm/yast2-packagemanager/yast2-packagemanager-=
2.9.37# y2tool autoconf
pangeadm:~/YaST4Debian/src.rpm/yast2-packagemanager/yast2-packagemanager-=
2.9.37# y2tool automake
pangeadm:~/YaST4Debian/src.rpm/yast2-packagemanager/yast2-packagemanager-=
2.9.37# autoreconf --force --install
pangeadm:~/YaST4Debian/src.rpm/yast2-packagemanager/yast2-packagemanager-=
2.9.37# ./configure
pangeadm:~/YaST4Debian/src.rpm/yast2-packagemanager/yast2-packagemanager-=
2.9.37# make
pangeadm:~/YaST4Debian/src.rpm/yast2-packagemanager/yast2-packagemanager-=
2.9.37# checkinstall
		</PRE
></FONT
></TD
></TR
></TABLE
><P
>&#13;			Nota: Es posible el siguiente problema con la compilaci=F3n (pue=
de no ocurrir). No linkaba=20
			bien una biblioteca, el archivo en cuesti=F3n a modificar era liby2pm.=
la y lo deje tal que asi:
		</P
><P
>&#13;			dependency_libs=3D' /usr/lib/librpm.la -L/var/tmp/rpm-root/usr/l=
ib=20
			-L/root/rpm4.1/rpm-4.1.1/zlib -L/usr/local/lib /usr/lib/librpmdb.la=20
			/usr/lib/librpmio.la -lrt -lpthread /usr/lib/libbz2.la /usr/lib/libpop=
t.la=20
			/usr/lib/libslp.la /usr/lib/libcurl.la /usr/lib/libidn.la -lz /usr/lib=
/liby2util.la=20
			-lutil -lssl -lcrypto -ldl      '
		</P
></DIV
><DIV
CLASS=3D"section"
><HR><H2
CLASS=3D"section"
><A
NAME=3D"AEN82"
>6. Instalaci=F3n de los fuentes de hwinfo</A
></H2
><P
>&#13;			Descargaremos y compilaremos el c=F3digo fuente de hwinfo, progr=
ama
			necesario para YaST.
		</P
><TABLE
BORDER=3D"0"
BGCOLOR=3D"#E0E0E0"
WIDTH=3D"100%"
><TR
><TD
><FONT
COLOR=3D"#000000"
><PRE
CLASS=3D"programlisting"
>&#13;pangeadm:~/YaST4Debian/src.rpm/hwinfo# wget ftp://ftp.suse.com/pub/=
suse/i386/9.1/suse/src/hwinfo-8.38-0.src.rpm
pangeadm:~/YaST4Debian/src.rpm/hwinfo# rpm2cpio hwinfo-9.31-1.1.src.rpm  =
|cpio -i
pangeadm:~/YaST4Debian/src.rpm/hwinfo/hwinfo-8.38# make
		</PRE
></FONT
></TD
></TR
></TABLE
><P
>&#13;			Ahora copiamos del c=F3digo fuente de hwinfo, el archivo <EM
>libhd.a</EM
> a /usr/lib
			y las cabeceras a /usr/include.
		</P
><TABLE
BORDER=3D"0"
BGCOLOR=3D"#E0E0E0"
WIDTH=3D"100%"
><TR
><TD
><FONT
COLOR=3D"#000000"
><PRE
CLASS=3D"programlisting"
>&#13;ramon@pangeadm:~/$ rpm2cpio hwinfo-9.31-1.1.src.rpm  |cpio -i
pangeadm:~/YaST4Debian/src.rpm/hwinfo/hwinfo-8.38# cp src/libhd.a /usr/li=
b
pangeadm:~/YaST4Debian/src.rpm/hwinfo/hwinfo-8.38# cp src/hd/hd.h /usr/in=
clude/
		</PRE
></FONT
></TD
></TR
></TABLE
></DIV
><DIV
CLASS=3D"section"
><HR><H2
CLASS=3D"section"
><A
NAME=3D"AEN89"
>7. Compilaci=F3n de yast2-core</A
></H2
><P
>Bajamos el c=F3digo fuente del ftp de SuSE , lo extraemos y ejecutamos l=
o siguiente:</P
><TABLE
BORDER=3D"0"
BGCOLOR=3D"#E0E0E0"
WIDTH=3D"100%"
><TR
><TD
><FONT
COLOR=3D"#000000"
><PRE
CLASS=3D"programlisting"
>&#13;pangeadm:~/YaST4Debian/src.rpm/yast2-core# apt-get install bison nc=
urses-dev libxcrypt-dev
pangeadm:~/YaST4Debian/src.rpm/yast2-core# wget ftp://yast4debian.alioth.=
debian.org/pub/yast4debian/yast2-core-2.9.79.tar.bz2 =20
pangeadm:~/YaST4Debian/src.rpm/yast2-core# ln -sf /lib/libpopt.so.0 /usr/=
lib/libpopt.so.1
pangeadm:~/YaST4Debian/src.rpm/yast2-core/yast2-core-2.9.79# /usr/bin/y2t=
ool y2autoconf
pangeadm:~/YaST4Debian/src.rpm/yast2-core/yast2-core-2.9.79# /usr/bin/y2t=
ool y2automake
pangeadm:~/YaST4Debian/src.rpm/yast2-core/yast2-core-2.9.79#  autoreconf =
--force --install
pangeadm:~/YaST4Debian/src.rpm/yast2-core/yast2-core-2.9.79# ./configure=20
pangeadm:~/YaST4Debian/src.rpm/yast2-core/yast2-core-2.9.79#  make
pangeadm:~/YaST4Debian/src.rpm/yast2-core/yast2-core-2.9.79#  checkinstal=
l=20
	</PRE
></FONT
></TD
></TR
></TABLE
></DIV
><DIV
CLASS=3D"section"
><HR><H2
CLASS=3D"section"
><A
NAME=3D"AEN93"
>8. Compilaci=F3n de yast2-testsuite</A
></H2
><TABLE
BORDER=3D"0"
BGCOLOR=3D"#E0E0E0"
WIDTH=3D"100%"
><TR
><TD
><FONT
COLOR=3D"#000000"
><PRE
CLASS=3D"programlisting"
>&#13;pangeadm:~/YaST4Debian/src.rpm/yast2-testsuite# wget ftp://yast4deb=
ian.alioth.debian.org/pub/yast4debian/yast2-testsuite-2.9.9.tar.bz2
pangeadm:~/YaST4Debian/src.rpm/yast2-testsuite# tar xfj yast2-testsuite-2=
.9.9.tar.bz2
pangeadm:~/YaST4Debian/src.rpm/yast2-testsuite/yast2-testsuite-2.9.9# ./c=
onfigure
pangeadm:~/YaST4Debian/src.rpm/yast2-testsuite/yast2-testsuite-2.9.9# /us=
r/bin/y2tool y2autoconf
pangeadm:~/YaST4Debian/src.rpm/yast2-testsuite/yast2-testsuite-2.9.9# /us=
r/bin/y2tool y2automake
pangeadm:~/YaST4Debian/src.rpm/yast2-testsuite/yast2-testsuite-2.9.9# aut=
oreconf --force --install
pangeadm:~/YaST4Debian/src.rpm/yast2-testsuite/yast2-testsuite-2.9.9# ./c=
onfigure
pangeadm:~/YaST4Debian/src.rpm/yast2-testsuite/yast2-testsuite-2.9.9# mak=
e
pangeadm:~/YaST4Debian/src.rpm/yast2-testsuite/yast2-testsuite-2.9.9# che=
ckinstall
	</PRE
></FONT
></TD
></TR
></TABLE
></DIV
><DIV
CLASS=3D"section"
><HR><H2
CLASS=3D"section"
><A
NAME=3D"AEN96"
>9. Compilaci=F3n de yast2</A
></H2
><P
>De nuevo se procede igual que con los anteriores paquetes:</P
><TABLE
BORDER=3D"0"
BGCOLOR=3D"#E0E0E0"
WIDTH=3D"100%"
><TR
><TD
><FONT
COLOR=3D"#000000"
><PRE
CLASS=3D"programlisting"
>&#13;pangeadm:~/YaST4Debian/src.rpm/yast2# wget ftp://yast4debian.alioth=
.debian.org/pub/yast4debian/yast2-2.9.60.tar.bz2
pangeadm:~/YaST4Debian/src.rpm/yast2# tar xfj yast2-2.9.60.tar.bz2
pangeadm:~/YaST4Debian/src.rpm/yast2/yast2-2.9.60# /usr/bin/y2tool y2auto=
conf
pangeadm:~/YaST4Debian/src.rpm/yast2/yast2-2.9.60# /usr/bin/y2tool y2auto=
make
pangeadm:~/YaST4Debian/src.rpm/yast2/yast2-2.9.60# autoreconf --force --i=
nstall
pangeadm:~/YaST4Debian/src.rpm/yast2/yast2-2.9.60# ./configure
pangeadm:~/YaST4Debian/src.rpm/yast2/yast2-2.9.60# make
pangeadm:~/YaST4Debian/src.rpm/yast2/yast2-2.9.60# checkinstall
	</PRE
></FONT
></TD
></TR
></TABLE
></DIV
><DIV
CLASS=3D"section"
><HR><H2
CLASS=3D"section"
><A
NAME=3D"AEN100"
>10. Compilaci=F3n de yast2-ncurses</A
></H2
><P
>Nos bajamos el c=F3digo fuente, lo extraemos y ejecutamos :</P
><TABLE
BORDER=3D"0"
BGCOLOR=3D"#E0E0E0"
WIDTH=3D"100%"
><TR
><TD
><FONT
COLOR=3D"#000000"
><PRE
CLASS=3D"programlisting"
>&#13;# apt-get install libncursesw5-dev
# ln -s /usr/lib/libpopt.a /usr/local/lib
		</PRE
></FONT
></TD
></TR
></TABLE
><P
>=09
			A=F1adir a yast2-ncurses-2.9.20/src/Makefile y yast2-ncurses-2.9.20/Ma=
kefile lo siguiente:
			<B
CLASS=3D"command"
>include: -I$(oldincludedir)/ncursesw</B
>=20
		</P
><TABLE
BORDER=3D"0"
BGCOLOR=3D"#E0E0E0"
WIDTH=3D"100%"
><TR
><TD
><FONT
COLOR=3D"#000000"
><PRE
CLASS=3D"programlisting"
>&#13;# /usr/bin/y2tool y2autoconf
# /usr/bin/y2tool y2automake
# autoreconf --force --install
# ./configure
# make
# checkinstall
		</PRE
></FONT
></TD
></TR
></TABLE
></DIV
><DIV
CLASS=3D"section"
><HR><H2
CLASS=3D"section"
><A
NAME=3D"AEN107"
>11. Conclusiones</A
></H2
><P
>&#13;			Bueno hasta aqu=ED llega el how-to, quisiera agradecer a Ram=F3n=
 Acedo, su colaboraci=F3n ya que=20
			sin =E9l no creo que hubiera logrado llegar a compilarlo. Despu=E9s po=
d=E9is probar a instalar=20
			el modulo de Users de Yast y comprobar a ver si os funciona.
		</P
><P
>&#13;			Si ten=E9is algo que a=F1adir al how-to, o algo que no quedo cla=
ro, no dud=E9is en decirlo,=20
			podeis contactar conmigo por jabber en pikota@jabber.org, y con Ram=F3=
n en=20
			ramon@linux-labs.net.
		</P
></DIV
></DIV
></BODY
></HTML
>
--=-R9EsCu3JLxfXap6KK98I--