-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue, 27 Mar 2007, Steffen Kaiser wrote:

Hello,

OK, with the slang patch for DOSemu I posted early and the following changes to libcap, I was able to compile the unattended and I currently run a test install in VMware. It is currently in the textmode file-copy phase of WinNT, hence, I assume it is working through.

There is another issue:
nano: error while loading shared library: libncoursesw.so.5 ... No such file...

BTW: I could use "parted" fine.

I'm not sure, there was a reply that suggests that neither slang nor libcap is necessary; also, I wonder if to dump DOSemu at all, will work for all situations:
http://unattended-gui.svn.sourceforge.net/viewvc/unattended-gui/z/etc/init/profiles/unattended-nodosemu/01install?revision=87&view=markup
I mean, the DOSemu part is wicked.

The font in DOSemu is wrong, but that's no real problem. The graphic symbols and umlauts (I'm trying a German variant of Win) are missing.

The libcap patch is inspired by the Debian libcap package.
I don't know how to construct the path to the local Linux's capability.h independed.
===
diff -u1 -r 
/mnt/prgdist/unattend/cvs/unattended/linuxboot/libcap-1.10/libcap/Makefile 
libcap-1.10/libcap/Makefile
- --- 
/mnt/prgdist/unattend/cvs/unattended/linuxboot/libcap-1.10/libcap/Makefile      
  1999-04-18 00:16:31.000000000 +0200
+++ libcap-1.10/libcap/Makefile 2007-03-26 16:31:45.000000000 +0200
@@ -52,6 +52,5 @@

- -cap_names.sed: Makefile /usr/include/linux/capability.h
+cap_names.sed: Makefile 
/mnt/prgdist/unattend/wk/linuxboot/linux-2.6.20.2/include/linux/capability.h
        @echo "=> making cap_names.c from <linux/capability.h>"
- -     @sed -ne '/^#define[ \t]CAP[_A-Z]\+[ \t]\+[0-9]\+/{s/^#define \([^ \t]*\)[ \t]*\([^ 
\t]*\)/  \{ \2, \"\1\" 
\},/;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/;p;}' < 
/usr/include/linux/capability.h | fgrep -v 0x > cap_names.sed
- -#    @sed -ne '/^#define[ \t]CAP[_A-Z]\+[ \t]\+[0-9]\+/{s/^#define CAP_\([^ \t]*\)[ \t]*\([^ 
\t]*\)/  \{ \2, \"\1\" 
\},/;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/;p;}' < 
/usr/include/linux/capability.h | fgrep -v 0x > cap_names.sed
+       @sed -ne '/^#define[ \t]CAP[_A-Z]\+[ \t]\+[0-9]\+/{s/^#define \([^ \t]*\)[ \t]*\([^ 
\t]*\)/  \{ \2, \"\1\" 
\},/;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/;p;}' < 
/mnt/prgdist/unattend/wk/linuxboot/linux-2.6.20.2/include/linux/capability.h | fgrep -v 0x > 
cap_names.sed

diff -u1 -r 
/mnt/prgdist/unattend/cvs/unattended/linuxboot/libcap-1.10/libcap/_makenames.c 
libcap-1.10/libcap/_makenames.c
- --- 
/mnt/prgdist/unattend/cvs/unattended/linuxboot/libcap-1.10/libcap/_makenames.c  
  1999-05-14 06:46:15.000000000 +0200
+++ libcap-1.10/libcap/_makenames.c     2007-03-27 09:20:29.000000000 +0200
@@ -11,3 +11,4 @@
 #include <stdlib.h>
- -#include <linux/capability.h>
+#include <sys/capability.h>
+/*#include <linux/capability.h>*/

diff -u1 -r 
/mnt/prgdist/unattend/cvs/unattended/linuxboot/libcap-1.10/libcap/cap_sys.c 
libcap-1.10/libcap/cap_sys.c
- --- 
/mnt/prgdist/unattend/cvs/unattended/linuxboot/libcap-1.10/libcap/cap_sys.c     
  1999-04-18 00:16:31.000000000 +0200
+++ libcap-1.10/libcap/cap_sys.c        2007-03-27 09:16:52.000000000 +0200
@@ -13,2 +13,3 @@

+/*
 _syscall2(int, capget,
@@ -20,2 +21,3 @@
          const cap_user_data_t, data)
+*/
============

For slang:
=============
- --- /mnt/prgdist/unattend/cvs/unattended/linuxboot/Makefile 2007-03-12 23:07:51.000000000 +0100
+++ Makefile    2007-03-22 16:51:51.000000000 +0100
@@ -167,4 +167,14 @@

+fakelib/libslang.a: $(slang)/configure
+       rm -f $@
+       cd $(cwd)/$(slang)      \
+       && CC="$(CC) $(fakelib_cflags)" ./configure     \
+               --prefix=/usr   \
+       && make \
+       && ln src/objs/libslang.a $(cwd)/fakelib        \
+       && ln src/slang.h $(cwd)/fakeinclude
+       [ -e $@ ]
+
 build-$(dosemu)/config.status: $(dosemu)/.stamp-dosemu-nolock-patch \
- -                       $(dosemu)/configure
+                       $(dosemu)/configure fakelib/libslang.a
        rm -f $@
@@ -174,3 +184,3 @@
                --without-x --without-gpm --build=i586-linux            \
- -               --prefix=/usr --with-slangdir=$(cwd)/$(slang)
+               --prefix=/usr
        [ -e $@ ]
=================

Bye,

- -- Steffen Kaiser
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iQEVAwUBRgjfndOkJV1AYoBwAQKImggAoJgp5508aHWs7T6JRzLSF+GFeEf33DE3
k3JVXqbs7qVv4Jw1ED8O5fjlO5Lwa4XJhxMS9l0XH53PWdju5gCzjqHHBsjTQ/sE
RoS5nyxpwzL81WGwiqAEzk62nEmu+Lh9sMqZ8XRWZDjnqcxx6Bvt/O2NoOTz3XjR
xOhul5+quFUBIGMnLhk9hFnUekoUDzjxSBQVBPftlWDH7Rbv2QjaJl+sSO+htoLq
IzAFecgj4piXEihVW2HfcwSmayUlJMBBT96cyFi4INxp/p5e4XnSqEdmbCU8gq7y
pK1WE2AVNT66hpcbjtqc5fwfqpOzpuDdQ/RkJknXWGYFjtzCJIZDxg==
=EoSg
-----END PGP SIGNATURE-----

Attachment: libcap.diff.gz
Description: Binary data

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
unattended-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/unattended-devel

Reply via email to