Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions 3rdParty/vcpkg_ports/ports/libmount/hide-private-symbols.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
diff --git a/include/strutils.h b/include/strutils.h
index e9f8a0c..2f6d285 100644
--- a/include/strutils.h
+++ b/include/strutils.h
Comment on lines +3 to +4
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.
@@ -16,6 +16,10 @@

#include "c.h"

+// private, and clashing with libsystemd.
+#define parse_size ul__parse_size
+#define parse_range ul__parse_range
+
/* initialize a custom exit code for all *_or_err functions */
extern void strutils_set_exitcode(int exit_code);

57 changes: 57 additions & 0 deletions 3rdParty/vcpkg_ports/ports/libmount/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
string(REGEX MATCH "^([0-9]+\\.[0-9]+)" VERSION_SHORT "${VERSION}")

vcpkg_download_distfile(ARCHIVE
URLS "https://mirrors.edge.kernel.org/pub/linux/utils/util-linux/v${VERSION_SHORT}/util-linux-${VERSION}.tar.xz"
FILENAME "util-linux-${VERSION}.tar.xz"
SHA512 3d299f0e05a4c982a04dbcbaaeff1222152feedf51c56c5dbdeb75999c68269d652a994f5cdf4c1ee42bb7b28475dd0792192c299fd9bc3b45198c5b153dad00
)

vcpkg_extract_source_archive(
SOURCE_PATH
ARCHIVE "${ARCHIVE}"
SOURCE_BASE ${VERSION}
PATCHES
hide-private-symbols.diff
)

set(ENV{GTKDOCIZE} true)

vcpkg_list(SET options)
if("nls" IN_LIST FEATURES)
vcpkg_list(APPEND options "--enable-nls")
else()
set(ENV{AUTOPOINT} true) # true, the program
vcpkg_list(APPEND options "--disable-nls")
endif()
if(VCPKG_TARGET_ARCHITECTURE STREQUAL "arm")
vcpkg_list(APPEND options "--disable-year2038")
endif()

vcpkg_configure_make(
AUTOCONFIG
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
${options}
--disable-asciidoc
--disable-all-programs
--disable-dependency-tracking
--enable-libmount
--enable-libblkid
"--mandir=${CURRENT_PACKAGES_DIR}/share/man"
)

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.
file(REMOVE_RECURSE
"${CURRENT_PACKAGES_DIR}/debug/bin"
"${CURRENT_PACKAGES_DIR}/debug/sbin"
"${CURRENT_PACKAGES_DIR}/debug/share"
"${CURRENT_PACKAGES_DIR}/bin"
"${CURRENT_PACKAGES_DIR}/sbin"
"${CURRENT_PACKAGES_DIR}/share"
"${CURRENT_PACKAGES_DIR}/tools"
)

vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/README.licensing" "${SOURCE_PATH}/COPYING")
23 changes: 23 additions & 0 deletions 3rdParty/vcpkg_ports/ports/libmount/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"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.
"homepage": "https://git.kernel.org/pub/scm/utils/util-linux/util-linux.git/about/",
"license": null,
"supports": "linux",
"features": {
"nls": {
"description": "Enable native language support",
"dependencies": [
{
"name": "gettext",
"host": true,
"features": [
"tools"
]
},
"gettext-libintl"
]
}
}
}