Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

Can Libreoffice add USE pdf to make poppler dep optional?

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
9 posts • Page 1 of 1
Author
Message
jeffk
l33t
l33t
Posts: 671
Joined: Sat Sep 13, 2003 1:51 pm

Can Libreoffice add USE pdf to make poppler dep optional?

  • Quote

Post by jeffk » Wed May 25, 2016 2:57 am

Question for those familiar with libreoffice build system: would the libreoffice configure system support a USE pdf so that the dependency on poppler can be made optional?

Code: Select all

!!! existing preserved libs:
>>> package: app-text/poppler-0.44.0
 *  - /usr/lib64/libpoppler.so.60
 *  - /usr/lib64/libpoppler.so.60.0.0
 *      used by /usr/lib64/libreoffice/program/xpdfimport (app-office/libreoffice-5.1.2.2)
Use emerge @preserved-rebuild to rebuild packages using these libraries
Here are some grep matches for pdf in the libreoffice unpacked source. No matches exist in temp/.

Code: Select all

# grep -i pdf /var/tmp/portage/app-office/libreoffice-5.1.2.2/work/libreoffice-5.1.2.2/config*
config_host.mk:export ENABLE_PDFIMPORT=TRUE
config_host.mk.in:export ENABLE_PDFIMPORT=@ENABLE_PDFIMPORT@
config.log:configure:36761: checking whether to build the PDF import feature
config.log:configure:36769: checking which PDF import backend to use
config.log:ENABLE_PDFIMPORT='TRUE'
config.log:pdfdir='${docdir}'
config.log:#define ENABLE_PDFIMPORT 1
grep: configmgr: Is a directory
config.status:S["ENABLE_PDFIMPORT"]="TRUE"
config.status:S["pdfdir"]="${docdir}"
config.status:D["ENABLE_PDFIMPORT"]=" 1"
configure:ENABLE_PDFIMPORT
configure:pdfdir
configure:enable_pdfimport
configure:pdfdir='${docdir}'
configure:  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
configure:    ac_prev=pdfdir ;;
configure:  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
configure:    pdfdir=$ac_optarg ;;
configure:              oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
configure:  --pdfdir=DIR            pdf documentation [DOCDIR]
configure:  --disable-pdfimport     Disable building the PDF import feature.
configure:  --with-system-poppler   Use system poppler (only needed for PDF import).
configure:# Check whether --enable-pdfimport was given.
configure:if test "${enable_pdfimport+set}" = set; then :
configure:  enableval=$enable_pdfimport;
configure:        --disable-pdfimport \
configure:# pdf import?
configure:{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build the PDF import feature" >&5
configure:$as_echo_n "checking whether to build the PDF import feature... " >&6; }
configure:ENABLE_PDFIMPORT=
configure:if test $_os != Android -a $_os != iOS -a \( -z "$enable_pdfimport" -o "$enable_pdfimport" = yes \); then
configure:    ENABLE_PDFIMPORT=TRUE
configure:                { $as_echo "$as_me:${as_lineno-$LINENO}: checking which PDF import backend to use" >&5
configure:$as_echo_n "checking which PDF import backend to use... " >&6; }
configure:    $as_echo "#define ENABLE_PDFIMPORT 1" >>confdefs.h
configure:    if test -n "$ENABLE_PDFIMPORT"; then
configure:            as_fn_error $? "need to disable PDF import via poppler or use system library" "$LINENO" 5
configure.ac:AC_ARG_ENABLE(pdfimport,
configure.ac:    AS_HELP_STRING([--disable-pdfimport],
configure.ac:        [Disable building the PDF import feature.])
configure.ac:        [Use system poppler (only needed for PDF import).]),,
configure.ac:        --disable-pdfimport \
configure.ac:# pdf import?
configure.ac:AC_MSG_CHECKING([whether to build the PDF import feature])
configure.ac:ENABLE_PDFIMPORT=
configure.ac:if test $_os != Android -a $_os != iOS -a \( -z "$enable_pdfimport" -o "$enable_pdfimport" = yes \); then
configure.ac:    ENABLE_PDFIMPORT=TRUE
configure.ac:    AC_MSG_CHECKING([which PDF import backend to use])
configure.ac:    AC_DEFINE([ENABLE_PDFIMPORT],1)
configure.ac:AC_SUBST(ENABLE_PDFIMPORT)
configure.ac:    if test -n "$ENABLE_PDFIMPORT"; then
configure.ac:            AC_MSG_ERROR([need to disable PDF import via poppler or use system library])
EDIT: fix typo in title re: poppler.
Last edited by jeffk on Mon Aug 01, 2016 11:10 pm, edited 1 time in total.
Top
geki
Advocate
Advocate
User avatar
Posts: 2387
Joined: Thu May 13, 2004 8:59 pm
Location: Germania
Contact:
Contact geki
Website

  • Quote

Post by geki » Wed May 25, 2016 12:01 pm

good idea to rip poppler out of the dependency list for its subslot hell. I will do that in my overlay. :o
hear hear
Top
asturm
Developer
Developer
Posts: 9496
Joined: Thu Apr 05, 2007 4:07 pm

  • Quote

Post by asturm » Wed May 25, 2016 1:02 pm

eh, you just gotta time these updates with any upcoming libreoffice version bump - either mask poppler/icu for a few days, or unmask the next libreoffice version in advance of its probable stabilisation. ;)

that's how I'm doing it on 7-year old lowvoltage hardware.
Top
geki
Advocate
Advocate
User avatar
Posts: 2387
Joined: Thu May 13, 2004 8:59 pm
Location: Germania
Contact:
Contact geki
Website

  • Quote

Post by geki » Wed May 25, 2016 4:19 pm

actually, that configure flag did not change since openoffice times. this post takes as much time. :o
hear hear
Top
dilfridge
Developer
Developer
User avatar
Posts: 121
Joined: Sat Sep 18, 2010 11:38 am
Location: Regensburg, Germany
Contact:
Contact dilfridge
Website

  • Quote

Post by dilfridge » Fri May 27, 2016 8:15 pm

geki wrote:actually, that configure flag did not change since openoffice times. this post takes as much time. :o
Please try it and tell us if it works again. The useflag disappeared since upstream made the dependency unconditional at some point.
Top
geki
Advocate
Advocate
User avatar
Posts: 2387
Joined: Thu May 13, 2004 8:59 pm
Location: Germania
Contact:
Contact geki
Website

  • Quote

Post by geki » Sat May 28, 2016 7:24 am

well, I do not remember, if there was a system poppler flag or not.

but the flag '--enable-pdfimport' is still present, which is the only consumer of poppler within open/libreoffice.

see: https://github.com/geki-yaba/gekis-play ... 0930b25891
hear hear
Top
jeffk
l33t
l33t
Posts: 671
Joined: Sat Sep 13, 2003 1:51 pm

  • Quote

Post by jeffk » Mon Aug 01, 2016 12:27 pm

I'm now using geki's modified libreoffice build with use=-pdfimport, and it is working well for me. No more libreoffice rebuilds when poppler updates land.

Would you consider asking Gentoo devs to include this change in the portage version of libreoffice?
Top
Naib
Watchman
Watchman
User avatar
Posts: 6101
Joined: Fri May 21, 2004 9:42 pm
Location: Removed by Neddy
Contact:
Contact Naib
Website

  • Quote

Post by Naib » Mon Aug 01, 2016 4:50 pm

This would be great! got myself into a perpetual build mess due to a particular poppler was removed BUT that was the one the libre was built with and then a nice circular mess...
#define HelloWorld int
#define Int main()
#define Return printf
#define Print return
#include <stdio>
HelloWorld Int {
Return("Hello, world!\n");
Print 0;
Top
jeffk
l33t
l33t
Posts: 671
Joined: Sat Sep 13, 2003 1:51 pm

  • Quote

Post by jeffk » Mon Aug 01, 2016 11:13 pm

dilfridge wrote:
geki wrote:actually, that configure flag did not change since openoffice times. this post takes as much time. :o
Please try it and tell us if it works again. The useflag disappeared since upstream made the dependency unconditional at some point.
Can you elaborate? I'm not clear on what USE var (if not pdfimport) you're suggesting geki or others try again. Is it something inherited from one of the eclasses?
Top
Post Reply

9 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy