/srv/irclogs.ubuntu.com/2017/12/15/#ubuntu-kernel.txt

=== himcesjf_ is now known as him-cesjf
=== sakrecoe1 is now known as sakrecoer
FourDollarsHow to generate Debian source package from Ubuntu linux-oem git tree?11:25
TJ-FourDollars: isn't it the usual "dpkg-buildpackage -S" ?11:30
FourDollars@TJ- No11:30
FourDollars@TJ- It looks like I need to execute some commands before `dpkg-buildpackage -S`.11:31
FourDollarsFor example, there is no debian/changelog so it will always fail.11:32
TJ-FourDollars: doesn't it have a ./debian-master/ directory?11:33
FourDollarsTJ-: There is a debian.oem folder.11:33
TJ-FourDollars: which tree are you working on? I don't have an -oem remote in my linux git repo11:34
FourDollarsTJ-: git://git.launchpad.net/~canonical-kernel/ubuntu/+source/linux-oem11:34
TJ-I do wish they'd keep the kernel trees all in one place!11:35
TJ-FourDollars: I see a debian-master/ and debian.oem/ and contents look similar so I'd guess the .oem is based on -master11:38
FourDollarsYes, and then?11:42
TJ-FourDollars: the debian/rules scripts can read debian.master/ (or $DEBIAN/ ) so I'd guess you need to do something like "fakeroot DEBIAN=debian.oem debian/rules <target>"11:47
FourDollarsTJ-: No, it doesn't work.11:52
TJ-FourDollars: possibly the environment variable needs to be before the faekroot, as in either "DEBIAN=debian.oem fakeroot debian/rules <target>" or "export DEBIAN=debian.oem; fakeroot debian/rules <target>"11:53
FourDollarsTJ-: `DEBIAN=debian.oem fakeroot debian/rules binary-oem` can start to build the kernel.11:56
FourDollarsTJ-: But what I was asking is to generate Debian source package so I can upload to PPA.11:57
* FourDollars AFK11:59
FourDollarsMy temporary solution is to execute `apt source linux-image-4.13.0-1010-oem` to download the Debian source package, apply the patch set and then generate the Debian source package. However it doesn't look like an efficient way.12:12
TJ-FourDollars: Hmmm, not done that in many years. I *think* it's "make-kpkg kernel_source" but not sure how that interacts with $DEBIAN / debian.master / debian.oem 12:14
apwFourDollars, you should be able to check that tree out, and as long as you clean it (fakeroot debian/rules clean) then it should contain everything you need to package it as a source package13:02
FourDollarsapw: I still encounter some error when `dpkg-buildpackage -S` after `fakeroot debian/rules clean`.16:08
FourDollarshttp://paste.ubuntu.com/26189304/16:09
FourDollarsThe complete output http://paste.ubuntu.com/26189309/16:10
klebersFourDollars, try running 'fakeroot debian/rules clean' before16:15
FourDollarsklebers: I do run `fakeroot debian/rules clean` before.16:16
FourDollarsklebers: apw: OK. I may know what happens.16:17
klebersFourDollars, sorry for my too quick suggestion, you already stated that you were running it before16:19
FourDollarsIt is because `apt source linux-image-4.13.0-1010-oem` and linux-oem git tree exist in the same folder.16:19
FourDollarsAfter I deleted everything from `apt source linux-image-4.13.0-1010-oem`, `dpkg-buildpackage -S` works fine under the linux-oem git tree.16:20
kleberscool!16:20
FourDollarsapw: klebers: Thanks a lot. :D16:21
klebers:-)16:21
keesapw: can you cherry-pick 3db4cafdfd057 into trusty's kernel? just a simple build fix I tripped over with weird configs21:33

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