/srv/irclogs.ubuntu.com/2015/10/07/#launchpad.txt

=== Ursinha_ is now known as Ursinha
dobeyhow does one copy packages from ubuntu archive into a ppa, on launchpad web site? or does one need to use some cli tool?16:27
sidiHitting an issue with a slightly weird package which I suspect might be LP specific. I need one of my packages to have a file in /usr/local/bin/ (can explain why if necessary). I'm currently adding the file to my *install files, overriding dh_usrlocal so it doesn't complain, and dh_gencontrol is failing my package because I have files in /usr/local (build log: https://launchpadlibrarian.net/220540588/buildlog_ubuntu-trusty-i386.libpreload-logger_0.23_BUI17:08
sidiLDING.txt.gz). Works fine on my machine with debuild so not sure why LP refuses it (other than files in /usr/local being very very bad)17:08
sidihm, silly IRC client... https://launchpadlibrarian.net/220540588/buildlog_ubuntu-trusty-i386.libpreload-logger_0.23_BUILDING.txt.gz17:08
dobeywhy do you need that in /usr/local/bin?17:10
sididobey, i'm using a library for data collection on ubuntu systems (part of a scientific study), that library is incompatible with internals of Chrome's NativeClient and seccomp2 sandboxes (for a lot of reasons, some of which we haven't figured out yet). I'm adding a /usr/local/bin/chromium-browser script that turns the library off and then calls the real chromium17:12
sidiwe can provide support to study participants if that doesn't work for them, but I need to start that study before the end of the week or I'm losing some of my funding, so I don't have time to do things the proper way17:12
sidiand running my own chromium-browser package means lots more admin work since it's a package that is often updated, with the risk that participants update their packages before I get to update my own PPA package, go back to the real chromium and end up with a browser that doesn't work any more17:13
dobeyi don't know why launchpad builder gives you an error if sbuild works fine locally (you did build with sbuild locally, right?), as i don't know enough about the builder configuration to answer17:17
sidiit does work locally with "debuild"17:17
sidicjwatson, i'm curious if you know the way out of that one... ^ (TLDR: need a file installed in /usr/local but LP specifically refuses to build packages with files in there)17:22
cjwatsondobey: it's not discoverable, but you can do it from https://launchpad.net/ubuntu/+archive/primary/+copy-packages20:55
cjwatsonsidi: NO_PKG_MANGLE=1 dh_builddeb, although that will have some other effects like suppressing changelog stripping and png optimisation20:57
cjwatsonsidi: you would be able to reproduce it locally if pkgbinarymangler were in your chroot20:57
cjwatsonsidi: there's another approach though, you could install /usr/bin/chromium-browser and use dpkg-divert in your maintainer scripts to divert the real one aside - a little harder to get right but not by very much, and more reliable in the face of things like different PATH ordering20:58
sidicjwatson, i am totally positive that i didnt understand your last suggestion21:05
cjwatsonsidi: https://www.debian.org/doc/debian-policy/ap-pkg-diversions.html21:06
cjwatsonI appreciate you're in a rush, just it may be worth knowing of better approaches21:06
sidiok, that sounds like the proper way to do things, i'm actually pleased there is a mechanism for it21:08
sidibut let me try the "easy" way first, though21:08
sidicjwatson, are you saying I should change my rules to override the dh_builddeb step and make sure NO_PKG_MANGLE is set to 1, or I should locally build packages this way and then upload binary packages?21:10
cjwatsonsidi: Launchpad will never accept binary package uploads21:12
cjwatsonsidi: so I mean the former21:12
sidiAlright, let me try that21:13
dobeyyou could just "export NO_PKG_MANGLE=1" in debian/rules i guess, no?21:17
cjwatsonyou could, but I wouldn't.21:18
cjwatsonbetter to be narrow.21:19
cjwatsonthat variable does things to other stages as well.21:19
cjwatson(notably dh_strip / debugging symbols)21:20
dobeyoh21:33
sidii'm sometimes genuinely amazed by the amount of knowledge you have of debian packaging...21:35
sidiI must've done something stupid, but https://launchpadlibrarian.net/220563791/buildlog_ubuntu-trusty-amd64.libpreload-logger_0.25_BUILDING.txt.gz is what I get with NO_PKG_MANGLE=121:37
sidi"dpkg-deb: error: failed to open package info file `debian/libpreload-logger1/DEBIAN/control' for reading: No such file or directory"21:37
sidiDo I need to manually move my control files in my install step?21:40
cjwatsonsidi: wuh what21:52
cjwatsonsidi: I'll look in a bit, you have a disastrously broken rules file somehow21:52
cjwatsondh_builddeb being called waaaaaay too early21:52
cjwatsonsidi: override_dh_builddeb not override dh_builddeb21:54
cjwatsonunderscore not space21:54
cjwatsonif you ever find yourself having to muck about in .../DEBIAN/ directly during a build then you have done something wrong :-)21:56
sidioh god did I do that again?21:58
sidicjwatson, i sincerely apologise, i'm not exactly sober at this time of day21:58
sidicjwatson, seems it's working properly22:15
sidithank you for being up this late :-)22:16
cjwatsonsidi: cool cool23:39

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