[libbdplus-devel] [Git][videolan/libbdplus][master] 2 commits: Try pkg-config when gpg-error-config / libgcrypt-config not available

Petri Hintukainen (@hpi) gitlab at videolan.org
Sun May 3 12:50:34 UTC 2026



Petri Hintukainen pushed to branch master at VideoLAN / libbdplus


Commits:
1f48dedf by anonymous at 2026-05-03T15:48:42+03:00
Try pkg-config when gpg-error-config / libgcrypt-config not available

- - - - -
a05a91dc by anonymous at 2026-05-03T15:49:23+03:00
Silence unused parameter warning

- - - - -


2 changed files:

- configure.ac
- src/examples/bdplus_test.c


Changes:

=====================================
configure.ac
=====================================
@@ -122,7 +122,8 @@ fi
 
 AC_PATH_PROG(LIBGCRYPT_CONFIG, libgcrypt-config, no)
 if test x"$LIBGCRYPT_CONFIG" = xno; then
-  AC_MSG_ERROR([libgcrypt not found on system])
+  PKG_CHECK_MODULES([LIBGCRYPT], [libgcrypt >= 1.1.94],
+    [], [AC_MSG_ERROR([libgcrypt not found on system])])
 else
   LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
   LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
@@ -145,7 +146,8 @@ fi
 
 AC_PATH_PROG(GPG_ERROR_CONFIG, gpg-error-config, no)
 if test x"$GPG_ERROR_CONFIG" = xno; then
-  AC_MSG_ERROR([gpg-error not found on system])
+  PKG_CHECK_MODULES([GPG_ERROR], [gpg-error >= 0.5],
+    [], [AC_MSG_ERROR([gpg-error not found on system])])
 else
   GPG_ERROR_CFLAGS=`$GPG_ERROR_CONFIG --cflags`
   GPG_ERROR_LIBS=`$GPG_ERROR_CONFIG --libs`


=====================================
src/examples/bdplus_test.c
=====================================
@@ -55,6 +55,7 @@ static uint8_t _hex_byte(char c)
 static void _libaacs_get_vid(uint8_t *vid, uint8_t *mk, const char *root)
 {
 #ifndef HAVE_LIBAACS
+    (void)vid; (void)mk; (void)root;
     fprintf(stderr, "libaacs support not enabled. Please provide VID in command line.\n");
     exit(1);
 #else



View it on GitLab: https://code.videolan.org/videolan/libbdplus/-/compare/a2cd1736c6e098f3ab9d9127e8f8dc3d1d613130...a05a91dca4bc468e74ebb779e8ff1650ac2ba556

-- 
View it on GitLab: https://code.videolan.org/videolan/libbdplus/-/compare/a2cd1736c6e098f3ab9d9127e8f8dc3d1d613130...a05a91dca4bc468e74ebb779e8ff1650ac2ba556
You're receiving this email because of your account on code.videolan.org.




More information about the libbdplus-devel mailing list