pastebin - collaborative debugging tool
rovema.kpaste.net RSS


msnfs41client: Patches for Win11/WDK and building on NFS+misc, 2025-09-18
Posted by Anonymous on Thu 18th Sep 2025 15:34
raw | new post

  1. From 65b055f33567bc48cb9adeccfc5dadd8c9580245 Mon Sep 17 00:00:00 2001
  2. From: Roland Mainz <roland.mainz@nrubsig.org>
  3. Date: Thu, 18 Sep 2025 13:32:36 +0200
  4. Subject: [PATCH 1/2] cygwin: Workaround for Inf2Cat.exe unable to handle
  5.  temporary files on case-sensitive filesystems
  6.  
  7. Add workaround for WDK for Win10's
  8. "C:\Program Files (x86)\Windows Kits\10\bin\x86\Inf2Cat.exe" inability to
  9. handle temporary files on case-sensitive filesystems (e.g. traditional NFS,
  10. inf2cat.exe generates
  11. "L:\builds\bash_build1\tmpdir\WST\9dfc3e1a-e76a-41c8-bc53-5c8782355689\000",
  12. but then tries to open it again as
  13. "L:\builds\bash_build1\tmpdir\wst\9dfc3e1a-e76a-41c8-bc53-5c8782355689\000").
  14.  
  15. Reported-by: Aurelien Couderc <aurelien.couderc2002@gmail.com>
  16. Signed-off-by: Cedric Blancher <cedric.blancher@gmail.com>
  17. ---
  18. cygwin/Makefile.install | 13 +++++++++++--
  19.  1 file changed, 11 insertions(+), 2 deletions(-)
  20.  
  21. diff --git a/cygwin/Makefile.install b/cygwin/Makefile.install
  22. index ea3dc0f..7f27cbd 100644
  23. --- a/cygwin/Makefile.install
  24. +++ b/cygwin/Makefile.install
  25. @@ -72,9 +72,18 @@ installdest:
  26.         # workaround for coreutils 9.5-1 /bin/cp bug stuck in an endless loop with compressed files
  27.         chattr -V -c $(VS_BUILD_DIR)/nfs41_driver.*
  28.         cp $(VS_BUILD_DIR)/nfs41_driver.*       $(DESTDIR)/$(CYGWIN_BASEPATH)/lib/msnfs41client/.
  29. -       # Copy kernel driver INF file and generate signature catalog
  30. +       # Copy kernel driver INF file
  31.         cp $(PROJECT_BASEDIR_DIR)/nfs41rdr.inf  $(DESTDIR)/$(CYGWIN_BASEPATH)/lib/msnfs41client/.
  32. -       (cd "$(DESTDIR)/$(CYGWIN_BASEPATH)/lib/msnfs41client/" && '/cygdrive/c/Program Files (x86)/Windows Kits/10/bin/x86/Inf2Cat.exe' /driver:. /os:10_X86,10_X64,10_VB_ARM64)
  33. +       # generate signature catalog
  34. +       # (inf2cat.exe cannot handle case-sensitive filesystems like NFS for temporary files, so we reset TMP&co)
  35. +       ( \
  36. +               cd "$(DESTDIR)/$(CYGWIN_BASEPATH)/lib/msnfs41client/" && \
  37. +               if [[ "$$(/usr/lib/csih/getVolInfo . | awk '/FILE_CASE_SENSITIVE_SEARCH/ { print $$3 }')" == "TRUE" ]] ; then \
  38. +                       printf "# case-sensitive filesystem, resetting TMP TMPDIR TEMP to /tmp\n" ; \
  39. +                       export TMP=/tmp TMPDIR=/tmp TEMP=/tmp ; \
  40. +               fi && \
  41. +               '/cygdrive/c/Program Files (x86)/Windows Kits/10/bin/x86/Inf2Cat.exe' /driver:. /os:10_X86,10_X64,10_VB_ARM64 \
  42. +       )
  43.         cp $(PROJECT_BASEDIR_DIR)/etc_netconfig $(DESTDIR)/$(CYGWIN_BASEPATH)/lib/msnfs41client/.
  44.         cp $(PROJECT_BASEDIR_DIR)/ms-nfs41-idmap.conf           $(DESTDIR)/$(CYGWIN_BASEPATH)/lib/msnfs41client/.
  45.         cp $(CYGWIN_MAKEFILE_DIR)/devel/msnfs41client.bash      $(DESTDIR)/$(CYGWIN_BASEPATH)/lib/msnfs41client/msnfs41client
  46. --
  47. 2.51.0
  48.  
  49. From 4df7bdea61d36c0ff3c27c3039cf3f739ac346c4 Mon Sep 17 00:00:00 2001
  50. From: Roland Mainz <roland.mainz@nrubsig.org>
  51. Date: Thu, 18 Sep 2025 14:01:02 +0200
  52. Subject: [PATCH 2/2] cygwin: Fix make installdest, cannot find inf2cat.exe on
  53.  Win11
  54.  
  55. Fix make installdest, cannot find inf2cat.exe on Win11.
  56. WDK for Windows 11 uses a different path for inf2cat.exe than
  57. Windows 10. Instead of hardcoding a specific path let
  58. /usr/bin/find pick a suitable inf2cat.exe.
  59.  
  60. Reported-by: Lionel Cons <Lionelcons1972@gmail.com>
  61. Signed-off-by: Cedric Blancher <cedric.blancher@gmail.com>
  62. ---
  63. cygwin/Makefile.install | 4 +++-
  64.  1 file changed, 3 insertions(+), 1 deletion(-)
  65.  
  66. diff --git a/cygwin/Makefile.install b/cygwin/Makefile.install
  67. index 7f27cbd..337014e 100644
  68. --- a/cygwin/Makefile.install
  69. +++ b/cygwin/Makefile.install
  70. @@ -77,12 +77,14 @@ installdest:
  71.         # generate signature catalog
  72.         # (inf2cat.exe cannot handle case-sensitive filesystems like NFS for temporary files, so we reset TMP&co)
  73.         ( \
  74. +               inf2catbin="$$(find '/cygdrive/c/Program Files (x86)/Windows Kits/10/bin' -iname inf2cat.exe | head -n 1)" && \
  75.                 cd "$(DESTDIR)/$(CYGWIN_BASEPATH)/lib/msnfs41client/" && \
  76.                 if [[ "$$(/usr/lib/csih/getVolInfo . | awk '/FILE_CASE_SENSITIVE_SEARCH/ { print $$3 }')" == "TRUE" ]] ; then \
  77.                         printf "# case-sensitive filesystem, resetting TMP TMPDIR TEMP to /tmp\n" ; \
  78.                         export TMP=/tmp TMPDIR=/tmp TEMP=/tmp ; \
  79.                 fi && \
  80. -               '/cygdrive/c/Program Files (x86)/Windows Kits/10/bin/x86/Inf2Cat.exe' /driver:. /os:10_X86,10_X64,10_VB_ARM64 \
  81. +               set -o xtrace ; \
  82. +               "$$inf2catbin" /driver:. /os:10_X86,10_X64,10_VB_ARM64 \
  83.         )
  84.         cp $(PROJECT_BASEDIR_DIR)/etc_netconfig $(DESTDIR)/$(CYGWIN_BASEPATH)/lib/msnfs41client/.
  85.         cp $(PROJECT_BASEDIR_DIR)/ms-nfs41-idmap.conf           $(DESTDIR)/$(CYGWIN_BASEPATH)/lib/msnfs41client/.
  86. --
  87. 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