Opened 12 years ago

Closed 12 years ago

#38683 closed defect (fixed)

pdfgrep +unac: package 'poppler-cpp' not found

Reported by: macports.org@… Owned by: raimue (Rainer Müller)
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: Cc:
Port: pdfgrep

Description

Installation of "pdfgrep" using variant "unac" failed:

# port install pdfgrep +unac
--->  Computing dependencies for pdfgrep
--->  Dependencies to be installed: unac
--->  Fetching archive for unac
--->  Attempting to fetch unac-1.8.0_0.darwin_12.x86_64.tbz2 from http://lil.fr.packages.macports.org/unac
--->  Attempting to fetch unac-1.8.0_0.darwin_12.x86_64.tbz2.rmd160 from http://lil.fr.packages.macports.org/unac
--->  Installing unac @1.8.0_0
--->  Activating unac @1.8.0_0
--->  Cleaning unac
--->  Fetching archive for pdfgrep
--->  Attempting to fetch pdfgrep-1.3.0_1+unac.darwin_12.x86_64.tbz2 from http://lil.fr.packages.macports.org/pdfgrep
--->  Attempting to fetch pdfgrep-1.3.0_1+unac.darwin_12.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/pdfgrep
--->  Attempting to fetch pdfgrep-1.3.0_1+unac.darwin_12.x86_64.tbz2 from http://packages.macports.org/pdfgrep
--->  Fetching distfiles for pdfgrep
--->  Attempting to fetch pdfgrep-1.3.0.tar.gz from http://freefr.dl.sourceforge.net/pdfgrep
--->  Verifying checksum(s) for pdfgrep
--->  Extracting pdfgrep
--->  Configuring pdfgrep
Error: org.macports.configure for port pdfgrep returned: configure failure: command execution failed
Please see the log file for port pdfgrep for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_pdfgrep/pdfgrep/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port pdfgrep failed

The log basically states that configure failed to find "poppler_cpp":


:notice:configure --->  Configuring pdfgrep
:debug:configure Using compiler 'Mac OS X clang'
:debug:configure Executing org.macports.configure (pdfgrep)
:debug:configure Environment: CPATH='/opt/local/include' CFLAGS='-pipe -O2 -arch x86_64' CPPFLAGS='-I/opt/local/include' CXXFLAGS='-pipe -O2 -arch x86_64' LIBRARY_PATH='/opt/local/lib' MACOSX_DEPLO
YMENT_TARGET='10.8' CXX='/usr/bin/clang++' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_pdfgrep/pdfgrep/work/.CC_PR
INT_OPTIONS' F90FLAGS='-pipe -O2 -m64' LDFLAGS='-L/opt/local/lib -arch x86_64' OBJC='/usr/bin/clang' FCFLAGS='-pipe -O2 -m64' INSTALL='/usr/bin/install -c' OBJCFLAGS='-pipe -O2 -arch x86_64' FFLAGS
='-pipe -O2 -m64' CC_PRINT_OPTIONS='YES' CC='/usr/bin/clang'
:debug:configure Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_pdfgrep/pdfgrep/work/pdfgrep-1.3.0" && ./configure -
-prefix=/opt/local --with-unac'
...
:info:configure checking for poppler_cpp... no
:info:configure configure: error: Package requirements (poppler-cpp) were not met:
:info:configure 
:info:configure No package 'poppler-cpp' found
:info:configure 
:info:configure Consider adjusting the PKG_CONFIG_PATH environment variable if you
:info:configure installed software in a non-standard prefix.
:info:configure 
:info:configure Alternatively, you may set the environment variables poppler_cpp_CFLAGS
:info:configure and poppler_cpp_LIBS to avoid the need to call pkg-config.
:info:configure See the pkg-config man page for more details.
:info:configure Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_pdfgrep/pdfgrep/work/pdfgrep-1.3.0" && ./configure --prefix=/opt/local --with-unac 
:info:configure Exit code: 1
:error:configure org.macports.configure for port pdfgrep returned: configure failure: command execution failed

I don't have program called "poppler-cpp". Do I have to install the port "poppler" or "poppler-data" first?

Change History (7)

comment:1 Changed 12 years ago by macports.org@…

I installed port "poppler" (which installed "poppler-data" as a dependency)

bash-3.2# port install poppler +quartz

Installation for "poppler" finished successfully.

Now port "pdfgrep" installs without problem:

bash-3.2# port install pdfgrep +unac
--->  Computing dependencies for pdfgrep
--->  Configuring pdfgrep
--->  Building pdfgrep
--->  Staging pdfgrep into destroot
--->  Installing pdfgrep @1.3.0_1+unac
--->  Activating pdfgrep @1.3.0_1+unac
--->  Cleaning pdfgrep
--->  Updating database of binaries: 100.0%
--->  Scanning binaries for linking errors: 100.0%
--->  No broken files found.

Obviously configure's Package requirements "poppler-cpp" are now satisfied (although no program "poppler-cpp" got installed).

Is "pdfgrep" missing a dependency here?

comment:2 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from macports-tickets@… to raimue@…
Port: pdfgrep added
Summary: port pdfgrep failed: package 'poppler-cpp' not foundpdfgrep: package 'poppler-cpp' not found

I don't know how it was possible for you to attempt to install pdfgrep without already having poppler installed, since pdfgrep clearly does declare a dependency on poppler already, and always has:

$ port deps pdfgrep
Full Name: pdfgrep @1.3.0_1
Build Dependencies:   pkgconfig
Library Dependencies: poppler

comment:3 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Perhaps you had poppler installed, but it was broken. What do you get for:

port -v installed poppler

comment:4 Changed 12 years ago by macports.org@…

# port -v installed poppler
The following ports are currently installed:
  poppler @0.22.2_0+quartz (active) platform='darwin 12' archs='x86_64'

comment:5 Changed 12 years ago by macports.org@…

The dependency to "poppler" is not enforced on my system. MacPorts does not refuse to uninstall poppler:

# port uninstall poppler
--->  Deactivating poppler @0.22.2_0+quartz
--->  Cleaning poppler
--->  Uninstalling poppler @0.22.2_0+quartz
--->  Cleaning poppler

Of course this breaks "pdfgrep":

$ pdfgrep
dyld: Library not loaded: /opt/local/lib/libpoppler-cpp.0.dylib
  Referenced from: /opt/local/bin/pdfgrep
  Reason: image not found
Trace/BPT trap: 5

comment:6 Changed 12 years ago by jmroot (Joshua Root)

Summary: pdfgrep: package 'poppler-cpp' not foundpdfgrep +unac: package 'poppler-cpp' not found

The unac variant overwrites the port:poppler dependency with port:unac. Presumably it should append instead.

comment:7 Changed 12 years ago by raimue (Rainer Müller)

Resolution: fixed
Status: newclosed

Thanks for the report. Fixed in r105031.

Note: See TracTickets for help on using tickets.