pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

chromium: add patch for build failure on NetBSD 9.



Module Name:	pkgsrc-wip
Committed By:	Benny Siegert <bsiegert%gmail.com@localhost>
Pushed By:	bsiegert
Date:		Tue Jul 28 21:40:37 2020 +0200
Changeset:	61c3c70ed21c55772302c047852e26e372f2a8a2

Modified Files:
	chromium/distinfo
Added Files:
	chromium/patches/patch-base_files_file__path__watcher__kqueue.cc

Log Message:
chromium: add patch for build failure on NetBSD 9.

static_cast from a pointer to intptr_t is not allowed, so use
a reinterpret_cast.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=61c3c70ed21c55772302c047852e26e372f2a8a2

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 chromium/distinfo                                         |  1 +
 .../patch-base_files_file__path__watcher__kqueue.cc       | 15 +++++++++++++++
 2 files changed, 16 insertions(+)

diffs:
diff --git a/chromium/distinfo b/chromium/distinfo
index 2e13217bb0..b2f4dffcf1 100644
--- a/chromium/distinfo
+++ b/chromium/distinfo
@@ -22,6 +22,7 @@ SHA1 (patch-base_debug_proc_maps_linux.cc) = 31057e8b098c9d068c44cc4c5b83b06d4e1
 SHA1 (patch-base_debug_stack__trace__posix.cc) = a880bba4fdfde36d917dedf4fe20aa2763bdb534
 SHA1 (patch-base_debug_stack__trace__unittest.cc) = f6b33c365995bfa00d491a5d0affc9d7f5e57483
 SHA1 (patch-base_files_file__path__unittest.cc) = 4060b1ec9760a858083d8aac067a98b6e4876ec0
+SHA1 (patch-base_files_file__path__watcher__kqueue.cc) = b424986a59340756042a6af3b2a71af954e63528
 SHA1 (patch-base_files_file__path__watcher__stub.cc) = d7a9939097db676d128c437c39b1cc1635326c34
 SHA1 (patch-base_files_file__path__watcher__unittest.cc) = 7865cd40e1360e88a6ca882a8d1ad9a09fdf86de
 SHA1 (patch-base_files_file__util.h) = a5ee1f16c0688a4a9bd92d39712eaa6de0e5bfdc
diff --git a/chromium/patches/patch-base_files_file__path__watcher__kqueue.cc b/chromium/patches/patch-base_files_file__path__watcher__kqueue.cc
new file mode 100644
index 0000000000..51668170f1
--- /dev/null
+++ b/chromium/patches/patch-base_files_file__path__watcher__kqueue.cc
@@ -0,0 +1,15 @@
+$NetBSD$
+
+static cast from a pointer to intptr_t is not allowed.
+
+--- base/files/file_path_watcher_kqueue.cc.orig	2020-07-24 02:37:41.000000000 +0000
++++ base/files/file_path_watcher_kqueue.cc
+@@ -74,7 +74,7 @@ int FilePathWatcherKQueue::EventsForPath
+     struct kevent event;
+     EV_SET(&event, fd, EVFILT_VNODE, (EV_ADD | EV_CLEAR | EV_RECEIPT),
+            (NOTE_DELETE | NOTE_WRITE | NOTE_ATTRIB |
+-            NOTE_RENAME | NOTE_REVOKE | NOTE_EXTEND), 0, data);
++            NOTE_RENAME | NOTE_REVOKE | NOTE_EXTEND), 0, reinterpret_cast<intptr_t>(data));
+     events->push_back(event);
+   }
+   return last_existing_entry;


Home | Main Index | Thread Index | Old Index