[00:00] but uh, yeh I'm trying to remove it from the proto [00:00] there is some weirdness that goes on below the session mediator [00:00] that I don't entirely understand yet [00:06] robert_ancell: The other thing is if we reject connections [00:06] in the communicator as suggested, then we reject them before we read the client name [00:06] racarr, no - there's an important difference. In the fd case, one end sets the fd in the message, it is removed from the message and transmitted out of band and then refilled in the receivers message (with a different numerical value) [00:06] In the pid case, the client never sets the value, and the server never reads the value from the message (it reads it from the socket) [00:07] So conceptually, the pid is not part of the protocol [00:07] so we have to change the model, the idea was before, the clients send their name/.desktop file and the shell matches up (i.e. this pid is allowed to have the desktop) [00:07] to just the shell fills in the name [00:07] based on the pid [00:07] and I haven't figured out the best way to propose all that yet. [00:07] robert_ancell: The client sends the pid, it's just hidden away [00:07] in the call to open [00:07] If the client sends the pid we can't trust it. [00:08] racarr, the system sets the pid, the client never sets it [00:08] it's completely transparent to the client [00:08] RAOF: I mean the socket credentials [00:08] If you're trying to do authentication, you can't possibly trust anything the client sends you. [00:08] RAOF, no, he's using it in the message as a convenience when we pass it around the server. It's set on reception of the message [00:09] It's true that the pid is associated with the message, but it's not part of it [00:09] racarr: I guess. I think you'll technically find that it's the kernel that sets the pid, and probably only when you ask it. [00:09] No, it always sets it [00:09] POSIX models is as an implicit out of band message, just like FD passing [00:09] linux has a special API with getsockopt to read it without using recvmsg [00:09] I dunno [00:12] racarr: If it's set in the client, then we can't trust it - because we can't trust that the client hasn't interposed an open() implementation that sets a bad pid. [00:12] Ah, but I see that's not what you're actually saying. :) [00:12] mm [00:13] RAOF: The context, is that it was just easiest with the current abstractions to add it as a field to the ConnectParameters protobuf message and fill it in based on the socket credentials [00:13] in the message processor [00:13] and I don't think this really breaks any abstractions horribly [00:13] racarr, but that's bad because it exposes this detail all the way back to the client via the .proto which is very confusing [00:13] racarr: This would be https://code.launchpad.net/~robertcarr/mir/implement-client-credentials/+merge/171889 right? [00:14] racarr, and unnecessary as long as you pass meta information with the message in the server or set the PID as a property of the Session [00:14] Oi [00:15] robert_ancell: And how do you pass the pid up [00:15] from the RPC part of the frontend [00:15] I mean it has to pass through the SessionMediator [00:15] where the interface is generated from the .proto file [00:16] or you have to do it beore the SessionMediator (i.e. before there is a session, and the name is read, etc) [00:16] I [00:16] am not interested in being right or wrong about this though :p [00:16] i've already moved it out like I said, and moved it to the communicator [00:16] I'm just running in to some [00:16] bugs/non understood behavior [00:17] * robert_ancell dives into the complexity of the frontend.. [00:17] notably on_new_connection is called twice (in the acceptance tests at least) [00:17] for each client [00:17] and both times added to connected_sessions [00:18] the first time the socket credentials I get off the pid are [00:18] some sort of nonsense [00:18] neither the client or the server process pid [00:18] but very close! [00:18] numerically that is [00:19] That was EOD yesterday [00:19] ill revisit it soon [00:23] From the MP it sounds like what the shell actually wants is a callback when a certain pid connects. [00:23] Maybe you don't need to pass the pid up at all? [00:25] RAOF, you need the PID for the shell to match an incoming Mir connection with the app the shell launched [00:25] closing the loop [00:25] though you're stuffed if the app forks... [00:26] RAOF: The thought was originally you needed to mtch the pid with the name [00:26] which isn't read until the SessionMediator (or the processor, preparing to invoke the session mediator, at least) [00:26] but yes, that is the idea now, just dont pass it up [00:26] and do it in the communicator [00:26] Ah. [00:26] on_new_connection [00:26] Argh, There really should be a SessionMediator per connection. That's dumb [00:27] which is where I ran in to this strange behavior [00:27] robert_ancell: ? There is [00:27] It seems like pid would be a perfectly reasonable property of a SessionMediator. [00:27] yeah [00:27] Yes [00:27] Should we at some point need to pass that up :) [00:27] I think it's the natural place to put it :p [00:27] but the SessionMediator interface [00:27] is generated [00:27] by the .proto [00:27] is the whole point [00:27] racarr, no it isn't - it extends the interface generated in the .proto [00:28] so you can attach additional information [00:28] * robert_ancell chases make_ipc_server() backwards [00:28] robert_ancell: class SessionMediator : public mir::protobuf::DisplayServer [00:28] racarr, mir::protobuf::DisplayServer is generated, but SessionMediator is not [00:29] I know but you have to do it in the [00:29] connect method [00:29] racarr, but by the time you get to the connect method, the PID will already be set for that instance of SessionMediator [00:29] or is SessionMediator created after a connect? [00:30] Why do you have to do it in the connect method? [00:30] well. I guess you don't hve to [00:30] racarr, Can't you get the PID in mf::ProtobufSocketCommunicator::start_accept and make it an arg to make_ipc_server? [00:31] Sure [00:32] actually, that's weird - we create a SocketSession before on_new_connection is called [00:32] that seems wrong [00:34] I am probably just going to sort out making it work [00:34] in the Communicator [00:34] with no name in the authorizer interface [00:34] and nothing in the .proto [00:34] if the shell wants to do something with the pid later [00:35] they already know the assosciation of pid/desktop [00:35] so they can attach it to whatever session object they have [00:35] sounds good [00:38] Of course, unless the client fork()s ;) === jono is now known as Guest55880 [02:54] Whee, copper wires [03:15] Oh, hi. Mesa refactoring may well be what's causing the mesa crash. [05:25] good morning :) [05:30] Yo! [05:30] I have the obvious question! [05:34] RAOF, shoot :) [05:43] didrocks, what is the best way to pull in the new gmock package to saucy to start working on mp's for all reverse-build-depends? [05:43] tvoss: right now, using the link I sent you is the best way [05:43] didrocks, mind pinging me the link again? :) [05:45] tvoss: http://people.canonical.com/~doko/tmp/ [05:45] didrocks, thx [05:45] tvoss: you can get dget google-mock_1.6.0-1ubuntu1.dsc [05:46] (the source is available upstream or in the debian PTS) [05:46] didrocks, there is a tar.gz. in there, too [05:48] tvoss: the tar.gz is the debian diff [05:48] didrocks, ah [05:51] tvoss: FYI, rlvm is fine and rebuild using the source [05:51] didrocks, ack, will look into libusermetrics. Did you do any particular magic or just added an add_subdirectory(..)? [05:53] tvoss: we don't ship any CMakeLists.txt with gmock, isn't it? [05:53] add_subdirectory won't work then? [05:54] didrocks, how do we do it then? [05:54] tvoss: I'm thinking :) [05:58] didrocks, also another look at https://code.launchpad.net/~thomas-voss/platform-api/add-package-config/+merge/168642 [05:58] would be very much appreciated [05:58] tvoss: will do, do I need to backlog all the comments? [05:59] didrocks, I think rsalveti had some good comments and the diff should be cleaner now [05:59] ok [06:01] tvoss: it seems we'll need to build it ourselves [06:01] like: [06:01] g++ -I/usr/src/gmock -c /usr/src/gmock/src/gmock-all.cc [06:01] g++ -I/usr/src/gtest -c /usr/src/gtest/src/gtest-all.cc [06:01] ar -rv libgmock.a gmock-all.o gtest-all.o [06:01] and then link against it [06:01] didrocks, can we add the CMakeLists.txt as a distro patch? [06:02] tvoss: sure, I think that will help more than just us :) [06:02] tvoss: I was looking if we can reuse something like that from upstream source first, didn't find anything reusable [06:02] but please double check [06:04] didrocks, looking at trunk here, a CMakeLists.txt is part of both trunk and the zip from googlemock [06:04] https://code.google.com/p/googlemock/source/browse/#svn%2Ftrunk [06:04] tvoss: yeah, I think a substract of it (as it redefines the project name and so on) can be useful [06:05] like, we don't want I guess: [06:05] project(gmock CXX C) [06:05] cmake_minimum_required(VERSION 2.6.2) [06:05] right? [06:05] didrocks, oh, those should be perfectly fine, cmake is clever enough i nthat case :) [06:06] didrocks, we have used the CMakeLists.txt within mir from its in-tree gmock version for some time now [06:06] tvoss: ah, my knowledge is not so advanced :) but how do you deal with the prefix? (as it's ${sourcedir}/src instead of ${prefix}/src? [06:06] you just hack around sourcedir == prefix? [06:07] didrocks, it should "just work"(tm). In mir, we only did an add_subdirectory(3rd_party/gmock gmock) and that pulled in all of the targets [06:07] didrocks, that being said, as projects are reasoning in terms of targets, things are easy :) [06:08] robert_ancell, ping [06:08] robert_ancell, hey, I was looking for a branch you pasted here recently that addresses a vt issue [06:09] * tvoss waves hands [06:11] tvoss: we'll see, I'm a little bit afraid with gtests [06:11] tvoss: as you copied that in build tree and you end up with the copy [06:11] it seems it's looking for ../gtests [06:11] so it could work [06:11] and google-mock deps on libgtest-dev [06:12] didrocks, I'm confused now :) gmock usually has got its own gtest :) [06:12] tvoss: not on the installed version [06:20] didrocks, I see, so time to adjust the cmakelists.txt for gmock to pull in /usr/src/gtest :) [06:20] tvoss: done that, I'm just fighting with add_subdirectory for now :p [06:21] tvoss: I have no idea where the .a will ends up TBH ;) [06:21] didrocks, you should not need the .a, the target should be fine [06:21] tvoss: it will build a .a at some points, no? [06:22] or just the .o? where we invoke the target? [06:22] When specifying an out-of-tree source a [06:22] binary directory must be explicitly specified. [06:23] didrocks, yeah, just call it gmock or gtest respectively [06:23] didrocks, then cmake takes care of the rest [06:23] yeah, let's see how it goes :) [06:23] you think it will magically find them? ;) [06:24] didrocks, I'm pretty sure ;) [06:24] at least, it doesn't complain :p [06:24] * tvoss believes in cmake ;) [06:24] lets see if Mir builds [06:25] how come I've a backlog of 3 hours so early in the morning? [06:26] didrocks, don't ask, just do ;) [06:26] tvoss: well, that's my life :p [06:26] * tvoss reads the slashdot article on the BART strike and the conclusion that software engineers should have a union, too [06:27] ah [06:27] build failure [06:27] * didrocks tests with internal gmock to check if the diff is from this [06:27] didrocks, mind pastebinning the build failure? [06:28] tvoss: http://paste.ubuntu.com/5842593/ [06:28] hum [06:28] thanks build-area [06:28] I've relaunched the vanilla build, hence the truncated log [06:28] didrocks, a little less french would help me;) [06:28] ahah ;) [06:29] tvoss: ok, will run the next one with LANG=C :p [06:29] \o/ [06:30] * tvoss needs coffee [06:30] I kept the warning downgrade though, but maybe adding the subdirectory had some side-effects [06:30] * didrocks as well while mir is building [06:33] tvoss: ah frick, BART strike? [06:34] tvoss: this isn't good, I'm going there tomorrow and kinda need to get around... [06:34] smspillaz, http://tech.slashdot.org/story/13/07/03/2042253/bart-strike-provides-stark-contrast-to-techs-non-union-world [06:35] tvoss: http://paste.ubuntu.com/5842602/ [06:35] tvoss: hmm, as much as I support unions, I hope it'll be over soon (http://www.mercurynews.com/breaking-news/ci_23581424/full-speed-ahead-day-2-bart-strike). My flight arrives at around 2230h [06:36] -Werror=unused-local-typedefs [06:36] didrocks, we had some specific parts for handling that in Mir [06:37] didrocks, let me find them [06:38] RAOF: Hi! In the display-configuration-change-handler MP, I intoduced the VideoDevices interface and a UdevVideoDevices implementation for it. It is used only in Display right now, to register an event handler, but I was thinking that it could also be extended for device discovery in Platform (i.e. replace the direct udev calls we have there). This would allow easier mocking/unit-testing. [06:38] tvoss: # Don't treat warnings as errors in 3rd_party/{gmock} [06:38] string (REPLACE " -Werror " " " CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS}) [06:38] I guess [06:38] but the add_subdirectory is just after that one [06:39] didrocks, that might well be the case, and we restore the flags right after the add_subdirectory [06:39] RAOF: The UdevVideoDevices implementation uses ad-hoc udev wrappers that should probably be replaced by your c++ udev classes. [06:39] tvoss: yep, the change are quite simple (for now, I'll clean that with prefix): http://paste.ubuntu.com/5842607/ [06:40] tvoss: but I don't understand what changes compared to your internal gmock though [06:42] didrocks, I do see errors when using gmock, mind building with -j1? [06:43] tvoss: good idea, it will be clearer [06:44] alf: I'll have a look. [06:45] RAOF: (note: the MP was merged) [06:45] alf: We'll need something more generic later, because we'll also need to handle input hotplug & discovery, which I don't *think* the code currently does [06:46] RAOF: VideoDevices is just the interface the graphics subsystem cares about, which will be implemented with udev. I guess the input subsystem can have a similar interface, again implemented with udev [06:46] Yeah [06:47] tvoss: ah, more interesting: http://paste.ubuntu.com/5842616/ [06:47] -Werror=unused-local-typedefs [06:48] so those files including gmock.h, it seems they get the gmock warning [06:48] but I don't see the difference with the inline version, it should first build gmock [06:49] with -Werror disable [06:49] and then, just link to the .o files? [06:49] But it can't just link to the .o files? It needs to parse the headers anyway. [06:50] good morning [06:50] RAOF: I would think he would do that [06:50] hey dholbach [06:50] they are built again: gmock-all.cc.o [06:50] hey didrocks [06:52] didrocks, the typedef is in the header, so if we reenable -Werror, we bail out: https://code.launchpad.net/~compiz-team/compiz/compiz.fix_1185719/+merge/167474 [06:52] RAOF: Looks good. I'll udev-wrapper-ify it and fold in the device probing? [06:52] alf ^^^ [06:52] lol [06:53] RAOF: sure [06:54] tvoss: but why don't we have that with the internal gmock then? [06:54] didrocks, it might well be that the typedefs changed, let me check [06:54] ah, you are not using 1.6? [06:56] didrocks, checking ... [06:57] * RAOF wonders why his laptop has suddenly hit the thermal trip point. [07:00] didrocks, mir's internal gmock version has the typedefs only in include/gmock/gmock-generated-function-mockers.h [07:01] didrocks, and they are not even defined, as the compiler bails out anyways when that point is reached [07:02] tvoss: yeah, you're right [07:03] hum [07:03] tvoss: I'm not fan or disabling -Werror for everything under tests, but do you have any other idea? [07:04] didrocks, we could explicitly set -Wno-unused-local-typedefs [07:05] didrocks, to be a bit more subtle [07:05] Or -Wno-error=unused-local-typedefs [07:05] (basically, I guess everything in include/test/mir_test/) [07:05] or globally? [07:05] it still enables to cleanswap if needed for the rest of the case [07:05] code* [07:06] didrocks, I would do it for everything under tests/ [07:06] RAOF, ^, thoughts? [07:06] (I agree) [07:07] I'd push -Wno-error=unused-local-typedefs for everything under tests [07:07] ok, we all agree then [07:07] \o/ [07:07] * didrocks does and rebuild :) [07:07] * RAOF would also like to push -Wno-error=deprecated for everything under tests, too, so that they build on recent clang [07:07] * tvoss grabs another coffee [07:07] RAOF: can add :) [07:07] * didrocks still at first mug [07:08] Although glib might be fixed before g++ hits that particular snag. [07:11] And while we're at it, why not merge https://code.launchpad.net/~raof/mir/fix-clanger/+merge/172956 so *everything* works when built with clang! [07:23] didrocks, still building? [07:25] tvoss: still building, so hope :) [07:25] * tvoss crosses fingers [07:34] tvoss: /tmp/googlemockification/build-area/mir-0.0.6/obj-x86_64-linux-gnu/bin/unit-tests: symbol lookup error: /tmp/googlemockification/build-area/mir-0.0.6/obj-x86_64-linux-gnu/bin/unit-tests: undefined symbol: eglCreateImageKHR [07:34] RAOF, ^ [07:34] Not linking to libEGL [07:35] Actually, that might be our bug. eglCreateImageKHR isn't actually a part of the EGL exported symbols, is it? [07:36] RAOF, I wouldn't think so [07:37] tvoss: didrocks: Some time ago we updated the internal gmock version to svn r432 to avoid all these problems... now we are essentially reverting to 1.6... [07:37] alf, ah, thanks for the hint [07:38] didrocks, I thought we would pull in the latest and greatest from tip? [07:40] tvoss: can you point me again to the patches to add? [07:40] * didrocks cleans to be override meanwhile [07:40] overridable [07:43] robert_ancell: Sorry, Telstra started playing with my phone line this morning and just finished (without fixing anything) [07:44] didrocks, r437 is latest according to googlemock svn. How do I generate patches against the currently released version? or is a zipped svn-export fine for you? [07:44] didrocks: can we just pull in the latest trunk for gmock? gmock 1.6.0 was published over 2 years ago, and a lot has changed (include proper c++11 and recent g++/clang support) since then [07:45] tvoss: no, we need to manually cherry-pick patches (or better, just the patch we need) [07:45] for latest update, we can as well just create a tarball [07:46] and have google-mock 1.6+svn [07:46] didrocks, okay, so that is a +1 on svn-export + tar gz? [07:46] tvoss: see when I told you that maintaining components are not light :) [07:46] yep [07:46] * didrocks fights with cmake meanwhile [07:49] didrocks, so I can just send you the tar.gz now? [07:51] didrocks, sent [07:52] tvoss: thanks, will update shortly [07:52] ok, cmakeries done [07:52] now back to gmock [07:52] didrocks, sent you the tar.gz [07:54] ok, patches don't apply now, let's see [07:55] duflu, how nice of them! [08:00] alan_g: Yesterday, IIRC, you mentioned something about a crash while running unit-tests. See if https://code.launchpad.net/~afrantzis/mir/fix-mock-drmgetbusid-race/+merge/172964 fixes it for you. [08:05] didrocks, still building mir? :) [08:05] tvoss: I'm fixing google-mock first :p [08:05] tvoss: the snapshot doesn't build as is [08:05] didrocks, ? [08:05] tvoss: needing to reapply patches and so on… [08:11] * didrocks wonders how seriously doko tested his upgrade… [08:16] tvoss: ok, rebuilding Mir now [08:17] didrocks, awesome [08:18] alf: sure (https://bugs.launchpad.net/mir/+bug/1197408) [08:18] Launchpad bug 1197408 in Mir "unit-tests core unless LD_PRELOAD=libumockdev-preload.so is set" [Medium,New] [08:18] RAOF: Any luck with the GL crashes? [08:19] tvoss: waow, latest snapshot has a lot of failures [08:19] didrocks, ? [08:19] tvoss: http://paste.ubuntu.com/5842794/ [08:20] should be a missing } somewhere [08:21] duflu: Got a very plausible cause, not yet fixed. [08:22] Cool. That's something [08:23] * RAOF updates the bug. [08:25] didrocks, might be one of the distro patches [08:25] a simple test executable builds fine locally [08:25] tvoss: no, the only one I kept is a python path [08:26] tvoss: want the deb? [08:26] didrocks, ah, I know: I'm pretty sure the GTEST_EXCLUSIVE_LOCK_REQUIRED_ is not defined by the gtest version in the archive [08:26] tvoss: ah, that's a nice point and will explain with gmock is working :) [08:26] why* [08:26] as it's using its internal gtests [08:27] didrocks, you sure? [08:28] tvoss: from CMake, yeah, gmock source is using its internal one, but once installed, it's using the system one [08:28] so what you are telling makes sense [08:28] alan_g: it's a different problem then (not related to LD_PRELOAD missing or not) [08:29] alf: Maybe it is the same problem(!) - as I've just tried it an see no crash [08:29] *and [08:31] alf, ah, the crash is because KMSOutput::size() assumes there is at least one mode - is it worth making Mir handle there not being a mode (i.e. is that possible?) or should I mock the mode (which is what causes the crtc error) [08:32] alan_g: It's a race condition, so perhaps it happened to you when you tried without LD_PRELOAD, and didn't occur when trying with LD_PRELOAD, by chance (or by LD_PRELOAD changin some timings) [08:34] robert_ancell: I would say just mock the mode for now, the KMSOutput requires a bit more thought [08:34] robert_ancell: the "KMSOutput change" [08:42] tvoss: I'm a little bit uneasy with updating gtests [08:43] seeing the numbers of build-deps [08:47] didrocks, looking [08:48] didrocks, can we offer a testing package? [08:48] tvoss: what do you mean? [08:49] tvoss: you want the .deb for testing the new google-mock & gtest? [08:49] didrocks, pulling in the latest gtest, building a test package, asking people to check? [08:49] tvoss: who are people? :) [08:49] didrocks, the people responsible for the reverse-build-dependencies [08:49] tvoss: we don't have responsible maintainers in ubuntu [08:49] so I doubt anyone will check the reverse deps [08:50] and for indicator-* & co, it's us, so same people having to do all the work :p [08:51] didrocks, okay, so what's a good way forward here? [08:51] tvoss: TBH, I don't know, maybe just identifying the patches you need from 1.6 to latest gmock [08:51] to build with Mir [08:52] and only include those [08:52] didrocks, hmmm, that does not solve the problem as I'm pretty sure that we will need said macro in gtest [08:53] didrocks, why do we install gmock btw? [08:53] didrocks, why don't we just put it in /usr/src? [08:53] what do you mean? [08:53] that's what we are doing [08:54] maybe we can ship gtests in gmock [08:54] so that it's going to use that synced version [08:54] didrocks, we can, gtest is contained within gmock [08:54] (it's a bad hack, but still better than nothing) [08:54] yep [08:54] that's why I'm proposing that :) [08:54] didrocks, why can't we do both? gtest and gmock in /usr/src? [08:54] tvoss: gtest is also in /usr/src/ [08:55] it's just out of sync with gmock if we push the latest I guess [08:55] didrocks, I'm thinking about the situation where someone only wants to use gtest [08:55] not following you, we do have gtests as well [08:55] separated [08:55] this is the whole issue [08:56] to be able to upgrade that one, but seeing the number of build-deps… [08:56] okay, so my proposal is: let's have /usr/src/gtest _and_ /usr/src/gmock, with gmock containing a gtest version, too [08:56] tvoss: that's exactly what I'm proposing :) [08:56] didrocks, +1 then [08:56] didrocks, which ties gmock to its internal gtest versoin, all is good :) [08:57] tvoss: I wonder what's happening with all those gtest includes though [08:57] didrocks, good question [08:57] I think we need to hack around the paths so that everytime we use gmock, we check for internal gtest [08:57] if not using gmock, use the system gtest [09:00] didrocks, I would rather say: if you use gmock, don't use gtest. Is a policy sufficient here? [09:00] tvoss: hum, you are using both in mir :) [09:00] same with unity and so on [09:01] $ grep -r gtest tests/ | grep include | wc -l [09:01] 163 [09:01] in Mir [09:03] didrocks, using might be the wrong term: if you do add_subdirectory(/usr/src/gmock) don't do add_subdirectory(/usr/src/gtest) [09:04] tvoss: ah, right, agreed [09:04] tvoss: I hope that all build-deps for google-mock will still build with newer gtest [09:23] tvoss: ok, so at least, not the same error [09:23] tvoss: but back to /tmp/googlemockification/build-area/mir-0.0.6/obj-x86_64-linux-gnu/bin/unit-tests: symbol lookup error: /tmp/googlemockification/build-area/mir-0.0.6/obj-x86_64-linux-gnu/bin/unit-tests: undefined symbol: eglCreateImageKHR [09:23] (so it seems 1.6 was enough? :p) [09:23] alf, ^? [09:29] didrocks: @1.6 was enough, our experience with 1.6 was that we needed to disable warnings/errors for it to build properly with our code, svn version could work mostly ok without disabling stuff [09:32] tvoss: didrocks: @eglCreateImageKHR, I have never seen this error before... we are not using eglCreateImageKHR directly, we are getting it as an EGL extension function pointer [09:33] tvoss: alf: if we can keep 1.6 for now, I would be in favor of that [09:38] didrocks: 1.6 is ancient... the policy of prefering released versions doesn't work well with gmock and other projects that take so long to publish. [09:38] alf: yeah, but did you follow the discussion about gtests? [09:39] alf: the only way for us would be to ack around and ship gtests with gmock, I'm fine with that, but at least, if it fixes anything and if upstream can help fixing the new issues in all build-deps [09:41] alf: however, I do confirm that we don't need to hack around -Werror [09:58] tvoss: any idea of this eglCreateImageKHR? [09:59] I've ported location-service meanwhile [10:05] didrocks, mind pastebining the build log? [10:05] didrocks, thx for porting location service [10:06] tvoss: libusermetrics failed though :/ [10:06] didrocks, why is that? [10:06] tvoss: build logs for Mir: http://paste.ubuntu.com/5843027/ [10:07] tvoss: libusermetrics: http://paste.ubuntu.com/5843029/ [10:08] we can think of some changes in gmock and gtests [10:08] but all those undefined reference make me think the issue is somewhere else [10:09] didrocks, it does not link against gtest [10:09] tvoss: yeah, just came to the same conclusion [10:16] tvoss: ok, libusermetrics fixed [10:18] alf, ping [10:19] didrocks, I think I have the issue with the missing symbol [10:19] ah? [10:20] tests/unit-tests/graphics/test_graphics_platform.cpp returns eglCreateImageKHR [10:22] tvoss: pong [10:23] alf, in tests/unit-tests/graphics/test_graphics_platform.cpp, we have got a free eglCreateImageKHR [10:23] that triggers the missing symbol issue [10:24] tvoss: ok, checking [10:25] tvoss: ok, easy fix, will push shortly [10:25] didrocks, in test_graphics_platform.cpp, lines 72 - 77 [10:25] alf, ^, removing those lines should fix the issue [10:26] tvoss: yes, the right version of this code is already in MockEGL [10:26] alf, yup :) [10:26] didrocks, ^ [10:27] tvoss: so do you want me to submit the fix or do it another way? [10:27] alf, might be a good idea if didrocks just adds it to his changes [10:28] tvoss: fine with me [10:28] didrocks: actually lines 70-77, we don't need the typedef anymore [10:31] ok [10:31] let me try that [10:44] tvoss: some segfault in tests, but it seems to be libGLESv2.so related: http://paste.ubuntu.com/5843104/ [10:49] didrocks, mind running the tests manually in the build directory with ctest -V? [10:50] tvoss: here we go: http://paste.ubuntu.com/5843116/ [10:55] didrocks, okay, that did not give me the information I was after :) [10:55] didrocks, gdb to the rescue then: in the build-dir: gdb bin/unit-tests [11:00] tvoss: sorry, I'm cleaning location-service meanwhile :) [11:00] tvoss: http://paste.ubuntu.com/5843140/ [11:01] alf, this looks like soemthing for you: http://paste.ubuntu.com/5843140/ [11:04] tvoss: mind having a quick look? https://code.launchpad.net/~didrocks/location-service/clean-location-service-pkg/+merge/173003 [11:08] didrocks: is the packaging being run on the phone? [11:08] alf: no, I'm on my desktop here [11:08] (no pbuilder, just saucy) [11:09] didrocks: tvoss: because on error message looks strange "linker.c:1095| ERROR: Library '/system/lib/libGLESv2.so' not found" [11:09] I have a problem with mir trunk [11:10] I run it (intel i9650) [11:10] alf: yep, I agree [11:10] and I can't switch to tty [11:10] even if I kill mir [11:10] everything is frozen [11:10] and I have to reboot [11:10] does anyone has the problem? [11:11] also I see something different in my laptop screen and in my external monitor [11:11] hikiko: is that with pure mir trunk, or does it contain any other changes? [11:11] pure mir trunk alan_g [11:11] alf sorry [11:12] I first had the problem in my branch after merge to trunk but then I compiled trunk itself (fresh clean download and compile) [11:12] and got the same error [11:12] hikiko: ok, let me try... this usually means that something crashes in mir and leaves the VT in a strange state not being able to VT switch [11:13] thank you alf [11:14] hikiko: does it happen with e.g. render_surfaces ? [11:14] no alf I only start the server [11:14] nothing else [11:14] mir_demo_server as root [11:15] it crashes after a few seconds from what I see when I ssh [11:16] so it's probably the crash that causes that [11:19] hikiko: I can't recreate this locally, everything works fine for me. Can you get a backtrace? [11:22] let me try [11:26] crashed but I can't get the bt from gdb I can't switch vt... I ll try to start gdb inside screen in the next reboot and get its output with ssh [11:27] seb128: seems tvoss isn't around, do you mind acking https://code.launchpad.net/~didrocks/location-service/clean-location-service-pkg/+merge/173003 please? [11:28] alf: ok, google-mock set into the pbuilder env, now running mir inside that build env [11:30] didrocks, why do you ned the --fail-missing on the dh line if you override dh_install and have it there already? [11:30] seb128: I added first to the dh line, then added the override [11:30] seb128: so had to repeat it [11:30] but if one day we remove the override, we'll still have --fail-missing [11:31] didrocks, k, wfm, acked [11:31] (here, the override was removed and fail-missing then skipped) [11:31] and I noticed all those beautiful docs not installed! [11:31] thanks seb128 :) [11:31] didrocks, you need to change the MR status, I'm not in the right team [11:31] seb128: thanks! done [11:31] yw ;-) [11:32] * didrocks crosses fingers that mir build will pass [11:32] then, on the list for updating google-mock "only" unity and nux [11:32] I'll let that to bregma's team I guess :p [11:53] tvoss: alf: all tests pass for Mir in a pbuilder [11:53] so I think I've something local triggering that [11:53] * didrocks will do a MP === alan_g is now known as alan_g|lunch [12:09] alf: tvoss: (failing right now because of google-mock version of course): https://code.launchpad.net/~didrocks/mir/use-system-googlemock/+merge/173008 [12:10] didrocks, awesome [12:11] tvoss: didrocks: just remember that to support g++-4.7 we need another fix that is not upstream yet, do we care? [12:11] tvoss: didrocks: (fix in gmock) [12:12] alf: oh, it's needed even with latest snapshot? [12:12] didrocks: yes [12:12] (as everything built fine…) [12:13] didrocks: everything works with g++-4.8 [12:13] alf: do you mind pastebining it right now? I should have it in my logs but will help if you have it handy [12:19] didrocks: http://paste.ubuntu.com/5843334/ it's rev 750.1.5 in trunk [12:21] alf: ok, getting it [12:42] alf: your patch results in http://paste.ubuntu.com/5843397/ [12:43] didrocks: it's not compiled in C++11 mode :/ [12:44] alf: any hint for that? [12:45] didrocks: the problem is that we can't provide c++11 mode headers, since not all gmock users want to use c++11 :/ [12:45] alf: yep [12:45] alf: so removing the patch for now I guess [12:46] didrocks: unless you are ok with conditional compilation "if c++11" ... [12:46] didrocks: I mean defines in the header [12:47] didrocks, alf why don't we add a NOEXCEPT macro? [12:47] alf: if you provide a patch for it, I'm fine, but you have to repatch all build-deps for it (if they intented to have if c++11) [12:47] Is there any livecd with xmir working on it? [12:47] arsson, not yet, but some people have been asking for it [12:47] tvoss: ok, any idea when unity and nux will be ported? then, we can flip the switch for all projects [12:48] didrocks: no, that's only in the gmock headers, like the NOEXCEPT macro tvoss mentioned [12:48] alf, +1 [12:48] alf: that's fine with me, just send the patch and I'll integrate it [12:48] tvoss: I can provide the binaries in a ppa if needed [12:49] didrocks, for the new gmock? [12:49] didrocks, I was more or less thinking about when I should review your mp on Mir :) [12:50] tvoss: it's pushed, see the hilight 50 minutes ago [12:50] didrocks | alf: tvoss: (failing right now because of google-mock version of course): [12:50] | https://code.launchpad.net/~didrocks/mir/use-system-googlemock/+merge/173008 [12:50] tvoss: so yeah, need unity and nux for new gmock [12:51] I've handled the rest I guess [12:54] didrocks, ack [12:54] alan_g|lunch, did the enable_test option land, yet? [12:55] tvoss: I still don't have any answer on who will do unity/nux :p [12:55] alf: give me the patch with #define once you have it, I'll push gmock then to a ppa [12:57] didrocks, can look into it [12:57] tvoss: I have a start for the unity branch if you want, but I really need to switch to unity8 daily builds [12:58] otherwise Saviq will kill me :p [12:58] didrocks, fair. The ppa with the new gmock version would be great though [12:58] tvoss: let me update without alf's patch for now [12:58] didrocks, ack === alan_g|lunch is now known as alan_g [13:03] tvoss: not yet - I need some cmake help with it. https://code.launchpad.net/~alan-griffiths/mir/fix-1196987/+merge/172798/comments/386707 [13:05] tvoss: unity branch is at lp:~didrocks/unity/new-gmock and new gmock without alf's patch is building at https://launchpad.net/~didrocks/+archive/ppa [13:06] didrocks, ack [13:12] didrocks, hmmm, seems like we need to add pkg-config as a build-dep [13:12] didrocks, does that make sense? [13:13] alan_g, can you try to add pkg-config to the build-deps in debian/control? [13:14] tvoss: yes (after a context switch) [13:22] tvoss: I don't think that makes sense - we're talking cross build here (and that uses tools/setup-partial-armhf-chroot.sh to set things up. Not debian/control) [13:25] didrocks: tvoss: The updated fix http://paste.ubuntu.com/5843511/ [13:26] didrocks: let me prefix the macro to avoid collisions... [13:27] tvoss: doesn't work (nor does adding it to tools/setup-partial-armhf-chroot.sh) [13:28] didrocks: http://paste.ubuntu.com/5843518/ [13:29] alan_g, okay ... I was confused [13:31] tvoss: AFAICS the problem is that pkg_check_modules() checks the host, not the chroot [13:33] alan_g, as far as I can tell, there is a package list in the partial chroot setup [13:34] tvoss: yeah, but if I install libmockdev in the host, then pkg_check_modules() is happy in the chroot, and if I remove it from the host pkg_check_modules() fails in the chroot. [13:35] * alan_g is confused [13:36] Hence asking for help before getting bogged down in learning the details [13:40] alan_g, my best guess would be that you need to add it to PACKAGES_ALL [13:49] alan_g, any luck with that? [13:50] tvoss: there's no libumockdev-dev..._all.deb, so it doesn't work - but I'm not following your thinking [13:50] alan_g, there is a set of packages that gets installed in the chroot in the setup script [13:50] alan_g, umock dev is not mentioned there [13:51] yes, and I've put libumockdev-dev into the PACKAGES_ARMHF list [13:51] That (sort of) works, as it gets installed [13:51] But pkg_check_modules() doesn't find it [13:52] pkg_check_modules() finds the one in the host system regardless of the chroot [13:56] alan_g, what is the path to the chroot? [13:56] /home/alan/display_server/mir/partial-armhf-chroot [13:56] alan_g, might be that we need to adjust PKG_CONFIG_PATH [14:04] * ogra_ hopes that weird hacking you guys do above isnt supposed to be uploaded anywheer [14:08] tvoss: that does it. \o/ (Now looking for the best place to set it) [14:10] tvoss: I don't think we need pkg-config, we don't use it in my branch [14:11] ogra_, it is :) [14:12] alan_g, ack [14:12] tvoss, ugh [14:12] didrocks, I need to run some errands, will look at nux and unity when back [14:12] ogra_, not entirely sure what hackery you mean? [14:13] tvoss, cross building in the archive ? [14:13] or is that only for local builds [14:13] ogra_, not in the archive, on jenkins :) [14:13] ogra_, and for local builds [14:13] phew :) [14:14] ogra_, no worries, how could we ever dare to propose such weird concpets? [14:14] i know people are desparate to get faster builds ... the chatter above sounded scary :) [14:14] * ogra_ LOLs [14:14] https://plus.google.com/117323436464400045874/posts/Zu8PkqTmnEN [14:14] so he is testing Mir ... but all comments are about the wallpaper [14:15] didrocks, would be great if we could sync up on package maintainers tomorrow [14:15] ogra_, have seen ;) [14:15] ogra_, I was tempted to write: that sunny spot in the middle, that's (x)mir land ;) [14:15] LOl [14:15] tvoss: sorry, not sure to understand? you mean package ownership? [14:15] didrocks, yup [14:15] sure === tvoss is now known as tvoss|errands === alan_g is now known as alan_g|tea === alan_g|tea is now known as alan_g [15:53] racarr, hello [15:56] katie: FWIW it appears to be a USA holiday [15:56] alan_g, of course! [15:56] alan_g, thanks for reminding me :) === alan_g is now known as alan_g|life === Guest43193 is now known as Debolaz === yofel_ is now known as yofel === dandrader is now known as dandrader|afk === dandrader|afk is now known as dandrader [20:43] hey guys [22:10] thomi, any luck with those infrastructure issues? [22:16] "file:///usr/share/unity8/GreeterShell.qml:18:1: module "Ubuntu.Application" is not installed [22:16] import Ubuntu.Application 0.1 " [22:24] robert_ancell: for the mir_stress stuff? Yes, the solution is to ditch UTAH in favour of Otto to provision the machine. I feel like I"m getting closer [22:35] so guys, mir is broken on armhf due to a test [22:35] kinda need to to build so I can update mir in our image [22:35] https://code.launchpad.net/~ricmm/mir/fix-android-registrar-test/+merge/173106 [22:36] if a merciful soul could take care of that review, I would appreciate it [22:36] builds fine locally on my armhf devices [22:43] ricmm, oh, the compiler fails on that? [22:43] yea, because of unused result [22:43] so might as well test the result [22:43] yep [22:43] that test only builds on armhf [22:44] approved [22:47] thanks === RAOF_ is now known as RAOF [23:38] RAOF: ping? [23:39] thomi: Pong. [23:39] RAOF: I'm fairly sure something in the mir-team/staging PPA is preventing unity 7 from starting, I get: [23:39] compiz: ../../../../../src/mesa/main/hash.c:164: _mesa_HashLookup_unlocked: Assertion `key' failed. [23:40] I wonder if you have any ideas what that could be? [23:40] Well, that sounds suspiciously like mesa :) [23:40] I'm currently updating, so I'll be able to reproduce for you soon, I guess. [23:41] RAOF: thanks, I need to go get some lunch soon, so I'll bug you when I get back I suppose :)