/srv/irclogs.ubuntu.com/2012/04/23/#ubuntu-touch.txt

=== brendand_ is now known as brendand
=== MacSlow is now known as MacSlow|lunch
=== tvoss|gftd is now known as tvoss
=== MacSlow|lunch is now known as MacSlow
=== kiwinote_ is now known as kiwinote
SatorisGeis does not build with newest Clang. It errors out because the headers try to use Generics even when C standards version is not c1x.13:21
SatorisSo either the Frame headers need to explicitly check that (how?) or this warning needs to be disabled in Geis.13:22
SatorisOr, to but it another way, clang will reply true to __has_extension(c_generic_selections) even for earlier C standards versions.13:23
SatorisWhich is theoretically correct, but mostly useless.13:23
bregmathat would be a problem in frame, though, not geis, because geis has no knowledge of C generics13:30
SatorisTrue.13:31
bregmanot that it shouldn't be fixed13:31
SatorisThe bug is either in Frame's headers being wrong or Clang reporting its capabilities incorrectly.13:32
bregmawell, if clang says it supports generics and it doesn't, is it not obvious what the problem is?13:35
bregmaor is the decision made at configuration time for frame?  That would definitely be wrong.13:36
SatorisWell one could say that having the extension in c90 or whatever is not wrong per se, because it is an extension. It could be anything.13:38
SatorisThe decision is not made at configure time for Frame, no.13:38
SatorisThe extra checks that this extension is only used with C1X is not "wrong" either, because it only became officially supported at that time.13:40
SatorisBut combine -Wall and -Werror and then they clash.13:40
=== dandrader is now known as dandrader|afk
* bregma Quantal Quetzal ????13:46
=== dandrader|afk is now known as dandrader
cndSatoris, while it's not perfect in the sense that we are imposing C11 stuff into non-C11 compilations, I think it's actually a positive thing14:03
cndSatoris, I would be 100% behind any fixes to geis so it builds with clang :)14:03
cndtvoss, I have fixed all three of the Xlib memory leaks when running the frame and grail test suites :)14:04
SatorisThe proper thing to fix is Frame.14:04
cndunfortunately, they aren't serious enough to warrant an SRU14:04
cndSatoris, fix frame how?14:04
SatorisIn pseudocode, change current "supports generics" to "is c1x and supports generics".14:05
cndSatoris, if you don't want the _Generic type checking, then figure out how to disable that extension when you are compiling with clang14:05
tvosscnd, oh cool ... can re-enable the valgrind testing again then?14:05
cndtvoss, once Q opens up and we can upload fixes in libXi, libXext, and libXau14:06
SatorisTakes some preprocessor work, though.14:06
tvosscnd, cool :)14:07
cndSatoris, if we require C11 and _Generic support, then we are inhibiting people compiling specifically with _Generic and earlier C standards14:07
cndthey might actually want that14:07
cndI would suggest we want that for geis event14:07
cndeven*14:07
SatorisNo, not require it. But only provide Generics if the standards version is c1x.14:07
SatorisThe reason this is an issue is -Werror. Otherwise we would just have one warning that is easy to inspect and deem irrelevant.14:08
cndI think it makes sense for us to have geis compile as c99, but have type checking through _Generic if available14:09
cndwe should fix geis so it doesn't error14:09
cndit should be trivial type fixes14:09
SatorisThen you need to disable this warning in Geis. There is no other way.14:09
cndSatoris, why can't we fix geis?14:09
bregmafix geis because the frame code will not complie?14:10
cndbregma, it's geis that isn't compiling14:10
cndbecause the _Generic stuff is in the frame headers14:10
bregmano, geis won;t build with clang because the code from frame won;t compile14:10
cndit's likely doing what it's intended to do: catch bad type usage14:10
SatorisIt can be claimed that what Clang does is not standards conformant.14:11
cndSatoris, is frame failing to build, or is geis failing to build14:11
SatorisWhich makes everything harder again.14:11
bregmait's the frame code that's not compiling, ergo the problem is in the fame code14:11
SatorisFrame compiles. Geis does not, due to the combination of compiler flags it uses.14:11
bregmaor, really, the problem is in clang14:11
cndSatoris, can you paste one of the errors14:12
cndor just pastebin the whole compilation output14:12
bregmathe frame project compiles, but the geis project does not compile because it is failing on frame code14:12
SatorisSure. It's on my other machine, hang on.14:13
bregmacan frame provide the necessary CFLAGS in its .pc file?14:13
cndbregma, that's the intended result, if geis is passing the wrong types into frame14:13
bregmaor if you try to compile it with clang without using the correct compile-time flags?14:13
cndbregma, I'm not sure what CFLAGS you are thinking are at work here14:14
Satorishttp://paste.ubuntu.com/942547/14:15
cndohhhh14:15
cndit's failing because it is trying to use generic in non-c11 code14:15
cndI thought it was failing because of actual type checks14:15
SatorisWhich it theoretically can, because it is an extension.14:16
SatorisThe problem lies with -Wc11-extensions.14:16
SatorisCombined with -Werror.14:16
cndok, so yes, I think we need to fix frame so we don't trigger -Wc11-extensions14:16
cndSatoris, can you try changing the frame headers so it uses __has_feature(c_generic_selections)14:18
cndinstead of __has_extension(c_generic_selections)14:18
SatorisI can try, at least. :)14:18
dandradermy status report: In utouch-geis, I'm taking libgtest out of libgtest_geis (which includes xorg-gtest and evemu fixtures) and making my test for https://bugs.launchpad.net/bugs/984069 use gtest fw instead of check fw14:19
ubot5Ubuntu bug 984069 in utouch-geis "Individual touches from direct devices should be in window coordinates" [Medium,In progress]14:19
SatorisChanging it makes Geis compile. Now I have to test whether it works as it should on Clang and GCC.14:20
tvossfixing  #950974 and polishing port of chromium patch to new infrastructure14:20
bregmago go gadget ubottu14:20
cndooh, looks like tvoss found a way to get around ubot514:20
cndbug 95097414:20
ubot5Launchpad bug 950974 in utouch-grail "Switch on atomic gestures for touchpads by default" [Medium,In progress] https://launchpad.net/bugs/95097414:20
bregmasweet, that stuff annoys me when it's not wanted14:21
bregma114:21
tvoss#114:21
bregmahmm14:21
cndwhat am I going to be doing...14:21
tvossbug 114:21
bregmabug 114:21
ubot5Launchpad bug 1 in Ubuntu "Microsoft has a majority market share" [Critical,In progress] https://launchpad.net/bugs/114:21
bregmaheh14:21
Satorisbug 214:21
ubot5Error: Launchpad bug 2 could not be found14:21
tvossbug 66614:21
ubot5Launchpad bug 666 in Launchpad itself "can't file a bug on Ubuntu" [Medium,Invalid] https://launchpad.net/bugs/66614:21
cndI think I'll be working on architecture docs14:21
cndand bugs if needed14:22
cndand thinking about updates to utouch-qml14:22
bregmaI'm going to be saying Quantal Quetzal until it loses all meaning14:22
SatorisTrying to find bugs. And found them too. Plus some secret stuff.14:22
cndoh, quantel quetzal?14:23
bregmaI have restructured all the integration tests in geis, and even got most of them to pass repeatedly14:23
cndyay14:23
bregmaquantAl, not quantel (which was a computer manufracturer)14:23
bregmamanufracturer, heh, there's a freudian slip14:24
dandraderah, so "Quantal Quetzal" is the nickname of Ubuntu 12.10. I thought it was just a bunch of random words stitched together :)14:24
bregmaI have one last integration test still sometimes failing, but if you guys with new tests would get them in I would appreciate it14:24
bregmahttp://www.markshuttleworth.com/archives/112114:25
Satoriscnd: that fix works properly on GCC and Clang. Will send a merge proposal.14:26
cndSatoris, thanks!14:26
cndbregma, dandrader: I still need reviewed-by tags on the first three xorg-gtest patches I sent out14:27
bregmaI sent out mails for those, I see they never appeared on the list14:27
bregmahmm, evidently the mails were not signed -- is that required for that list?14:27
cndno14:28
cndbregma, I got the reply for the last patch14:28
cndbut not the first three14:28
bregmaI signed the last reply (or, didn't disable signing)14:29
bregmaa number of Debian lists reject signed messages, I just never know which list needs what any more14:29
bregmathere, just resent the first three reviewed-by replies (signed this time) -- and I see them on the list14:31
cndthanks14:31
cndI'll get those applied14:31
bregmawe're getting hit with about 10 cm of wet snow right now14:33
SatorisHmm, Frame has missing header checks in configure: ../../src/v2/x11/device_x11.cpp:28:37: fatal error: xorg/xserver-properties.h: No such file or directory14:35
cndahh14:36
cndSatoris, we need to check for the xorg-server package14:36
SatorisSame for Geis regarding xcb-proto and Pythong bindings.14:37
cndyou can add that to the PKG_CHECK_MODULES for XINPUT14:37
cnddandrader, bregma: latest fixes to xorg-gtest are available in the daily ppa now :)15:18
bregmathese are just your patches or are there other changes?15:19
cndjust the four patches I sent out15:20
cndbut there was another change since the precise release15:20
cndafter installing the latest xorg-gtest and restarting your X session, you shouldn't need to switch VTs to do trackpad tests15:21
cndbregma, it's not clear to me if you approve of my change to the geis subscription flags15:27
cndyou didn't mark as approvide or needs fixing, etc.15:27
cndhttps://code.launchpad.net/~chasedouglas/utouch-geis/subscription-flags/+merge/10292015:27
bregmahmm, I have xserver-xorg-dev 2:1.11.4-0ubuntu10.1 from precise-proposed/main installed, and 'pkg-config --modversion xorg-server' gives me 1.11.3 so the merge proposal from Satoris fails to detect XINPUT because it's looking for 1.11.4 ...  any idea what's up with that?15:27
cndbregma, you should have 1.11.4...15:27
cndbregma, apt-cache policy xserver-xorg-dev15:28
bregmaI posted the information I gleaned from apt-cache policy15:28
cndoh right15:28
cndhmm... I have the same15:29
bregmathat's my concern:  is the package in precise-proposed incorrect?15:29
cndyeah, xorg-server is incorrect15:29
cndit's not really a big deal, nothing in the point releases has changed the api/abi15:29
cndit's likely because of how we have a frankenserver, and I probably forgot to bump a version somewhere15:29
bregmaas to your merge proposal, the change doesn't change anything except using a non-idiomatic way to express it15:30
cndbregma, so are you ok with it?15:30
bregmaI'm not a big fan of non-idiomatic code, but it doesn't really matter, and is in keeping with the Ubuntu philosphy of 'we reinvent things'15:30
cndhmm?15:31
cndI'm just trying to fix compilation using c++15:31
bregmadoes the C compiler not use C linkage when a name is enclosed in ectern "C" {} ?15:32
bregmaC++ compiler, I mean15:32
bregmaand, um, extern15:32
bregmaI'm asking because I know it will emit bariables with that typedef as 'int' because of the C linkage, but I'm not sure whether the C++ front-end will change the semantics because of the C linkage15:34
bregmas/bariables/variables/15:34
cndbregma, I can give you a sample c++ file if you like15:35
bregmaenums are one of the significant differences between C and C++15:35
cndbregma, http://paste.ubuntu.com/942681/15:37
cndif you save that as test.c, gcc is fine with it15:38
cndif you save it as test.cpp, gcc errors out15:38
=== dandrader is now known as dandrader|lunch
bregmayes, I just constructed and analysed a test -- it looks like GCC has interpreted [7.5] as exclusive and that [7.2] supersedes the normatively included C standard, which as far as I can tell is a legitimate interpretation15:48
bregmaof the C++ standard15:48
bregmaI will approve the change15:48
cndok15:52
cndbregma, oh noes! we have a typo in the geis api: GEIS_INIT_SEND_SYNCHRONOS_EVENTS16:00
cndperhaps we should also define GEIS_INIT_SEND_SYNCHRONOUS_EVENTS?16:00
bregmaI noticed that a while back, but the freeze was on so I never fixed it16:01
bregmait won;t hurt to just add a synonym16:01
cnd#define GEIS_INIT_SEND_SYNCHRONOUS_EVENTS GEIS_INIT_SEND_SYNCHRONOS_EVENTS16:01
bregmathat'll do for now16:01
=== dandrader|lunch is now known as dandrader
cndbregma, did you see my message to multi-touch-dev about cleaning up device support bugs?19:42
cndI just want to confirm you don't have any issue with it19:43
bregmalast week?19:43
cndyeah, from friday19:43
bregmaI don;t have any problem with it19:44
bregmaif a device doesn;t conform to the Win HIS standard, it's not our bug to fix19:44
bregma*HID*19:44
bregma(and even if it does, but that's different)19:44
cndk19:45
cndI'm trying to get our bug counts down19:45
cndand make the reports more useful19:45
cndthe next task will be to deal with ginn bugs19:45
cndwe'll discuss at the sprint19:46
bregmayes, ginn and friends needs some lovin'19:46
cndnearly half the bugs against canonical-multitouch are ginn :(19:47
cndlunch!19:47
cndyay!21:12
cndI'm playing with utouch qml21:12
cndupdating it to use non-atomic gestures21:13
bregmamid-air collision in merge proposal reviews21:13
cndand it does multiple simultaneous gestures at the same time21:13
bregmathe future is now21:13
cndunfortunately, utouch-qml is currently broken because of the bug dandrader is fixing and because of the change in coordinates21:14
cndand now I have to figure out how to make qml tests...21:14
cndit might involve having to make a version of xorg-gtest or an xinput mock in ruby :(21:15
cndqml testability is the upstream testing framework21:15
cndand you test qml not by using qml21:15
cndbut by using ruby...21:15
bregmasounds like work21:17
cndyeah...21:17
cndI've never used ruby21:17
bregmaonce you learn it you can become a web dev21:18
bregmahaven't you always wanted to be a web dev?21:18
cndummm...21:20
cndhmm... one problem of git-bzr: how do I do --fixes?21:31
cndbregma, it looks like we aren't populating all the device attrs21:36
cndwe're missing the axis info21:36
cndgeisview, and by extension utouch-qml, don't have them defined21:36
cndhrm... I wasn't paying close enough attention to the geis changes for gesture accept/reject21:51
cndutouch-qml relies on the old useless function signature21:51
cndso it won't compile anymore21:51

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