Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 39027 - negated/nested use flags: "use !mips" don't work right [mod_ldap and mod_auth_ldap modules don't get built with apache2]
Summary: negated/nested use flags: "use !mips" don't work right [mod_ldap and mod_auth...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High critical (vote)
Assignee: Gentoo Web Application Packages Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-22 05:52 UTC by Steven Coutts
Modified: 2004-01-28 09:38 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Apache build output (apache.txt.gz,34.47 KB, text/plain)
2004-01-23 11:55 UTC, Steven Coutts
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Steven Coutts 2004-01-22 05:52:14 UTC
I am trying to build Apache 2 with ldap support. ldap is set in my use flags and emerge -pv apache gives the following -: 

[ebuild R ] net-www/apache-2.0.48-r1 +berkdb +gdbm +ldap 

So everything looks fine. 

However, the /etc/apache2/extramodules/mod_ldap.so and mod_auth_ldap.so do not get built. 



Reproducible: Always
Steps to Reproduce:
1. emerge apache
2. check if mod_ldap exists
3.

Actual Results:  
no mod_ldap or mod_auth_ldap

Expected Results:  
Built mod_ldap mod_auth_ldap
Comment 1 Donny Davies (RETIRED) gentoo-dev 2004-01-22 13:36:59 UTC
They most certainly do here.

You'll need to attach useful output here before anybody can try to help you.  Build errors?  Build output?  What OpenLDAP is installed?  Etc.

Comment 2 Steven Coutts 2004-01-23 00:54:01 UTC
Not getting any build errors.

This is the contents of /etc/apache2/extramodules after the build -:

tsunami root # ls /etc/apache2/extramodules/ -l
total 3808
- -rwxr-xr-x    1 root     root      3628176 Jan 18 20:50 libphp4.so
- -rwxr-xr-x    1 root     root       203067 Jan 18 22:12 mod_ssl.so

I am using the following OpenLDAP -:

[ebuild   R   ] net-nds/openldap-2.0.27-r4


This has also happened to a couple of other people -:

http://forums.gentoo.org/viewtopic.php?t=126062&highlight=

Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-01-23 01:19:34 UTC
need:
'emerge info' output
config.log file
"emerge apache" logfile
Comment 4 Hakan Ahlstrom 2004-01-23 06:09:40 UTC
From apache-2.0.48-r1.ebuild @ line 121:
---
local myconf
use !mips && use ldap && \
myconf="--with-ldap --enable-auth-ldap=shared --enable-ldap=shared"
---

After these lines the myconf variable is still empty. By putting 'myconf="--with-ldap..."' on a line of its own the parameters are sent to ./configure and the modules are built.

Not a solution but maybe a useful hint :)
Comment 5 Steven Coutts 2004-01-23 11:53:47 UTC
emerge info output -:

Gentoo Base System version 1.4.3.10
Portage 2.0.49-r21 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r9, 2.6.1-rc1)
=================================================================
System uname: 2.6.1-rc1 i686 Pentium II (Deschutes)
distcc 2.11.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-mcpu=i686 -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-mcpu=i686 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distcc sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="apache2 apm arts avi berkdb crypt cups encode foomaticdb gdbm gif gpm imlib jpeg kde ldap libg++ libwww mad maildir mikmod motif mpeg mys
ql ncurses nls nptl oggvorbis opengl oss pam pdflib perl php php4 png python quicktime readline sdl slang spell ssh ssl svga tcpd truetype x86
 xml2 xmms xv zlib"


Apache build output added as attachment (apache.txt)
Comment 6 Steven Coutts 2004-01-23 11:55:42 UTC
Created attachment 24306 [details]
Apache build output

Output of the emerge apache process.
Comment 7 Cheng Zhang 2004-01-24 19:29:56 UTC
Per Hakan Ahlstrom's previous comment

In apache-2.0.48-r1.ebuild @ line 121:
---
local myconf
use !mips && use ldap && \
myconf="--with-ldap --enable-auth-ldap=shared --enable-ldap=shared"
---

If taking out 'use !mips', myconf will get the correct value. Seems 'use !mips' should be true though. I am new to ebuild. Any advice on why it is not?
Comment 8 atom 2004-01-27 21:58:56 UTC
If 'use !mips' is the problem, what is the justification for it being there?

enti boot # grep mips /usr/portage/net-nds/openldap/openldap-2.*
enti boot #  

this shows that the openldap ebuild doesnt have any problems with mips. 

a search on gentoo for 'apache enable-auth-ldap mips' returns only gentoo ebuilds and this article:

http://groups.yahoo.com/group/new-httpd/message/42840

is this the basis for the !mips code? i realize there prolly aren't lots of people trying to build apache2 with ldap support on mips, but only one person having problems?

"Why did you build and install apr and apr-util rather than using the ones
bundled with Apache? I'm not sure that version 0.9.1 had the APU_BINDIR
variable (I'd have to check... Justin would probably know). We're not at
the point yet where we have declared a particular version number of apr
and apr-util to work with Apache 2.0.44 (or any other 2.0.x release) other
than the one bundled with it.

--Cliff"

i feel the !mips should be removed. this failure to build without any notification to the user seems poor. for now i will remove the !mips from my own, but i feel this should be remedied in some manner.
Comment 9 SpanKY gentoo-dev 2004-01-27 22:11:17 UTC
yes it belongs there because guess what, ldap support doesnt work on mips

however, the bug here is with apache ... proper syntax is `! use mips` ... negated use flag request is Bug 30360
Comment 10 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-01-28 01:39:16 UTC
The "use !mips" is only a problem because it that syntax was added in a newer version of portage that is ~x86 only at the moment.

I've modified the logic now to work with older versions of portage.
Comment 11 atom 2004-01-28 09:36:26 UTC
so i take it i need to be running portage-2.0.50_pre9 for this to work properly?
Comment 12 atom 2004-01-28 09:38:03 UTC
forget that last comment.