All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug 94811] New: Backport kernel integration fails
@ 2015-03-12 17:42 bugzilla-daemon
  2015-03-12 20:06 ` [Bug 94811] " bugzilla-daemon
  2015-03-12 20:07 ` bugzilla-daemon
  0 siblings, 2 replies; 3+ messages in thread
From: bugzilla-daemon @ 2015-03-12 17:42 UTC (permalink / raw)
  To: backports

https://bugzilla.kernel.org/show_bug.cgi?id=94811

            Bug ID: 94811
           Summary: Backport kernel integration fails
           Product: Backports project
           Version: unspecified
    Kernel Version: linux-next-20150306
          Hardware: All
                OS: Linux
              Tree: Mainline
            Status: NEW
          Severity: normal
          Priority: P1
         Component: Backports
          Assignee: backports@vger.kernel.org
          Reporter: mikem388@gmail.com
        Regression: No

I installed the latest the latest coccinelle and the backport seems to
beworking until I hit this failure.

I am trying to backport to the linux-3.4.y branch. This is the first time I
have used this tool so I have probably done something wrong, but I am stuck.

Thanks for any help.

Mike


spatch version 1.0.0-rc24 with Python support and with PCRE support

mike@mikes-laptop:~/gentree$ ./gentree.py --integrate --clean --gitdebug
--git-revision v3.19 ~/devel/integrate/linux-next/
~/devel/integrate/linux-stable/
Get original source files from git ...
Applying patches from patches to
/home/mike/devel/integrate/linux-stable/backports/ ...
Failed to apply changes from
collateral-evolutions/network/0027-genl-const/nl80211.patch
> patching file net/wireless/nl80211.c
> Hunk #2 FAILED at 58.
> Hunk #3 succeeded at 9937 (offset -220 lines).
> Hunk #4 succeeded at 10006 (offset -220 lines).
> Hunk #5 succeeded at 10035 (offset -220 lines).
> 1 out of 5 hunks FAILED -- saving rejects to file net/wireless/nl80211.c.rej
Traceback (most recent call last):
  File "./gentree.py", line 1091, in <module>
    ret = _main()
  File "./gentree.py", line 724, in _main
    logwrite=logwrite)
  File "./gentree.py", line 906, in process
    apply_patches(args, "backport", source_dir, 'patches', bpid.target_dir,
logwrite)
  File "./gentree.py", line 552, in apply_patches
    raise Exception('Patch failed')
Exception: Patch failed


mike@mikes-laptop:~/devel/integrate/linux-stable/backports$ cat
net/wireless/nl80211.c.rej
--- net/wireless/nl80211.c
+++ net/wireless/nl80211.c
@@ -58,7 +58,7 @@
        NL80211_MCGRP_TESTMODE /* keep last - ifdef! */
 };

-static const struct genl_multicast_group nl80211_mcgrps[] = {
+static __genl_const struct genl_multicast_group nl80211_mcgrps[] = {
        [NL80211_MCGRP_CONFIG] = { .name = NL80211_MULTICAST_GROUP_CONFIG },
        [NL80211_MCGRP_SCAN] = { .name = NL80211_MULTICAST_GROUP_SCAN },
        [NL80211_MCGRP_REGULATORY] = { .name = NL80211_MULTICAST_GROUP_REG },
mike@mikes-laptop:~/devel/integrate/linux-stable/backports$

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug 94811] Backport kernel integration fails
  2015-03-12 17:42 [Bug 94811] New: Backport kernel integration fails bugzilla-daemon
@ 2015-03-12 20:06 ` bugzilla-daemon
  2015-03-12 20:07 ` bugzilla-daemon
  1 sibling, 0 replies; 3+ messages in thread
From: bugzilla-daemon @ 2015-03-12 20:06 UTC (permalink / raw)
  To: backports

https://bugzilla.kernel.org/show_bug.cgi?id=94811

--- Comment #1 from Mike McElroy <mikem388@gmail.com> ---
My mistake. I didn't have the backports tree set to the right tag. Now I have
the backports tree and the linux-next tree set to the same tag. All the patches
get applied but it still fails on the main Makefile. 

ike@mikes-laptop:~/backports$ ./gentree.py --integrate --clean --gitdebug
~/devel/integrate/linux-next/ ~/devel/integrate/linux-stable/
Copy original source files ...
Applying patches from patches to
/home/mike/devel/integrate/linux-stable/backports/ ...
Modify Kconfig tree ...
Rewrite Makefiles and Kconfig files ...
Applying patches from integration-patches/ to
/home/mike/devel/integrate/linux-stable/ ...
Failed to apply changes from
001-enable-backports/0001-enable-backports-built-in.patch
> patching file Makefile
> Hunk #1 succeeded at 506 (offset -36 lines).
> Hunk #2 succeeded at 715 (offset -106 lines).
> Hunk #3 FAILED at 841.
> 1 out of 3 hunks FAILED -- saving rejects to file Makefile.rej
Traceback (most recent call last):
  File "./gentree.py", line 1091, in <module>
    ret = _main()
  File "./gentree.py", line 724, in _main
    logwrite=logwrite)
  File "./gentree.py", line 1078, in process
    bpid.project_dir, logwrite)
  File "./gentree.py", line 552, in apply_patches
    raise Exception('Patch failed')
Exception: Patch failed

On the backports tree:
detached from backports-20150129

integration-patches/0001-enable-backports
0001-enable-backports-built-in.patch
@@ -837,7 +841,7 @@ libs-y              := $(libs-y1) $(libs-y2)

 # Externally visible symbols (used by link-vmlinux.sh)
 export KBUILD_VMLINUX_INIT := $(head-y) $(init-y)
-export KBUILD_VMLINUX_MAIN := $(core-y) $(libs-y) $(drivers-y) $(net-y)
+export KBUILD_VMLINUX_MAIN := $(core-y) $(libs-y) $(drivers-y) $(net-y)
$(backports-y)
 export KBUILD_LDS          := arch/$(SRCARCH)/kernel/vmlinux.lds
 export LDFLAGS_vmlinux
 # used by scripts/pacmage/Makefile

This doesn't exist in the linux-3.4.t Makefile.

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug 94811] Backport kernel integration fails
  2015-03-12 17:42 [Bug 94811] New: Backport kernel integration fails bugzilla-daemon
  2015-03-12 20:06 ` [Bug 94811] " bugzilla-daemon
@ 2015-03-12 20:07 ` bugzilla-daemon
  1 sibling, 0 replies; 3+ messages in thread
From: bugzilla-daemon @ 2015-03-12 20:07 UTC (permalink / raw)
  To: backports

https://bugzilla.kernel.org/show_bug.cgi?id=94811

--- Comment #2 from Mike McElroy <mikem388@gmail.com> ---
That's 3.4.y

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-03-12 20:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-12 17:42 [Bug 94811] New: Backport kernel integration fails bugzilla-daemon
2015-03-12 20:06 ` [Bug 94811] " bugzilla-daemon
2015-03-12 20:07 ` bugzilla-daemon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.