pastebin - collaborative debugging tool
rovema.kpaste.net RSS


0001-cygwin-Fix-inf2cat.exe-related-build-failure-on-case.patch
Posted by Anonymous on Tue 30th Sep 2025 19:27
raw | new post

  1. From 1c351a822c3b3d49005c3b220825cd56d38399ef Mon Sep 17 00:00:00 2001
  2. From: Roland Mainz <roland.mainz@nrubsig.org>
  3. Date: Mon, 29 Sep 2025 18:44:58 +0200
  4. Subject: [PATCH] cygwin: Fix inf2cat.exe-related build failure on
  5.  case-sensitive filesystems
  6.  
  7. Fix (another) inf2cat.exe-related build failure on case-sensitive
  8. filesystems. It seems that inf2cat makes paths all-lowercase, which causes
  9. issues if the path contains an uppercase string like "ARM64".
  10.  
  11. Signed-off-by: Cedric Blancher <cedric.blancher@gmail.com>
  12. ---
  13.  cygwin/Makefile.install         | 22 +++++++++++-----------
  14.  cygwin/devel/msnfs41client.bash |  6 +++---
  15.  2 files changed, 14 insertions(+), 14 deletions(-)
  16.  
  17. diff --git a/cygwin/Makefile.install b/cygwin/Makefile.install
  18. index 4124928..137f6c8 100644
  19. --- a/cygwin/Makefile.install
  20. +++ b/cygwin/Makefile.install
  21. @@ -31,7 +31,7 @@ installdest:
  22.         mkdir -p $(DESTDIR)/lib/msnfs41client
  23.         mkdir -p $(DESTDIR)/lib/msnfs41client/i686
  24.         if [[ "$(VS_BUILD_DIR_X64)" != '' ]] ; then mkdir -p $(DESTDIR)/lib/msnfs41client/x64 ; fi
  25. -       if [[ "$(VS_BUILD_DIR_ARM64)" != '' ]] ; then mkdir -p $(DESTDIR)/lib/msnfs41client/ARM64 ; fi
  26. +       if [[ "$(VS_BUILD_DIR_ARM64)" != '' ]] ; then mkdir -p $(DESTDIR)/lib/msnfs41client/arm64 ; fi
  27.         mkdir -p $(DESTDIR)/etc
  28.         mkdir -p $(DESTDIR)/usr/src/msnfs41client
  29.         mkdir -p $(DESTDIR)/usr/share/man/man1
  30. @@ -80,17 +80,17 @@ installdest:
  31.                 if [[ -f "$(VS_BUILD_DIR_ARM64)/nfs41_driver.sys" ]] ; then \
  32.                         # workaround for coreutils 9.5-1 /bin/cp bug stuck in an endless loop with compressed files \
  33.                         chattr -V -c $(VS_BUILD_DIR_ARM64)/nfs41_driver.* ; \
  34. -                       cp $(VS_BUILD_DIR_ARM64)/nfs41_driver.* $(DESTDIR)/lib/msnfs41client/ARM64/. ; \
  35. -                       cp $(VS_BUILD_DIR_ARM64)/nfsd.*         $(DESTDIR)/lib/msnfs41client/ARM64/. ; \
  36. -                       cp $(VS_BUILD_DIR_ARM64)/libtirpc.*     $(DESTDIR)/lib/msnfs41client/ARM64/. ; \
  37. -                       cp $(VS_BUILD_DIR_ARM64)/nfs_install.*  $(DESTDIR)/lib/msnfs41client/ARM64/. ; \
  38. +                       cp $(VS_BUILD_DIR_ARM64)/nfs41_driver.* $(DESTDIR)/lib/msnfs41client/arm64/. ; \
  39. +                       cp $(VS_BUILD_DIR_ARM64)/nfsd.*         $(DESTDIR)/lib/msnfs41client/arm64/. ; \
  40. +                       cp $(VS_BUILD_DIR_ARM64)/libtirpc.*     $(DESTDIR)/lib/msnfs41client/arm64/. ; \
  41. +                       cp $(VS_BUILD_DIR_ARM64)/nfs_install.*  $(DESTDIR)/lib/msnfs41client/arm64/. ; \
  42.                 fi ; \
  43. -               cp $(VS_BUILD_DIR_ARM64)/nfs_mount.*    $(DESTDIR)/lib/msnfs41client/ARM64/. ; \
  44. -               cp $(VS_BUILD_DIR_ARM64)/nfs41_np.*     $(DESTDIR)/lib/msnfs41client/ARM64/. ; \
  45. +               cp $(VS_BUILD_DIR_ARM64)/nfs_mount.*    $(DESTDIR)/lib/msnfs41client/arm64/. ; \
  46. +               cp $(VS_BUILD_DIR_ARM64)/nfs41_np.*     $(DESTDIR)/lib/msnfs41client/arm64/. ; \
  47.         fi
  48.         # Copy kernel driver INF file and generate signature catalog
  49.         # (inf2cat.exe cannot handle case-sensitive filesystems like NFS for temporary files, so we reset TMP&co)
  50. -       for infdir in "i686" "x64" "ARM64" ; do \
  51. +       for infdir in "i686" "x64" "arm64" ; do \
  52.                 [[ -f "$(DESTDIR)/lib/msnfs41client/$${infdir}/nfs41_driver.sys" ]] || continue ; \
  53.                 ( \
  54.                         cp "$(PROJECT_BASEDIR_DIR)/nfs41rdr.inf" "$(DESTDIR)/lib/msnfs41client/$${infdir}/." && \
  55. @@ -190,8 +190,8 @@ installdest:
  56.         if [[ "$(VS_BUILD_DIR_ARM64)" != '' ]] ; then \
  57.                 cp \
  58.                         "$$(find "$${vsbasepath}/Community" -ipath '*/arm64/*/VCRUNTIME140D.dll' | sort -n -r | head -n 1)" \
  59. -                       "$(DESTDIR)/lib/msnfs41client/ARM64/." ; \
  60. -               cp '/cygdrive/c/Program Files (x86)/Windows Kits/10/bin/arm64/ucrt/ucrtbased.dll' "$(DESTDIR)/lib/msnfs41client/ARM64/." ; \
  61. +                       "$(DESTDIR)/lib/msnfs41client/arm64/." ; \
  62. +               cp '/cygdrive/c/Program Files (x86)/Windows Kits/10/bin/arm64/ucrt/ucrtbased.dll' "$(DESTDIR)/lib/msnfs41client/arm64/." ; \
  63.         fi
  64.         @ printf "# Set file flags\n"
  65.         (cd $(DESTDIR)/bin/ && chmod a+rx *.exe)
  66. @@ -201,7 +201,7 @@ installdest:
  67.                 (cd $(DESTDIR)/lib/msnfs41client/x64 && chmod a+rx *.exe *.dll) ; \
  68.         fi
  69.         if [[ "$(VS_BUILD_DIR_ARM64)" != '' ]] ; then \
  70. -               (cd $(DESTDIR)/lib/msnfs41client/ARM64 && chmod a+rx *.exe *.dll) ; \
  71. +               (cd $(DESTDIR)/lib/msnfs41client/arm64 && chmod a+rx *.exe *.dll) ; \
  72.         fi
  73.         @printf "\n#\n# TEST sbin dir is %s\n#\n" "$(DESTDIR)/sbin/"
  74.         @printf '\n'
  75. diff --git a/cygwin/devel/msnfs41client.bash b/cygwin/devel/msnfs41client.bash
  76. index 704b306..2fbf2cd 100755
  77. --- a/cygwin/devel/msnfs41client.bash
  78. +++ b/cygwin/devel/msnfs41client.bash
  79. @@ -177,7 +177,7 @@ function nfsclient_install
  80.         case "${uname_m}" in
  81.                 'x86_64')
  82.                         if [[ "${uname_s}" == *-ARM64 ]] ; then
  83. -                               kernel_platform='ARM64'
  84. +                               kernel_platform='arm64'
  85.                         else
  86.                                 kernel_platform='x64'
  87.                         fi
  88. @@ -228,7 +228,7 @@ function nfsclient_install
  89.                         ln -f "${platform_dir}/ksh93.x86_64.exe" "../../bin/ksh93.exe"
  90.                         ln -f "${platform_dir}/shcomp.x86_64.exe" "../../bin/shcomp.exe"
  91.                         ;;
  92. -               'ARM64')
  93. +               'arm64')
  94.                         if [[ -f "${platform_dir}/ksh93.arm64.exe" ]] ; then
  95.                                 ln -f "${platform_dir}/ksh93.arm64.exe" "../../bin/ksh93.exe"
  96.                                 ln -f "${platform_dir}/shcomp.arm64.exe" "../../bin/shcomp.exe"
  97. @@ -265,7 +265,7 @@ function nfsclient_install
  98.                         'x64')
  99.                                 ln -f "../../${i}.x86_64.exe" "../../${i}.exe"
  100.                                 ;;
  101. -                       'ARM64')
  102. +                       'arm64')
  103.                                 if [[ -f "../../${i}.arm64.exe" ]] ; then
  104.                                         ln -f "../../${i}.arm64.exe" "../../${i}.exe"
  105.                                 else
  106. --
  107. 2.51.0

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with {%HIGHLIGHT}




All content is user-submitted.
The administrators of this site (kpaste.net) are not responsible for their content.
Abuse reports should be emailed to us at