Skip to content

Conversation

@AenBleidd
Copy link
Member

@AenBleidd AenBleidd commented Jan 9, 2026

Summary by cubic

Adds a Linux-only vcpkg port for util-linux 2.41.3 to build libmount and libblkid. This lets us consume these libraries via vcpkg.

  • New Features
    • Adds a custom port that builds only libmount/libblkid, disables programs/docs, and supports optional NLS (via gettext); disables year2038 on ARM.
    • Applies hide-private-symbols.diff to rename parse_size/parse_range to ul__parse_size/ul__parse_range to avoid clashes with libsystemd.
    • Cleans installed package (removes bin/sbin/share/tools) and includes licensing; vcpkg.json restricts support to Linux.

Written for commit 0f9a751. Summary will update on new commits.

Signed-off-by: Vitalii Koshura <[email protected]>
Copilot AI review requested due to automatic review settings January 9, 2026 06:45
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds vcpkg port configuration files for the libmount library version 2.41.3 from the util-linux package. The changes introduce build scripts to download, patch, configure, and install libmount and libblkid libraries on Linux systems.

  • Adds vcpkg.json manifest defining the libmount port with version 2.41.3, Linux support, and optional NLS (native language support) feature
  • Creates portfile.cmake with build instructions using autotools to configure and install the library
  • Includes a patch to prevent symbol clashes with libsystemd by renaming private functions

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
3rdParty/vcpkg_ports/ports/libmount/vcpkg.json Defines the package metadata, version, platform support, and optional features for libmount
3rdParty/vcpkg_ports/ports/libmount/portfile.cmake Implements the build process: downloads source from kernel.org, applies patches, configures with autotools, and installs the libraries
3rdParty/vcpkg_ports/ports/libmount/hide-private-symbols.diff Patches util-linux to rename parse_size and parse_range functions to avoid conflicts with libsystemd

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

{
"name": "libmount",
"version": "2.41.3",
"description": "Block device identification library from util-linux",
Copy link

Copilot AI Jan 9, 2026

Choose a reason for hiding this comment

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

The description "Block device identification library from util-linux" is incorrect. This describes libblkid, not libmount. Libmount is a library for parsing /etc/fstab, /etc/mtab and /proc/self/mountinfo files, and for manipulating mount tables. The description should be updated to accurately reflect libmount's functionality, such as "Library to handle mount table parsing and manipulation".

Suggested change
"description": "Block device identification library from util-linux",
"description": "Library to handle mount table parsing and manipulation",

Copilot uses AI. Check for mistakes.
Comment on lines +3 to +4
--- a/include/strutils.h
+++ b/include/strutils.h
Copy link

Copilot AI Jan 9, 2026

Choose a reason for hiding this comment

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

The patch file has an incorrectly formatted line. Line 0 should be line 4 in the unified diff format. The correct format should show line 3 as '--- a/include/strutils.h' and line 4 as '+++ b/include/strutils.h'. The line marked as '0' disrupts the standard unified diff format and may cause patch application to fail.

Copilot uses AI. Check for mistakes.
vcpkg_install_make()
vcpkg_fixup_pkgconfig()


Copy link

Copilot AI Jan 9, 2026

Choose a reason for hiding this comment

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

There is an extra blank line here that should be removed. While not functionally significant, it's inconsistent with the formatting style used in similar port files in this repository.

Suggested change

Copilot uses AI. Check for mistakes.
@AenBleidd AenBleidd closed this Jan 9, 2026
@AenBleidd AenBleidd deleted the vko_test_updated_libmount branch January 9, 2026 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants