Re: Whoson patch not applaying on postfix

2004-07-26 Thread Thomas Lotterer
On Sun, Jul 25, 2004, Bill Campbell wrote:
 On Sun, Jul 25, 2004, Alexander Belck wrote:
 
 When compiling postfix with[_whoson yes ... patch does not apply]
 
 I posted a replacement patch for this yesterday or the day before. I
 think there's a new version of postfix in the CURRENT tree that fixes
 this.
 
Yes, Ralf took Bill's patch and not only created a CURRENT package but
did a MFC [1], too, resulting in a UPD package [2].

[1] http://cvs.openpkg.org/chngview?cn=18269
[2] ftp://ftp.openpkg.org/release/2.1/UPD/postfix-2.1.4-2.1.1.src.rpm

--
[EMAIL PROTECTED], Cable  Wireless
__
The OpenPKG Projectwww.openpkg.org
User Communication List  [EMAIL PROTECTED]


Re: Whoson patch not applaying on postfix

2004-07-26 Thread Alexander Belck
It still not apply correctly to me. From command:

/opkg/bin/openpkg rpm --define 'with_fdsetsize yes' --define 'with_ldap yes'
--define 'with_mysql yes' --define 'with_sasl yes' --define 'with_ssl yes'
--define 'with_whoson yes' --rebuild
ftp://ftp.openpkg.org/release/2.1/UPD/postfix-2.1.4-2.1.1.src.rpm

I got:


patching file src/util/sdbm.h
+ echo 'Patch #0 (postfix.patch):'
Patch #0 (postfix.patch):
+ /opkg/lib/openpkg/patch -p0 -s -b
+ cd pflogsumm-1.1.0
+ /opkg/lib/openpkg/patch -p0
patching file pflogsumm.pl
+ echo 'Patch #2 (postfix-2.1.4-whoson.patch):'
Patch #2 (postfix-2.1.4-whoson.patch):
+ /opkg/lib/openpkg/patch -p0 -s -b
3 out of 3 hunks FAILED -- saving rejects to file src/util/Makefile.in.rej
error: Bad exit status from /opkg/RPM/TMP/rpm-tmp.3 (%prep)


RPM build errors:
Bad exit status from /opkg/RPM/TMP/rpm-tmp.3 (%prep)



And src/util/Makefile.in.rej contains:
***
*** 28,34 
vstream_popen.c vstring.c vstring_vstream.c watchdog.c writable.c \
write_buf.c write_wait.c auto_clnt.c attr_clnt.c attr_scan_plain.c \
attr_print_plain.c sane_connect.c neuter.c name_code.c \
-   uppercase.c
  OBJS  = alldig.o argv.o argv_split.o attr_print0.o attr_print64.o \
attr_scan0.o attr_scan64.o base64_code.o basename.o binhash.o \
chroot_uid.o clean_env.o close_on_exec.o concatenate.o ctable.o \
--- 28,34 
vstream_popen.c vstring.c vstring_vstream.c watchdog.c writable.c \
write_buf.c write_wait.c auto_clnt.c attr_clnt.c attr_scan_plain.c \
attr_print_plain.c sane_connect.c neuter.c name_code.c \
+   uppercase.c dict_whoson.c
  OBJS  = alldig.o argv.o argv_split.o attr_print0.o attr_print64.o \
attr_scan0.o attr_scan64.o base64_code.o basename.o binhash.o \
chroot_uid.o clean_env.o close_on_exec.o concatenate.o ctable.o \
***
*** 58,64 
vstream_popen.o vstring.o vstring_vstream.o watchdog.o writable.o \
write_buf.o write_wait.o auto_clnt.o attr_clnt.o attr_scan_plain.o \
attr_print_plain.o sane_connect.o $(STRCASE) neuter.o name_code.o \
-   uppercase.o
  HDRS  = argv.h attr.h base64_code.h binhash.h chroot_uid.h clean_env.h \
connect.h ctable.h dict.h dict_db.h dict_dbm.h dict_env.h \
dict_cidr.h dict_ht.h dict_ni.h dict_nis.h \
--- 58,64 
vstream_popen.o vstring.o vstring_vstream.o watchdog.o writable.o \
write_buf.o write_wait.o auto_clnt.o attr_clnt.o attr_scan_plain.o \
attr_print_plain.o sane_connect.o $(STRCASE) neuter.o name_code.o \
+   uppercase.o dict_whoson.o
  HDRS  = argv.h attr.h base64_code.h binhash.h chroot_uid.h clean_env.h \
connect.h ctable.h dict.h dict_db.h dict_dbm.h dict_env.h \
dict_cidr.h dict_ht.h dict_ni.h dict_nis.h \
***
*** 77,83 
split_at.h stat_as.h stringops.h sys_defs.h timed_connect.h \
timed_wait.h trigger.h username.h valid_hostname.h vbuf.h \
vbuf_print.h vstream.h vstring.h vstring_vstream.h watchdog.h \
-   auto_clnt.h attr_clnt.h sane_connect.h name_code.h
  TESTSRC   = fifo_open.c fifo_rdwr_bug.c fifo_rdonly_bug.c select_bug.c \
stream_test.c dup2_pass_on_exec.c
  DEFS  = -I. -D$(SYSTYPE)
--- 77,83 
split_at.h stat_as.h stringops.h sys_defs.h timed_connect.h \
timed_wait.h trigger.h username.h valid_hostname.h vbuf.h \
vbuf_print.h vstream.h vstring.h vstring_vstream.h watchdog.h \
+   auto_clnt.h attr_clnt.h sane_connect.h name_code.h dict_whoson.h
  TESTSRC   = fifo_open.c fifo_rdwr_bug.c fifo_rdonly_bug.c select_bug.c \
stream_test.c dup2_pass_on_exec.c
  DEFS  = -I. -D$(SYSTYPE)



Citando Thomas Lotterer [EMAIL PROTECTED]:

 On Sun, Jul 25, 2004, Bill Campbell wrote:
  On Sun, Jul 25, 2004, Alexander Belck wrote:
  
  When compiling postfix with[_whoson yes ... patch does not apply]
  
  I posted a replacement patch for this yesterday or the day before. I
  think there's a new version of postfix in the CURRENT tree that fixes
  this.
 
 Yes, Ralf took Bill's patch and not only created a CURRENT package but
 did a MFC [1], too, resulting in a UPD package [2].

 [1] http://cvs.openpkg.org/chngview?cn=18269
 [2] ftp://ftp.openpkg.org/release/2.1/UPD/postfix-2.1.4-2.1.1.src.rpm

 --
 [EMAIL PROTECTED], Cable  Wireless
 __
 The OpenPKG Projectwww.openpkg.org
 User Communication List  [EMAIL PROTECTED]



--
ATIX Tecnologia e Com Ltda
Tel.: +55-(11) 4667-5900


This message was sent using IMP, the Internet Messaging Program.
__
The OpenPKG Projectwww.openpkg.org
User Communication List  [EMAIL PROTECTED]


Re: help using openpkg [newbie question]

2004-07-26 Thread Michael van Elst

Hi everyone,

On Mon, Jul 26, 2004 at 02:20:57PM -0500, Aaron Bostick wrote:
 This works in 2.0.  2.1 may be a little different.  You have to install
 these in this order on all machines to get the 'build' tool working:
 
 openpkg
 make
 binutils
 gcc
 perl
 openpkg-tools

yes and no. The build tool uses perl, but it is not necessary to
build perl manually for using the tool. It will try to use any
perl it finds.

With a native perl from the OS (on all Linux machines, even on
Solaris nowadays) I run the bootstrap, then as the 'opkg' user
I run something like:

openpkg rpm -i ftp://ftp.openpkg.org/release/2.1/SRC/openpkg-tool\*
openpkg rpmbuild RPM/SRC/openpkg-tools/openpkg-tools.spec
openpkg rpm -U RPM/PKG/openpkg-tools*
openpkg build -Ua | sh

to install openpkg-tools and pull in any updates. The nice thing
about this procedure is that I don't have to care about what
version is available and can put those commands in a small script.

The basic rpm commands like -i can use wildcards. The --rebuild
command (which combines -i of the source rpm and the rpmbuild
run) can't.

Finally I make a ~opkg/.openpkg/build containing something like:

-P /usr/pkg/bin/sudo

with a reasonable configured sudo on the system :-) or else:

-P -su root -c

so that I can run builds as the opkg user.

 If you have custom packages and need to rebuild your index then you can
 cron this as well:
 
 0 4 * * * /opkg/bin/openpkg index -c -r OpenPKG-2.0/Source/ -o
 /mirror/release/2.0/SRC/00INDEX.rdf.bz2 -i /mirror/release/2.0/SRC/

With many source packages (such as a full release repository) you really
do want to use caching using -C (and you need to have the perl DB_File
module installed).


 After you have your mirror setup, the build command above changes to:
 
 /opkg/bin/openpkg build -f ftp://your server
 name/release/2.0/00INDEX.rdf ntp | /bin/sh -

If you regularly build from a mirror you may want to put the -f
option (and/or -r option) into $HOME/.openpkg/build



Greetings,
-- 
Michael van Elst
Internet: [EMAIL PROTECTED]
A potential Snark may lurk in every tree.
__
The OpenPKG Projectwww.openpkg.org
User Communication List  [EMAIL PROTECTED]