Re: [gentoo-user] LibreOffice and openldap

2018-07-25 Thread Andrew Udvare
On 07/25/2018 06:34 AM, Andrew Udvare wrote:
> 
> 
>> On 2018-07-25, at 04:41, Neil Bothwick  wrote:
>>
>> Those are all kdepim packages, I run KDE without KMail and the only
>> package that depends on openldap is LO.
> 
> Figured out the patch. I have attached it. It does not fix the ebuild, but it 
> does make LibreOffice build without the LDAP plugin. This makes it possible 
> to have optional LDAP support.
> 
> In the -bin package I think it would be possible to remove this dependency by 
> removing the ldapbe2 files and fixing any generated plugin registry data.
> 
> Andrew
> 

Pull request here: https://github.com/gentoo/gentoo/pull/9351



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] LibreOffice and openldap

2018-07-25 Thread Daniel Frey
On 07/25/18 10:22, mad.scientist.at.la...@tutanota.com wrote:
> 
> It seems to me that gentoo should behave the same way using the global
> flags,  Isn't that the point of having 4 billion flags, more than any
> human could remember and keep track of.  Are they all documented
> somewhere, anywhere?  i've seen the official list, a bit sparse on just
> what they do and why you would want to use some of them.

I don't know about a global list (and I've found some global flags that
could be used aren't used on some packages, leading to two flags that do
the same thing) but using `equery uses ` is usually detailed
enough to figure out what they do on a per-package basis.

Dan



Re: [gentoo-user] LibreOffice and openldap

2018-07-25 Thread mad.scientist.at.large
Several years ago i was using opensuse, I really like the way you could block 
dependencies so that in the future it would ask if you wanted to "break" an 
install by not installing the dependencies that you don't want to ever load, 
like zeroconfig/avahi, packages that i didn't need, or want and that are 
dangerous security wise.  

It seems to me that gentoo should behave the same way using the global flags,  
Isn't that the point of having 4 billion flags, more than any human could 
remember and keep track of.  Are they all documented somewhere, anywhere?  i've 
seen the official list, a bit sparse on just what they do and why you would 
want to use some of them.

"We kill when we close our eyes to poverty, affliction or infamy. We kill when, 
because it is easier, we countenance or pretend to approve of atrophied social, 
political, educational and religious institutions instead of resolutely 
combating them."
- Hesse

25. Jul 2018 02:34 by pe...@prh.myzen.co.uk :


> On Tuesday, 24 July 2018 16:15:29 BST Andrew Lowe wrote:
>> Hi all,
>>  I'm in the process of installing LibreOffice. Doing:
>>
>>  emerge --ask libreoffice
>>
>> gives a big list of dependencies, as I would expect. One of them is
>> openldap. I thought that that was a bit strange, as I am a home user,
>> not corporate so I tried to turn it off. I placed a "-ldap" in
>> make.conf, I don't want it anywhere, but it still appeared in the
>> dependency list. A google search turned up this bug:
>>
>>  >> https://bugs.documentfoundation.org/show_bug.cgi?id=57417 
>> 
>>
>> which says, if I've read it correctly, that LDAP is not in LibreOffice
>> anymore. If this is the case, why is there a dependency,
>>
>> https://gitweb.gentoo.org/repo/gentoo.git/tree/app-office/libreoffice/libreo 
>> 
>> ffice-6.0.5.2-r1.ebuild
>>
>> line 136 - I may have misread this bit, I'm just starting to read the
>> whole ebuild doco.
>>
>>  Anyone got any insight?
>>
>>  Andrew
>
> If you run a KDE desktop it's a lot more than LibreOffice:
>
> $ equery d openldap
>  * These packages depend on openldap:
> --->8
> kde-apps/kldap-17.12.3 (net-nds/openldap)
> --->8
>
> $ equery d kldap
>  * These packages depend on kldap:
> kde-apps/incidenceeditor-17.12.3 (>=kde-apps/kldap-17.12.3:5)
> kde-apps/kdepim-meta-17.12.3 (>=kde-apps/kldap-17.12.3)
> kde-apps/kmail-17.12.3 (>=kde-apps/kldap-17.12.3:5)
> kde-apps/kmail-account-wizard-17.12.3 (>=kde-apps/kldap-17.12.3:5)
> kde-apps/korganizer-17.12.3 (>=kde-apps/kldap-17.12.3:5)
> kde-apps/libkdepim-17.12.3 (>=kde-apps/kldap-17.12.3:5)
> kde-apps/messagelib-17.12.3 (>=kde-apps/kldap-17.12.3:5)
>
> Seems to be no way out of it.
>
> -- 
> Regards,
> Peter.

Re: [gentoo-user] LibreOffice and openldap

2018-07-25 Thread Andrew Udvare


> On 2018-07-25, at 04:41, Neil Bothwick  wrote:
> 
> Those are all kdepim packages, I run KDE without KMail and the only
> package that depends on openldap is LO.

Figured out the patch. I have attached it. It does not fix the ebuild, but it 
does make LibreOffice build without the LDAP plugin. This makes it possible to 
have optional LDAP support.

In the -bin package I think it would be possible to remove this dependency by 
removing the ldapbe2 files and fixing any generated plugin registry data.

Andrew



no-ldapbe2.patch
Description: Binary data


Re: [gentoo-user] LibreOffice and openldap

2018-07-25 Thread Andrew Udvare



> On 2018-07-25, at 04:41, Neil Bothwick  wrote:
> 
> Those are all kdepim packages, I run KDE without KMail and the only
> package that depends on openldap is LO.


Same here. I have global USE "-ldap -openldap" (shouldn't the latter be fixed 
in dev-libs/cyrus-sasl ?). There is no way to avoid OpenLDAP when LibreOffice 
is installed. On my system this is the only package calling for it.

app-office/libreoffice-6.0.5.2-r1 (net-nds/openldap)

I did find that LibreOffice has one file that needs it:

 $ readelf -d /usr/lib64/libreoffice/program/libldapbe2lo.so

Dynamic section at offset 0xed10 contains 35 entries:
  TagType Name/Value
 0x0001 (NEEDED) Shared library: [libldap-2.4.so.2]

This stands for LDAP backend (2), a plugin that does that. Seems to be loaded 
on demand at runtime (using the component registry), and otherwise should be 
removable but that would need a patch. Maybe it's just to remove this line 
prior to building?

https://github.com/LibreOffice/core/blob/5a74884e7da4c497c4ea714bf84d62b55ed82cfe/Repository.mk#L395

Andrew


Re: [gentoo-user] LibreOffice and openldap

2018-07-25 Thread Neil Bothwick
On Wed, 25 Jul 2018 09:34:09 +0100, Peter Humphrey wrote:

> If you run a KDE desktop it's a lot more than LibreOffice:
> 
> $ equery d openldap
>  * These packages depend on openldap:
> --->8  
> kde-apps/kldap-17.12.3 (net-nds/openldap)
> --->8  
> 
> $ equery d kldap
>  * These packages depend on kldap:
> kde-apps/incidenceeditor-17.12.3 (>=kde-apps/kldap-17.12.3:5)
> kde-apps/kdepim-meta-17.12.3 (>=kde-apps/kldap-17.12.3)
> kde-apps/kmail-17.12.3 (>=kde-apps/kldap-17.12.3:5)
> kde-apps/kmail-account-wizard-17.12.3 (>=kde-apps/kldap-17.12.3:5)
> kde-apps/korganizer-17.12.3 (>=kde-apps/kldap-17.12.3:5)
> kde-apps/libkdepim-17.12.3 (>=kde-apps/kldap-17.12.3:5)
> kde-apps/messagelib-17.12.3 (>=kde-apps/kldap-17.12.3:5)
> 
> Seems to be no way out of it.

Those are all kdepim packages, I run KDE without KMail and the only
package that depends on openldap is LO.


-- 
Neil Bothwick

And what else floats.?


pgpeQXG7wbI4H.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] LibreOffice and openldap

2018-07-25 Thread Peter Humphrey
On Tuesday, 24 July 2018 16:15:29 BST Andrew Lowe wrote:
> Hi all,
>   I'm in the process of installing LibreOffice. Doing:
> 
>   emerge --ask libreoffice
> 
> gives a big list of dependencies, as I would expect. One of them is
> openldap. I thought that that was a bit strange, as I am a home user,
> not corporate so I tried to turn it off. I placed a "-ldap" in
> make.conf, I don't want it anywhere, but it still appeared in the
> dependency list. A google search turned up this bug:
> 
>   https://bugs.documentfoundation.org/show_bug.cgi?id=57417
> 
> which says, if I've read it correctly, that LDAP is not in LibreOffice
> anymore. If this is the case, why is there a dependency,
> 
> https://gitweb.gentoo.org/repo/gentoo.git/tree/app-office/libreoffice/libreo
> ffice-6.0.5.2-r1.ebuild
> 
> line 136 - I may have misread this bit, I'm just starting to read the
> whole ebuild doco.
> 
>   Anyone got any insight?
> 
>   Andrew

If you run a KDE desktop it's a lot more than LibreOffice:

$ equery d openldap
 * These packages depend on openldap:
--->8
kde-apps/kldap-17.12.3 (net-nds/openldap)
--->8

$ equery d kldap
 * These packages depend on kldap:
kde-apps/incidenceeditor-17.12.3 (>=kde-apps/kldap-17.12.3:5)
kde-apps/kdepim-meta-17.12.3 (>=kde-apps/kldap-17.12.3)
kde-apps/kmail-17.12.3 (>=kde-apps/kldap-17.12.3:5)
kde-apps/kmail-account-wizard-17.12.3 (>=kde-apps/kldap-17.12.3:5)
kde-apps/korganizer-17.12.3 (>=kde-apps/kldap-17.12.3:5)
kde-apps/libkdepim-17.12.3 (>=kde-apps/kldap-17.12.3:5)
kde-apps/messagelib-17.12.3 (>=kde-apps/kldap-17.12.3:5)

Seems to be no way out of it.

-- 
Regards,
Peter.






Re: [gentoo-user] LibreOffice and openldap

2018-07-24 Thread Francesco Turco
On Tuesday, 24 July 2018 17.15.29 CEST Andrew Lowe wrote:
>   Anyone got any insight?

Upstream bug: https://bugs.documentfoundation.org/show_bug.cgi?id=71538

-- 
https://fturco.gitlab.com/

signature.asc
Description: This is a digitally signed message part.