/srv/irclogs.ubuntu.com/2021/04/08/#ubuntu-kernel.txt

TimurTabiI 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.03:48
juergh@TimurTabi, The patches are now provided as a git bundle: crack.bundle in the top directory.08:28
=== cpaelzer__ is now known as cpaelzer
TimurTabiThanks.  I've never heard of a git bundle before, so I guess I need to figure that out.13:24
TimurTabiWas this change documented anywhere? I don't see any reference to bundles on https://wiki.ubuntu.com/Kernel/MainlineBuilds13:27
TimurTabi$ git pull crack.bundle master13:32
TimurTabifatal: couldn't find remote ref master13:32
TimurTabiShouldn't that work?13:32
klebersTimurTabi, you don't need to apply any additional patch anymore on top of the git tag mentioned on the page13:41
kleberse.g. from https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.12-rc6/13:41
klebersTo obtain the source from which they are built fetch the commit below:13:41
klebers  git://git.launchpad.net/~ubuntu-kernel-test/ubuntu/+source/linux/+git/mainline-crack cod/mainline/v5.12-rc613:41
klebersjust fetch that tag, it already contains all the additional patches applied13:42
TimurTabiWhat I'm trying to do is create an ubuntu_defconfig from *any* v5.12-rc6 kernel13:42
TimurTabinot just the one that Canonical used.13:42
TimurTabiI just need those 5 patch files that are apparently in crack.bundle13:43
klebersyou can likely do it with 'git format-path -1 <sha1>', then you can apply that patch anywhere you need13:43
klebersactually 'git format-patch ...'13:43
TimurTabiwhat <sha1> do I use?  13:43
TimurTabi$ git bundle unbundle crack.bundle13:44
TimurTabi7a4e5f292833e50d0c5575afac2a2d81a5d6b18a refs/tags/cod/mainline/v5.12-rc613:44
TimurTabiThat one?13:44
TimurTabiThat seemed to work, but I don't understand how.13:45
klebersthat 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 <latest Linus' mainline tag>'13:46
kleberse.g. 'git format-patch v5.12-rc6'13:46
TimurTabiHow do I know how many patches are in the bundle?13:46
TimurTabi"git format-patch v5.12-rc6" gave me 30 patches.  That's not what I want13:48
TimurTabiAh, maybe this:13:48
TimurTabi$ git format-patch v5.12-rc6..7a4e5f292833e50d0c5575afac2a2d81a5d6b18a13:48
TimurTabi0001-base-packaging.patch13:48
TimurTabi0002-UBUNTU-SAUCE-kbuild-add-fcf-protection-none-when-usi.patch13:48
TimurTabi0003-UBUNTU-SAUCE-add-vmlinux.strip-to-BOOT_TARGETS1-on-p.patch13:48
TimurTabi0004-UBUNTU-SAUCE-tools-hv-lsvmbus-add-manual-page.patch13:48
TimurTabi0005-debian-changelog.patch13:48
TimurTabi0006-configs-based-on-refs-remotes-unstable-master.patch13:48
TimurTabiDid the "git bundle unbundle" command create those commits, but in a detached state?13:49
klebersyeah, that looks like to be what you want13:49
klebersnot sure about the bundle, would need to take a look 13:50
TimurTabiI mean, that's what it looks like it does, but I'm still confused about how bundles work, so I'm not sure.13:51
kwilczynskiTimurTabi: Bundle just "packages" together reflog, more or less.15:30
kwilczynskiTimurTabi: 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
kwilczynskiTimurTabi: Not a lot of projects uses bundles, though.15:31
TimurTabiSo I don't really need to create patches if I unbundle the bundle, I can just merge that new SHA onto master?15:43
lunasoon Kernel freeze time16:13
juergh@TimurTabi, https://git-scm.com/book/en/v2/Git-Tools-Bundling18:20
juergh@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
juergh$ git bundle verify crack.bundle18:23
juerghThe bundle contains this ref:18:23
juergh7b90fe899b99570c6d6e76109df4446540ceccd2 refs/tags/cod/mainline/v5.718:23
juerghThe bundle requires this ref:18:23
juergh3d77e6a8804abcc0504c904bd6e5cdf3a5cf8162 18:23
juerghcrack.bundle is okay18:23
juerghSo you need to be in a repo that contains the required ref and then:18:24
juergh$ git fetch crack.bundle refs/tags/cod/mainline/v5.7:crack18:24
juerghFrom crack.bundle18:24
juergh * [new tag]                   cod/mainline/v5.7 -> crack18:24
TimurTabiThanks, I've got it working this way:18:39
TimurTabi        SHA=`git bundle unbundle ${PATCHDIR}/crack.bundle`18:39
TimurTabi        SHA=${SHA:0:40}18:39
TimurTabi        git format-patch v${KERNEL_VERSION}..${SHA} -o ${PATCHDIR}18:39
TimurTabiNot as elegant but compatible with the rest of my script.18:39

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!