Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Why app-office/libreoffice-bin depends on net-nds/openldap?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
fpemud
Apprentice
Apprentice


Joined: 15 Feb 2012
Posts: 263

PostPosted: Wed Oct 14, 2015 9:19 am    Post subject: Why app-office/libreoffice-bin depends on net-nds/openldap? Reply with quote

I don't like net-nds/openldap, I think I should not install it since my computer is a personal system.
app-office/openoffice-bin has no dependencies, but app-office/libreoffice-bin depends on openldap.
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 6825
Location: Austria

PostPosted: Wed Oct 14, 2015 9:34 am    Post subject: Reply with quote

net-nds/openldap is a build time dependency of libreoffice. Upstream gives you the choice of using bundled version, or system openldap. Gentoo has a policy of unbundling dependencies.

openoffice might just bundle openldap, or is simply far, far behind in development.
_________________
backend.cpp:92:2: warning: #warning TODO - this error message is about as useful as a cooling unit in the arctic
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2583

PostPosted: Wed Oct 14, 2015 11:19 am    Post subject: Re: Why app-office/libreoffice-bin depends on net-nds/openld Reply with quote

Didn't app-office/libreoffice use to have the ldap USE flag in earlier versions, which has been removed from the ebuild later?
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 6825
Location: Austria

PostPosted: Wed Oct 14, 2015 11:32 am    Post subject: Reply with quote

I can't check right now, but if there was, it could have only been to switch between bundled and system openldap. So it would have been installed either way.
_________________
backend.cpp:92:2: warning: #warning TODO - this error message is about as useful as a cooling unit in the arctic
Back to top
View user's profile Send private message
fpemud
Apprentice
Apprentice


Joined: 15 Feb 2012
Posts: 263

PostPosted: Wed Oct 14, 2015 12:36 pm    Post subject: Reply with quote

openldap is basicly an user infomation management system, how could it play a part in building libreoffice?
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 6825
Location: Austria

PostPosted: Wed Oct 14, 2015 12:48 pm    Post subject: Reply with quote

It is right there in configure.ac:

http://cgit.freedesktop.org/libreoffice/core/tree/configure.ac#n8748

If you want to play around with it, just remove the part from configure.ac, build it and see what breaks.
_________________
backend.cpp:92:2: warning: #warning TODO - this error message is about as useful as a cooling unit in the arctic
Back to top
View user's profile Send private message
skunk
l33t
l33t


Joined: 28 May 2003
Posts: 640
Location: granada, spain

PostPosted: Wed Oct 14, 2015 4:22 pm    Post subject: Reply with quote

you can also set the "minimal" use flag to net-nds/openldap which installs just libraries and userspace tools...
Back to top
View user's profile Send private message
fpemud
Apprentice
Apprentice


Joined: 15 Feb 2012
Posts: 263

PostPosted: Thu Oct 15, 2015 11:19 pm    Post subject: Reply with quote

No, net-nds/openldap is not a build time dependency of app-office/libreoffice or app-office/libreoffice-bin.

First, openldap appears in the dependency list of libreoffice-bin.
This should not happen if it is a build time dependency sine *-bin packages don't need to be built.

Second, I found ldap access is a feature of libreoffice after reading some libreoffice code.
Code:
fpemud@fpemud-notebook ~/codes/libreoffice-4.4.5.2 $ find . -name "*ldap*"
./dbaccess/uiconfig/ui/ldappage.ui
./dbaccess/uiconfig/ui/ldapconnectionpage.ui
./external/openldap
./external/openldap/openldap-2.4.31.patch
./external/openldap/ExternalProject_openldap.mk
./external/openldap/UnpackedTarball_openldap.mk
./external/openldap/Module_openldap.mk
./officecfg/registry/schema/oo-ldap-attr-map.properties
./officecfg/registry/schema/oo-ad-ldap.xcd.sample
./officecfg/registry/schema/oo-ldap.xcd.sample
./offapi/com/sun/star/ldap
./extensions/Library_ldapbe2.mk
./extensions/source/config/ldap
./extensions/source/config/ldap/ldapuserprofilebe.cxx
./extensions/source/config/ldap/ldapuserprofilebe.hxx
./extensions/source/config/ldap/ldapbe2.component
./extensions/source/config/ldap/ldapaccess.cxx
./extensions/source/config/ldap/ldapaccess.hxx


But I'm still wondering why ldap access is such a basic function that it can't be removed by compile options.
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 6825
Location: Austria

PostPosted: Thu Oct 15, 2015 11:48 pm    Post subject: Reply with quote

I didn't say it is _not_ a runtime dependency. ;)

fpemud wrote:
No, net-nds/openldap is not a build time dependency of app-office/libreoffice

If you think this is true you should really file a bug upstream. It might be closed invalid though:

Code:
# grep libldap /var/db/pkg/app-office/libreoffice-9999/NEEDED.ELF.2
X86_64;/usr/lib64/libreoffice/program/libldapbe2lo.so;;$ORIGIN;libldap-2.4.so.2,libuno_cppuhelpergcc3.so.3,libuno_cppu.so.3,libuno_salhelpergcc3.so.3,libuno_sal.so.3,libstdc++.so.6,libm.so.6,libgcc_s.so.1,libc.so.6;x86_64


Unless, of course, you can provide a patch. Or meet positive response.
_________________
backend.cpp:92:2: warning: #warning TODO - this error message is about as useful as a cooling unit in the arctic
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum