[manjaro-packages] xpdf installation failure

Bernhard Landauer oberon at manjaro.org
Sat Apr 2 12:02:59 CEST 2016


This is a package from the AUR. Please contact the maintainer there!

On 02/04/16 10:48, message wrote:
> Readers,
>
> Tried to install xpdf, but failed as below. Looks that there is a 
> reference to create a directory 'mkdir -p /home/lee...' without 
> permission. Any suggestions please?
>
> yaourt xpdf
> 1 extra/poppler 0.41.0-1 [installed: 0.39.0-1]
>     PDF rendering library based on xpdf 3.0
> 2 aur/flaxpdf-git 20152609-1 (1)
>     A simple FLTK PDF viewer
> 3 aur/mingw-w64-poppler 0.40.0-1 (5)
>     PDF rendering library based on xpdf 3.0 (mingw-w64)
> 4 aur/poppler-git 0.33.0.r4409.11f117c-2 (1)
>     PDF rendering library based on xpdf 3.0
> 5 aur/poppler-lcdfilter 0.39.0-2 (0)
>     PDF rendering library based on xpdf 3.0
> 6 aur/poppler-minimal 0.33.0-1 (1)
>     PDF rendering library based on xpdf 3.0 (minimal non-X version)
> 7 aur/xpdf 3.04-4 (100)
>     Viewer for Portable Document Format (PDF) files
> ==> Enter n° of packages to be installed (ex: 1 2 3 or 1-3)
> ==> -------------------------------------------------------
> ==> 7
>
>
> ==> Downloading xpdf PKGBUILD from AUR...
> x .SRCINFO
> x 02-permissions.patch
> x PKGBUILD
> x desktop
> x install
>
> Also depends on the libpaper package.
>
>
> Done
>
>
> With my version of Pacman v4.2.1 - libalpm v9.0.1, the pkgbuild fails 
> with permission errors. Basically everything in build() needs moved to 
> package().
>
> Here is my version that works (I think)but then there is an error with 
> the install file (not sure what to do) but at least it tries to work.
>
> # Maintainer: Hyacinthe Cartiaux hyacinthe.cartiaux at free.fr
> # Contributor: Gaetan Bisson bisson at archlinux.org
> # Contributor: tobias tobias at archlinux.org
> # Contributor: Sarah Hay sarahhay at mb.sympatico.ca
> # Xpdf-nodrm: Mark Pustjens pustjens at dds.nl
>
> pkgname=xpdf
> pkgver=3.04
> pkgrel=3
> pkgdesc='Viewer for Portable Document Format (PDF) files'
> url='http://www.foolabs.com/xpdf/'
> license=('GPL2')
> arch=('i686' 'x86_64')
> depends=('lesstif' 'gsfonts' 'libxt' 'libpaper')
> optdepends=('poppler: tools that used to be included in xpdf'
> 'desktop-file-utils: for desktop environments')
> source=("ftp://ftp.foolabs.com/pub/${pkgname}/${pkgname}-${pkgver%_*}.tar.gz" 
>
> '02-permissions.patch'
> 'desktop')
> sha1sums=('b9b1dbb0335742a09d0442c60fd02f4f934618bd'
> 'f192728680aaf575c178ce25c4aefa92e798a879'
> '17ebbfe457cb92e97b12b7362e8ce961526012d9')
>
> install=install
> backup=('etc/xpdfrc')
>
> #build() {
> #  cd "${srcdir}/${pkgname}-${pkgver%_*}"
> #
> #  patch -p1 -i ../02-permissions.patch
> #
> #  sed -i 's:/usr/share/fonts/type1/gsfonts:/usr/share/fonts/Type1:' 
> xpdf/GlobalParams.cc
> #  sed -i 's:times-medium-r-normal--16:times-medium-r-normal--14:' 
> xpdf/XPDFViewer.cc # FS#14217
> #
> #  ./configure \
> #    --prefix=/usr \
> #    --sysconfdir=/etc \
> #    --mandir=/usr/share/man \
> #    --enable-multithreaded \
> #    --enable-wordlist \
> #    --with-freetype2-library=/usr/lib \
> #    --with-freetype2-includes=/usr/include/freetype2 \
> #    --x-includes=/usr/include \
> #    --with-Xm-library=/usr/lib \
> #    --with-Xm-includes=/usr/include \
> #
> #  make
> #}
>
> package() {
> cd "${srcdir}/${pkgname}-${pkgver%_*}"
> patch -p1 -i ../02-permissions.patch
> sed -i 's:/usr/share/fonts/type1/gsfonts:/usr/share/fonts/Type1:' 
> xpdf/GlobalParams.cc
> sed -i 's:times-medium-r-normal--16:times-medium-r-normal--14:' 
> xpdf/XPDFViewer.cc # FS#14217
> ./configure \
> --prefix=/usr \
> --sysconfdir=/etc \
> --mandir=/usr/share/man \
> --enable-multithreaded \
> --enable-wordlist \
> --with-freetype2-library=/usr/lib \
> --with-freetype2-includes=/usr/include/freetype2 \
> --x-includes=/usr/include \
> -with-Xm-library=/usr/lib \
> --with-Xm-includes=/usr/include \
> make
> cd "${srcdir}/${pkgname}-${pkgver%_*}"
>
>
> make DESTDIR="${pkgdir}" install
>
> install -Dm644 ../desktop "${pkgdir}/usr/share/applications/xpdf.desktop"
> install -Dm644 xpdf/xpdfIcon.xpm "${pkgdir}/usr/share/pixmaps/xpdf.xpm"
>
> # stuff provided by poppler
> for tool in pdfdetach pdffonts pdfimages pdfinfo pdftoppm pdftops 
> pdftotext; do
> rm "${pkgdir}/usr/bin/${tool}" "${pkgdir}/usr/share/man/man1/${tool}.1"
> done
> }
>
>
> Forgot the install error
>
> configure: WARNING: unrecognized options: --enable-wordlist
> mkdir -p /home/lee/Downloads/xpdf/pkg/xpdf/usr/bin
> /usr/bin/install -c xpdf/xpdf 
> /home/lee/Downloads/xpdf/pkg/xpdf/usr/bin/xpdf
> /usr/bin/install: cannot stat ‘xpdf/xpdf’: No such file or directory
> Makefile:85: recipe for target 'install' failed
> make: *** [install] Error 1
> == ERROR: A failure occurred in package().
> Aborting...
>
>
> I can't reproduce. I will not move the content of build() inside 
> package(), it's against the guidelines and it is probably not the 
> source of this problem.
>
> xpdf 3.04-4  (2015-07-30 08:57)
> ( Unsupported package: Potentially dangerous ! )
> ==> ERROR: Running makepkg as root is not allowed as it can cause 
> permanent,
> catastrophic damage to your system.
> Unable to read PKGBUILD
>
> _______________________________________________
> manjaro-packages mailing list
> manjaro-packages at manjaro.org
> http://lists.manjaro.org/mailman/listinfo/manjaro-packages



More information about the manjaro-packages mailing list