Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
P
pkg-config
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 56
    • Issues 56
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 7
    • Merge Requests 7
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • pkg-config
  • pkg-config
  • Issues
  • #62

Closed
Open
Opened Jan 11, 2021 by Alexander Shpilkin@alexshpilkin

pkg.m4 breaks if 'version' is defined as a macro

If the user defines an m4 macro called version, pkg.m4 outputs a broken configure script due to underquoting in PKG_PROG_PKG_CONFIG:

$ cat >configure.ac <<EOF
> AC_INIT([Test], [0.1.0])
> m4_define([version], [DEFINITION-OF-VERSION])
> PKG_PROG_PKG_CONFIG
> AC_OUTPUT
> EOF
$ autoreconf -fi
$ ./configure
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least DEFINITION-OF-VERSION 0.9.0... pkgconf: unknown option -- atleast-pkgconfig-DEFINITION-OF-VERSION
no
configure: creating ./config.status

(This example was run on a system that uses pkgconf and not pkg-config, but pkg.m4 is shared between the two.)

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: pkg-config/pkg-config#62