Page 1 of 1

Patchen, nur wie ?

Posted: 2003-06-29 10:20
by floschi
Hi!

Es gibt hier doch bestimmt jemanden, der mir erklären kann, was ich da jetzt machen muss:
On Saturday, June 28, 2003, at 12:52 PM, Florian Schie?l wrote:
> I get the followinbg errors while trying to compile vpopmail (5.2.1
> and
> 5.3.20) on my debian sarge (testing), using this config: ./configure
> --enable-tcprules-prog=/usr/bin/tcprules
> --enable-tcpserver-file=/etc/tcp.smtp:

Apply this patch to vmysql.h:

Code: Select all

diff -u vpopmail-5.3.20/vmysql.h vpopmail-5.3.20-tc/vmysql.h
--- vpopmail-5.3.20/vmysql.h    2003-03-18 17:27:18.000000000 -0700
+++ vpopmail-5.3.20-tc/vmysql.h 2003-06-27 22:35:09.000000000 -0700
@@ -48,11 +48,11 @@
  primary key (pw_name, pw_domain ) "
  #else
  #define TABLE_LAYOUT "pw_name char(32) not null, 
-pw_domain char(64) not null,
+pw_domain char(64) not null, 
  pw_passwd char(40), 
  pw_uid int, pw_gid int, 
  pw_gecos char(48), 
-pw_dir char(160),
+pw_dir char(160), 
  pw_shell char(20), 
  primary key (pw_name, pw_domain ) "
  #endif
Ich steh grad wie der Ochs vorm Berg... :(

Re: Patchen, nur wie ?

Posted: 2003-06-29 11:23
by captaincrunch
cat PATCH | patch

u.U. musst du (je nach Standoprt im Verzeichnisbaum noch ein -p1 hintendranhängen.

Re: Patchen, nur wie ?

Posted: 2003-06-29 14:31
by dea
cd <quellverzeichnis>; patch -p1 /pfad/zum/PATCH

das 'cat' ist nicht nötig ;) Aber vorher auf alle Fälle mal über 'man patch' drüberfliegen (ist eh' nicht so viel)!

Re: Patchen, nur wie ?

Posted: 2003-06-29 20:42
by floschi
thx a lot... wobei ich mittlerweile weiss, dass ich nur zwei einfügen muss in der Originaldatei ;)

Re: Patchen, nur wie ?

Posted: 2003-06-29 21:22
by captaincrunch
das 'cat' ist nicht nötig
Unter Unix führen halt glücklicherweise viele Wege nach Rom. Ich hab's mir einfach so angewöhnt ...