LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-30-2020, 09:03 AM   #1
marrowsuck
Member
 
Registered: Sep 2006
Posts: 205

Rep: Reputation: 91
current: poppler build flag


The recent poppler build in current is missing some headers, which are needed by other programs, e.g. inkscape.
I rebuilt the package with:
Code:
-DENABLE_UNSTABLE_API_ABI_HEADERS=ON
 
Old 10-30-2020, 11:53 AM   #2
EdGr
Senior Member
 
Registered: Dec 2010
Location: California, USA
Distribution: I run my own OS
Posts: 1,006

Rep: Reputation: 476Reputation: 476Reputation: 476Reputation: 476Reputation: 476
Inkscape also can be built without poppler.

Code:
-DENABLE_POPPLER=no
Ed
 
Old 10-31-2020, 06:43 AM   #3
marrowsuck
Member
 
Registered: Sep 2006
Posts: 205

Original Poster
Rep: Reputation: 91
Quote:
Originally Posted by EdGr View Post
Inkscape also can be built without poppler.
Ed
Yes, but I need poppler-support in Inkscape.

In the previous poppler build the headers were included.
 
Old 10-31-2020, 08:21 AM   #4
conraid
Member
 
Registered: Feb 2008
Location: Leghorn, Tuscany, Italy
Distribution: Slackware
Posts: 122

Rep: Reputation: 38
I have the same problem. I solved with this script which I will put in the repository as soon as Pat adds kde5 in current
Code:
#!/bin/bash

# Copyright 2020 Corrado Franco (https://corradofranco.it)
# All rights reserved.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version, with the following exception:
# the text of the GPL license may be omitted.

# This program is distributed in the hope that it will be useful, but
# without any warranty; without even the implied warranty of
# merchantability or fitness for a particular purpose. Compiling,
# interpreting, executing or merely reading the text of the program
# may result in lapses of consciousness and/or very being, up to and
# including the end of all existence and the Universe as we know it.
# See the GNU General Public License for more details.

# You may have received a copy of the GNU General Public License along
# with this program (most likely, a file named COPYING).  If not, see
# <http://www.gnu.org/licenses/>.
#
# Latest version of this SlackBuild at https://github.com/conraid/SlackBuilds

cd $(dirname $0) ; CWD=$(pwd)

PRGNAM=poppler
PKGNAM=poppler-dev
VERSION=20.10.0 # Version in current
BUILD=${BUILD:-1}
TAG=${TAG:-cf}
TMP=${TMP:-/tmp/pkg}
PKG=$TMP/package-$PKGNAM
OUTPUT=${OUTPUT:-/tmp}

DOCFILES="COPYING*"

ARCH=noarch

# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
# the name of the created package would be, and then exit. This information
# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME:-""}" ]; then
  echo "$PKGNAM-$VERSION-$ARCH-$BUILD.txz "
  exit 0
fi

rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf ${PRGNAM}-${VERSION}
tar xvf $CWD/${PRGNAM}-$VERSION.tar.xz
cd ${PRGNAM}-$VERSION

chown -R root:root .
find . \
 \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
 -exec chmod 755 {} \+ -o \
 \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
 -exec chmod 644 {} \+

# CMake to make poppler-config.h
mkdir build
cd build
cmake \
  -DCMAKE_INSTALL_PREFIX=/usr \
  -DCMAKE_INSTALL_MANDIR=/usr/man \
  -DBUILD_SHARED_LIBS=ON \
  -DENABLE_QT5=ON \
  -DENABLE_XPDF_HEADERS=ON \
  -DENABLE_CMS=lcms2 \
  -DENABLE_DCTDECODER=libjpeg \
  -DENABLE_GTK_DOC=ON \
  -DENABLE_LIBOPENJPEG=openjpeg2 \
  -DENABLE_XPDF_HEADERS=ON \
  -DENABLE_ZLIB=ON \
  -DENABLE_UNSTABLE_API_ABI_HEADERS=ON \
  ..
cd ..

mkdir -p $PKG/usr/include/poppler/{goo,fofi,splash}
cp splash/*.h $PKG/usr/include/poppler/splash/
cp fofi/*.h $PKG/usr/include/poppler/fofi/
cp goo/*.h $PKG/usr/include/poppler/goo/
cp poppler/*.h $PKG/usr/include/poppler/
cp build/poppler/poppler-config.h $PKG/usr/include/poppler/

mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION
cp -a $DOCFILES $PKG/usr/doc/$PKGNAM-$VERSION || true
cat $CWD/$PKGNAM.SlackBuild > $PKG/usr/doc/$PKGNAM-$VERSION/$PKGNAM.SlackBuild

mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc

cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PKGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-txz}

It's not perfect, there are some unnecessary includes, but it works.
 
Old 11-01-2020, 02:36 AM   #5
marrowsuck
Member
 
Registered: Sep 2006
Posts: 205

Original Poster
Rep: Reputation: 91
Fixed in current -- thanks Pat!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Gparted - to "flag" or NOT to "flag" as "raid" ? helen314 Linux - Newbie 3 06-28-2019 03:02 PM
Help Required adding flag on packet and routing packet based on flag over ssl tunnel. sskhan Linux - Networking 1 02-02-2018 03:56 PM
[SOLVED] Can't build evince or epdfview - poppler problem? bonixavier Slackware 7 04-27-2011 09:54 PM
dont have poppler of Gimp 2.4 mocqueanh Slackware 2 01-12-2008 01:08 PM
gentoo poppler (patch) and kde 1dude1 Linux - Software 5 08-08-2006 03:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration