logo

live-bootstrap

Mirror of <https://github.com/fosslinux/live-bootstrap>

pkg-config.patch (3446B)


  1. SPDX-FileCopyrightText: 2021 fosslinux <fosslinux@aussies.space>
  2. SPDX-License-Identifier: GPL-2.0-or-later
  3. We don't have pkg-config, hence:
  4. a) disable gtk-doc (uses pkg-config exclusively)
  5. b) disable pkg-config type checks
  6. --- util-linux-2.19.1/configure.ac 2021-06-12 11:23:41.719074631 +1000
  7. +++ util-linux-2.19.1/configure.ac 2021-06-12 11:26:17.748153926 +1000
  8. @@ -84,9 +84,6 @@
  9. dnl libtool-2
  10. LT_INIT
  11. -PKG_PROG_PKG_CONFIG
  12. -
  13. -GTK_DOC_CHECK([1.10])
  14. AC_PATH_PROG([XSLTPROC], [xsltproc])
  15. linux_os=no
  16. @@ -360,17 +360,8 @@
  17. have_uuid=yes
  18. if test "x$enable_libuuid" = xno; then
  19. - # Check for external (e2fsprogs) libuuid
  20. - PKG_CHECK_MODULES(UUID, uuid, [have_uuid=yes], [have_uuid=no])
  21. - if test "x$have_uuid" = xno; then
  22. - # system without pkg-config or so, try classic check
  23. - AC_CHECK_LIB(uuid, uuid_is_null, [have_uuid=yes], [have_uuid=no])
  24. - fi
  25. - if test "x$have_uuid" = xyes; then
  26. - UTIL_SET_FLAGS($UUID_CFLAGS, $UUID_CFLAGS, $UUID_LIBS)
  27. - AC_CHECK_HEADERS([uuid.h uuid/uuid.h], [break], [])
  28. - UTIL_RESTORE_FLAGS
  29. - fi
  30. + # system without pkg-config or so, try classic check
  31. + AC_CHECK_LIB(uuid, uuid_is_null, [have_uuid=yes], [have_uuid=no])
  32. else
  33. # internal library
  34. AC_DEFINE(HAVE_UUID_H, 1, [Define to 1 if you have the <uuid.h> header file.])
  35. @@ -408,21 +408,8 @@
  36. if test "x$enable_libblkid" = xno; then
  37. if test "x$build_mount" = xyes || test "x$enable_fsck" = xyes; then
  38. - # Check for external (e2fsprogs) libblkid
  39. - PKG_CHECK_MODULES(BLKID, blkid, [have_blkid=yes], [have_blkid=no])
  40. - if test "x$have_blkid" = xno; then
  41. - # system without pkg-config or so, try classic check
  42. - AC_CHECK_LIB(blkid, blkid_get_cache, [have_blkid=yes], [have_blkid=no])
  43. - fi
  44. - if test "x$have_blkid" = xyes; then
  45. - UTIL_SET_FLAGS($BLKID_CFLAGS, $BLKID_CFLAGS, $BLKID_LIBS)
  46. - AC_CHECK_HEADERS([blkid.h blkid/blkid.h], [break], [])
  47. - UTIL_RESTORE_FLAGS
  48. - fi
  49. - if test -n "$enable_static_programs"; then
  50. - # TODO check only when mount of fsck are requested
  51. - UTIL_PKG_STATIC([BLKID_LIBS_STATIC], [blkid])
  52. - fi
  53. + # system without pkg-config or so, try classic check
  54. + AC_CHECK_LIB(blkid, blkid_get_cache, [have_blkid=yes], [have_blkid=no])
  55. fi
  56. else
  57. # internal library
  58. @@ -1251,8 +1251,6 @@
  59. schedutils/Makefile
  60. shlibs/blkid/blkid.pc
  61. shlibs/blkid/Makefile
  62. -shlibs/blkid/docs/Makefile
  63. -shlibs/blkid/docs/version.xml
  64. shlibs/blkid/src/Makefile
  65. shlibs/blkid/src/blkid.h
  66. shlibs/blkid/src/superblocks/Makefile
  67. @@ -1263,8 +1261,6 @@
  68. shlibs/mount/Makefile
  69. shlibs/mount/src/Makefile
  70. shlibs/mount/src/libmount.h
  71. -shlibs/mount/docs/Makefile
  72. -shlibs/mount/docs/version.xml
  73. shlibs/mount/samples/Makefile
  74. shlibs/uuid/uuid.pc
  75. shlibs/uuid/Makefile
  76. --- util-linux-2.19.1/shlibs/mount/Makefile.am.bak 2021-06-12 11:32:07.578612839 +1000
  77. +++ util-linux-2.19.1/shlibs/mount/Makefile.am 2021-06-12 11:32:20.247701887 +1000
  78. @@ -2,11 +2,6 @@
  79. SUBDIRS = src samples
  80. -if ENABLE_GTK_DOC
  81. -SUBDIRS += docs
  82. -endif
  83. -
  84. -# pkg-config stuff
  85. pkgconfigdir = $(usrlib_execdir)/pkgconfig
  86. pkgconfig_DATA = mount.pc
  87. --- util-linux-2.19.1/shlibs/blkid/Makefile.am.bak 2021-06-12 11:32:03.546584499 +1000
  88. +++ util-linux-2.19.1/shlibs/blkid/Makefile.am 2021-06-12 11:32:10.790635416 +1000
  89. @@ -2,10 +2,6 @@
  90. SUBDIRS = src samples
  91. -if ENABLE_GTK_DOC
  92. -SUBDIRS += docs
  93. -endif
  94. -
  95. # pkg-config stuff
  96. pkgconfigdir = $(usrlib_execdir)/pkgconfig
  97. pkgconfig_DATA = blkid.pc