/srv/irclogs.ubuntu.com/2016/08/15/#ubuntu-devel.txt

wemeetagainis there any documentation/information about how ubuntu is handling the transiion to the c++11 abi?02:00
wemeetagainare packages in 16.04 being compiled with dual abi/ c++11 abi support?02:02
RAOFwemeetagain: Nope; it's all new ABI.04:56
=== JanC is now known as Guest35265
=== JanC_ is now known as JanC
=== davmor2_Hols is now known as davmor2
xnoxPHLin, new launchpadlib should be in yakkety now - could you please test if that's all good now?08:11
PHLinxnox, ok let me try08:12
PHLinxnox, hey there, launchpadlib tested with Yakkety dailylive image, and it works, thanks!09:25
xnoxPHLin, whoop whoop.09:30
xnoxPHLin, I see that in your repository you have a port to python3 for this helper lptk library or some such. It's packaged in the distribution as well, are you planning to upload python3 version of it into Yakkety too?09:30
cjwatsonxnox: Maybe you should wait for review ... your launchpadlib r152 will crash if you pass unicode to that method on Python 209:41
cjwatsonoh, wait, will it09:42
cjwatsonYeah, it will if it's unicode and contains non-ASCII characters09:42
PHLinxnox, need to ask bjf, that port exists before I took part in this :D09:42
cjwatsonxnox: why not "if isinstance(query_string, bytes)"?09:43
xnoxbah, at the moment it bail on me in different way now.09:52
xnoxhttp://paste.ubuntu.com/23057847/ -> even in python309:52
* xnox thinks i've screwed up multiple times09:54
cjwatsonno, that one is my fault, will fix09:54
cjwatsonfixed in r153, was a regression in r14609:56
xnoxcjwatson, ack. I rolled back to 145, applied my credentials file fix, and it works correctly.09:57
xnoxcjwatson, as far as understand in python2 the query_string is unicode object, not string.09:57
xnoxno that's wrong.09:58
cjwatsonDon't care what it is; my point is that you can't necessarily decode a unicode object.09:59
xnoxtrue.10:00
cjwatson>>> sys.version10:00
cjwatson'2.7.12 (default, Jul  1 2016, 15:12:24) \n[GCC 5.4.0 20160609]'10:00
cjwatson>>> u'é'.decode('utf-8')10:00
cjwatson...10:00
cjwatsonUnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 0: ordinal not in range(128)10:00
xnoxbut i only need to decode in python3. And "if isinstance(query_string, bytes)" breaks in python2 for this case10:00
cjwatsonWhy does it break?10:01
xnoxas str & bytes are the same in python, and decoding code path is triggered.10:01
* xnox checks my previous py3 macros in that file10:01
cjwatsonAnd why does that break?10:01
cjwatsonIn one of my previous comments I noted that it should work fine with unicode on Python 2.10:02
xnoxin other places we do10:02
xnox153        if not isinstance(value, unicode_type):10:02
xnox154            value = value.decode('utf-8')10:02
xnoxwhich is correct, as we correctly set unicode_type to be the right thing for python2 and python3.10:03
cjwatsonI think either your approach or mine would work.10:04
xnoxhorum yes.10:04
xnox$ python2 -c "if isinstance('string', bytes): 'string'.decode('utf-8')"10:04
xnoxdoes not explode.10:04
xnoxcjwatson, changed to use "if isinstance(query_string, binary_type)" which is actually the same as "if isinstance(query_string, bytes)" given the macros at the start of the file.10:12
xnoxand i guess i'll need both of these commits uploaded now.10:12
cjwatsonwhat?10:14
cjwatsonif you mean "if isinstance(query_string, bytes)" then just write that.10:14
cjwatsonno reason to use binary_type.10:14
cjwatsonin fact binary_type should not exist; it's only for compatibility with pre-2.6 and we don't care about that any more.10:16
cjwatsonxnox: ^-10:16
xnoxwhat was special about pre-2.6 that warranted that. I'm pretty sure binary-type was cargo-culted from six / write py2&3 compatible code guides.10:18
cjwatsonxnox: pre-2.6 didn't have "bytes"10:18
xnoxoh10:18
xnoxquite, don't care about that.10:18
cjwatsonsix was designed to support quite old versions of Python, but launchpadlib has no good reason to care10:19
cjwatsoneven six probably doesn't particularly any more, but inertia10:19
xnoxyeap.10:20
cjwatsonnow, my approach does mean that AccessToken will be constructed with unicode attributes10:21
cjwatsonso actually perhaps "if not isinstance(value, unicode_type)" is safer10:21
xnoxcjwatson, python3 -c "from launchpadlib import launchpad as lp; lp.Launchpad.login_with('foobar', credentials_file='foobar.txt')" still explodes in both python2 & 3.10:24
xnoxin a different spot now.10:24
xnoxcjwatson, http://paste.ubuntu.com/23058020/10:24
xnoxcorrect because i shall not copy & paste bad things10:25
cjwatsonyour code is broken :)10:25
cjwatsonso yeah, s/content/query_string/g in that bit and may as well make it the slightly more conservative not unicode_type test while you're there.10:26
xnoxyeah credentials is conservative like that: if unicode_type to serialise; if not unicode_type to decode.10:27
RAOFHm. What's the way we get new CI'd projects into the archive?10:51
ginggsdoko: libixion and liborcus need updated symbols for the gcc6/boost1.61 transition, do they need a soname bump as well?11:21
sitterjuliank: hey. any thoughts on the os-release mess? I am thinking only using it for is_like right now as to preserve capitalization from lsb_release, but long-term this really needs an API behavior break and coerce the Distribution attributes id, codename and release to lower case so we have normalized expectations both internally and externally11:23
juliankI don't think anyone is relying on the casing of the distro names?11:24
sitterjuliank: I am always wary of breaking behavior, regardless of whether I know it is used :)11:25
juliankBut I'm probably wrong.11:25
julianks/'m probably/might be/11:25
Riddellbdmurray: ping?12:26
=== _salem is now known as salem_
Odd_Blokeinfinity: Where are we on getting sagari's kernel upgraded to something that can handle metadata_csum?14:59
dobeyhmm15:11
dobeyhow do seeds handle conditional dependencies when building the ISOs for example?15:11
dokoginggs, libixion is in NEW15:14
zulcan someone please promote python-ws4py please https://bugs.launchpad.net/ubuntu/+source/python-ws4py/+bug/159042515:24
ubottuLaunchpad bug 1590425 in python-ws4py (Ubuntu) "[MIR] python-ws4py" [Undecided,Fix committed]15:24
ogra_dobey, depends on the flavour ... some use tasks and some use metapackages ... both resolve slightly different15:33
dobeyogra_: right, but say i need to support both snaps and clicks, and so i want to have "snapd | click" as a dependency, what happens?15:37
ogra_well, you seed both or one ... and hope for the best :P15:38
ginggsdoko: yup i see 0.12 experimental there, i uploaded 0.11 with updated symbols in the meantime15:47
cjwatsondobey: seeds don't have conditional dependencies; you have to pick one15:49
cjwatsondobey: they exist to be opinionated15:49
cjwatsondobey: but are you in fact talking about what happens if something that is seeded itself has alternative dependencies?15:50
cjwatsondobey: rather than trying to put alternatives in the seeds themselves?15:50
dobeycjwatson: yes15:50
dobeycjwatson: so if my package, which is seeded, has a conditional dep, and both are in main, does first get picked?15:51
cjwatsondobey: in most cases yes, though it's a little bit more complicated than that.  the algorithm is as follows: (1) are any of the alternatives explicitly (i.e. not just via deps) listed in this seed?  if so, pick the first.  (2) is the first alternative explicitly listed in a seed that inherits from this seed?  if so pick that.  (3) are any of the other alternatives explicitly listed in a "close-by" s15:55
cjwatsoneed (i.e. one that generates the same ...15:55
cjwatson... task, as defined by Task-Seeds headers)?  if so, pick the first.  (4) pick the first of the alternatives that exists.15:55
cjwatsondobey: the point of all this palaver is to make it possible for flavours to pick different versions of things by explicitly seeding them, but to use sensible defaults.15:55
cjwatsondobey: it is not relevant whether any of the dependencies are in main; seeds are used to define what's in main, so we don't circularly use what's in main to define how seeds expand.15:57
dobeyhmm, ok15:58
wemeetagainRAOF: are packages built with the --std=c++11 option set as well?17:18
wemeetagainRAOF: from https://gcc.gnu.org/onlinedocs/libstdc++/manual/using_dual_abi.html , it appears that the ABI can be set independently of the --std option17:20
=== salem_ is now known as _salem
mterrybdmurray: so about unity-api-bugs vs -team...  Does the -bugs team even seem useful if it's just two people?18:31
mterrybdmurray: the -team team is already subscribed to most of their packages, it doesn't seem like they are looking to avoid bugmail18:31
bdmurraymterry: The number of the people related to the team doesn't really matter. The team is just an entity for scripts which create reports like http://reqorts.qa.ubuntu.com/reports/rls-mgr/rls-y-tracking-bug-tasks.html. I'm fine with switching the team though, iirc I just created teams in some cases as the quickest way to get the reports up and running.18:34
mterrybdmurray: but I thought one point was that somewhere someone was reading the bugmail18:35
bdmurraymterry: yes, for new MIRs that's true.18:37
mterrybdmurray: if you don't care, I'd just as soon use the LP team that the actual maintainers are using18:39
bdmurraymterry: That makes sense to me18:39
=== _salem is now known as salem_

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