Closed
Bug 98924
Opened 23 years ago
Closed 22 years ago
LDAP should use module specific include dir
Categories
(Directory :: LDAP C SDK, defect)
Directory
LDAP C SDK
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla1.2
People
(Reporter: cls, Assigned: dmosedale)
Details
Attachments
(4 files, 1 obsolete file)
3.38 KB,
patch
|
Details | Diff | Splinter Review | |
2.46 KB,
patch
|
Details | Diff | Splinter Review | |
1.49 KB,
patch
|
Details | Diff | Splinter Review | |
679 bytes,
patch
|
Details | Diff | Splinter Review |
LDAP should follow NSPR's example and use a module specific directory for its public headers; private headers, of course, should not be exported. This will put LDAP in sync with the other efforts to modularize headers. Since LDAP uses a separate build system, I don't think REQUIRES should be used to find those headers.
Assignee | ||
Comment 2•23 years ago
|
||
r=dmose
Patch has been checked in. dmose says that a similar change needs to be made to new ldap branch so reassigning to leif.
Assignee: cls → leif
Changing product.
Component: Build Config → LDAP C SDK
Product: Browser → Directory
Assignee | ||
Comment 7•23 years ago
|
||
r=dmose in that cls' win32 changes look reasonable; I don't know the windows build system well enough to be able to review them for completeness.
Comment 8•23 years ago
|
||
why dont we just use REQUIRES in the directories that use ldap instead of adding it to config.mak? I kind of thought nspr was done that way because we don't really need to track nspr dependencies because it's so fundamental
That is probably why NSPR is done that way. Someday when we have more time to worry about correctness, I'd like to change that. IMO, REQUIRES only applies to the modules that are built as part of the Mozilla core build system. This is why ZLIB/JPEG/PNG/MNG_REQUIRES are only set when building the mozilla version of the packages. Otherwise, we rely upon setting <mod>_CFLAGS to pull the proper headers. LDAP should be treated the same way since it is a completely separate entity (as opposed to zlib which has been adapted to our build system). Adding the ldap include path to config.mak was just for convenience. We can not add it there and just add it to the handful of makefiles that will use it (directory/xpcom/* & mailnews/addrbook/* iirc).
Assignee | ||
Comment 10•23 years ago
|
||
Only adding it to the dirs where it's needed would avoid adding unnecessary IO cycles to the build. The directory/xpcom/base subtree should be the ONLY place that needs to include those files directly.
Reporter | ||
Comment 11•23 years ago
|
||
Include directly, yes. But since nsLDAP.h & friends pull in ldap.h, the modules that require mozldap will also require ldap. It's still only a handful of makefiles though.
Assignee | ||
Comment 12•23 years ago
|
||
nsLDAP.h is going to go away; see bug 92650.
Reporter | ||
Comment 13•23 years ago
|
||
Sorry, that should have been nsLDAPURL.h & friends (the ones exported from directory/xpcom/base/src/) not nsLDAP.h
Attachment #49076 -
Attachment is obsolete: true
Reporter | ||
Comment 14•23 years ago
|
||
Reporter | ||
Comment 15•23 years ago
|
||
Comment 16•23 years ago
|
||
I like that better. I still like the idea of using REQUIRES somehow, because I'm developing tools that make use of the value of REQUIRES.
Assignee | ||
Comment 17•23 years ago
|
||
cls: nothing from the src directory should really have to be exported, I don't think. It's most likely a bug I introduced by copying other win32 makefiles, although conceivably there's some weird win32 build system lossage that I was hacking around.
Reporter | ||
Comment 18•23 years ago
|
||
You're right. I went digging some more and it wasn't that dir, lxr shows that addrbook directly includes ldap.h /mailnews/addrbook/src/nsAbLDAPProperties.h, line 35 -- #include "ldap.h"
Assignee | ||
Comment 19•23 years ago
|
||
cls: that's definitely a bug; that code should not be including ldap.h.
Reporter | ||
Comment 20•23 years ago
|
||
Assignee | ||
Comment 21•23 years ago
|
||
r=dmose on all three, minus the hunks pertaining to mailnews/addrbook/src/{makefile.win,Makefile.in}
Comment 22•23 years ago
|
||
sr=alecf on all three.
Reporter | ||
Comment 23•23 years ago
|
||
Those 3 patches have been checked in.
Updated•23 years ago
|
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla0.9.7
Comment 25•23 years ago
|
||
Moving out of 0.9.7. Feel free to move them past 0.9.8.
Target Milestone: mozilla0.9.7 → mozilla0.9.8
Assignee | ||
Comment 26•23 years ago
|
||
Mass change: pushing out 0.9.8 bugs, as I'm concentrating feature work now.
Target Milestone: mozilla0.9.8 → mozilla0.9.9
Updated•23 years ago
|
Target Milestone: mozilla0.9.9 → mozilla1.0
Comment 27•23 years ago
|
||
Moving Netscape owned 0.9.9 and 1.0 bugs that don't have an nsbeta1, nsbeta1+, topembed, topembed+, Mozilla0.9.9+ or Mozilla1.0+ keyword. Please send any questions or feedback about this to adt@netscape.com. You can search for "Moving bugs not scheduled for a project" to quickly delete this bugmail.
Target Milestone: mozilla1.0 → mozilla1.2
Assignee | ||
Comment 28•22 years ago
|
||
This bug was fixed with the landing of the LDAP C SDK v5.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•