{"action":"created","issue":{"url":"https://api.github.com/repos/rasa/vmware-tools-patches/issues/35","labels_url":"https://api.github.com/repos/rasa/vmware-tools-patches/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/rasa/vmware-tools-patches/issues/35/comments","events_url":"https://api.github.com/repos/rasa/vmware-tools-patches/issues/35/events","html_url":"https://github.com/rasa/vmware-tools-patches/issues/35","id":62398127,"number":35,"title":"Patches not applying properly.","user":{"login":"qgrosperrin","id":456143,"avatar_url":"https://avatars.githubusercontent.com/u/456143?v=3","gravatar_id":"","url":"https://api.github.com/users/qgrosperrin","html_url":"https://github.com/qgrosperrin","followers_url":"https://api.github.com/users/qgrosperrin/followers","following_url":"https://api.github.com/users/qgrosperrin/following{/other_user}","gists_url":"https://api.github.com/users/qgrosperrin/gists{/gist_id}","starred_url":"https://api.github.com/users/qgrosperrin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qgrosperrin/subscriptions","organizations_url":"https://api.github.com/users/qgrosperrin/orgs","repos_url":"https://api.github.com/users/qgrosperrin/repos","events_url":"https://api.github.com/users/qgrosperrin/events{/privacy}","received_events_url":"https://api.github.com/users/qgrosperrin/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-17T13:32:30Z","updated_at":"2015-03-17T15:26:42Z","closed_at":"2015-03-17T15:26:42Z","body":"```\r\n# uname -r\r\n3.18.0-kali1-amd64\r\n```\r\n\r\nI am getting errors while trying to patch and compile VMware tools for my kernel (the shared folders feature specifically). The patches are not applying correctly so obviously it ends up not compiling properly..\r\n\r\nAny help appreciated ! Thanks.\r\n \r\n```\r\nuntar.sh: Patching ./VMwareTools-9.6.2-1688356.tar.gz\r\n=== Patching ./VMwareTools-9.6.2-1688356.tar.gz ...\r\n\r\n*** Applying vmblock/01-vmblock.3.10.patch ...\r\npatching file linux/control.c\r\n*** Applying vmblock/02-vmblock.3.11.patch ...\r\npatching file linux/file.c\r\n*** Applying vmblock/03-vmblock.3.12.patch ...\r\npatching file linux/control.c\r\npatching file linux/dentry.c\r\npatching file linux/inode.c\r\npatch unexpectedly ends in middle of line\r\nHunk #3 succeeded at 221 with fuzz 1.\r\n*** Applying vmblock/04-vmblock-vfs_readlink-kernel-3.15-tools-9.6.2.patch ...\r\npatching file linux/inode.c\r\nHunk #1 succeeded at 177 (offset -1 lines).\r\n*** Applying vsock/01-vsock-sk_data_ready-kernel-3.15-tools-9.6.2.patch ...\r\npatching file linux/notify.c\r\npatching file linux/notifyQState.c\r\n*** Applying vmhgfs/01-compat_dcache.h.patch ...\r\npatching file shared/compat_dcache.h\r\n*** Skipping vmhgfs/02-patch_inode.c.patch: did not apply cleanly\r\n*** Applying vmhgfs/03-vmhgfs-3.15-vfs_readlink.patch ...\r\npatching file link.c\r\n*** Skipping vmhgfs/04-vmhgfs-d_alias-kernel-3.18.1-tools-9.9.0.patch: did not apply cleanly\r\n*** Skipping vmhgfs/05-vmhgfs-d_count-kernel-3.11-tools-9.6.0.patch: did not apply cleanly\r\n*** Skipping vmhgfs/06-vmhgfs-d_set_type-kernel-3.18.1-tools-9.6.1.patch: did not apply cleanly\r\n*** Applying vmhgfs/07-vmhgfs-rename_deprecated-kernel-3.18.1-tools-9.6.1.patch ...\r\npatching file shared/vm_assert.h\r\n*** Applying vmhgfs/08-vmhgfs-smp_mb_before_clear_bit-3.18-tools-9.9.0.patch ...\r\npatching file page.c\r\nHunk #1 succeeded at 1450 (offset -228 lines).\r\n*** Skipping vmhgfs/09-vmhgfs-uid-gid-kernel-3.12-tools-9.6.1.patch: did not apply cleanly\r\n*** Applying vmhgfs/10-vmhgfs-vfs_readlink-kernel-3.16-tools-9.6.2.patch ...\r\npatching file file.c\r\npatching file link.c\r\npatching file shared/compat_fs.h\r\n*** Applying vmhgfs/11-vmhgfs-wait_on_bit-kernel-3.17-tools-9.6.2.patch ...\r\npatching file page.c\r\n*** Skipping vmhgfs/12-vmware9.compat_mm.patch: did not apply cleanly\r\n*** Skipping vmhgfs/13-vmhgfs-f_dentry-kernel-3.19-tools-9.9.2.patch: did not apply cleanly\r\n*** Applying vmci/01-vmware9.k3.8rc4.patch ...\r\npatching file linux/driver.c\r\nReversed (or previously applied) patch detected!  Assuming -R.\r\nHunk #1 succeeded at 128 with fuzz 1 (offset 4 lines).\r\nHunk #2 succeeded at 1747 (offset -3 lines).\r\nHunk #3 succeeded at 1975 (offset -3 lines).\r\n```\r\n\r\nSample error logs stored in vmware-tools-distrib/lib/modules/source/vmhgfs-only\r\n```\r\n==> 01-compat_dcache.h.patch.patch.err <==\r\npatching file shared/compat_dcache.h\r\n\r\n==> 02-patch_inode.c.patch.patch.err <==\r\npatching file inode.c\r\nHunk #1 FAILED at 1798.\r\nHunk #2 FAILED at 1818.\r\n2 out of 2 hunks FAILED -- saving rejects to file inode.c.rej\r\n\r\n==> 03-vmhgfs-3.15-vfs_readlink.patch.patch.err <==\r\npatching file link.c\r\n\r\n==> 04-vmhgfs-d_alias-kernel-3.18.1-tools-9.9.0.patch.patch.err <==\r\npatching file inode.c\r\nHunk #1 FAILED at 1922.\r\nHunk #2 FAILED at 1975.\r\n2 out of 2 hunks FAILED -- saving rejects to file inode.c.rej\r\npatching file Makefile.kernel\r\nHunk #1 FAILED at 35.\r\n1 out of 1 hunk FAILED -- saving rejects to file Makefile.kernel.rej\r\npatching file shared/autoconf/d_alias.c\r\n\r\n==> 05-vmhgfs-d_count-kernel-3.11-tools-9.6.0.patch.patch.err <==\r\npatching file inode.c\r\nHunk #1 succeeded at 31 with fuzz 1.\r\nHunk #2 FAILED at 1893.\r\nHunk #3 FAILED at 1946.\r\n2 out of 3 hunks FAILED -- saving rejects to file inode.c.rej\r\n\r\n==> 06-vmhgfs-d_set_type-kernel-3.18.1-tools-9.6.1.patch.patch.err <==\r\npatching file filesystem.c\r\npatch: **** malformed patch at line 9:  \r\n\r\n\r\n==> 07-vmhgfs-rename_deprecated-kernel-3.18.1-tools-9.6.1.patch.patch.err <==\r\npatching file shared/vm_assert.h\r\n\r\n==> 08-vmhgfs-smp_mb_before_clear_bit-3.18-tools-9.9.0.patch.patch.err <==\r\npatching file page.c\r\nHunk #1 succeeded at 1450 (offset -228 lines).\r\n\r\n==> 09-vmhgfs-uid-gid-kernel-3.12-tools-9.6.1.patch.patch.err <==\r\npatching file file.c\r\npatching file filesystem.c\r\nHunk #1 FAILED at 231.\r\n1 out of 1 hunk FAILED -- saving rejects to file filesystem.c.rej\r\npatching file fsutil.c\r\nHunk #2 FAILED at 678.\r\nHunk #3 succeeded at 2227 with fuzz 1 (offset 566 lines).\r\nHunk #4 succeeded at 2235 (offset 566 lines).\r\n1 out of 4 hunks FAILED -- saving rejects to file fsutil.c.rej\r\npatching file inode.c\r\nHunk #1 FAILED at 517.\r\nHunk #2 FAILED at 620.\r\nHunk #3 succeeded at 1226 (offset 7 lines).\r\n2 out of 3 hunks FAILED -- saving rejects to file inode.c.rej\r\npatching file shared/compat_cred.h\r\n\r\n==> 10-vmhgfs-vfs_readlink-kernel-3.16-tools-9.6.2.patch.patch.err <==\r\npatching file file.c\r\npatching file link.c\r\npatching file shared/compat_fs.h\r\n\r\n==> 11-vmhgfs-wait_on_bit-kernel-3.17-tools-9.6.2.patch.patch.err <==\r\npatching file page.c\r\n\r\n==> 12-vmware9.compat_mm.patch.patch.err <==\r\npatching file shared/compat_mm.h\r\nHunk #1 FAILED at 91.\r\nHunk #2 FAILED at 100.\r\n2 out of 2 hunks FAILED -- saving rejects to file shared/compat_mm.h.rej\r\n\r\n==> 13-vmhgfs-f_dentry-kernel-3.19-tools-9.9.2.patch.patch.err <==\r\npatching file dir.c\r\npatching file file.c\r\nHunk #2 succeeded at 363 (offset -22 lines).\r\nHunk #3 FAILED at 524.\r\nHunk #4 succeeded at 668 (offset 62 lines).\r\nHunk #5 succeeded at 683 (offset 62 lines).\r\nHunk #6 succeeded at 746 (offset 62 lines).\r\nHunk #7 FAILED at 773.\r\nHunk #8 FAILED at 884.\r\nHunk #9 FAILED at 972.\r\nHunk #10 FAILED at 1023.\r\nHunk #11 FAILED at 1072.\r\nHunk #12 succeeded at 1114 (offset -50 lines).\r\nHunk #13 succeeded at 1128 (offset -50 lines).\r\nHunk #14 succeeded at 1186 (offset -50 lines).\r\nHunk #15 FAILED at 1282.\r\nHunk #16 FAILED at 1330.\r\nHunk #17 succeeded at 1407 (offset -57 lines).\r\nHunk #18 FAILED at 1518.\r\n9 out of 18 hunks FAILED -- saving rejects to file file.c.rej\r\npatching file fsutil.c\r\nHunk #2 succeeded at 1940 (offset -98 lines).\r\npatching file shared/compat_dentry.h\r\n```"},"comment":{"url":"https://api.github.com/repos/rasa/vmware-tools-patches/issues/comments/82412219","html_url":"https://github.com/rasa/vmware-tools-patches/issues/35#issuecomment-82412219","issue_url":"https://api.github.com/repos/rasa/vmware-tools-patches/issues/35","id":82412219,"user":{"login":"rasa","id":220772,"avatar_url":"https://avatars.githubusercontent.com/u/220772?v=3","gravatar_id":"","url":"https://api.github.com/users/rasa","html_url":"https://github.com/rasa","followers_url":"https://api.github.com/users/rasa/followers","following_url":"https://api.github.com/users/rasa/following{/other_user}","gists_url":"https://api.github.com/users/rasa/gists{/gist_id}","starred_url":"https://api.github.com/users/rasa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rasa/subscriptions","organizations_url":"https://api.github.com/users/rasa/orgs","repos_url":"https://api.github.com/users/rasa/repos","events_url":"https://api.github.com/users/rasa/events{/privacy}","received_events_url":"https://api.github.com/users/rasa/received_events","type":"User","site_admin":false},"created_at":"2015-03-17T15:26:42Z","updated_at":"2015-03-17T15:26:42Z","body":"Not every patch will apply cleanly. In fact, most *won't* apply cleanly, as they are all to be applied to a specific version of VMware Tools. I'll update the README to make that clear.\r\n\r\nThe important thing is did VMware Tools *compile* cleanly."}}