]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
Pull in patch that properly includes stdint.h
authorBenjamin Kaduk <kaduk@mit.edu>
Fri, 15 Dec 2017 03:03:57 +0000 (21:03 -0600)
committerBenjamin Kaduk <kaduk@mit.edu>
Fri, 15 Dec 2017 03:07:09 +0000 (21:07 -0600)
This should allow Ubuntu to return to syncing instead of having
their own additional patches.

Change-Id: I9e97fbb237d059433ba6193b67c22774602b3a77

debian/changelog
debian/patches/0007-vol-add-missing-include-of-stdint.h-to-volinodes.h.patch [new file with mode: 0644]
debian/patches/series

index 2b39891108a5201ab7b4e918348b9e84a40d4f5f..4b41d6780d192d247a2a6095d18b7095b24022eb 100644 (file)
@@ -2,6 +2,8 @@ openafs (1.6.22-3) UNRELEASED; urgency=medium
 
   * Pull in upstream patch to avoid OOPS on linux 4.14 kernels.
     (Closes: #884420)
+  * Pull in pending upstream patch to include stdint.h where needed.
+    This should allow Ubuntu to return to syncing openafs from Debian.
 
  -- Benjamin Kaduk <kaduk@mit.edu>  Thu, 14 Dec 2017 20:57:22 -0600
 
diff --git a/debian/patches/0007-vol-add-missing-include-of-stdint.h-to-volinodes.h.patch b/debian/patches/0007-vol-add-missing-include-of-stdint.h-to-volinodes.h.patch
new file mode 100644 (file)
index 0000000..727023e
--- /dev/null
@@ -0,0 +1,37 @@
+From: =?utf-8?q?Michael_La=C3=9F?= <lass@mail.uni-paderborn.de>
+Date: Tue, 12 Sep 2017 19:33:15 +0200
+Subject: vol: add missing include of stdint.h to volinodes.h
+
+volinodes.h requires stdint.h for use of uintptr_t:
+
+In file included from vutil.c:55:0:
+volinodes.h: In function 'init_inode_info':
+volinodes.h:109:45: error: 'uintptr_t' undeclared (first use in this function); did you mean 'intptr_t'?
+  stuff[i].inode = (Inode*)((char*)header + (uintptr_t)stuff[i].inode);
+                                             ^~~~~~~~~
+                                             intptr_t
+
+Similar changes have been applied earlier in 1e53da3.
+
+This change does not apply to master since e2b4fde added an include of roken.h
+to all affected source files which in turn includes stdint.h.
+
+Change-Id: Iddd174e844583e06f66d910052e11feff928ba40
+---
+ src/vol/volinodes.h | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/src/vol/volinodes.h b/src/vol/volinodes.h
+index 181b441..2dec0ce 100644
+--- a/src/vol/volinodes.h
++++ b/src/vol/volinodes.h
+@@ -18,6 +18,9 @@
+ #define __volinodes_h_
+ #include <stddef.h>
++#ifdef HAVE_STDINT_H
++# include <stdint.h>
++#endif
+ /* Used by vutil.c and salvager.c */
index ea9a5b735f0a97ce4707cce731c36642d5366afe..9c41230d1fd7fd281455cbe3ef683ba6e5fc72fe 100644 (file)
@@ -4,3 +4,4 @@ AFS_component_version_number.c-Respect-SOURCE_DATE_E.patch
 0004-Linux-Use-kernel_read-kernel_write-when-__vfs-varian.patch
 0005-afs-fix-kernel_write-kernel_read-arguments.patch
 0006-Fix-macro-used-to-check-kernel_read-argument-order.patch
+0007-vol-add-missing-include-of-stdint.h-to-volinodes.h.patch