Re: Installing Bootstrap on AIX

2007-06-07 Thread Michael van Elst
On Thu, Jun 07, 2007 at 09:10:26PM +0200, Ralf S. Engelschall wrote:
 On Thu, Jun 07, 2007, Doug Summers wrote:
 
   Besides the error: failed to open /etc/mtab messages (which are no big
   deal) AIX doesn't have /etc/init.d. Can you add symlinking /etc/rc.d/init.d
   to /etc/init.d?
 
 So, you mean there is no /etc/init.d but a /etc/rc.d/init.d?
 Ok, then we should not symlink /etc/rc.d/init.d to /etc/init.d,
 but instead place _our_ stuff into just /etc/rc.d/init.d.
 But where is the rc2.d dir under AIX? Can you provide me
 with the output of the following command, please:
 
 $ ls -l /etc/init.d /etc/rc.d/init.d
 $ ls -l /etc/rc?.d /etc/rc.d/rc?.d /etc/init.d/rc?.d
 
 I have to make sure that we correctly symlink from
 the init.d dir to the rc2.d dir.


In AIX you have

/etc/rc.d/init.d/

/etc/rc.d/rc2.d/
/etc/rc.d/rc3.d/
/etc/rc.d/rc4.d/
/etc/rc.d/rc5.d/
/etc/rc.d/rc6.d/
/etc/rc.d/rc7.d/
/etc/rc.d/rc8.d/
/etc/rc.d/rc9.d/

all empty on a standard system.

The script /etc/rc.d/rc is called by init for the specific run level
and executes the S* or K* scripts in the appropriate directory
for the run level.

You may place your start/stop-Scripts in /etc/rc.d/init.d
and place links in /etc/rc.d/rc?.d/.


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


Re: openpkg:build:FATAL: an I/O error occured

2007-05-31 Thread Michael van Elst
On Thu, May 31, 2007 at 02:16:16PM +0200, Olivier Kaloudoff wrote:
 Hello list !
 
   I'm facing this error message sometimes, and don't know
 how to fix it.

The I/O error just indicates an I/O error and is independent
of the parser. It means that the build tool cannot retrieve
the index file(s) from the OpenPKG repository.

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


Re: build file usage?

2007-05-15 Thread Michael van Elst
On Tue, May 15, 2007 at 03:52:15PM -0700, David M. Fetter wrote:

 -Dperl-dbi::with_dbd_mysql = yes
 -Dperl-dbi::with_dbd_pgsql = yes
 -Dperl-dbi::with_dbd_sqlite = no

I'm not sure if something was changed, but when I wrote the
build tool, there was no '=' separator needed. Please try:

-Dperl-dbi::with_dbd_mysql yes
-Dperl-dbi::with_dbd_pgsql yes
-Dperl-dbi::with_dbd_sqlite no

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


Re: Upgrading to Latest OpenPKG-STABLE

2006-10-27 Thread Michael van Elst
On Fri, Oct 27, 2006 at 09:43:55PM +0200, Ralf S. Engelschall wrote:
 On Fri, Oct 27, 2006, Doug Summers wrote:
 
  Should I worry about this warning?
  # ATTENTION: perl-openpkg-5.8.8-2.20061018 is in LIMBO
 
 H sorry, I've no clue about this output from openpkg build.
 Anybody else an idea? Perhaps Michael van Elst is listening and could
 tell us in more detail what this means. AFAIK from inspecting the source
 of openpkg build this marks the current inspected package as a target
 before reverse dependencies trigger it again during the internal
 recursion. Sorry, I do not really understand whether this is a problem
 or not. But to me it doesn't seem to be a problem, just a little bit
 obscure processing hint.

This means that the target was seen a second time while recursing
through the dependency tree, so there must be a dependency cycle.

The cycle could be in the index, it could also exist because
of the currently installed packages that bring their own
dependencies.

Assuming that the cycle does not exist in the index you can
remove all your packages and reinstall everything from scratch
to make sure that all dependencies are followed correctly.

If the cycle is in the index, this obviously won't work.


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


Re: Upgrade Procedure OpenPKG 2.5 to OpenPKG 2.20060622 failed

2006-07-02 Thread Michael van Elst
On Sun, Jul 02, 2006 at 09:26:59AM +0200, Simon J Mudd wrote:

 Regarding the MTA issue it might be nice if there were a system-mta
 package which does nothing more than provide symbolic links from
 $prefix/sbin/sendmail to the system equivalent.

AFAIK that is provided by the 'openpkg-import' package.

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


Re: Upgrade Procedure OpenPKG 2.5 to OpenPKG 2.20060622 failed

2006-07-01 Thread Michael van Elst
On Sat, Jul 01, 2006 at 06:54:38PM +0200, Simon J Mudd wrote:

 # now upgrade the whole OpenPKG instance, in correct
 # dependency order and by keeping all chosen build-time options.
 # $prefix/bin/openpkg build -ZaKB | sh
 FATAL: errors occured while building:
 pine-4.64L-2.20060622: pine searches a frood called 'MTA'

The man page reads:
-Z  openpkg build ignores all installed packages, the script will
rebuild all selected packages from scratch.  Note that this doesn't
work together with the -a option.

I guess that's -zaKB then.

The build tool doesn't guess what your preferred MTA is because
the -z option tells it to forget about installed packages and
there are multiple choices.

You have to give it a hint with -Hpostfix.

N.B. sendmail-8.13.5-2.5.1.src.rpm got lost from the UPD directory.

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


Re: LSOF on AIX 5.x

2005-12-30 Thread Michael van Elst
On Fri, Dec 30, 2005 at 02:10:31PM -0800, Doug Summers wrote:

 Definitely the AIX one - /usr/bin/strip is the only one on the system. 
 Another note - the above problems only occur on 64-bit AIX 5.1 systems; 
 32-bit systems build just fine with xlc.

The AIX binary tools need to be told wether to work on 32bit or 64bit
binaries. The default is to work on 32bit binaries.

strip -X 32work on 32bit binaries, ignore 64bit binaries
strip -X 64work on 64bit binaries, ignore 32bit binaries
strip -X 32_64 work on either 32bit binaries or 64bit binaries

The same can be done by setting the environment variable OBJECT_MODE.

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


Re: Install not in Distro list

2005-09-02 Thread Michael van Elst
On Fri, Sep 02, 2005 at 10:49:10AM +0200, Herbert Schmid wrote:
 Hi Ralf,
 
 hast Du ne Ahnung, was der slapd macht, wenn die replog-angabe drin ist? 
 Der schreibt nur absoluten Käsen in das replogfile und das wird 
 irgendwann gigantisch groß.

Er schreibt sein Replikations-Log und der slurpd uebertraegt das
regelmaessig an weitere slapds und kuemmert sich auch ums aufraeumen.


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


Re: syslog config (a bit off topic)

2005-08-30 Thread Michael van Elst
On Tue, Aug 30, 2005 at 02:51:01PM -0400, Doug Henry wrote:

 I guess I'm basically trying to figure out 
 what auditing capabilities I have, and if I need more, where (if) I can get 
 them. Thanks for any input.

You may look for LAus (Linux Audit-Subsystem). It comes with the
Enterprise Versions of RedHat and SuSE but is also available
for other distributions.


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


Re: problems setting up sasl/ldap in an openpkg environment

2005-08-28 Thread Michael van Elst
On Sun, Aug 28, 2005 at 09:25:22PM +0200, [EMAIL PROTECTED] wrote:
 Hi,
 
 does anybody have a hint for me concerning the setup of sasl/ldap in a 
 openpkg environment? Testing authentication using testsaslauthd like
 auth1# /v/authback/sw/sbin/testsaslauthd -u test -p test
 just returns the following line:
 
 0: NO authentication failed

 I don't see any binding request to ldap,

 ldap_auth_method: bind

Is saslauthd started with '-a ldap'? sasl.spec does not put it into rc.sasl.

Do you really want 'ldap_auth_method: bind' ?

Does your SASL application allow to use plain passwords in the mech_list ?


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


Re: Shells Problems - FYI

2005-08-19 Thread Michael van Elst
On Thu, Aug 18, 2005 at 03:40:09PM -0700, Doug Summers wrote:
 FYI - none of the AIX systems I have (4.3.3 through 5.3) have libtermlib 
 and I have no idea where (if even possible) to get it.

AIX knows termcap from libtermcap (but which lacks 'xterm' in
the standard distribution).

It also knows terminfo from libcurses. There is no separate
library to use terminfo.

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


Re: openpkg build command-line question

2005-08-14 Thread Michael van Elst
On Sat, Aug 13, 2005 at 09:50:58AM +0200, Matthias Kurz wrote:
 On Fri, Aug 12, 2005, Doug Summers wrote:
 
  Is it possible to pass --define switches besides with_something=yes/no? 
  I have some packages on AIX that I want to use IBM's compiler but I 
  don't know how to pass it to openpkg build. For example, I'd like to do 
  this:
  
  openpkg build --define=l_cc /usr/vacpp/bin/xlc_r --define=l_cxx 
  /usr/vacpp/bin/xlC_r gtk
 
 Not that i know. I guess you know about $HOME/.openpkg/rpmmacros and
 want to override the settings only for one package (gtk) ?

openpkg build -Duse_cc=/usr/vacpp/bin/xlc_r -Duse_cxx=/usr/vacpp/bin/xlC_r gtk

should do the trick. The use_XXX Macros are used in %{l_tool_locate xxx}
to locate several standard binaries.


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


Re: issue building samba-3.0.14a

2005-07-25 Thread Michael van Elst
On Mon, Jul 25, 2005 at 07:38:11PM -0400, Lois Bennett wrote:

 The spec file for samba assumes that the default for using LDAP in 
 building samba is 'no' but the samba configure has 'yes' or 'auto' as 
 the default.

I always prefer an explicit setting for all cases and a comparison
against yes. The option could have any value, so treating anything
not equal to yes as no is a bit more predictable.

%if %{with_ldap} == yes
--with-ldap=yes
%else
--with-ldap=no
%endif


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


Re: Segmentation Fault

2005-05-02 Thread Michael van Elst
On Tue, May 03, 2005 at 08:33:52AM +0900, Jaewoo Lee wrote:

 $ openpkg rpm -bb apache2.buildonly.spec 

You cannot just take an arbitrary spec file and expect it to build or
even build nicely.

For OpenPKG rpm you need OpenPKG-specific spec files just like you need
RedHat-specific spec files when using the RedHat rpm. You also need
the program sources and possibly some help files (default configuration,
startup scripts and the like). This is all packed together in a
source package.

The source packages for OpenPKG can be found on ftp.openpkg.org.

Packages also have dependencies, e.g. the apache2 package requires
that you have expat, libiconv and db installed. And with OpenPKG
this means: the appropriate packages from the OpenPKG collection.

Please have a look at http://www.openpkg.org/doc/handbook/openpkg.html
for the gory details of OpenPKG.

 Processing files: apache2-2.0.54-10
 Segmentation fault (core dumped)

Now that might be interesting from an academic point of view as
it looks like rpm crashed on the junk spec file you fed it (no
program should crash, ever).


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


Re: New Dependency Problem

2005-04-28 Thread Michael van Elst
On Thu, Apr 28, 2005 at 09:24:43AM -0700, David M. Fetter wrote:

  What does the index show ?
 
 resource equ=noopenpkg-import::with_mta/resource
 resource equ=sendmailopenpkg-import::with_mta_path/resource
 resource equ=0-2.3.0openpkg-import/resource

I still don't understand it.

Please send me the output of 'openpkg build'.


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


Re: New Dependency Problem

2005-04-28 Thread Michael van Elst
On Thu, Apr 28, 2005 at 03:05:05PM -0700, David M. Fetter wrote:

 Here's the full output file.

# ATTENTION: ne ignores option 'yes'
# ATTENTION: ne ignores option 'opkg-n'
# ATTENTION: ne ignores option 'www'
# ATTENTION: ne ignores option 'sys'
# ATTENTION: ne ignores option 'normal'
# ATTENTION: ne ignores option 'sendmail'
.

This looks like there are some weird options passed to the script.

# source for openpkg-import::with_mta is openpkg-import-0-2.3.0

This tells me that you do set the with_mta option.

# recursing over dependencies for samba-3.0.11-2.3.1
# rebuilding samba (parameter mismatch)

You also ask for different options to be set for the samba
package.

Could you please check the script parameters and the
content of .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  openpkg-users@openpkg.org


Re: New Dependency Problem

2005-04-28 Thread Michael van Elst
On Thu, Apr 28, 2005 at 03:26:56PM -0700, David M. Fetter wrote:

 Ya, I noticed that when I looked at the log.  It seems that the build
 file might be getting parsed incorrectly or something.  I attached the
 build file that is being used for the options.  The openpkg build
 options I'm using are just '-A -U'.

That explains it :)


-Dopenpkg-import::with_mta = no



This adds the string 'openpkg-import::with_mta = no' to the option 'D'.
Later is split into 3 words:

'openpkg-import::with_mta'
- has no '=' sign and gets the default value of 'yes'.

'='
- isn't recognized as an option because there is no name before the '='
   and is ignored.

'no'
- has no '=' sign and gets the default value of 'yes'.

Please remove all the whitespace around '='.


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


Re: New Dependency Problem

2005-04-27 Thread Michael van Elst
On Wed, Apr 27, 2005 at 03:08:26PM -0700, David M. Fetter wrote:

 FATAL: errors occured while building:
 bind-9.3.0-2.3.0: bind searches a frood called 'postgresql'
 jabberd-2.0s6-2.3.1: jabberd searches a frood called 'postgresql'

This means it requires 'postgresql' which doesn't exist. Now,
the postgresql7 package should also provide 'postgresql'. I don't
know why it isn't found.

 openpkg-import-0-2.3.0: openpkg-import conflicts with
 sendmail-8.13.3-2.3.0
 openpkg-import-0-2.3.0: openpkg-import conflicts with
 sendmail-8.13.3-2.3.0
 openpkg-import-0-2.3.0: openpkg-import conflicts with
 sendmail-8.13.3-2.3.0

When openpkg-import is built with 'with_mta=yes' then it makes
available the MTA of the operating system to the OpenPKG instance.
This conflicts with the packages exim, postfix, sendmail, ssmtp.
There can be only one MTA.

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


Re: Compile Problems - OpenLDAP Solaris 2.6

2005-04-22 Thread Michael van Elst
On Fri, Apr 22, 2005 at 10:27:58AM -0700, Doug Summers wrote:

 checking whether the C compiler (/openpkg/bin/cc -O2 -pipe 
 -I/openpkg/include/pth -I/openpkg/include -I/openpkg/include/pth 
 -L/openpkg/lib -L/openpkg/lib/pth -L/openpkg/lib) works... no
 configure: error: installation or configuration problem: C compiler 
 cannot create executables.
 error: Bad exit status from /openpkg/RPM/TMP/rpm-tmp.15510 (%build)
 
 I tried switching back to the gcc I installed from sunfreeware.com but 
 it did the same thing. Obviously my gcc can compile executables as none 
 of the other source packages complained.

This error usually means that the configure script tries to _link_
with libraries that aren't found or that do not exists at all. You
should find a config.log file in the build directory that contains
more information.


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


Re: build recommendations

2005-04-22 Thread Michael van Elst
On Fri, Apr 22, 2005 at 08:45:23AM +0200, Matthias Kurz wrote:
 On Thu, Apr 21, 2005, Michael van Elst wrote:
 
  On Thu, Apr 21, 2005 at 12:13:38PM +0200, Matthias Kurz wrote:
 [...]
  Packages in RPM/PKG are only relevant when you do not upgrade
  but reinstall the version (with the same options or a superset of
  the options) that was once installed.
 
 Maybe it was not with upgrade (-U) but with some other option(s). I
 observed, that packages that _should_ have been recompiled - because
 one or more prerequisites were recompiled - were not recompiled. Instead
 the binary package from RPM/PKG was reinstalled. This happened for
 installed packages where no new source packages existed. From then on
 i always used the -u option.

If a package is a requirement and you don't specify -U, it might be
installed from an already existing binary package in RPM/PKG. That's
what it is supposed to do as it can safely assume that you do not
tamper with the packages in RPM/PKG.

If it is a reverse requirement, i.e you install some package that
the former depends on, then it must be recompiled and anything
in RPM/PKG must be ignored.

If not then it is a bug :)

   But. To solve the problem of duplicate packages in the build part
   probably adds too much complexity in the wrong place. I think it would
   be better (easier ?) to put this functionality in the index part. E.g.
   an option -d for delete older versions of a package.
  
  I do not really understand your setup. Do you compute the index
  directly from RPM/PKG on the build host ?
 
 I have one build host for every platform/release. There the packages
 are compiled from sources, leading to binary packages under RPM/PKG. In
 this RPM/PKG i run openpkg index and it is mounted inside a hierarchy
 that is accessible over anonymous ftp. From there the slave machines
 get their binary packages.

I wouldn't do that but copy or move away the generated binary
packages.

 Whenever a new package is compiled from sources, that means, when a new
 binary package is created, the previous version of the binary package
 _remains_ in RPM/PKG. So the different versions of a binary package add
 up.

Yes. That's what rpm does :-/

 When i delete RPM/PKG completely, there is nothing left to install
 the slave hosts. When i _move_ everything from RPM/PKG to another place,
 then i just have the same problem (many versions of the binary packages)
 in this other place.

Maybe this helps:

#!/bin/sh

bin=$1
dst=$2

copy=$dst/`basename $bin`
cp $bin $copy

name=`openpkg rpm -q --qf '%{name}' -p $bin`

for b in $dst/$name-*; do
if [ $b = $copy ]; then
:
else
n=`openpkg rpm -q --qf '%{name}' -p $b`
if [ $n = $name ]; then
rm $b
fi
fi
done


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


Re: build recommendations

2005-04-21 Thread Michael van Elst
On Thu, Apr 21, 2005 at 12:13:38PM +0200, Matthias Kurz wrote:

 All packages with the same %name are the same package. All packages
 except the one with the newest build date are old packages.
 Removing everything from RPM/PKG is not very practical, because one
 needs all (binary) packages e.g. when a new machine is installed or
 when machines with older software than the build machine are upgraded.
 And rebuilding everything all the time is not very elegant and quite
 time-consuming.

Any update (-U) will rebuild all packages involved and ignore
whatever is in RPM/PKG. If the repository contains source packages
this means: recompilation. If the repository contains binary packages
this means: download.

If a machine is newly installed there is nothing in RPM/PKG.

If a machine is upgraded then it doesn't matter what is in RPM/PKG.
Different versions are ignored anyway.

Packages in RPM/PKG are only relevant when you do not upgrade
but reinstall the version (with the same options or a superset of
the options) that was once installed.

 But. To solve the problem of duplicate packages in the build part
 probably adds too much complexity in the wrong place. I think it would
 be better (easier ?) to put this functionality in the index part. E.g.
 an option -d for delete older versions of a package.

I do not really understand your setup. Do you compute the index
directly from RPM/PKG on the build host ?


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


Re: build recommendations

2005-04-20 Thread Michael van Elst
On Wed, Apr 20, 2005 at 01:40:22PM +0200, Matthias Kurz wrote:

 I also recommend to use -Uua or to remove everything from $prefix/RPM/PKG
 before running openpkg build.

-U always includes -u, the build script cannot easily check wether
a binary package in RPM/PKG was created from current sources and
thus must ignore it if an update is requested.

 It would be nice to have an option that removes all old versions of a
 package from $prefix/RPM/PKG, when a new build succeeded.

Maybe, but what is 'an old version of a package' ? I would consider
to simply delete everything from RPM/PKG.


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


Re: Remote fetching not working properly on my system - Solaris 9 - Sparc

2005-04-19 Thread Michael van Elst
On Tue, Apr 19, 2005 at 08:55:07PM -0400, Etienne-Hugues Fortin wrote:

 I'm always getting this famous cannot open   However, if I do a wget
 --passive-ftp url or curl url, everything is working fine which seems
 to eliminate any problem that could be related to firewall.

Do you use a proxy by having set the ftp_proxy environment variable?

wget and curl will honor that setting, rpm will not.

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


Re: openpkg build -A -U problem

2005-03-22 Thread Michael van Elst
On Tue, Mar 22, 2005 at 02:04:48PM -0800, David M. Fetter wrote:

   openssl-0.9.7e-2.3.0UPDATE   openssl-0.9.7e-2.3.1

  So what is 'initially' ? How did you install 2.3.0 ?
 
 Initially, is just the first time I run it.  Then the second it returns
 the next results.

The output (which is from build -s) says you already have 2.3.0 installed
and the index contains the version 2.3.1. as an update.

So how did you install openssl-0.9.7e-2.3.0 ? The first time
a 'build -s' would return something like:

openssl ADD  openssl-0.9.7e-2.3.1

and a simple 'build openssl' returns something like:

echo  ftp://ftp.openpkg.org/release/2.3/UPD/openssl-0.9.7e-2.3.1.src.rpm 

/usr/local/openpkg/bin/openpkg rpm --rebuild 
ftp://ftp.openpkg.org/release/2.3/UPD/openssl-0.9.7e-2.3.1.src.rpm || exit $?
/usr/local/openpkg/bin/openpkg rpm -Uvh 
/usr/local/openpkg/RPM/PKG/openssl-0.9.7e-2.3.1.ix86-netbsd2.0-ulo.rpm || exit 
$?
echo  ftp://ftp.openpkg.org/release/2.3/UPD/openssl-0.9.7e-2.3.1.src.rpm = 
$?  


  Do you install directly from ftp.openpkg.org ?
 
 No, I rsync my own local copy of the src rpms

This at least rules out intermittent problem with the index.

BTW, what perl is used when you run the build tool ?

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


Re: OpenPKG Dependency Loop?

2005-02-09 Thread Michael van Elst
On Wed, Feb 09, 2005 at 04:30:27PM -0800, David M. Fetter wrote:

 openpkg-2.1.2-2.1.2,openpkg-20040825-20040825

This is supposed to be one package name with version and revision
information.

I guess there is a typo in a requirement or provides where the
entries are not whitespace but comma separated.

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


Re: openpkg build vs. openpkg rpm -Uhv *.rpm

2005-01-07 Thread Michael van Elst
On Fri, Jan 07, 2005 at 03:47:10PM -0800, David M. Fetter wrote:

 openpkg build -r http://repourl/openpkg/2.1/prod-sparc-sun-solaris2.9 -p
 sparc64 -f
 http://repourl/openpkg/2.1/prod-sparc-sun-solaris2.9/index-all.rdf -A -i
 -Dtcl::with_x11 -Dpostgresql::with_tcl tcl postgresql | bash

Please retry without the -A option. -A selects all packages in the
repository and ignores any packages listed on the command line
(it really should exit with an error if you specify extra packages,
but it doesn't :-/).


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


Re: openpkg build vs. openpkg rpm -Uhv *.rpm

2005-01-06 Thread Michael van Elst
On Thu, Jan 06, 2005 at 03:45:49PM -0800, David M. Fetter wrote:

 The problem we are seeing is that when we are installing or updating
 openpkg rpms on our servers, which pulls from rebuild binary rpms that
 we have in a custom repository, they often have conflicts that prevent
 them from being installed at all.

There shouldn't be any conflicts. Can you give an example ?


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


Re: OPENPKG BUILD stops working

2004-12-24 Thread Michael van Elst
On Fri, Dec 24, 2004 at 10:15:44AM -0300, [EMAIL PROTECTED] wrote:

 I check the output from openpkg build -Ua. There it stops with:
 
 # curling index ftp://ftp.openpkg.org/release/2.2/UPD/00UPLOAD/00INDEX.rdf
 # using XML parser
 
 So I checked manual access to that last file that was DENIED.

Looks like the index is broken, it shouldn't include a 00UPLOAD
directory.


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


Re: Ircd doesn't seem to run as non-root user

2004-12-10 Thread Michael van Elst
On Fri, Dec 10, 2004 at 08:44:48AM +0100, Ralf S. Engelschall wrote:
 On Thu, Dec 09, 2004, David M. Fetter wrote:
 
  I'm trying to ircd to run as a non-root user but it doesn't seem to run
  and there aren't any debugging or other error messages.  I modified the
  rc.ircd file to look like so:
  [...]
 
 Well, AFAIK IRC uses TCP port 194 and hence the daemon
 has to be started as root in order to listen to the port...

IRC has an assigned port number of 194, but nobody uses it to avoid
running the irc server as root.

Instead almost all IRC servers use port 6667.

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


Re: OpenPKG Tool Update Problem Persists

2004-11-18 Thread Michael van Elst
On Thu, Nov 18, 2004 at 02:13:48PM -0800, David M. Fetter wrote:

 and force install the resulting binary rpm.  I received this error
 message when initially trying:
 
 FATAL: errors occured while building:
 postgresql-7.4.3-2.1.0: postgresql has conflicting requirement

There is another message in the output that tells you what
requirement did conflict.


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


Re: can openpkg realy help me

2004-10-28 Thread Michael van Elst
Hi,

 be possible to get source-rpm for older versions from the cvs, but is 
 there a guarantee, that a source-rpm of openpkg 1.2 will run in an 
 openpkg 2.2 instance?

no. It will definitely fail, the openpkg bootstrap releases are
not compatible.

 second: java-web application-environments doesn't seem to be a major 
 focus of the openpkg-community. trying to build a really basic and 
 common configuration with apache2, tomcat4 and mod_jk-connector with the 
 current release didn't succeed. i wouldn't expect this, if more people 
 out there were using openpkg for this kind of stuff.

Lets say, apache2 isn't the major focus :)

The goal should therefore be to package the tomcat adapter for apache2.

For apache1 you just install the tomcat4-adapter (which is mod_webapp
and optionally mod_jk).


 third: this is just a minor issue, but it seems, that the concept of 
 proxy-packages isn't used very much too.

Indeed. Usually it creates more problems than it solves.


 otherwise, maybe, since disk 
 space is cheap, that's no critical problem, but for easy administration 
 of often used packages, it would help prevent some boring work.

Where do you see the boring work ?

You need time to build the packages, but that's CPU time and not your
time.


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]


Re: Upgrade questions

2004-10-27 Thread Michael van Elst
On Wed, Oct 27, 2004 at 04:35:28PM -0300, Alexander Belck wrote:

 looking to new.sh I found some ATTENCION I don't understand
 
 # ATTENTION: mysql-4.0.20-2.1.0 is in LIMBO
 # ATTENTION: openldap-2.2.14-2.1.0 is in LIMBO
 # ATTENTION: openssl-0.9.7d-2.1.0 is in LIMBO
 # ATTENTION: perl-5.8.4-2.1.0 is in LIMBO
 # ATTENTION: perl-ldap-5.8.4-2.1.0 is in LIMBO
 # ATTENTION: perl-mail-5.8.4-2.1.0 is in LIMBO
 # ATTENTION: perl-sys-5.8.4-2.1.0 is in LIMBO
 # ATTENTION: perl-time-5.8.4-2.1.0 is in LIMBO
 # ATTENTION: postgresql-7.4.3-2.1.0 is in LIMBO
 
 What does this LIMBO means ?

While the build tool computes dependencies for a target it marks the
target as in LIMBO because any reference to it is undefined
until the target has been installed or updated.

If you see that message then you have a circular dependency.

 Should I worry about ?

Maybe. Circular dependencies should be avoided because there
is no deterministic path for resolving them. The result
might be broken too if you link with an old library that
gets updated later.

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]


Re: Openpkg build question

2004-10-21 Thread Michael van Elst
On Thu, Oct 21, 2004 at 07:46:33PM +0300, Georgy Goshin wrote:
 Hi,
 
 Also one question regarding usage of build command. Is there any arguments 
 that will install new package with all dependences, but will not reinstall 
 and rebuild any packages already installed?

A simple  openpkg build package   will do that.

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]


Re: OpenPKG Tools and Binary RPMs

2004-10-19 Thread Michael van Elst
On Tue, Oct 19, 2004 at 10:20:35AM -0700, David M. Fetter wrote:

 rebuilt.  However, once we deploy the newly built binary rpms into our
 repository to be pushed out to client systems the openpkg build doesn't
 acknowledge such changes.

What do you mean with doesn't acknowledge such changes ?

If you tell the build tool to install a package that has a different
set of options than the one that is currently installed then it should
do exactly that.

However, if the installed package satisfies the required options
then it won't be replaced unless you have a newer _version_ of it
in the repository.

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


Re: OpenPKG Tools and Binary RPMs

2004-10-19 Thread Michael van Elst
On Tue, Oct 19, 2004 at 02:29:41PM -0700, David M. Fetter wrote:

 Well, in our last example problem, the installed instance of gcc was
 simply a vanilla version with no additional options other than the
 default.  However we needed the f77 option so we rebuilt the package on
 our build server, then placed the binary in our repository.  When we
 went out to the client servers, the build tools didn't see that the new
 gcc version was compiled with this additional option or at least it
 didn't upgrade anything or show that it needed to be upgraded.  So
 seemingly the build tools aren't acknowledging the changes.

Did you tell the build tool on the client servers to use the f77 option ?


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


Re: perl error in openpkg build -Ua

2004-10-15 Thread Michael van Elst
On Fri, Oct 15, 2004 at 02:18:17AM -0500, F. Even wrote:

 [EMAIL PROTECTED] openpkg build -Ua  update.sh
 
 no element found at line 1, column 0, byte 0 at
 /cw/lib/perl/vendor_perl/5.8.4/i386-freebsd/XML/Parser.pm line 187

The XML parser cannot decode the index, probably because you cannot
fetch it correctly (firewalls? NAT?) or because the index is defective.

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]


Re: Sendmail's configuration, AMAVIS.

2004-10-14 Thread Michael van Elst
On Thu, Oct 14, 2004 at 08:28:31AM +0300, Georgy Goshin wrote:

 But I still need information about what is Dual MTA in sendmail's case and 
 how to configure AMAVIS to work with sendmail in OpenPKG.

Dual MTA probably refers to the modern sendmail configuration where
you have two sendmail processes. One talking to the rest of the
world and one dealing with mail originating from the mailserver.

This is also the setup that OpenPKG uses.

amavisd is a milter for sendmail. milter is sendmail's mail filter
API.

You define a milter process for amavisd with the INPUT_MAIL_FILTER macro
in the sendmail.m4 file like:

INPUT_MAIL_FILTER(`milter-amavis',
 `S=local:@l_prefix@/var/amavisd/amavisd.sock, F=T, T=S:10m;R:10m;E:10m')
define(`confMILTER_MACROS_ENVFROM',
 confMILTER_MACROS_ENVFROM``, {b}'')dnl # supply macro {b} to helper

with a proper replacement for @l_prefix@ and then build sendmail.cf
from this.

I haven't tried it myself :-)

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]


Re: Why Mismatch?

2004-09-27 Thread Michael van Elst
On Mon, Sep 27, 2004 at 10:22:32AM -0700, David M. Fetter wrote:
 I get a mismatch reported on snmp but I'm not sure why.  This is the
 line:
 
 snmp-5.1.1-2.1.0MISMATCH snmp-5.1.1-2.1.0
 
 For what reason would I be getting a mismatch like this?  The installed
 package is the one that was built, so I'm confused here.  Anybody know? 
 Thanks.

MISMATCH says that a package would be updated because it doesn't
provide requested options.


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


Re: Why Mismatch?

2004-09-27 Thread Michael van Elst
On Mon, Sep 27, 2004 at 12:10:51PM -0700, David M. Fetter wrote:

  MISMATCH says that a package would be updated because it doesn't
  provide requested options.
 
 That's odd though, because when I query the package that I have
 installed it does have the requested options and that package is
 installed.

Somewhere there must be a difference. You may check the build script
(i.e. don't use -S) for what options the build tool requests for
the new build.

You also see in the comment section (the lines starting with #)
where the build tool decides to rebuild the package because
of 'parameter mismatch'.

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]


Re: SRC or UPD?

2004-09-23 Thread Michael van Elst
On Thu, Sep 23, 2004 at 12:55:59PM -0700, David M. Fetter wrote:

  For the build tool to upgrade is to replace the installed version
  of a package with a version from the repository.
  It first determines the 'newest' version in the repository and then
  tries to install it, independent on what version you have installed.
 
 Well, that makes sense now.  I don't understand why we would want to do
 that though.

A reverse dependency might require a package to be rebuilt or
reinstalled, and that can only work if all packages are in the
repository. In that case you don't get the downgrade problem either.

Another reason is that the index is seen as the nominal set
of packages for an installation (or a superset). Converging
on that set makes sense if you want equal installations on
multiple machines.

So, the final authority is not the individual version number, but
the index. :-)

The only method to override this, for now, is to exclude a package
from the upgrade process completely.

All what I said so far is only valid for packages that you pass
to the build tool as an argument. In case of dependent packages
the version of the installed package should be honored unless
you use the -e option.


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]


Re: Rebuild script

2004-09-02 Thread Michael van Elst
On Thu, Sep 02, 2004 at 08:31:15PM -0300, Alexander Belck wrote:

 Can openpkg tool genaret a script that would rebuild all packages with same
 options on an other platform.

openpkg build -zawill do this.

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]


Re: FreeRadius

2004-09-01 Thread Michael van Elst
On Wed, Sep 01, 2004 at 02:59:22PM -0300, Alexander Belck wrote:

 Could it be that building freeradius it uses the wrong ver of des.h ?

It is either using the wrong des.h or the wrong crypto library.

The names of the crypto API changed between openssl 0.9.6 and 0.9.7.

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


Re: OpenPKG bind in chroot ?

2004-08-05 Thread Michael van Elst
On Thu, Aug 05, 2004 at 06:22:40PM -0300, Alexander Belck wrote:

 3rd) What does option with_dlz enables ?

It adds the dynamic loadable zones patch.

See http://bind-dlz.sourceforge.net/ for details.

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]


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]


Re: Ever rebuilding openpkg-2.1.0

2004-07-24 Thread Michael van Elst
On Sat, Jul 24, 2004 at 08:59:01AM +0200, Ralf S. Engelschall wrote:

 That's a known bug in the openpkg build command (see
 http://cvs.openpkg.org/getfile/openpkg-tools/TODO for a
 list of known issues). It works fine for CURRENT, but when
 updating a RELEASE it always thinks that the openpkg
 package has to be recompiled.

This is caused by the openpkg package that provides an additional
current version. After installing openpkg-2.1 and the tools I get:

[EMAIL PROTECTED] openpkg rpm --provides -qa
OpenPKG  
openpkg = 20040712-20040712
openpkg = 2.1.0-2.1.0
gpg(OpenPKG [EMAIL PROTECTED]) = 4:807593e063c4cb9f-3c591eda
gpg(63c4cb9f) = 4:807593e063c4cb9f-3c591eda
openpkg-tools = 0.8.15-2.1.0

The build tool then tries to update openpkg-20040712-20040712 to the
one described in the index.

Either the bogus version information has to be removed from
database or the build tool needs to have some idea how to
detect and handle packages that appear more than once in
the database. Note that there is no real package behind
that entry in the database, it is just a Provides: value.


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]


Re: Ever rebuilding openpkg-2.1.0

2004-07-24 Thread Michael van Elst
On Sun, Jul 25, 2004 at 12:03:09AM +0200, Ralf S. Engelschall wrote:
 On Sat, Jul 24, 2004, Michael van Elst wrote:
 
  [..]
  One could special case the openpkg package, but I'd like to avoid this
  if possible.
 
  The following patch therefore will simply select the database entry with
  the smallest version number, i.e. OpenPKG-2.1.0-2.1.0 when deciding on
  wether it needs an update.
  [...]
 
 I've tested this patch. Now it works as expected for a RELEASE based
 OpenPKG instances, but on a CURRENT based OpenPKG instance (really all
 packages from CURRENT, no mix), it now tries there to always rebuild and
 upgrade an already up-to-date openpkg CURRENT package. I think we have
 to afford a special case here, haven't we?

Thanks to your last change it doesn't happen anymore :)

| revision 1.349
| date: 2004-07-24 22:10:41 +;  author: rse;  state: Exp;  lines: +1 -2
| remove useless Provides for the corresponding RELEASE version


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]


Re: openpkg build -Ua question

2004-07-23 Thread Michael van Elst
On Fri, Jul 23, 2004 at 05:55:22PM -0300, Alexander Belck wrote:

 Is this constant use of --force normal ?

The build tool will always use --force if it updates a package. This
asks rpm to do two things:

- to ignore if the package or a more recent version is already installed,
  the build tool already takes care of this issue and may make
  different decisisions.

- to overwrite files that may belong to different packages. Here it is
  the OpenPKG developers who need to be careful that this is safe,
  usually by ensuring that there are no such file conflicts between
  packages.

 My poor expirience with rpm got to unstable rpm instalations when using --force.

The second point can lead to instabilities if the packages aren't
created carefully, but avoiding --force doesn't solve the problem
of broken packages :)


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]


Re: Compiling against OpenLDAP in OpenPKG - static linking problem

2004-07-20 Thread Michael van Elst
On Tue, Jul 20, 2004 at 01:23:24PM +0200, Stephan Buys wrote:

 l/   conftest.c -lresolv  -lcrypto -llber -lldap 15
 /kolab/lib//libldap.a(open.o)(.text+0x198): In function `ldap_create':
 : undefined reference to `ber_memcalloc_x'
 /kolab/lib//libldap.a(open.o)(.text+0x1f4): In function `ldap_create':
 : undefined reference to `ber_sockbuf_alloc'
 /kolab/lib//libldap.a(open.o)(.text+0x228): In function `ldap_create':
 : undefined reference to `ber_memfree_x'

 I think the issue here is with how configure is trying to compile agains statically
 linked libraries. 


Static libraries require a correct link order while references to
dynamic libraries are sorted at run time.

In this case you need to link with libldap first, i.e. -lldap -llber.

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]


Re: using 'openpkg build' to install binary rpms

2004-07-08 Thread Michael van Elst
On Thu, Jul 08, 2004 at 09:56:15AM -0700, David M. Fetter wrote:

 What I'm doing is generating index.rdf files under each of these
 subdirectories and one on the top level which should be picking up the
 index files in the subdirectories as I understand it.

The indexes are human readable XML. Please have a look that the index
files have been build correctly.

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


Re: using 'openpkg build' to install binary rpms

2004-07-08 Thread Michael van Elst
On Thu, Jul 08, 2004 at 01:40:00PM -0700, David M. Fetter wrote:

 appropriate packages are to be ADDed and some to be UPDATEd.  I just
 looked at the generated install script and what I see is that everything
 is pointing to the repository except for where it wants to do the 'rpm
 -Uhv' of the package.  There it's giving the path of
 /usr/local/RPM/USERS/BIN.  I'm not sure why it would be doing this. 

If there is a suitable binary package in ${rpmdir} it will be used
unless you use the -a,-u or -U option.

With one of these options or if there is no suitable binary package
in ${rpmdir} it will be rebuilt.

Rebuilding the package from a source package in the repository
means to compile it with rpm --rebuild.

Rebuilding the package from a binary package in the repository
means to copy it using curl.

In either case the ready binary package (which either already
existed or has been rebuilt or has been copied) is installed
or updated from ${rpmdir}.

Use -u and you should see commands to curl the files from the
repository to ${rpmdir} and to rpm -Uvh from there.

N.B. it is unclear to me why -a triggers the same behaviour. Probably
some misguided optimization that should be removed from the build
tool.

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]


Re: static apache + mem question

2004-06-25 Thread Michael van Elst
On Fri, Jun 25, 2004 at 08:51:45AM -0300, Alexander Belck wrote:

Hi,

 How can I avaliate the amount of memory efectivly used ?
 I think that frequenly apache processes are just waiting for a connection and
 will hope that in this situation the data reserved for all modules are relativly
 small. They should only grow when some module is realy being used by an
 webapplication and released again when the site/page is leaved.

The memory is allocated once it is used and stays there until the
apache process ends. You can configure the number of queries a
single apache process should answer before it terminates. By default
that is a few ten thousand requests.


  If your modular apache is about 300K then it doesn't load or use
  all the modules. So why build them into the static binary ?
 
 I just looked at the size of /usr/sbin/httpd, I do not know how to check the
 efective memmory used when running, where the necessary modules will be loaded
 and obviosly much more ram will be used from the system.

This however is the important number. Check with 'ps' or 'top'.


 Most modules are enabled, and also most time they are not used, but they are
 avaible if someone whants to use them. As an ISP I could not say that I support
 PHP, but do not offer lots of functions availble thru PHP.

As an ISP you should not run a single Apache with mod_php for more than
one customer. PHP safe mode is a myth :-)


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]


Re: static apache + mem question

2004-06-25 Thread Michael van Elst
On Fri, Jun 25, 2004 at 10:59:42AM -0300, Alexander Belck wrote:

 Do I need a hole new OpenPkg instalation with a diferent opkg_root to have
 distingt apache builds (one with_mod_php, one without) and processes ?

You need a new OpenPKG instance to get different apache builds. You
could run several Apache instances from a single OpenPKG instance if
you provide your own startup scripts and configurations, but using
multiple OpenPKG instances is easier to maintain, especially once you
want to migrate a server to a different machine.


 How many client connections can a single apache process handle (simultaneos
 browsing of one site) ?

A single process can handle only a single connection at a time. However,
most connections are very short (in particular those serving static content)
and multiple users won't notice the latency.

Note that the OS itself (the kernel) queues incoming connections, so that
a part of the client connection is already served in parallel. For static
content that effect is significant.


 I thoght that multiple apache processes could be activated if the number of
 request require it and shuted down if to many are idle.

Yes, that is done automatically. Apache starts one master process that
controls any number of child processes. Each child handles a single
connection.

For small servers some 4-10 processes are enough.
For big servers you may want maybe up to a few hundred processes.

A good approach for a high end server is also to split it into
various parts that serve static pages, dynamic content and large
files. Each type wants a specific apache configuration for best
performance.


 About security problems with php, are they just there for acessing sites where
 php is enabled, or only to the persons with write publishing access to the
 sites tree directory (that will mean that the ISP client has bad intensions to
 exploit the php security flaus, not any unknown guy at the web) ?

The person who can write php scripts of course has direct control over
any exploit. But often even visitors can use the same exploits because
most PHP scripts are buggy.

The point is that all customers on that server become victims, not just
the one that hosts the exploit. A single bad customer can compromise
all your customers.


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]


Re: openldap, sasl, apache chicken and egg problem (Was: Re: More problems with apache)

2004-06-24 Thread Michael van Elst
On Thu, Jun 24, 2004 at 08:40:47AM -0300, [EMAIL PROTECTED] wrote:

 But when I try to build apache with php_ldap (where I presume this module will
 allow php to access ldap records), it requires that OpenLDAP should be build
 with_sasl (as if necessarily to access openldap thru php it needs to
 authenticate the access using sasl) ??

Building OpenLDAP with SASL is rarely required. It creates
a hen-and-egg problem with the usage of SASL with an LDAP
backend.

 openpkg build -Dwith_mod_php -Dwith_mod_php_openldap apache

should do the right thing regarding apache, php and ldap.
In particular it should require openldap without SASL support.


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]


Re: static apache + mem question

2004-06-24 Thread Michael van Elst
On Thu, Jun 24, 2004 at 07:29:30PM -0300, Alexander Belck wrote:

 There is realy a huge difference in size. The modular apche is about 300K, while
 the one I build in OpenPkg is about 6M. Normaly I see several instances of
 apache running (about 10 as setup in httpd.conf).
 I was wundering if using OpenPkg static version of apache will consume about 60M
 of my ram, or will it be smart enouth to share the common code and consume
 juste a bit more than 1 copy of apache ?

It will share the common code but it won't share the data which
also grows with the number of modules.


 I'm afraid that OpenPkg static aproch isn't a good aproach for an (eaven small)
 ISP, where several instances of apache with lots of possible modules will be
 needed.

Two observations:

If your modular apache is about 300K then it doesn't load or use
all the modules. So why build them into the static binary ?

Building apache with all modules is a bad idea anyway. Most things
served will be static pages, but the process serving static
pages has to carry the weight of all the modules. You should think
about a more flexible approach and use several apache instances
together, each tailored for a specific purpose. With OpenPKG you
can do this easily by creating several OpenPKG instances.

N.B. Yes, this approach wastes disk space, but it helps a lot
maintaining such an installation which is more important even
for a small ISP.

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]


Re: Howto build with_option

2004-06-22 Thread Michael van Elst
On Tue, Jun 22, 2004 at 06:26:56PM -0300, Alexander Belck wrote:
 What is the sintax for `openpkg build foo` and have it use something like:
   -define with_zlib yes or if possible a short way like -D with_zlib

just as you say:

-Dwith_zlib

builds with

--define with_zlib yes

If you have options with a different value then write

-Dwith_option=value

 Is it possible to get the same options used when upgrading a package ? How ?

This is done automatically. The build tool will fetch the option
values from the installed package and build the upgrade with the
same options unless you override these on the command line.

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


Re: src rpm rebuild options openpkg tool

2004-05-11 Thread Michael van Elst
On Tue, May 11, 2004 at 09:59:53AM -0700, David M. Fetter wrote:
 We have the need to use many of the options when rebuilding the source
 rpms.  I'm trying to work on getting this process mostly automated if
 not all of it.  My question here is, is it possible to pass multiple
 rebuild options for multiple packages when using the openpkg index/build
 tools?  If so, how?  Thanks.

You can define options with

-Dpackage::option or
-Dpackage::option=value

to pass specific options to each package. You can use as many -D
options as fit on the command line.

You may also create a $HOME/.openpkg/build file with these command line
options (one per line) for convenience and to avoid the command line
length limit.

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]


Re: OpenPKG build help

2004-05-04 Thread Michael van Elst
On Tue, May 04, 2004 at 09:20:00PM +0200, Steffen Weinreich wrote:

 We use
openpkg build -r http://whatever.local.is/openpkg/release/2.0/ -p
 ix86-debian3.0-oi
 
 Is it possible to use an anonymous ftp server or is web sever the only
 remote option?


There are three kinds of remote operations: fetching an index, fetching
a binary package and building from a source package.

The first two operations are done by running curl, the latter is
done with internal rpm functions.

Currently this means you can use anonymous ftp, http and of course
files on a mounted filesystem.


 FTP works also, but we are not using ftp anywhere for security reasons :-)

Anonymous FTP isn't more security relevant than HTTP.


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


Re: Rebuild Apache with options

2004-03-18 Thread Michael van Elst
On Wed, Mar 17, 2004 at 01:05:02PM +0100, Matthias Kurz wrote:

 And it would probably better to use openpkg build, wouldn't it ?
 
 openpkg build -Dapache::with_mod_php=yes -Dapache::with_mod_php_mysql=yes apache | sh

Sure :)

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


Re: Rebuild Apache with options

2004-03-18 Thread Michael van Elst
On Thu, Mar 18, 2004 at 10:06:06AM -0600, Mike's List wrote:

 Where do I get the openpkg build --supposedly in the tools? but I
 don't see it at ftp.openpkg.org or do I need to get it someplace else?

As others pointed out, it is a PLUS package.

openpkg build is a perl script that evaluates package dependencies
and produces a shell script of rpm commands to install or update
packages.

It probably makes your life easier with OpenPKG, but it won't fix
the %files problem you see.

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


Re: Rebuild Apache with options

2004-03-16 Thread Michael van Elst
On Tue, Mar 16, 2004 at 07:35:12PM -0800, David M. Fetter wrote:
 Do this:
 
 1. openpkg rpm -ivh apache*src.rpm
 2. vi %prefix/RPM/SRC/apache/apache.spec
 3. make appropriate configure changes/additions
 4. openpkg rpm -ba %prefix/RPM/SRC/apache/apache.spec
 5. openpkg rpm -ivh $prefix/RPM/PKG/apache*.rpm

Not with OpenPKG.

The OpenPKG spec files have conditional support for many additions
that are activated by defining a macro. E.g.

rpm --rebuild --define 'with_php yes' --define 'with_php_mysql yes' apache

will build the apache package with both options included.

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


Re: What is id or tag for?

2004-03-11 Thread Michael van Elst
On Thu, Mar 11, 2004 at 05:57:39PM +0100, Matthias Kurz wrote:
 On Thu, Mar 11, 2004, David M. Fetter wrote:
 
  I looked through the online documentation but can't seem to find any
  reference as to what the id or tag identifies.  What does it mean? 
  I noticed when I bootstrapped it on Solaris 8 the tag was dcl, but
  then when I'm now building it on Solaris 9 the tag changed to ulo. 
  Why is that?  Can this tag be changed or manipulated for custom rebuilt
  packages?  That would be useful.  Then we can keep essentially the same
  naming convention with our own modified packages but have a different
  tag to identify us.
 

The tag identifies different OpenPKG instances on the same machine
and is by default computed from the prefix.

E.g.:

/usr/local/opkg - ulo

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


Re: 2.0: apache needs flex?

2004-02-29 Thread Michael van Elst
On Sun, Feb 29, 2004 at 12:25:50PM +0100, Birger Kraegelin wrote:

 I had similar errors on building perl-xxx packages, which silently depend on
 perl-openpkg at runtime, not at build time. So the build command doesn't
 respect the dependencies.

All the perl-xxx packages depend on perl-openpkg at runtime and at build
time.

In any case, the build tool doesn't know much about this difference. It
treats all dependencies as build dependencies (because it doesn't
matter if a package is built too early). At the end it deletes all
newly installed packages that were added to the list only because
of build dependecies.

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]


Re: kerberos and OpenPKG

2004-02-18 Thread Michael van Elst
On Wed, Feb 18, 2004 at 07:26:55AM +0200, Stephan Buys wrote:

 Also, the .spec file disables Kerberos support, even though the sasl, etc. packages
 will automatically detect Kerberos and use it (which is usefull for sites who need
 to deploy kerberos).

Automatic detection of Kerberos would create an 'implicit' dependency
that is not reflected in the package database. That's why it is disabled.

If I remember correctly there were also some build problems that I
didn't try to solve because of lack of a working Kerberos system.

Of course you may try and have success :)

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]


Re: How to know about with-options ?

2003-12-05 Thread Michael van Elst
On Fri, Dec 05, 2003 at 10:05:15AM -0800, Bill Campbell wrote:

 And if I build a package whith a desired option (--with-ldap) when OpenPKG
 release an update would the openpkg tool be smart enouth to rebuild the new
 package with the same option ?
 
 Only if it's in your ~/.openpkg/build file where one can specify
 everything needed by the ``openpkg'' program.

'openpkg build' will update packages with the same options that
were used when installing the packages unless you explicitely
override them on the command line (or in the .openpkg/build file).

It is still useful to have the options saved somewhere if you
need to remove a package and then install it from scratch.

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]


Re: OpenPkg on RedHat 7.3

2003-12-02 Thread Michael van Elst
On Tue, Dec 02, 2003 at 06:07:15PM -0300, [EMAIL PROTECTED] wrote:
 That was my typo, but still no openpkg-tool on the ftp.
 
 All I found starting with 'o' is:

It is in the PLUS directory.

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]


Re: Warning using openpkg-tool

2003-10-23 Thread Michael van Elst
On Thu, Oct 23, 2003 at 10:12:38AM -0400, Dennis McRitchie wrote:

Dennis,

 
 WARNING: unknown token '%{with_mta}':
  #if %{with_mta} != no
  #if %{with_mta} != no
 WARNING: unknown token '!=':
  #if %{with_mta} != no
  #if %{with_mta} != no
 WARNING: unknown token 'no':
  #if %{with_mta} != no
  #if %{with_mta} != no
 

The specfile parser doesn't know comparisons with the != operator, in
particular that operator wasn't part of the set of allowed operators
listed in the RPM documentation when I had a look.

The parser only complains about this single case (there is another one
in the install section) because it doesn't read beyond the first section
macro, i.e. the %description section.

Since rpm supports the != operator one should fix the parser. In the
meantime you can replace this test with a query for == yes. Testing
for a positive condition with a non-negating operator is better style
anyway, IMHO of course :)

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]


Re: Subject: [OpenPKG-SA-2003.044] OpenPKG Security Advisory (openssl)

2003-10-03 Thread Michael van Elst
 a rebuild of all packages that depend on one
   or more of the rebuilt packages.

That's called 'reverse dependencies' and is handled automatically unless
you turn it off with -q. You may want to turn it off if you upgrade a
build tool like gcc or make. It is implicitely turned off for the
openpkg bootstrap package itself, otherwise an upgrade to the bootstrap
would rebuild every installed package :-)

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]


Re: openpkg-tool -- option to build packages?

2003-09-19 Thread Michael van Elst
On Fri, Sep 19, 2003 at 03:18:32PM -0700, Bill Campbell wrote:
 I would like to see an option to openpkg that would extract the options for
 a package from the ~/.openpkg/build file, then generate the appropriate
 commands to build from the SRC/package directory.  I think this would be
 very useful when doing modification.  Now I create a build.sh file in the
 SRC directory to make it easier to build, but it would be less error-prone
 to do this with something like:
 
   openpkg build -ba packagename | sh

-ba ?

 
 It would probably be necessary to be able do specify options such as
 --nodeps as well since it's entirely possible that some requirements might
 not be met yet (e.g. MTA building sudo).


I wouldn't use '--nodeps' and 'less error-prone' in a single sentence :)

If you think about package options (like with_mod_perl for apache) you
can specifiy this now.

You may also specify 'preferences' for virtual packages like MTA with -H.


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]


Re: OpenLDAP current: wrong path to slapd in rc.openldap

2003-07-16 Thread Michael van Elst
On Wed, Jul 16, 2003, Stefan Engel wrote:

 The correct path (in rc.openldap in the source rpm) should read
 @l_prefix/libexec/openldap/slapd.

Thanks for noticing. This error was introduced when the package
specific stuff went into the private subdirectory libexec/openldap/.

Fixed in openldap-2.1.22-20030716

Greetings,
-- 
,eM=.a-. Michael van Elst
   dWWMWM -  :GM==;[EMAIL PROTECTED]
  :WWMWMw=--.  W='  cable  wireless
   9WWMm==-.
-Wmw-  CABLE  WIRELESS
__
The OpenPKG Projectwww.openpkg.org
User Communication List  [EMAIL PROTECTED]


Re: gcc with all languages

2003-07-10 Thread Michael van Elst
On Thu, Jul 10, 2003, Matthias Kurz wrote:

 How can i build gcc for all supported languages (c,c++,ada,java,fortran...) ?

So far you can't do this with the gcc package.

 How can i build gcc for a particular set of supported languages ?

The gcc package supports only C and C++. You may disable the
build of the C++ compiler by specifying with_cxx=no, but some
packages that require a C++ compiler will then fail to build.

Greetings,
-- 
,eM=.a-. Michael van Elst
   dWWMWM -  :GM==;[EMAIL PROTECTED]
  :WWMWMw=--.  W='  cable  wireless
   9WWMm==-.
-Wmw-  CABLE  WIRELESS
__
The OpenPKG Projectwww.openpkg.org
User Communication List  [EMAIL PROTECTED]


Re: apache + php on solaris

2003-07-01 Thread Michael van Elst
On Tue, Jul 01, 2003, julien Touche wrote:

 
 Building apache on Solaris 2.7 with openssl,gzip,dav, and mainly php
 
 rpm -ba apache.spec
 [snip]
 === src/modules/php4
 /bin/sh: php4: does not exist

No such error here, but I'm using Solaris 2.8 and 2.9.

In any case, the error message tells you that the php configure failed.
There should be an error message earlier in the build.


-- 
,eM=.a-. Michael van Elst
   dWWMWM -  :GM==;[EMAIL PROTECTED]
  :WWMWMw=--.  W='  cable  wireless
   9WWMm==-.
-Wmw-  CABLE  WIRELESS
__
The OpenPKG Projectwww.openpkg.org
User Communication List  [EMAIL PROTECTED]


Re: apache + php on solaris

2003-07-01 Thread Michael van Elst
On Tue, Jul 01, 2003, julien Touche wrote:

 
 
 Michael van Elst wrote:
 The math library (-lm) is missing.
 seems sufficient to add it to php CFLAGS in apache.spec
 
 However, the real problem seems to be /users/www/local/lib/libpng.so.
 Where does this come from ? OpenPKG does not build shared libraries.
 that's me. when playing with php*.rpm, i notice, i didn't get all gd
 functions working and some web page shows shared lib was needed for
 png/zlib/jpeg, so i add it and it worked after.

That's where the problem comes from. Please do not copy files
manually into a OpenPKG hierarchy.

What functions were missing and how did you build apache ?

Greetings,
-- 
,eM=.a-. Michael van Elst
   dWWMWM -  :GM==;[EMAIL PROTECTED]
  :WWMWMw=--.  W='  cable  wireless
   9WWMm==-.
-Wmw-  CABLE  WIRELESS
__
The OpenPKG Projectwww.openpkg.org
User Communication List  [EMAIL PROTECTED]


Re: MyODBC and OpenPKG 1.2

2003-06-29 Thread Michael van Elst
On Sat, Jun 28, 2003, Bill Campbell wrote:

 I've just done some hacking on perl to add shared libraries so that
 postgresql will build properly with perl support.  This required some
 tweaking on the postgresql.spec file to (a) enable plperl, and (b) fix the
 odbcinit in %post processing.

For plperl you either need a shared perl library OR compile the perl
library as position-independent code (PIC) so that you can link a
shared perl-module.

I'm still trying to find out how to use unixodbc :)


-- 
,eM=.a-. Michael van Elst
   dWWMWM -  :GM==;[EMAIL PROTECTED]
  :WWMWMw=--.  W='  cable  wireless
   9WWMm==-.
-Wmw-  CABLE  WIRELESS
__
The OpenPKG Projectwww.openpkg.org
User Communication List  [EMAIL PROTECTED]


Re: Bootstrapping of 1.2.0 aborts with error

2003-06-23 Thread Michael van Elst
On Mon, Jun 23, 2003, Frank A. Zdarsky wrote:

Frank,

 I've downloaded openpkg-1.2.0-1.2.0.src.sh and tried to bootstrap it on
 an i686-system running Redhat Linux 9.0 (linux kernel version 2.4.20-8).
 The bootstrapping aborts with the following error message:


 ./build/.libs/librpmbuild.a ./lib/.libs/librpm.a -ldb-3.1 -lpthread
   ^^

this is quite strange. I am not aware of anything that would cause
rpm to link against the pthread-library.

In any case, can you try to build the current bootstrap instead of
the 1.2 release ? I would also like to see the complete log, in
particular the output of the various configure steps.


Greetings,
-- 
,eM=.a-. Michael van Elst
   dWWMWM -  :GM==;[EMAIL PROTECTED]
  :WWMWMw=--.  W='  cable  wireless
   9WWMm==-.
-Wmw-  CABLE  WIRELESS
__
The OpenPKG Projectwww.openpkg.org
User Communication List  [EMAIL PROTECTED]


Re: python modules

2003-06-19 Thread Michael van Elst
On Wed, Jun 18, 2003, julien Touche wrote:

 openpkg is current and:
 
 $ rpm -qa |grep python
 python-2.2.2-1.2.0
 
 and host is sparc SunOS 5.7


Please install the current version of python. The bug has been fixed.

Greetings,
-- 
,eM=.a-. Michael van Elst
   dWWMWM -  :GM==;[EMAIL PROTECTED]
  :WWMWMw=--.  W='  cable  wireless
   9WWMm==-.
-Wmw-  CABLE  WIRELESS
__
The OpenPKG Projectwww.openpkg.org
User Communication List  [EMAIL PROTECTED]


Re: python modules

2003-06-19 Thread Michael van Elst
On Thu, Jun 19, 2003, julien Touche wrote:

 Please install the current version of python. The bug has been fixed.

I stand corrected:

$ uname -a
SunOS dv9.dev.de.cw.net 5.9 Generic_112233-06 sun4u sparc SUNW,Ultra-250
$ rpm -ql python | fgrep math
/cw/lib/python/lib-dynload/cmath_failed.so
/cw/lib/python/lib-dynload/math_failed.so

vs

$ uname -a
FreeBSD dt5.dev.de.cw.net 4.8-STABLE FreeBSD 4.8-STABLE #1: Mon May 19 21:21:15 CEST 
2003 [EMAIL PROTECTED]:/usr/src/sys/compile/DT5  i386
$ rpm -ql python | fgrep math
/cw/lib/python/lib-dynload/cmath.so
/cw/lib/python/lib-dynload/math.so


Apparently the build on Solaris fails without notification :-(

I'll investigate.


Greetings,
-- 
,eM=.a-. Michael van Elst
   dWWMWM -  :GM==;[EMAIL PROTECTED]
  :WWMWMw=--.  W='  cable  wireless
   9WWMm==-.
-Wmw-  CABLE  WIRELESS
__
The OpenPKG Projectwww.openpkg.org
User Communication List  [EMAIL PROTECTED]


Re: saving source RPM's with openpkg build

2003-03-29 Thread Michael van Elst
On Fri, Mar 28, 2003, Bill Campbell wrote:

 Could you post an example of the ~/.openpkg/build file?  I haven't been
 able to figure out the format from the man page, and would really like an
 example.  In particular I want to build the file to specify the options for
 packages such as apache.

The format is:

OPTION
OPTION
...

[/prefix1]
OPTION
OPTION
...

[/prefix2]
...


The first unnamed section are global defaults. The prefixed sections
are selective to the specific hierarchies. Each OPTION is a command
line option (possibly followed by a value for options that require one).


I fear there is no possibility to specify options for a particular
package. Just like command line options these are applied to all
packages. In fact, the build file is only parsed to set defaults for
command line options.

Of course many package options are unique, e.g. only apache knows
about with_mod_perl and other packages will ignore it. But many
other options are known by multiple packages and will be applied
to all these packages.

Greetings,
-- 
,eM=.a-. Michael van Elst
   dWWMWM -  :GM==;[EMAIL PROTECTED]
  :WWMWMw=--.  W='  cable  wireless
   9WWMm==-.
-Wmw-  CABLE  WIRELESS
__
The OpenPKG Projectwww.openpkg.org
User Communication List  [EMAIL PROTECTED]


Re: saving source RPM's with openpkg build

2003-03-29 Thread Michael van Elst
On Sat, Mar 29, 2003, Bill Campbell wrote:

 I think I found a bug in openpkg-build.pl while attempting to figure out
 how the configure file works.

Thanks for the report.

I have uploaded openpkg-tool-20030330-20030330.


Greetings,
-- 
,eM=.a-. Michael van Elst
   dWWMWM -  :GM==;[EMAIL PROTECTED]
  :WWMWMw=--.  W='  cable  wireless
   9WWMm==-.
-Wmw-  CABLE  WIRELESS
__
The OpenPKG Projectwww.openpkg.org
User Communication List  [EMAIL PROTECTED]


Re: another openpkg-tool question

2003-03-19 Thread Michael van Elst
On Wed, Mar 19, 2003, Ingo T. Storm wrote:

 When openssl got updated to 1.2.2, I got lots of complaints about
 packages that need rebuilding (e.g. apache, lynx, wget) because they
 have openssl in their deps. I rebuild and installed the openssl-1.2.2
 first in order to rebuild the rest in the next iteration.

Hmm. openpkg build should do just that. You tell it to upgrade
openssl and it will automatically upgrade the rest _unless_
you force it with the -q option to ignore these 'reverse dependencies'.

You can recompile openssl and all dependencies by using the -z option.
I.e.:

openpkg build -z openssl

will trigger rebuilds of openssl and all forward and backward dependencies.

openpkg build -zU openssl

will also try to upgrade all touched packages when possible.

Obviously this will redo at least the openssl build. If you are sure
that this is not necessary then save the openpkg build output into a file
and remove the commands.


-- 
,eM=.a-. Michael van Elst
   dWWMWM -  :GM==;[EMAIL PROTECTED]
  :WWMWMw=--.  W='  cable  wireless
   9WWMm==-.
-Wmw-  CABLE  WIRELESS
__
The OpenPKG Projectwww.openpkg.org
User Communication List  [EMAIL PROTECTED]


Re: A query about OpenPKG-SA-2003.010-php

2003-03-12 Thread Michael van Elst
On Wed, Mar 12, 2003, Ingo T. Storm wrote:

 mod_php is in the OpenPKG apache package. (as is mod_ssl and the
 like). This means that when any of the packages contained has an
 update, the container package will have to be updated. This is the
 reason why you see both apache and the standalone php package in the
 advisory.

Some clarification. The advisory is only for the standalone php interpreter
(being used as a CGI) but not for the embedded apache module.

The apache package is supposed to build only the apache module (assuming
you specify the 'with_php' option) and thus would not be affected.

However, due to some oversight from us, some versions of the apache
package also build the affected standalone php interpreter (- the
php build now requires an explicit --disable-cli to prevent the php
interpreter from begin built :-().

So: if you had installed the listed apache package and built it with
the 'with_php' option, then you also installed the php binary that
is affected when being used as a CGI.


Greetings,
-- 
,eM=.a-. Michael van Elst
   dWWMWM -  :GM==;[EMAIL PROTECTED]
  :WWMWMw=--.  W='  cable  wireless
   9WWMm==-.
-Wmw-  CABLE  WIRELESS
__
The OpenPKG Projectwww.openpkg.org
User Communication List  [EMAIL PROTECTED]


Re: correct use of openpkg-tool?

2003-03-03 Thread Michael van Elst
On Mon, Mar 03, 2003, Ingo T. Storm wrote:

 $openpkg index -p solaris-2.9 -o ./BIN-UPD-INDEX.rdf -i
 /export/openpkg/BIN /export/openpkg/UPD
 
 This yields Broken Pipe 11 times. I guess I haven't installed some
 tool openpkg needs. Any idea what the reason could be?

openpkg index reads all source rpms using rpm2cpio up to the point where
it retrieved the spec file from the archive. Then it closes the pipe
and rpm2pcio is killed with a SIGPIPE. The Broken Pipe message is
then generated by some shells. This is surely something that can be
improved.


 Secondly, BIN+UPD-INDEX.rdf is huge, contains lots of rpm entries and
 and I cannot find a reference to the existing 00INDEXes.

The indexer only references index files in subdirectories, not the
top-level directories you specified. So you need:

$TOP/BIN/00INDEX.rdf
$TOP/UDP/00INDEX.rdf

and then something like:

openpkg index -i $TOP


 openpkg build -f BIN+UPD-INDEX.rdf.bz2 -p solaris-2.9 -s -a | grep -v
 ^#
 
 This also tells me that all installed packages are OK. But clearly the
 version of squid installed is old
 
 $rpm -q squid
 squid-2.5.1-1.2.0


This should not happen. Can you try this with the current version
of openpkg-tool ?


-- 
,eM=.a-. Michael van Elst
   dWWMWM -  :GM==;[EMAIL PROTECTED]
  :WWMWMw=--.  W='  cable  wireless
   9WWMm==-.
-Wmw-  CABLE  WIRELESS
__
The OpenPKG Projectwww.openpkg.org
User Communication List  [EMAIL PROTECTED]


Re: openpkg build precisely following version from repository?

2003-02-18 Thread Michael van Elst
On Tue, Feb 18, 2003, Andrews, Martin wrote:

 To follow up - I also run into this problem when I install an RPM from
 current and then later want to go back to the main release (say when current
 changes have been merged back to an update of the main openpkg release).

I have added an -e option, not exactly with your code but using
the same logic.


-- 
   Michael van Elst
   [EMAIL PROTECTED]
__
The OpenPKG Projectwww.openpkg.org
User Communication List  [EMAIL PROTECTED]



Re: rc does not return failed exit status?

2003-02-18 Thread Michael van Elst
On Tue, Feb 18, 2003, Andrews, Martin wrote:

Hi,

 I am trying to control my openpkg services (with cfengine) and just noticed
 that the rc script does not return an error code when the action fails - it
 just prints a warning. What's up with that? I want to know if my start
 fails, or get an error when status finds the service is not running. Adding
 exit $rc to the end of rc fixes the problem.

sounds like something to fix.


 Also, just noticed that openpkg runs postgres as the user openpkg-r. Do
 (most) all services run as openpkg-r? Is there an option to set a unique
 user for each service somehow? Otherwise I worry that I will be leaking
 privileges by using this shared account.

We have four privilege levels associated with four user ids:

s_usressentially root
m_usrowner of the installation (like 'bin')
r_usrservices that do not require root may run as r_usr
 if they access non-public files or write files themselves.
n_usrnon-privileged user that must not own any files (like 'nobody')
 services that do not need their own files should run as n_usr.

Of course this does not discriminate between multiple services
within a single OpenPKG installation. However, it is a simple
and thus easily maintainable scheme which therefor adds to the
security of the installation.

If you want to assign different users to each service you can
create multiple OpenPKG hierarchies, each with its own set of
privileged users (except s_usr which is of course the same).
This way not only the uid running services will be separated
but also the uid owning most files. You also avoid security
relevant dependencies because you can reduce a hierarchy to
the minimum set of packages required for a single service.
And finally such a separation makes it trivial to separate
services on individual machines.


Greetings,
-- 
   Michael van Elst
   [EMAIL PROTECTED]
__
The OpenPKG Projectwww.openpkg.org
User Communication List  [EMAIL PROTECTED]



Re: openpkg build precisely following version from repository?

2003-02-17 Thread Michael van Elst
On Mon, Feb 17, 2003, Andrews, Martin wrote:

 Without forcing recompiles of everything, is there a way to have openpkg
 build track the versions from a repository exactly? Specifically, I want my
 various end hosts to downgrade if the main binary repository downgrades a
 package. Right now it seems that openpkg build will keep a new version
 installed unless I use -z - but I don't want most of my hosts recompiling.

Simple answer: no. openpkg build knows how to upgrade but not how to
downgrade. There is also the issue that a downgrade would not necessarily
reverse the effect of an upgrade.

You might archive the binary RPMs after a build so that you can downgrade
without recompiling. This would also ensure that you go back exactly to the
state (regarding versions, not regarding configuration files!) before an
upgrade.

Greetings,
-- 
   Michael van Elst
   [EMAIL PROTECTED]
__
The OpenPKG Projectwww.openpkg.org
User Communication List  [EMAIL PROTECTED]



Re: openpkg build and ambiguous sources?

2003-02-16 Thread Michael van Elst
On Sun, Feb 16, 2003, Vinod Kutty wrote:

 I think I understand what you're saying, but I'm not quite sure ... where
 would I end up with packages of the same name/filename? In the index?

One package compiled with two different build options is still stored
under the same filename. If you build a repository (and then an index)
you need to store these files in separate directories.


 OK. I see what you mean. In this case, did you do anything special to
 generate the index? Or did you rely on the fact that there are no RPMs in
 the top-level directory, and openpkg index automatically picks up the
 00INDEX... files in the subdirectories?

The top-level index files are written manually.


-- 
   Michael van Elst
   [EMAIL PROTECTED]
__
The OpenPKG Projectwww.openpkg.org
User Communication List  [EMAIL PROTECTED]



Re: Small problem with building wml...

2003-02-09 Thread Michael van Elst
On Sun, Feb 09, 2003, Steffen Weinreich wrote:

 Somehow the linker doesnt find the crc32 function. Has someone a hint whats 
 went wrong?

crc32() is a function from zlib. Looks like the GD module is
linked against some libz.so which is no longer found by the linker.

-- 
   Michael van Elst
   [EMAIL PROTECTED]
__
The OpenPKG Projectwww.openpkg.org
User Communication List  [EMAIL PROTECTED]



Re: openpkg build and ambiguous sources?

2003-02-05 Thread Michael van Elst
On Wed, Feb 05, 2003, Andrews, Martin wrote:

 I am now building a local repository with both source and binary RPMs. For
 some reason updating mysql from this repository with openpkg build gives me
 a fatal error. The same operation works for other rpms - say perl. Any
 explanation for the ambigous sources error?

 # mysql searches a frood called ''

The index entry for mysql contains an empty PreReq or BuildPreReq
element for mysql.

How did you build the index ?

-- 
   Michael van Elst
   [EMAIL PROTECTED]
__
The OpenPKG Projectwww.openpkg.org
User Communication List  [EMAIL PROTECTED]



Re: openpkg build and ambiguous sources?

2003-02-05 Thread Michael van Elst
On Wed, Feb 05, 2003, Martin Andrews wrote:

Hi,

 I ran openpkg index on a mysql rpm I built from openpkg 1.2. I just 
 tried it on a directory with only this RPM and sure enough I get an 
 empty entry in the prereqs. I have the same problem on solaris 7 and 
 redhat 7.1 (all I have tried so far).

this is a bug. RPM reports dependencies to 'rpmlib(...)' that
were not correctly removed from the index but left these empty
PreReq elements.

I have uploaded a fixed version to current.

Thanks for your feedback :)

Greetings,
-- 
   Michael van Elst
   [EMAIL PROTECTED]
__
The OpenPKG Projectwww.openpkg.org
User Communication List  [EMAIL PROTECTED]



Re: failing to build perl-5.8.0-1.2.0 on solaris 7

2003-01-30 Thread Michael van Elst
On Wed, Jan 29, 2003, Andrews, Martin wrote:

 Ah well - no such luck. openpkg tend to overwite any PATH settings now that
 I think about it. Problem is that rpmtool always searches . - here is the
 section from rpmtool:

Should now be fixed in openpkg-20030130-20030130

Greetings,
-- 
   Michael van Elst
   [EMAIL PROTECTED]
__
The OpenPKG Projectwww.openpkg.org
User Communication List  [EMAIL PROTECTED]



Re: failing to build perl-5.8.0-1.2.0 on solaris 7

2003-01-29 Thread Michael van Elst
On Wed, Jan 29, 2003, Andrews, Martin wrote:

Hi Martin,

 I am trying to build perl from the 1.2.0 release under solaris 7 and it is
 dying near the end when it uses rpmtool. It appears that rpmtool is finding
 the perl that was just built but not its module library - therefore it is
 unable to use the glob() function which requires the File::Glob module. Any
 ideas?

rpmtool searches $PATH for 'perl5', 'perl' and 'miniperl'. I fear
the problem occurs as soon as you have '.' in your $PATH because rpmtool
then picks up the newly created perl binary from the build directory.

Greetings,
-- 
   Michael van Elst
   [EMAIL PROTECTED]
__
The OpenPKG Projectwww.openpkg.org
User Communication List  [EMAIL PROTECTED]



Re: saving source RPM's with openpkg build

2003-01-28 Thread Michael van Elst
On Tue, Jan 28, 2003, Andrews, Martin wrote:

 I love the new openpkg tool for updating RPM's, but I would like to hold
 onto the source RPM's that it downloads - to avoid multiple downloads for
 each platform I maintain and to keep an archive of the source for all
 software I install. I am writing a script that reads output of openpkg
 build -s and does the download and build itself - but I wonder if there is
 an easier way? Is there some configuration option to the openpkg tool or rpm
 itself that will cause it to hold onto the source RPM's?

We discussed this topic some time ago. The conclusion was that
this can be done easiest with a simple WebCache like squid or
apache with mod_proxy and didn't need to be built into the
build script.

Another possibility is to create a mirror of the FTP server
(internally we use rsync) and use the -f/-r options to direct
the build script to the copy.

Greetings,
-- 
   Michael van Elst
   [EMAIL PROTECTED]
__
The OpenPKG Projectwww.openpkg.org
User Communication List  [EMAIL PROTECTED]



Re: Anybody built tripwire-2.3.?

2003-01-24 Thread Michael van Elst
On Thu, Jan 23, 2003, Bill Campbell wrote:

 I've tried AIDE using my tripwire-1.30 configuration files as a starting
 point.  The init function runs, but then when I run the check it says that
 the opendir function files, which it would since it's attempting to do
 opendir on file names not directories.

I don't think that AIDE can read tripwire configuration files. You
may want to start with something simpler. E.g.:

database = file://localhost/var/tmp/mysystem.db
database_out = file://localhost/var/tmp/mysystem.db.new
/etc R


-- 
   Michael van Elst
   [EMAIL PROTECTED]
__
The OpenPKG Projectwww.openpkg.org
User Communication List  [EMAIL PROTECTED]



Re: Petidomo: APPROVE openpkg-users@openpkg.org: Your posting to list openpkg-users

2003-01-20 Thread Michael van Elst
 
 1C3FCBA26E7D882BEEFB534E63396198
__
The OpenPKG Projectwww.openpkg.org
User Communication List  [EMAIL PROTECTED]