Bug 103368 - script generated by pkg.m4 does not work when pkg-config is in a directory with spaces
Summary: script generated by pkg.m4 does not work when pkg-config is in a directory wi...
Status: RESOLVED MOVED
Alias: None
Product: pkg-config
Classification: Unclassified
Component: src (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: pkg-config
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-20 07:41 UTC by Jefferson Carpenter
Modified: 2018-08-25 12:55 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
patch (2.59 KB, application/mbox)
2017-10-20 07:41 UTC, Jefferson Carpenter
Details

Description Jefferson Carpenter 2017-10-20 07:41:09 UTC
Created attachment 134933 [details]
patch

When pkg-config is located in a directory with spaces, the script generated by pkg.m4 crashes whenever it tries to run the program.

For instance, when pkg-config is located in 

    C:\Program Files\Mono\bin\pkg-config.exe

I get the following messages from the configure script in cygwin:

   ./configure: line 2645: /cygdrive/c/Program: No such file or directory

I haven't tested, but this problem would also occur on Linux, should pkg-config ever be in a directory with spaces.

A patch is attached that should fix the problem with pkg-config.  I have not looked for other commands in pkg.m4 that may have the same issue.
Comment 1 GitLab Migration User 2018-08-25 12:55:47 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/pkg-config/pkg-config/issues/35.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.