[03:48] I have a question about https://kernel.ubuntu.com/~kernel-ppa/mainline/. Starting with the 5.7 kernel, the build patch files (e.g. 0001-base-packaging.patch) are no longer included. Why is that? I need those files in order to build an upstream kernel and they're just missing with no explanation. [08:28] @TimurTabi, The patches are now provided as a git bundle: crack.bundle in the top directory. === cpaelzer__ is now known as cpaelzer [13:24] Thanks. I've never heard of a git bundle before, so I guess I need to figure that out. [13:27] Was this change documented anywhere? I don't see any reference to bundles on https://wiki.ubuntu.com/Kernel/MainlineBuilds [13:32] $ git pull crack.bundle master [13:32] fatal: couldn't find remote ref master [13:32] Shouldn't that work? [13:41] TimurTabi, you don't need to apply any additional patch anymore on top of the git tag mentioned on the page [13:41] e.g. from https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.12-rc6/ [13:41] To obtain the source from which they are built fetch the commit below: [13:41] git://git.launchpad.net/~ubuntu-kernel-test/ubuntu/+source/linux/+git/mainline-crack cod/mainline/v5.12-rc6 [13:42] just fetch that tag, it already contains all the additional patches applied [13:42] What I'm trying to do is create an ubuntu_defconfig from *any* v5.12-rc6 kernel [13:42] not just the one that Canonical used. [13:43] I just need those 5 patch files that are apparently in crack.bundle [13:43] you can likely do it with 'git format-path -1 ', then you can apply that patch anywhere you need [13:43] actually 'git format-patch ...' [13:43] what do I use? [13:44] $ git bundle unbundle crack.bundle [13:44] 7a4e5f292833e50d0c5575afac2a2d81a5d6b18a refs/tags/cod/mainline/v5.12-rc6 [13:44] That one? [13:45] That seemed to work, but I don't understand how. [13:46] that command will generate only one patch, if you need the last N patches you can do something like 'git format-patch -N' or 'git format-patch ' [13:46] e.g. 'git format-patch v5.12-rc6' [13:46] How do I know how many patches are in the bundle? [13:48] "git format-patch v5.12-rc6" gave me 30 patches. That's not what I want [13:48] Ah, maybe this: [13:48] $ git format-patch v5.12-rc6..7a4e5f292833e50d0c5575afac2a2d81a5d6b18a [13:48] 0001-base-packaging.patch [13:48] 0002-UBUNTU-SAUCE-kbuild-add-fcf-protection-none-when-usi.patch [13:48] 0003-UBUNTU-SAUCE-add-vmlinux.strip-to-BOOT_TARGETS1-on-p.patch [13:48] 0004-UBUNTU-SAUCE-tools-hv-lsvmbus-add-manual-page.patch [13:48] 0005-debian-changelog.patch [13:48] 0006-configs-based-on-refs-remotes-unstable-master.patch [13:49] Did the "git bundle unbundle" command create those commits, but in a detached state? [13:49] yeah, that looks like to be what you want [13:50] not sure about the bundle, would need to take a look [13:51] I mean, that's what it looks like it does, but I'm still confused about how bundles work, so I'm not sure. [15:30] TimurTabi: Bundle just "packages" together reflog, more or less. [15:31] TimurTabi: You can think of it as a snapshot of Git repository at a given point in time. You can unbundle the bundle, you can check it out, or check something from it out, etc. [15:31] TimurTabi: Not a lot of projects uses bundles, though. [15:43] So I don't really need to create patches if I unbundle the bundle, I can just merge that new SHA onto master? [16:13] soon Kernel freeze time [18:20] @TimurTabi, https://git-scm.com/book/en/v2/Git-Tools-Bundling [18:23] @TimurTabi, git bundle verify will tell you the refs that it contains and required (which for the 5.7 bundle is the v5.7 tag) [18:23] $ git bundle verify crack.bundle [18:23] The bundle contains this ref: [18:23] 7b90fe899b99570c6d6e76109df4446540ceccd2 refs/tags/cod/mainline/v5.7 [18:23] The bundle requires this ref: [18:23] 3d77e6a8804abcc0504c904bd6e5cdf3a5cf8162 [18:23] crack.bundle is okay [18:24] So you need to be in a repo that contains the required ref and then: [18:24] $ git fetch crack.bundle refs/tags/cod/mainline/v5.7:crack [18:24] From crack.bundle [18:24] * [new tag] cod/mainline/v5.7 -> crack [18:39] Thanks, I've got it working this way: [18:39] SHA=`git bundle unbundle ${PATCHDIR}/crack.bundle` [18:39] SHA=${SHA:0:40} [18:39] git format-patch v${KERNEL_VERSION}..${SHA} -o ${PATCHDIR} [18:39] Not as elegant but compatible with the rest of my script.