On Wed, Feb 14, 2007, Olivier Kaloudoff wrote:

> [...]
> openpkg build postfix -Dwith_mysql=yes | sh
> openpkg build postfix -Dpostfix::with_mysql=yes | sh

Both are correct. The second form is just the fully qualified form in
case one wishes to build multiple packages with one command and both
provide "with_mysql", but one for one of them the option should be
enabled.

> (as suggested by openpkg man build)
>
> and in both cases i get no mysql map support ..
> (attached the 2 logs, first truncated to postfix
> build only, as it had much dependencies)
>
> Am I using an old unsupported syntax for the -D ?
>
> Would be really happy to know what went wrong and why !

Ok, now that I know that you are using E1.0, I've retried with "mysql"
and "postfix" packages from E1.0 (under at least FreeBSD). But,
unfortunately, the problems doesn't show up for me:

| $ /openpkg-E10/bin/openpkg rpm -qa | egrep "(mysql|postfix)"
| mysql-5.0.27-E1.0.0
| postfix-2.3.3-E1.0.0
| $ /openpkg-E10/sbin/postconf -m | grep mysql
| mysql

Hmmm... there has to be a difference.
But I've still not real clue where it is...

> >>PS: there are much errors with permissions settings wrong, too,
> >>that still prevents postfix from running out of the openpkg box
> >>currently. Will try to figure out how to fix this and post a
> >>patch later on !
> >
> >Are you really sure on this? I've just installed a Postfix 2.3.7 from
> >OpenPKG CURRENT (under FreeBSD 6.2) the last days and it works like a
> >charm. I do not see any permissions problems or any other problems.
>
> not able to reproduce this, the builds below are working ok. The
> problematic build was done with --ba postfix.spec .. Should be able
> to retry in the same environnement from a backup .. maybe an error
> on my side.. if i installed the package as openpkg instead of root,
> it could explain the problem. Did not RTFM enought yet to know if there
> are restrictions to installing a package as openpkg user ;-)

Well, with E1.0 or a sufficiently new CURRENT or 2-STABLE the
"openpkg" command is setuid, so you should be able to install the
"postfix" package also as the "openpkg" (default management user).
But nevertheless I guess the problems was related to the fact that
(for unknown reasons) the "openpkg rpm -Uvh" command was NOT executed
as the super user (root by default) and then lots of permissions are
incorrect, of course. You can always run "openpkg rpm -V postfix" after
an installation to verify that the permissions are all correctly set on
the filesystem. With "openpkg rpm --setugids postfix" you can also try
to repair a broken installation.

                                       Ralf S. Engelschall
                                       [EMAIL PROTECTED]
                                       www.engelschall.com

______________________________________________________________________
OpenPKG                                             http://openpkg.org
User Communication List                      openpkg-users@openpkg.org

Reply via email to