Bug 1366607: Use relative paths in ldap mozbuild includes.
mozbuild has a test that it can load all mozbuild files when given an empty
configuration. It fails if it has include paths that depend on configuration
variables.
MozReview-Commit-ID: 5g4J64B2cCN
--- a/ldap/c-sdk/libraries/liblber/moz.build
+++ b/ldap/c-sdk/libraries/liblber/moz.build
@@ -1,14 +1,14 @@
# vim: set filetype=python:
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
-include('/%s/ldap/ldap-sdk.mozbuild' % CONFIG['commreltopsrcdir'])
+include('../../../ldap-sdk.mozbuild')
Library('lber60')
SOURCES += [
'bprint.c',
'decode.c',
'encode.c',
'io.c',
--- a/ldap/c-sdk/libraries/libldap/moz.build
+++ b/ldap/c-sdk/libraries/libldap/moz.build
@@ -1,14 +1,14 @@
# vim: set filetype=python:
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
-include('/%s/ldap/ldap-sdk.mozbuild' % CONFIG['commreltopsrcdir'])
+include('../../../ldap-sdk.mozbuild')
SharedLibrary('ldap60')
SOURCES += [
'abandon.c',
'add.c',
'authzidctrl.c',
'bind.c',
--- a/ldap/c-sdk/libraries/libldif/moz.build
+++ b/ldap/c-sdk/libraries/libldif/moz.build
@@ -1,14 +1,14 @@
# vim: set filetype=python:
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
-include('/%s/ldap/ldap-sdk.mozbuild' % CONFIG['commreltopsrcdir'])
+include('../../../ldap-sdk.mozbuild')
SharedLibrary('ldif60')
SOURCES += [
'line64.c'
]
LOCAL_INCLUDES += [
--- a/ldap/c-sdk/libraries/libprldap/moz.build
+++ b/ldap/c-sdk/libraries/libprldap/moz.build
@@ -1,14 +1,14 @@
# vim: set filetype=python:
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
-include('/%s/ldap/ldap-sdk.mozbuild' % CONFIG['commreltopsrcdir'])
+include('../../../ldap-sdk.mozbuild')
SharedLibrary('prldap60')
SOURCES += [
'ldappr-dns.c',
'ldappr-error.c',
'ldappr-io.c',
'ldappr-public.c',