/srv/irclogs.ubuntu.com/2012/10/01/#ubuntu-arm.txt

=== trelane is now known as irker
=== irker is now known as trelane
=== Ursinha is now known as Ursinha-afk
=== Ursinha-afk is now known as Ursinha
=== Quintasan_ is now known as Quintasan
=== doko_ is now known as doko
ogra_infinity, help !14:27
=== Quintasan_ is now known as Quintasan
infinityogra_: ?15:20
ogra_infinity, i have a linker issue and wasted my whole day on it already :(15:20
* ogra_ is super frustrated 15:21
ppisatisquashfs?15:21
ogra_nah15:21
ogra_tegra driver15:21
ppisatiquantal-server-armhf+omap.squashfs15:21
ppisatii just noticed it15:21
ogra_10 min update ... 6h hunting  the linker15:21
ppisatii feel sorry for you :)15:21
ogra_infinity, so libGLESv2.so isnt versioned ... the package installes it to /usr/lib/nvidia-tegra and sets an ld.so.conf.d option ot use that path15:22
ogra_during package build i create a proper symlink libGLESv2.so.215:22
ndec_ogra_: well... you should just ditch your tegra...15:23
ogra_using ldconfig in quantal i get libGLESv2.so -> libGLESv2.so.215:23
ppisatindec_: besides, any news on the omap5 panda side?15:23
ogra_now running es2_info i get a lib not found error15:24
infinityogra_: If it's not versioned, I'm not sure what you think the symlink will accomplish.15:24
infinityogra_: If the ELF header doesn't have the versioned SONAME in it, you're fighting a losing battle there.15:24
ogra_infinity, if i set LD_LIBRARY_PATH it works, if i copy the whole set of libs to /usr/lib or /lib ir works too15:24
ndec_ppisati: any news?15:24
ogra_and it worked with the same packaging in precise15:25
ndec_it's coming soon.15:25
ogra_infinity, so why do /usr/lib and /lib as well as setting the var just work then ?15:25
ogra_(and why did it just work in precise as is)15:25
infinityogra_: Dunno.  Don't we use update-alternatives for GL/GLES in all the other packages?15:27
ogra_i could make the package just install to /usr/lib indeed but i would like to know why that works if a subdir doesnt15:27
ogra_infinity, we do ... doesnt help if ldconfig is so stict though15:27
infinityogra_: And I can't say for sure why yours doesn't work without seeing the package.15:27
ogra_apt-get source nvidia-tegra15:27
infinity(ldconfig hasn't changed at all since precise, so you're barking up the wrong blame tree there)15:27
ogra_is there any way to get something readable out of objdump so that i can check what ldconfig actually sees ?15:28
alex-ac100Hello All15:29
alex-ac100janimo: Are you available&15:29
alex-ac100?15:29
janimoalex-ac100, yes15:29
janimoalex-ac100, I was just told by fly-away about the issue15:30
alex-ac100Sorry for bother you, but just would like to let you know that last linux-meta-ac100 build is not correct15:30
alex-ac100Ah OK, no issues15:31
=== rickspencer3 is now known as rickspencer3-otp
alex-ac100janimo: I was not awaire that have to talk with you on THIS channel, looking for you on #ac100 since yesterday evening15:32
janimoogra_, if you run ldd /usr/bin/es2_info do you get the paths that should be found?15:32
janimoalex-ac100, best use the mailing list I guess. I am not on #ac100. I mostly do a kernel update from time to time since noone else does it, but do not use the ac100 otherwise15:33
ogra_janimo, yes, and ?15:33
janimoogra_, are the libGLES ones missing?15:34
ogra_janimo, its not about the app, its about the lib15:34
ogra_the app asks ld and gets the wrong info ... unless the lib lives in /lib, /usr/lib or i gave the proper path with LD_LIBRARY_PATH15:34
janimoalex-ac100, ah wait the meta build? fly-away told me about NV_SOMETHING option needing turned off or hw accel does not work15:35
janimois this a different issue?15:35
ogra_in these three cases it works fine15:35
janimoogra_, is the rel16 tarball putting the files in the same place as rel15?15:35
ogra_yes15:35
ogra_its exactly identical, just other binaries and a few changes to udev rules and the xorg.conf snippet15:36
infinityogra_: What do you mean "not about the app, it's about the lib"?  What does "ldd /usr/bin/es2_info" say?15:36
alex-ac100janimo: looks like in kernel from linux-metaac100 has CONFIG_TEGRA_NVAVP=y in config. This is totally wrong, as this is for Tegra3 only, while ac100 is Tegra2 based15:37
janimoogra_, I know the order of the lines ld.so scripts created/appended to by the postint mattered15:37
janimoI know I hated those parts of the package too15:37
janimobut I hoped they should all work from now on if we do not touch them anymore15:37
alex-ac100janimo: For this reason video playback is broken with this kernel build15:38
rsalvetiogra_: do you know if the libs are providing a valid SONAME?15:38
janimoalex-ac100, right. So you mean the new kernel package not the meta?15:38
janimothe latter just says which is the actual kernel image deb and does not have any config settings15:38
ogra_rsalveti, how do i find out ?15:38
alex-ac100janimo: I mean this one https://lists.ubuntu.com/archives/quantal-changes/2012-September/010128.html15:39
ogra_rsalveti, i definitely see the wrong name being used in ldconfig15:39
ogra_rsalveti, but that didnt change vs precise ... thats my issue15:39
rsalvetiogra_: objdump -x lib | grep SONAME15:39
janimoalex-ac100, ok, the config issue. I was just confused by you mentioning meta (the namings are confusing for newcomers too so no problem)15:39
ogra_the lib is the same way broken as in the former version15:39
rsalvetiogra_: were you using update alternatives at the previous version?15:40
ogra_yes15:40
ogra_its the same package, i only replaced the binary blobs15:40
alex-ac100janimo: Sorry, I'm not familar with terminology, so my mistake15:40
janimoalex-ac100, yes, no prob, as I said confusing package names :)15:40
rsalvetiogra_: by default the gl applications will look for the .so.xx libs, but I suppose you already got the links in place, right?15:41
ogra_rsalveti, yep15:41
rsalvetijust because I saw a few gles libs just providing the .so one in the past15:41
rsalvetiand that caused run time issues15:41
ogra_ogra@anubis:~/Devel/packages/nvidia-graphics-drivers-tegra-16.0$ objdump -x usr/lib/libGLESv2.so |grep SONAME15:41
ogra_  SONAME               libGLESv2.so15:41
ogra_ogra@anubis:~/Devel/packages/nvidia-graphics-drivers-tegra-16.015:41
rsalvetithe problem with the lack of sonames is more if you decide to build something with it15:42
rsalvetiyup, no version there15:42
ogra_wait15:42
ogra_gets better15:42
ogra_ogra@anubis:~/Devel/packages/nvidia-graphics-drivers-tegra-15~beta1$ objdump -x usr/lib/libGLESv2.so |grep SONAME15:42
ogra_ogra@anubis:~/Devel/packages/nvidia-graphics-drivers-tegra-15~beta1$15:42
infinityThe lack of proper SOVER will confuse the crap out of ld.so15:42
rsalvetiinfinity: even at runtime?15:42
ogra_so apparently ld works fine if there is no SONAME at all15:42
infinityrsalveti: Yes, cause ld won't map the symbols correctly.15:43
rsalvetihm, it might be the case that having SONAME but without version might be causing issues there15:43
ogra_ye, it does15:43
ogra_but why is just the link used if there is no SONAME ?15:43
ogra_the lib lives in the same taret place in both packages15:44
ogra_*target15:44
ogra_with the same linakge15:44
rsalvetiinfinity: could be, but I believe it'd probably work in this case15:44
ogra_*linkage15:44
rsalvetithe libs are supposed to be fully compatible :-)15:44
infinityogra_: ldconfig sets up links based on SOVER.15:45
ogra_also why does it work in  /usr/lib ?15:45
infinityogra_: Working in /usr/lib is probably a red herring, but let me look at this in a bit.15:45
rsalvetiogra_: at the pvr-omap4 one I also had to remove the rpath from the libs15:46
rsalvetito get it to work properly15:46
infinityOh, if it has an RPATH, that would explain the /usr/lib thing.15:46
ogra_well, i think i would break the license if i touched the binary15:46
rsalvetiogra_: can you list the rpath available at your library?15:47
rsalvetinot necessarily15:47
infinityogra_: chrpath -l lib.so15:48
rsalvetiI think at the pvr-omap4 case it had /usr/lib in it15:48
ogra_ogra@anubis:~/Devel/packages/nvidia-graphics-drivers-tegra-16.0$ chrpath -l usr/lib/libGLESv2.so15:49
ogra_`usr/lib/libGLESv2.so' probably isn't a 64-bit LSB-first ELF file.15:49
ogra_elf_open: Exec format error15:49
infinity(And yes, that probably violates the letter of the license to change/remove the rpath but, hey, I used to hex edit GL libraries in linux-restricted-modules) :P15:49
ogra_GRRR15:49
ogra_one sec15:49
janimoalex-ac100, btw are you sure this is for tegra3 only? The kernel  config system should not allow it to be set in that case15:49
rsalvetiogra_: please try 'find usr/lib -maxdepth 1 -iname "*.so*" -type f -exec chrpath -d {} +'15:50
rsalvetiand see if it works better15:50
rsalvetiinfinity: well, we're just removing stuff from the library :P15:50
rsalvetinot adding anything hehe15:50
ogra_ogra@sabre:~/nvidia-graphics-drivers-tegra-16.0$ chrpath -l usr/lib/libGLESv2.so15:50
ogra_usr/lib/libGLESv2.so: no rpath or runpath tag found.15:50
rsalvetiogra_: for all libs?15:51
rsalveticheck the libEGL one15:51
infinityrsalveti: Removing things is still altering them (but yes, I don't much care either, and back when I used to hex edit the bejesus out of nvidia and ATI's libGL, both upstreams told me they didn't care)15:52
infinityThat said, the nvidia upstream for the x86 drivers is a completely different group than for the ARM ones.15:52
infinityFor reasons I'll never understand.15:52
ogra_rsalveti, yes, for all libs15:53
rsalvetiinfinity: hehe, true15:53
ogra_so now the 1mio $ question ... is there a way ro wipe the SONAME ?15:53
ogra_*to15:53
rsalvetithe interesting thing is that it's working on the /usr/lib and /lib paths15:54
ogra_right15:54
alex-ac100janimo: well  not 100%, but when this nvavp option is activated, kernel tried to looad some firmware file15:54
alex-ac100load15:54
rsalvetiogra_: I think there might be a way to wipe it out15:54
janimoalex-ac100, then maybe we just need to package that firmware file too?15:54
lilstevieit should be fwiw15:54
alex-ac100This firmware is not include in R16 package15:54
janimoalex-ac100, at least this does not sound scary from the description:15:55
janimohttp://paste.ubuntu.com/1254125/15:55
alex-ac100janimo: and this firmware in not necessary15:55
ogra_alex-ac100, that will likely be in the codecs package15:55
janimoogra_, should we package those too?15:55
rsalvetiogra_: what is the issue specifically, you're not able to find it at runtime?15:55
ogra_janimo, i would like to :)15:55
janimoput them in linux-firmware?15:55
rsalvetiogra_: even when forcing the ld path?15:55
ogra_rsalveti, right15:55
alex-ac100janimo: ogra_ no, I tested with some custome kernel build without this config settings15:56
ogra_as said above it works with LD:LIBRARY_PATH (which likely just overrides ld here and uses the links)15:56
alex-ac100Hardware Video playback worked fine on that build15:56
ogra_k15:56
alex-ac100WITHOUT that file15:56
alex-ac100Also one guy tried to provide such firmware file, it was included in some nvidia codec pack, not sure which platform. System hanged after loadin it15:57
alex-ac100loading15:58
stuwjanimo, marvin removed nvavp from paz00_defconfig (https://gitorious.org/~marvin24/ac100/marvin24s-kernel/commit/925a5b3d7ab784fc50b4d1edc4a78fa064e7eb0e). nvavp doesn't work for us (checked on android and linux).15:59
janimostuw, ok I will remove it from the next upload15:59
stuwjanimo, thx16:00
infinityogra_: I'm stuck tethering this morning, but I'm downloading things as fast as I can to have a quick poke around. :P16:00
ogra_infinity, i'll push the r16 package somewhere too for comparison16:00
infinityogra_: Oh, yes, please do.16:01
* ogra_ wants a chsoname tool :P16:01
infinityThat may not be the issue.  Especially if, as you claim, it works with different paths.16:02
infinityBut I want to look at it all first.16:02
infinity(Well, it may not be the only issue... It *is* an issue that the library has a broken SONAME, but...)16:02
ogra_well, the former oversion doesnt have a SONAME at all and works :)16:02
rsalvetiogra_: did you try running with LD_DEBUG to see if that would help?16:03
ogra_ah, no, not yet16:03
ogra_what should i run that way ? ldconfig or es2_info16:04
rsalveties2_info16:04
ogra_k16:04
rsalvetiLD_DEBUG=files16:05
rsalvetiLD_DEBUG=init16:05
rsalvetiand others as well16:05
infinityI still kinda want to know what the output of ldd is/was.16:06
infinityBut meh.  Give me packages, and I can debug myself.16:07
ogra_infinity, http://people.canonical.com/~ogra/tegra/nvidia-graphics-drivers-tegra*16:07
ogra_so with ÖD_LIBRARY_PATH set i see direct_opencount=1 for libGLES16:08
ogra_without the var set it properly tells me it cant find the lib16:08
infinityCan't find the lib is a bit odd, since mesa installs one.16:08
infinitySo, something's gone horribly wrong.16:08
infinityAlso, installing the 15.1.0-0ubuntu1 version in my chroot just failed...16:09
ogra_err, no, we have overriden the mesa install path from ld with an alternative16:09
infinityupdate-alternatives: error: error creating symbolic link `/usr/lib/xorg/modules/drivers/tegra_drv.so.dpkg-tmp': No such file or directory16:10
infinityupdate-alternatives: error: error creating symbolic link `/usr/lib/xorg/modules/drivers/tegra_drv.so.dpkg-tmp': No such file or directory16:10
infinityBrilliant.16:10
infinityAlso, double-paste.  Bleh.16:10
ogra_ http://paste.ubuntu.com/1254162/ http://paste.ubuntu.com/1254166/16:10
ogra_first is without, second with LD_LIBRARY_PATH set16:10
ogra_(ldd output)16:11
infinityogra_: So, uhm.  This package is missing a dependency...16:11
ogra_infinity, werid, no idea wheer that comes from16:11
ogra_oh ?16:11
infinityogra_: Likely on xorg-video-abi-13.16:12
ogra_the r16 package has it16:12
ogra_15 didnt, right16:12
infinityAhh, kay.  So, fixed in future. :P16:12
ogra_yeah :)16:12
infinityLet me install an xserver and try again.16:12
ogra_precise didnt complain about that ...16:12
ogra_(lintian didnt)16:12
ogra_iirc now it does16:13
infinityNo, but installing in a bare chroot sure complains.16:13
infinity(See above)16:13
ogra_yeah16:13
infinityOh, still broken.16:14
infinityYour package should probably also ship the /usr/lib/xorg/modules/drivers/ directory...16:14
infinityOtherwise, the postinst only works if one has other X drivers installed. :P16:15
infinityWhich is a bit silly.16:15
ogra_btw http://paste.ubuntu.com/1254177/16:15
ogra_ldd with the lib in /usr/lib16:16
ogra_infinity, hmm, the tarball does, weird i thought the package would just use that ... i'll add it to .dirs16:16
infinityogra_: Also, while I'm nitpicking, arm-linux-gnueabi_EGL.conf should be gnueabihf_EGL16:17
ogra_infinity, r16 ;)16:17
ogra_already fixed16:17
infinityThat could be where your problem lies.16:17
ogra_no, i'm installin on a virgin ac10016:17
infinitySince eabihf_EGL is an alternative shared by mesa.16:18
infinityThe other one wasn't.16:18
ogra_eabi_EGL was until precise16:18
ogra_but only on armel :)16:18
ogra_for which we dont build16:18
infinity(quantal-armhf)root@cthulhu:/etc/ld.so.conf.d# ls16:18
infinityarm-linux-gnueabi_EGL.conf  arm-linux-gnueabihf.conf  arm-linux-gnueabihf_EGL.conf  libc.conf16:18
infinityYes, well.16:18
infinityMy point is that in the above scenario, we get arm-linux-gnueabi_EGL.conf parsed first (which has what you want in it).16:19
infinityOnce you set up the correct alternatives, it may be doing something you didn't expect.16:19
ogra_right, but that file is gone in r1616:19
infinityBut I'll find out once I build your binaries.16:19
infinityogra_: I know the file should be gone in r16, I'm saying that might be your problem. :P16:19
ogra_oh. i can push my binary for you as well ...16:19
infinityogra_: Too late, sbuild's finished installing build-deps. :P16:20
infinityI assume the build itself is a few seconds.16:20
ogra_yep16:20
ogra_pretty niosy about the symbols :)16:20
ogra_just for completion, there is no arm-linux-gnueabi_* file in my /etc/ld.so.conf.d (and never was on this install)16:21
ogra_(helps to have three ac100's :) )16:22
ogra_marvin24, ohhh, intrestin, with the plain kernel video driver i always need to switch to console and back after DPMS, using the tegra driver it just wakes up fine16:25
* ogra_ glares at http://paste.ubuntu.com/1254177/16:26
ogra_intresting that it loads all the other libs from /usr/lib/nvidia-tegra ... just not EGL and GLES16:27
alex-ac100ogra_: yes, wake up works better with tegra drivers16:29
ogra_ogra@anubis:~/Devel/packages/nvidia-graphics-drivers-tegra-15~beta1$ for file in $(ls usr/lib/*.so);do  objdump -x $file|grep SONAME;done|grep .so |wc -l16:32
ogra_objdump: usr/lib/libnvrm_impl.so: File format not recognized16:32
ogra_016:32
ogra_...16:33
ogra_ogra@anubis:~/Devel/packages/nvidia-graphics-drivers-tegra-16.0$ for file in $(ls usr/lib/*.so);do  objdump -x $file|grep SONAME;done|grep .so |wc -l16:33
ogra_5716:33
ogra_ogra@anubis:~/Devel/packages/nvidia-graphics-drivers-tegra-16.0$16:33
ogra_so it seems nvidia tried to be nice and added SONAMEs all over the place ...16:33
ogra_just that they didnt add any versioning ...16:33
ogra_ogra@anubis:~/Devel/packages/nvidia-graphics-drivers-tegra-16.0$ for file in $(ls usr/lib/*.so);do  objdump -x $file|grep SONAME;done|grep .so. |wc -l16:33
ogra_016:33
* ogra_ thinks he should just install libEGL.so and libGLESv2.so (and their links) to /usr/bin and be done16:39
ogra_or link them there or so16:39
ogra_the mesa ones wont be used because we override the alternative16:40
ogra_infinity, ^^^ do you think that could cause any havoc ?16:41
* ogra_ goes to find some coffee16:43
rsalvetiogra_: would probably cause issues with any gles software you might build there16:43
rsalvetiremember that once you built with a wrong SONAME, things get messy16:43
ogra_i would be fine with that and a release note for ac100 ... and the possibility that nvidia fixes it in 3 months or so to SRU it16:44
ogra_it wont make the release if i dont get it in somehow16:44
ogra_and that would be a shame ... took 2 years to get nvidia to a point where they are on the same ABI and have a working driver released in time for us16:45
ogra_rsalveti, also wouldnt builds use mesa anyway ?16:45
infinityogra_: Uhm, your alternatives still seem broken here.16:46
ogra_infinity, in what way ?16:46
infinityogra_: In that I still have a arm-linux-gnueabi_EGL.conf with the r16 package.16:46
rsalvetithe broken soname would affect us even with the right and multi-arch compatible path16:47
ogra_http://paste.ubuntu.com/1254227/16:47
ogra_thats how it looks for me16:47
rsalvetiso I don't think there's any easy way out here16:47
ogra_did you uninstall r15 ?16:47
infinityogra_: I just built and installed from your sources.16:47
rsalvetiwe should probably just try to get this working with multi-arch and update-alternatives and get it to the archive16:48
ogra_rsalveti, but how without hacking the SONAME ?16:48
rsalvetiwe first need to understand if that's really the issue16:48
rsalvetiwe currently don't know what is happening :-)16:48
ogra_well, its the obvious difference between r15 and r1616:49
infinity(quantal-armhf)root@cthulhu:/etc/ld.so.conf.d# update-alternatives --list arm-linux-gnueabihf_egl_conf16:49
infinity/usr/lib/arm-linux-gnueabihf/mesa-egl/ld.so.conf16:49
ogra_r15 no SONAME, apps follow the links ... r16 SONAME but wrong, ldconfig caches the wrong soname, apps fall over because the wrong SONAME is provided16:49
infinityBefore we faff about SONAMEs, let's address this business. :P16:50
infinityogra_: Are your local sources different from the ones you pointed me at?16:50
ogra_just checking that16:50
ogra_ --install /etc/ld.so.conf.d/arm-linux-gnueabihf_EGL.conf arm-linux-gnueabihf_egl_conf /usr/lib/nvidia-tegra/ld.so.conf 900016:51
ogra_thats in my current postinst16:51
infinityYeah, that's not what I have here.16:52
ogra_ah, super sorry16:52
infinityAlso, your prerm will need to both remove the old and new ones, but maybe it does in your version.16:52
ogra_not yet, but i'm aware16:52
infinityLet me do this by hand and see where it lands me.16:53
infinityAlright, that gets me to your breakage now.16:55
infinityHrm.16:57
infinityln -s /usr/lib/nvidia-tegra/libGLESv2.so.2 /usr/lib/16:57
infinity^-- That really shouldn't work.16:57
infinityBut it does. Grr.16:57
infinityAnd LD_DEBUG=all just shows that it's not using /usr/lib/nvidia-tegra in the search path at all.16:58
infinitySo, not necessarily the SONAME to blame here.16:59
ogra_werid, because ldconfig -v just lists the libs fine17:00
ogra_i get: libGLESv2.so -> libGLESv2.so.217:01
ogra_(note the wrong order due to the SONAME)17:01
infinityI don't...17:01
infinityI don't get it listed at all.17:01
infinityOr, I can't type.17:01
ogra_well, i do, probably your alternatives are still wonky ?17:01
infinityThe thing is, linking it in /lib doesn't change the wonkiness of that so -> so.2 thing.17:02
infinityIt just starts showing up in searched.17:02
ogra_with LD_DEBUG i see that libGLESv2.so.2 gets directly loaded when in /usr/lib17:02
infinityseaches*17:02
ogra_right17:02
ogra_it will make binaries work :)17:03
infinityYeah, but.  That doesn't tell me anything about what's wrong.17:03
* infinity compares a chroot with r15 to one with r16 to sort this out.17:05
ogra_nothin is worng (apart probably from being able to force loading of a lib if i put it in /usr/lib)17:05
ogra_ld does the right thing17:05
infinityWhich right thing is that?17:05
ogra_using the SONAME and caching the lib info with it17:05
ogra_its not ld's fault that the SONAME has no version number17:06
infinityWell, yes, that's the right thing, but that shouldn't relate to search paths.17:06
ogra_oh, still taht17:06
ogra_sorry, thought you solved that bit yet17:06
infinityNo, if it was searching the path, it would work.17:07
infinityThat's how it finds it when it's in /lib17:07
ogra_oh, inbtresting ... ldconfig -v with the lib in both places shows me the SONAME issue for both even17:08
infinityogra_: Yeah, I said that earlier.17:08
ogra_ah17:08
infinityOkay, so looks like two bugs.17:14
infinityOne is the library having the wrong SONAME, which means it won't land in the cache.17:14
ogra_right17:14
infinityThe other is that ld.so doesn't search the extended path, only ldconfig.17:15
ogra_oh17:15
ogra_and that changed since precise ?17:15
infinitySo, ldconfig will search the path and add "correct" libraries to the cache.  But our library is broken, so it doesn't get cached.17:15
infinityLater, ld.so searches the cache, finds nothing, and then walks the built-in directories it knows about.17:15
infinityNo, it didn't change.17:15
infinityThe r15 library gets cached.17:15
infinityAnd found from the cache.17:16
infinitySo no walking required.17:16
ogra_it doesnt have a SONAME17:16
infinityYes, which is apparently better than having an incorrect one. :P17:16
ogra_lol17:16
ogra_yeah17:16
ogra_obviously17:16
ogra_so do you know any trick to wipe the SONAME field (or ven fix it)17:16
ogra_*even17:17
infinityIf there's padding in the ELF header, you could fix it.17:17
infinityCheck with a hex editor.17:17
ogra_padding would be zeros ?17:20
infinityYeah.17:21
ogra_hexedit doesnt really show anything usable on the right ...17:21
ogra_and there seem to be no zeros at the start of the file17:21
ogra_GCC: (crosstool-NG hg_unknown@20110628.165246) 4.5.317:23
ogra_heh17:23
ogra_4.517:23
infinityBoom, easily fixed.17:24
ogra_??17:25
infinityThere's a bunch of nulls after GLIBC_2.417:25
ogra_yep, i see them17:25
ogra_e_match.__cxa_call_unexpected.libGLESv2.so.GLIBC_2.4................17:25
infinitySo, you replace libGLESv2.so\0GLIBC_2.4\0\0 with libGLESv2.so.2\0GLIBC_2.417:25
infinityAnd it all magically works.17:25
infinityThe same needs to be done for libEGL.so.1 as well.  And who knows what else.17:26
infinityA quick binary patching script to fix it up in the build wouldn't be much effort.17:26
ogra_only the two to make binaries work at least17:26
infinityAnd would be the more "correct" fix anyway.17:26
infinityAs annoying as it is.17:26
ogra_>/me has never done somethin like this, do you know odf an example ?17:27
ogra_(i manage editing with hexedit indeed, but have no idea how i would have to script that)17:29
infinitysed -i -e 's/libEGL.so\x00GLIBC_2.4\x00\x00/libEGL.so.1\x00GLIBC_2.4/' /usr/lib/nvidia-tegra/libEGL.so17:31
ogra_you can sed that ?!?!?!17:31
ogra_geez17:31
infinity^-- That seemed to DTRT for my libEGL, cook as appropriate for others.17:31
infinityogra_: Requires GNU sed (\x00 is a GNU extention), but we don't ship any other POSIX seds anyway, so whatever.17:32
* ogra_ wouldnt have thought of sed ... probably some dd and cat weirdnesses, but not sed :)17:32
infinityHrm, that might not have worked actually.  sed may have broken it.17:33
infinityWas good enough for ldconfig, not good enough for ld.so. :P17:33
infinity(While hand-editing was good enough for both...)17:33
infinityThere was a nice C-based binary patches in LRM, back when LRM still existed.17:33
ogra_yeah, i'm still poking bytes here17:33
infinityI can try to dig it up in a bit.17:33
infinityOh wait.  Hahaha.17:34
infinityNo, it's not that sed broke it.17:34
ogra_well, worst case i change it while repackaging the updatream tarball17:34
ogra_*upstream17:34
infinityIt's that other libraries are linked to libEGL.so, which doesn't exist once I've done that.17:34
ogra_i have to do that anyway to match the format of the package17:34
infinitySo braindead.17:35
ogra_oh, indeed, all libs use the broken sonames :)17:35
* infinity head -> desk.17:36
infinitySo, monkey-patching the SONAMEs won't work, since while that fixes all OUR binaries, it breaks all of THEIRS.17:36
infinityBrilliant.17:36
ogra_btw, is there any particular reason that ld doesnt search additional dirs ?17:36
infinityOther than it being painfully slow to make ld.so parse a conf.d directory for run-time configs, no.17:37
infinityIt's meant to trust the cache.17:37
ogra_k17:37
infinityWhich would work, if the cache was caching libraries that weren't insane.17:37
ogra_heh17:37
infinityDo you have a good enough rapport with upstream to just get them to fix their SONAMEs?17:39
infinityCause this is going to end up on our end with either a mess of incorrect symlinks, or monkeypatching and a few incorrect symlinks.17:39
infinityNeither is pretty.17:39
ogra_not in time17:39
infinityAnd neither is correct.17:39
infinityCause you're going to have to ship "dev" symlinks (/usr/lib/*.so) to make this work, even after patching the binaries to be unbroken.17:40
infinityWell, maybe you could patch the NEEDED section in everything too...17:40
ogra_well, as i said in the beginning, i would just install EGL and GLES to /usr/lib17:40
infinityYeah, or that.  Still broken. :/17:41
ogra_all others arent versioned at all and are only used by these two17:41
ogra_yes, but once there is a fix i wont have to fiddle with symlinks ...17:41
ogra_the files would just move to lib/nvidia-tegra and ldconfig woudl pick up the change17:41
infinityI'd still like to talk to upstream about doing it right.17:42
ogra_i'll surely poke srwarren about it but he's despite being my contact not the maintainer17:42
mjrosenbdo you guys have plans for firefox-18?17:42
=== rickspencer3-otp is now known as rickspencer3
infinitymjrosenb: When it's the current version, sre.17:43
infinitys/sre/sure/17:43
ogra_damned, now how do i save a file in hexedit ...17:44
mjrosenbinfinity: that turns on ionmonkey, which is not armhf friendly17:44
ogra_pressing a key tells me F1 for help ...17:44
ogra_F1 indeed gives me the gnome terminal help :P17:44
infinityogra_: I dunno, I use ghex, which appears to have sane menus.17:45
infinityogra_: That said, sed was doing the right thing for me.  It was just the NEEDED sections in OTHER libs that were still broken.17:45
infinity(As in, some of the little support libs are linked against "libEGL.so")17:45
infinitymjrosenb: I've not looked into it or heard much about it.  How not friendly is it?17:46
ogra_ah, ctrl-x17:46
mjrosenbinfinity: it should need minimal modifications, but I'm considering leaving that up to a student/contributor, which means it may never get done17:47
infinityrsalveti: ^-- Something for your team to poke at?17:48
infinityjanimo: You around?17:50
janimoinfinity, yes17:50
* janimo wonders what he broke now17:51
infinityjanimo: precise armadaxp.  It's an ABI bump, but no meta.17:51
janimoah, the SRU right?17:51
infinityjanimo: Also, don't set promote-to-proposed tasks to Fix Released if you do the copy yourself.  Cause, well.  It's in the queue, and not done. :P17:51
infinityjanimo: Yes.17:52
janimook, I usually waited to see the package building before uploading the meta17:52
infinityjanimo: (Really, no need to do the copy yourself anyway, I notice when they need to be done, and I need to babysit them anyway)17:52
infinityjanimo: Erm, "see it building"?  You already copied it to the archive!17:52
janimoinfinity, ok. I think when I did the first SRUs at the beginnning of Q I was told I should copy them17:52
janimoor they'd languish there17:52
infinityYeah, you were lied to. ;)17:52
infinity(You can copy if you like, but it just ends up in the queue and someone needs to manually do overrides anyway, I prefer to do it all when I know what's going on)17:53
janimook, I will not copy from now on, not sure why I was asked too17:53
infinityjanimo: Anyhow, copying yourself or not, please never do the copy until after all support packages (only meta in your case) are also done, so they can all copy together.17:54
janimoinfinity, ok. I always thought it's ok to have the linux-image package there without meta17:54
infinityjanimo: Since promote-to-proposed assumes the whole thing as a block (lbm/linux/meta/etc)17:54
janimoas it does not get  upgraded to anyway until meta is there no?17:54
janimoah, I had no idea about that promote contract17:55
janimoit makes sense, just I did not encounter it so far17:55
infinityjanimo: Even in devel releases, I prefer if it happens this way, but for SRUs, we have a pretty strict way of doing things.17:55
infinityjanimo: For devel releases, I'd still rather see kernel/meta go to proposed together, instead of this "we have two kernels in the archive, and one's NBS" thing.17:55
infinityjanimo: Anyhow.  meta the PPA up for me, if you please.  I'm going to reject the current copy for the sake of my own sanity and reset the task, and I'll do the whole thing together later.17:57
janimoinfinity, ok, will do17:57
infinityOh, feh.  I can't reset the task.17:57
infinityI'll just reassign it to me and remember to do it later. :P17:58
ogra_hmm, so i manage to empty the SONAME field, but i cant make it vanish18:13
ogra_oh, and an empty SONAME really makes ld dizzy :)18:14
ogra_infinity, <srwarren> We do have a bug to add (correct) sonames to the libraries, and it's also possible we half-implemented it but with bogus values. anyway, I'll track down the bug and put comments there indicating the problem.18:21
ogra_(from #ac100)18:21
janimoinfinity, meta built in ppa18:22
infinityjanimo: I noticed, thanks.18:22
ogra_<woglinde> swarren no chance to use cmake or autotools with libtool?18:22
ogra_<srwarren> woglinde, no, we build the libraries with the same tools for Android, Linux etc.18:22
ogra_<srwarren> and hence someone developed custom makefiles for it all.18:22
ogra_now thats lovely18:22
infinityMeh, if they figured out how to put some sort of SONAME in there, they can figure out how to make it right. :P18:23
infinityNot rocket science.18:23
ogra_heh, indeed18:23
* janimo is tempted to save the backlog of the past hours of conversation on this list for future historians who may be interested in the ways people at the beginningof 21st century struggled to convey straightforward things due to error prone and inexpressive tools at their disposal18:23
janimoto computers18:24
ogra_infinity, well, i told him if he manages to get me a rebuild til thu it will make it in (given there are no other bugs)18:24
ogra_lets see18:24
ogra_he is very concerned18:24
ogra_(srwarren is a good guy ... he's also active on cross-distro )18:25
ogra_infinity, given that the driver works just fine and only the libs are affected i'm pondering to upload as is ... while GLES doesnt work then, HDMI works and xorg only uses 1/10h of ram18:43
ogra_*1/10th18:43
ogra_that should also make SRUing an upstream fix easy18:44
* ogra_ will put the current package on the shelf for thu ... if nvidia manages i can still update the tegra_bins tarball quickly18:45
alex-ac100janimo: I'm afraid, but this ac100 3.1.10-5-ac100 #8 kernel build is not correct again20:59
janimoalex-ac100, what is missing?20:59
alex-ac100janimo: TEGRA_AVP_KERNEL_ON_MMU=y21:04
janimoalex-ac100, can you clone the git tree and build the package yourself?21:04
janimodid you build marvin's ?21:04
ogra_TEGRA_AVP_KERNEL_ON_MMU=y is correct, no ?21:05
janimono idea21:05
alex-ac100it is, but not set in last build21:05
ogra_well, afaik it is21:05
janimothey have  many cryptic config names which I do not know what they stand for21:05
ogra_ah21:05
alex-ac100same here21:05
ogra_well, fly-away isnt here, he fiddled with all that multimedia playback stuff21:06
ogra_(he is in #ac100 though)21:06
rsalvetiogra_: infinity: I don't think sed would work there22:47
rsalvetibecause the size is different22:47
rsalvetiand the elf headers stack size would probably change22:47
rsalvetibreaking some other stuff22:47
rsalvetiso I believe the easiest way to handle that is to handle the pain of having the libs at the standard locations22:48
rsalvetisuch as /usr/lib, and get that bug opened for nvidia to handle later22:48
infinityrsalveti: The sed I gave him didn't change the size.22:50
infinityrsalveti: But there's breakage in their other libs havng the unversioned .so in NEEDED, so yeah.  It's all pretty FUBAR. ;)22:51
rsalvetiinfinity: oh, true, luckly there was \0\022:52
rsalvetiyeah, that's expected as well22:52
rsalvetiin android nobody cares about sonames22:52
rsalvetiactually, nobody cares about anything that's vendor/hardware specific :-)22:52
rsalvetithe problem is that then the vendor ends up using the same solution everywhere else :-)22:53
infinityrsalveti: I'm fairly confident they'll fix it for Oli, the question is if they'll do it in a timely fashion. ;)22:55
* infinity thinks he should take an afternoon nap and sleep off this cold/flu/whatever.22:56
rsalvetiyeah, not for quantal, for sure22:56

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