/srv/irclogs.ubuntu.com/2015/01/28/#ubuntu-autopilot.txt

thomihi barry, have you got a moment?20:29
barrythomi: hi!  sure20:29
thomiI'm trying to package the current version of selenium from pypi into a debian package, and it's a real mess20:29
thomidebian/watch doesn't seem to work (but looks cvorrect to me), patches in d/patches don't apply to new version, and new version contains binary .so files, that I'm not sure what to do with20:30
thomiummmmm20:30
thomilet's start with that last one :D20:30
barryyuck20:30
thomiI guess it's a 'Bad Idea' to put .so files in a source package?20:31
barryoh, very much so20:31
barryalso policy violating :)20:31
thomi:(20:31
barrycan they not be built from source?20:31
barry(or maybe they can, but the build process is hidden upstream?)20:32
thomithere's certainly no way to build them in the .tar.gz that you download from pypi20:33
barrythat's not exactly free software then is it?20:33
thomiwell, the problem is that the tarball on pypi doesn't match their actual source code20:34
barryew20:35
barrythomi: you might have to build the orig.tar.gz from $vcs branch20:35
thomihmm, ok, I'll take a look20:35
thomithere's some debian server that allows you to download a tarball of a tag from google code, right?20:36
barrynot that i know of20:36
thomioh :(20:36
barrythere are various ways to write a d/rules get-orig-source to checkout a tag.  it depends on what upstream is using for vcs20:37
thomioh no: "Selenium uses a custom build system called crazyfun"20:37
* thomi bangs head on desk20:37
thomioh! it gets better!20:37
barryi still don't get it.  .so are platform dependent, so how can they possibly include them in their tar.gz?20:37
thomi"...we are in the process of replacing this with buck"20:38
thomibarry: they include a .so for every platform20:38
thomiand every arch20:38
barry*every* :)20:38
thomiwell20:38
thomix86 and amd6420:38
thomiall the good ones :D20:39
* barry packs up his sparc machine20:39
barryand arm20:39
thomiarm? no one uses arm :P20:39
barryobscure platform20:40
thomibarry: so the upstream vcs includes bindings for all sorts of languages, including ones we don't support (C#)20:42
thomiwhat do I do to those files? Keep them in the source package, or strip them somehow?20:42
barryi'd probably keep them in the source package, but just ignore them for purposes of debian binary builds20:43
thomiok20:43
thomibarry: what's the best way to aproach this? It sounds like you'd make an empty folder with just a debian/ directory in it... what tools would you use to build it from there? I've never managed to get that working very well20:51
barrythomi: are you going to try to get this into debian after the freeze?20:52
thomibarry: hmm.. probably not20:52
thomiIi mean, I know I should20:53
thomibut I don't have the patience TBH20:53
thomibut *someone* should :D20:53
barrylooks like python-selenium has a debian maintainer.  best to contact them about that20:54
barryah, it's even in sid/non-free, and way behind upstream20:54
barryand behind in ubuntu20:54
thomibarry: Sascha Girrulat ?20:54
barryyeah20:55
thomiwhy is it in nonfree?20:55
barrythomi: no idea, but if it's got those .so's in it back then, that would probably explain it20:55
thomihmmm20:55
barrythomi: so i'd probably start with `bzr branch ubuntu:python-selenium` and work from that branch.  maybe.  could be a lot of trouble if you need tons of modifications.  yeah, i guess this isn't going to be much fun20:57
barrythomi: if you start from scratch, create an empty debian/ and steal as much as you can from the ubuntu package20:57
thomibarry: that should be the same as what 'apt-get source python-selenium'; gets me, right?20:58
barrythomi: you might also reach out on ubuntu-devel and ubuntu-motu to see if anyone can give you a hand20:58
barrythomi: more or less.  could be less if the udd importer is broken on that package ;)20:58
barryso yes, you could start with that20:58
barry(and you can always create a bzr branch from the .dsc)20:59
barryjust to have some local version control to make your life easier, not for any upload requirements or what not20:59
thomiok, if i'm using upstream vcs as the source then there's not much I can steal  from the existing package21:01
barryit's a start at least21:13
barrymaybe only d/rules will need to be rewritten21:13
thomireading the git section of https://wiki.debian.org/onlyjob/get-orig-source scares me21:13
barryupstream is git?21:14
thomiyeah21:14
thomihttps://code.google.com/p/selenium/source/list21:14
barryman, i know there are simpler examples.  not sure i can put my finger on one though21:14
thomioooh! google code exports tarballs for every tag21:15
thomisuch as: https://selenium.googlecode.com/archive/selenium-2.44.0.tar.gz21:15
barryhey, that could be much easier21:15
thomiso I can use d/watch after all21:15
barrycool!21:15
thomibarry: neither of their (two) build systems are packaged. Do I need to package those first?21:22
barrysadly yes21:23
* thomi dies a little on the inside21:23
thomi....they invoke their build systems by running a java .jar file21:25
thomiI feel like this source code is mocking me now21:25
barryit's certainly laughing at you from hell21:26
balloonsveebers, adding json should be this simple :-) https://code.launchpad.net/~nskaggs/autopilot/add-json-build/+merge/24791222:50
* veebers looks22:50
veebersballoons: heh nice, that is simple :-) /me tests22:50
veebersballoons: looks good to me22:55
balloonsveebers, awesome :-)23:11

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