Skip to content

build: strip trailing spaces from libcurl.pc - #22536

Closed
vszakats wants to merge 8 commits into
curl:masterfrom
vszakats:pc-trailing-space
Closed

vszakats wants to merge 8 commits into
curl:masterfrom
vszakats:pc-trailing-space

Conversation

@vszakats

@vszakats vszakats commented Aug 10, 2026

Copy link
Copy Markdown
Member

Fixing:

$ pccritic libcurl.pc
[...]
  [info    ] file has trailing whitespace on one or more lines (style/PC062)

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Strips trailing spaces from generated libcurl.pc files.

Changes:

  • Adds Autotools post-generation cleanup.
  • Adds equivalent CMake cleanup.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
configure.ac Strips trailing spaces after generation.
CMakeLists.txt Normalizes generated pkg-config content.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread configure.ac Outdated

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

Comment thread configure.ac Outdated

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

@vszakats vszakats changed the title libcurl.pc: strip trailing spaces build: strip trailing spaces from libcurl.pc Aug 11, 2026
@vszakats vszakats closed this in 6c7993d Aug 11, 2026
@vszakats
vszakats deleted the pc-trailing-space branch August 11, 2026 08:26
vszakats added a commit that referenced this pull request Aug 12, 2026
…pccritic` tool

`pccritic` is available on the latest macOS runner revision (not every
job runs get it yet), Cygwin, MSYS2/mingw-w64 (one job, others will
follow on the next msys2/setup-msys2 Action bump). It will be
automatically used on BSDs, once they start offering it. Missing from
Linux jobs.

Also:
- GHA/windows: convert `libcurl.pc` to Unix newlines to bump score
  96 to 100 in mingw-w64 jobs.
  CMake-specific fix pending in: #22556
- GHA: verify with minimum `pccritic` score 94 to 100 (depending on CI
  job).
- build: fill `Maintainer:` `libcurl.pc` property when run curl CI.

Issues remaining:

macOS:
```
[info    ] Cflags adds an include path already on the default search path (pkgconf strips it): -I/usr/local/include (cflags/PC031)
[info    ] Libs adds a library path already on the default search path (pkgconf strips it): -L/usr/local/lib (libs/PC040)
[minor   ] Libs.private contains an unexpected flag: /Applications/Xcode_26.6.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/GSS.framework (libs/PC041)
```

Windows:
```
[minor   ] file uses CRLF line endings (style/PC061)
```

Ref: #22556
Follow-up to b9254da #22548
Follow-up to 852f5d3 #22553
Follow-up to 4d9ba9f #22545
Follow-up to 6c7993d #22536
Follow-up to 3f1c033 #22519

Closes #22543
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants