[systemd-bugs] [Bug 54817] New: autoconf fails if gcrypt isn't installed on the system

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Sep 12 07:28:35 PDT 2012


https://bugs.freedesktop.org/show_bug.cgi?id=54817

             Bug #: 54817
           Summary: autoconf fails if gcrypt isn't installed on the system
    Classification: Unclassified
           Product: systemd
           Version: unspecified
          Platform: All
        OS/Version: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: general
        AssignedTo: systemd-bugs at lists.freedesktop.org
        ReportedBy: jonathan.maw at gmail.com
         QAContact: systemd-bugs at lists.freedesktop.org


Created attachment 67052
  --> https://bugs.freedesktop.org/attachment.cgi?id=67052
Superficial fix to autoconf failing if libgcrypt isn't installed

gcrypt is an optional dependency, but the configure.ac script uses the macro
AM_PATH_LIBGCRYPT which is not defined if gcrypt isn't installed on the system.
As a result, when attempting to build from source with ./autogen.sh in a system
that does not have gcrypt installed, it fails with:
  configure.ac:328: error: possibly undefined macro: AM_PATH_LIBGCRYPT

To reproduce:
 * Download systemd source code
 * Ensure the system does not have gcrypt installed
 * run autogen.sh

Expected results:
  Tells user to run ./configure with a long string of command-line parameters

Actual results:
  configure.ac:328: error: possibly undefined macro: AM_PATH_LIBGCRYPT
  autoreconf: /usr/bin/autoconf failed with exit status: 1

Additional information:
If I put the AM_PATH_LIBGCRYPT macro expansion inside an m4_ifdef, I can make
it build successfully on a system with gcrypt installed, and one without gcrypt
installed. I have attached a git diff of an example of those changes.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the systemd-bugs mailing list