/srv/irclogs.ubuntu.com/2017/11/02/#ubuntu-mir.txt

Son_GokuRAOF, hey, it seems like your Git repository is incomplete03:39
Son_Gokuit's missing all the newer tags from Launchpad03:39
RAOFAs in 0.28? Yeah, probably.03:40
Son_Gokuyeah03:40
Son_GokuRAOF, also, now that it's on GitHub officially-ish, I could submit my spec to be merged into the repository03:40
Son_Gokuyou might want to talk to mvo about how he manages to update the spec and debian stuff for the snapd repo and implement the same thing for mir03:41
Son_Gokuand wire up CI building for Mir on Fedora03:41
RAOFPull requests welcome!03:41
RAOF(CLA permitting, I think?)03:42
RAOFYeah, building on Fedora in CI should be a simple as adding a Fedora lxd image.03:43
* RAOF loves that Riot has a “you seem to be shaking the phone in frustration, would you like to file a bug report?” dialogue.03:44
RAOFNow (?) that we've disabled merge proposals on LP we'll need to do a final sync from there.03:45
Son_GokuI signed the CLA last year for snapd stuff03:46
Son_GokuI believe that still applies for Mir03:46
* Son_Goku grumbles slightly about the continued existence of the CLA...03:46
Son_Gokuhmm, looks like there's something wrong with building the package with unit tests enabled03:49
Son_Gokuextracting debug info from /builddir/build/BUILDROOT/mir-0.28.1-1.fc26.x86_64/usr/bin/mir_unit_tests_mesa-kms03:52
Son_Goku /usr/lib/rpm/debugedit: canonicalization unexpectedly shrank by one character03:52
Son_GokuRAOF ^03:52
Son_Gokusomething weird is going on with how mir_unit_tests_* binaries are being compiled03:52
RAOF??!03:53
Son_Gokuthis usually happens when something has something like a double slash is encoded in some path03:54
Son_Gokubecause canonicalization of file paths would reduce it by a character03:55
Son_Gokuso like somewhere in CMake, these things are getting compiled with paths that have double slashes in it03:55
RAOFmir_unit_tests_mesa-kms shouldn't *have* any debug info; it's a symlink!03:55
RAOFBut that's entirely possible03:56
Son_Gokuno it isn't03:56
Son_Gokuit's legit binary03:56
Son_Goku-rwxr-xr-x. 1 root root 118M Nov  1 23:52 mir_unit_tests_mesa-kms03:56
Son_Gokuit's also HUGE03:56
dufluSon_Goku, https://bugs.launchpad.net/mir/+bug/1473330  :)03:57
ubot5Ubuntu bug 1473330 in Mir "mir_*_tests binaries are suspiciously large. Up to 248MB before stripping." [Medium,Triaged]03:57
Son_GokuRAOF: https://paste.fedoraproject.org/paste/jY4AHO9htZkJdk2nEapVlw03:59
Son_Gokuthis is what the built tree looks like03:59
Son_Gokudebug symbols not finished splitting, though04:00
RAOFHm. Have we changed the way we wrap this executables?04:02
Son_Gokuwell, this is the first time I was able to build the unit tests04:02
Son_Gokuthey've been broken before04:02
RAOFHm, no.04:03
* Son_Goku is sending a build of mir 0.28.1 without unit tests to build in copr04:03
Son_Gokuonce we can get the unit tests, then we'll be in a state where putting this in Fedora proper could be a thing04:04
RAOFIn my build tree, mir_* is a symlink to mir_*.bin.04:04
RAOFOh, sorry, wrong.04:04
RAOFmir_* is a symlink to wrapper04:04
Son_Gokuthat seems like debian foo04:04
Son_Gokubecause it's not here04:04
RAOF(Which sets some environment variables and then calls argv[0].bin)04:04
RAOFThat's not debian foo; I'm running a raw cmake build.04:05
RAOFI don't build packages during development ;)04:05
RAOFAll those are being bulit from CMakeLists.txt with mir_add_wrapped_executable(), which is defined in cmake/MirCommon.cmake04:06
RAOFOooooh104:07
RAOF!04:07
Son_Gokuhttps://paste.fedoraproject.org/paste/yg7YM9HFJSPR9a93cGIpmQ04:07
RAOFNo, that's right.04:07
RAOFYou've run make install.04:07
Son_Gokuthis is my cmake command04:07
RAOFAs is right and proper.04:07
RAOFAnd we don't use the wrapper on installed binaries, because we can assume the libraries are also installed.04:07
RAOFBe about your business ;)04:07
Son_Gokuokay then04:07
Son_Goku:)04:07
Son_Gokuyou had me panicking for a bit there04:07
Son_Gokuhttps://copr.fedorainfracloud.org/coprs/ngompa/Mir/build/656918/04:10
Son_Gokuno unit tests yet04:10
Son_Gokusince, well, debugedit says there's something wrong with them04:10
RAOFHrm.04:11
RAOF“strings bin/mir_unit_tests_mesa-kms.bin| rg //” does not show up any // paths for me.04:12
Son_Gokuhmm04:13
Son_Gokuthe person who would know more about this is mjw (Mark Wielaard) in #rpm.org04:14
Son_Gokuhe is the one who hacks on debugedit and knows more than anyone else I know about debug symbol stuff04:14
Son_Gokubut he's not online yet04:14
RAOFThere are a bunch of PATH/../../foo.h in there.04:14
Son_Gokuthat could do it too04:14
Son_Gokubut I'll probably be passing out soon, since it is past midnight here04:15
RAOFBut I'd expect that to result in canonicalisation dropping more than one character :)04:15
RAOFHeh.04:15
RAOFGood news, everyone!04:15
Son_Gokuit's easy enough for someone to reproduce though04:15
RAOFI've been accidentally testing that GNOME Shell passes my wayland conformance suite.04:16
RAOFAnd it does!04:16
Son_GokuRAOF: ?04:16
Son_Goku:)04:16
RAOF(Not that there's much of a conformance suite yet, mostly the infrastructure for one)04:17
Son_Gokuanyway, anyone can reproduce the problem I have by downloading https://copr-be.cloud.fedoraproject.org/results/ngompa/Mir/fedora-26-x86_64/00656918-mir/mir-0.28.1-0.fc26.2.src.rpm and using `rpmbuild -ra --with check mir-0.28.1-0.fc26.2.src.rpm`04:19
Son_GokuI suppose on a debian system with rpm installed, if you have the debian builddeps installed, you could do it with `rpmbuild -ra --nodeps --with check mir-0.28.1-0.fc26.2.src.rpm`04:20
* RAOF fires up positive-seasnail04:20
RAOFSon_Goku: What's the way to install all the build-deps of an rpm?04:26
Son_Goku$ rpm -ivh https://copr-be.cloud.fedoraproject.org/results/ngompa/Mir/fedora-26-x86_64/00656918-mir/mir-0.28.1-0.fc26.2.src.rpm04:29
Son_Goku$ sudo dnf builddep -D "_with_check 1" --spec ~/rpmbuild/SPECS/mir.spec04:29
Son_Goku(ordinarily, we'd use the SRPM directly, but we want more builddeps than the default)04:31
Son_Gokuand once you have the builddeps installed04:31
Son_Gokuyou can just do the following:04:31
Son_Goku$ rpmbuild -ba --with check ~/rpmbuild/SPECS/mir.spec04:31
RAOFTa04:39
RAOFAh.04:47
RAOFI think it's more likely to be a trailing /04:47
RAOFSon_Goku: Fixed in Fedora 27, apparently :)04:58
RAOFhttps://bugzilla.redhat.com/show_bug.cgi?id=30412105:00
ubot5bugzilla.redhat.com bug 304121 in rpm "debugedit prints: canonicalization unexpectedly shrank by one character" [Medium,Closed: rawhide]05:00
RAOFYes! And now that it's hooked up, Mir also passes this particular test!06:56
RAOFSo I guess I get this applied to a git tree, break up some megafiles, and propose.07:01
Son_Goku[09:03:58 AM]  <mjw>pmatilai, O, right, yes, it might also be the some source file is encoded as some/dir//source.c with a double slash which some code might or might not remove and then the lengths don't add up.13:32
Son_GokuRAOF ^13:32
Pharaoh_AtemRAOF: so I ran ctest and got the following error:19:30
Pharaoh_Atem17: [ FAILED ] 1 test, listed below:19:30
Pharaoh_Atem17: [ FAILED ] MesaGraphicsPlatform.connection_ipc_package19:30
Pharaoh_Atem17: [ RUN ] MesaGraphicsPlatform.connection_ipc_package19:31
Pharaoh_Atem17: [2017-11-02 14:54:39.357042] mesa-kms: Using DRM device /dev/dri/card119:31
Pharaoh_Atem17: [2017-11-02 14:54:39.357132] mesa-kms: Using DRM device /dev/dri/card019:31
Pharaoh_Atem17: unknown file: Failure19:31
Pharaoh_Atem17:19:31
Pharaoh_Atem17: Unexpected mock function call - returning default value.19:31
Pharaoh_Atem17: Function call: drmAuthMagic(8, 32659)19:31
Pharaoh_Atem17: Returns: 019:31
Pharaoh_Atem17: Google Mock tried the following 1 expectation, but it didn't match:19:31
Pharaoh_Atem17:19:31
Pharaoh_Atem17: /builddir/build/BUILD/mir-0.28.1/tests/unit-tests/platforms/mesa/kms/test_platform.cpp:108: EXPECT_CALL(mock_drm, drmAuthMagic(mtd::IsFdOfDevice("/dev/dri/card0"),_))...19:31
Pharaoh_Atem17: Expected arg #0: Is an fd of DRM device /dev/dri/card0 (one of: { 10 })19:31
Pharaoh_Atem17: Actual: 819:31
Pharaoh_Atem17: Expected: to be called once19:31
Pharaoh_Atem17: Actual: never called - unsatisfied and active19:31
Pharaoh_Atem17: /builddir/build/BUILD/mir-0.28.1/tests/unit-tests/platforms/mesa/kms/test_platform.cpp:108: Failure19:31
Pharaoh_Atem17: Actual function call count doesn't match EXPECT_CALL(mock_drm, drmAuthMagic(mtd::IsFdOfDevice("/dev/dri/card0"),_))...19:32
Pharaoh_Atem17: Expected: to be called once19:32
Pharaoh_Atem17: Actual: never called - unsatisfied and active19:32
Pharaoh_Atem17: [ FAILED ] MesaGraphicsPlatform.connection_ipc_package (7 ms)19:32
RAOFPharaoh_Atem: Harrumph. Please file a bug, that's the test having an implicit dependency on the order udev enumerates devices in, I think.19:35
Pharaoh_Atemokay19:45
Pharaoh_Atemwhere do I file bugs now?19:45
Pharaoh_Atemis it still LP?19:45
Pharaoh_Atemah, it moved to GitHub too19:46
Pharaoh_Atemthat makes things easier19:46
Pharaoh_AtemRAOF: https://github.com/MirServer/mir/issues/819:48
RAOFTa19:48

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