*** tpb has joined #timvideos | 00:00 | |
*** iiie has joined #timvideos | 01:18 | |
*** mithro has joined #timvideos | 01:57 | |
*** hyades has quit IRC | 02:15 | |
*** mithro has quit IRC | 02:37 | |
*** mithro has joined #timvideos | 02:37 | |
*** mithro has quit IRC | 02:45 | |
*** mithro-work has joined #timvideos | 03:08 | |
mithro-work | I'm back! | 03:08 |
---|---|---|
mithro-work | CarlFK, poke? | 03:21 |
mithro-work | ~seen hyades | 03:21 |
tpb | mithro-work: hyades was last seen in #timvideos 17 hours, 59 minutes, and 6 seconds ago: <hyades> CarlFK: everything unsuccessful :( | 03:21 |
Sewar | welcome back mithro-work | 03:31 |
mithro-work | Sewar, thanks | 03:31 |
mithro-work | Sewar, how are things going? | 03:31 |
Sewar | good | 03:31 |
mithro-work | you and iiie created an exit criteria document right? | 03:36 |
iiie | Greatings | 03:36 |
iiie | We started one yes, I don't know that it's final. | 03:37 |
* iiie goes and looks | 03:37 | |
iiie | Looks good to me | 03:45 |
mithro-work | what is the link? | 03:46 |
iiie | Hm I thought that the edit link would be bad in the log, but it's by account after all (so it can be in the log) | 03:50 |
iiie | https://docs.google.com/document/d/1IkOkHKKrGa0P2UsSA783HUIRjxYpihQS1Cr0B62OiJQ/edit | 03:50 |
tpb | <http://ln-s.net/-yt:> (at docs.google.com) | 03:50 |
*** mithro has joined #timvideos | 04:00 | |
*** iiie has quit IRC | 04:02 | |
Sewar | how to write tests for c? or how to fake system/libcurl calls? | 04:16 |
mithro | Sewar, http://cunit.sourceforge.net/ ? | 04:18 |
tpb | Title: CUnit Home (at cunit.sourceforge.net) | 04:18 |
Sewar | mithro: ok, but how to test functions that make calls to other libraries? like https://github.com/sewar/edid_grabber_c/blob/master/src/uploader.c | 04:32 |
tpb | <http://ln-s.net/-yte> (at github.com) | 04:32 |
mithro | so what it calls just depends on what it linked against, right? | 04:32 |
mithro | just make the test code have a similar interface to libcurl? | 04:33 |
mithro | https://code.google.com/p/cmockery/ | 04:34 |
tpb | Title: cmockery - A lightweight library to simplify and generalize the process of writing unit tests for C applications. - Google Project Hosting (at code.google.com) | 04:34 |
mithro | https://code.google.com/p/lcut/ | 04:34 |
tpb | Title: lcut - a Lightweight C Unit Testing framework - Google Project Hosting (at code.google.com) | 04:34 |
mithro | http://sourceforge.net/projects/opmock/ | 04:34 |
tpb | Title: opmock | Free software downloads at SourceForge.net (at sourceforge.net) | 04:34 |
mithro | http://en.wikipedia.org/wiki/List_of_unit_testing_frameworks#C | 04:34 |
tpb | <http://ln-s.net/4rCX> (at en.wikipedia.org) | 04:34 |
mithro | Google is your friend | 04:35 |
Sewar | alright | 04:35 |
*** mithro has quit IRC | 04:41 | |
*** hyades has joined #timvideos | 04:50 | |
*** mithro has joined #timvideos | 05:56 | |
hyades | mithro: ping! | 05:57 |
mithro | hyades, pong | 05:57 |
mithro | hyades, so, what should I look at? | 05:58 |
hyades | I got stuck at one place :( | 05:58 |
mithro | to prepare for the meeting? | 05:58 |
hyades | no..I mean the travis part | 05:58 |
hyades | faac gets installed, still it says faac not found | 05:59 |
hyades | https://s3.amazonaws.com/archive.travis-ci.org/jobs/11378535/log.txt | 05:59 |
hyades | configure: *** Plug-ins with dependencies that will be built: bz2 curl decklink dvb faac | 05:59 |
hyades | ./tools/gstworker.c:270:error: missing: faac | 06:00 |
hyades | me and CarlFK were trying to solve, but it seems some dependency problem | 06:01 |
mithro | hyades, you probably want to gst-inspect | 06:01 |
mithro | hyades, my guess is there is some confusion between the system gstreamer and the one you are installing | 06:02 |
mithro | but I don't really know | 06:03 |
hyades | CarlFK had some preseed script which he used on a fresh install of Precise | 06:04 |
hyades | it worked with that | 06:04 |
hyades | https://github.com/CarlFK/veyepar/blob/master/setup/pxe/install.sh | 06:04 |
tpb | <http://ln-s.net/-wh5> (at github.com) | 06:04 |
hyades | https://github.com/CarlFK/veyepar/blob/master/setup/pxe/shaz/var/www/d-i/oneiric/preseed_carl.cfg | 06:05 |
tpb | <http://ln-s.net/-wh+> (at github.com) | 06:05 |
mithro | if you are compiling gstreamer you don't want gstreamer installed on the system | 06:05 |
mithro | as it is going to cause confusion | 06:06 |
mithro | hyades, I don't see what Carl's scripts has to do with anything? | 06:06 |
hyades | yes | 06:07 |
hyades | I think this line maybe a problem then | 06:07 |
hyades | https://github.com/hyades/gst-switch/blob/master/.travis-setup.sh#L8 | 06:07 |
tpb | <http://ln-s.net/-yuN> (at github.com) | 06:07 |
mithro | hyades, well that is probably /not/ the problem but the reason you are having a hard time debugging | 06:08 |
mithro | you probably don't want "echo 'yes' | sudo add-apt-repository ppa:gstreamer-developers/ppa | 06:09 |
mithro | " either | 06:09 |
hyades | which of the packages at #L8 are needed? | 06:13 |
mithro | any of the gstreamer ones | 06:29 |
mithro | hyades, I'd check that there is nothing in /usr/lib/gstreamer* | 06:45 |
mithro | hyades, you got time to go through our meeting now? | 06:45 |
mithro | hyades, then I can have an early minute :P | 06:45 |
hyades | mithro: the prefix is /usr/local/lib | 06:48 |
mithro | hyades, yes, so you don't want any gstreamer in /usr/lib/gstreamer then | 06:48 |
hyades | yes, should not be | 06:48 |
hyades | yeah I am free :) But I dont have my laptop with me here | 06:51 |
mithro | hyades, I assume you won't have your laptop in 30 minutes then either? | 06:51 |
hyades | mithro: I dont have gst-switch on this machine. Wait I quickly get it :) | 06:53 |
*** hyades_ has joined #timvideos | 07:01 | |
hyades_ | mithro, yeah got laptop :) | 07:01 |
mithro | hyades, okay | 07:01 |
mithro | So I'm looking over https://docs.google.com/a/mithis.com/document/d/16uyLZXdzyqEN1mYptT4lyrX_53KWXQ90CXr0RD7fmtI/edit?disco=AAAAAGiDzso# | 07:03 |
tpb | <http://ln-s.net/-yv5> (at docs.google.com) | 07:03 |
mithro | and we have about a week to finish anything not already finished | 07:04 |
mithro | hyades, so what do you think are the major things which haven't been finished yet? | 07:04 |
hyades_ | a few things over there will be done only when the build is green | 07:04 |
hyades_ | and a couple of docs are left | 07:05 |
mithro | the "Document which describes how to fork the repository, run the tests and send a pull request for changes" ? | 07:07 |
hyades_ | this one and "Information on parts of the code which is currently untested should be documented with explanations. | 07:07 |
hyades_ | " | 07:07 |
mithro | okay | 07:07 |
mithro | also missing all of | 07:08 |
mithro | Master branch is green | 07:08 |
mithro | Master branch should include the Python API. | 07:08 |
mithro | Changes should be sent as pull requests and merged when travis reports they are suitable for merging. | 07:08 |
mithro | right? | 07:08 |
hyades_ | yes | 07:08 |
hyades_ | the first document is more relevant when the branch is green | 07:08 |
mithro | hyades, so what is blocking you at the moment? The faac problem? | 07:08 |
hyades_ | yes the building procedure | 07:08 |
mithro | hyades, the first document can be written before the build is green with the assumption the build is green, right? | 07:09 |
hyades_ | yeah can be | 07:09 |
mithro | great | 07:11 |
hyades_ | I actually wasn't sure how this exactly works so wanted to give it a try and then write docs | 07:11 |
mithro | hyades_, you can try pretending the build is green right? | 07:11 |
hyades_ | okay | 07:11 |
mithro | hyades, so your goals for this week are? | 07:13 |
hyades_ | the build process is the biggest thing | 07:13 |
mithro | okay | 07:15 |
mithro | hyades, so I want you to do the following | 07:15 |
hyades_ | I am out of luck with it :( | 07:15 |
mithro | hyades, a) understand the files that building each of the modules creates and where they end up | 07:16 |
mithro | hyades, b) which ones gst-switch is using | 07:16 |
mithro | hyades, do you understand what I mean by a) ? | 07:16 |
hyades_ | yeah | 07:16 |
*** hyades is now known as Guest82797 | 07:17 | |
*** hyades_ is now known as hyades | 07:17 | |
mithro | hyades, you then want to make sure that those resources produced in a) are not already installed on the system | 07:18 |
hyades | cool | 07:19 |
mithro | hyades, b) is going to be more difficult | 07:20 |
hyades | how should I do that? | 07:21 |
mithro | hyades, strace is probably helpful | 07:22 |
hyades | k | 07:23 |
mithro | hyades, strace -f and look for all the "open" calls | 07:23 |
hyades | thats lots of output! | 07:24 |
mithro | hyades, yes | 07:24 |
mithro | but its probably still only a couple of thousand files | 07:25 |
mithro | -e trace=file | 07:25 |
mithro | Trace all system calls which take a file name as an argument. You can think of this as an abbreviation for | 07:25 |
mithro | -e trace=open,stat,chmod,unlink,... which is useful to seeing what files the process is referencing. Furthermore, | 07:25 |
mithro | using the abbreviation will ensure that you don't accidentally forget to include a call like lstat in the list. Betchya | 07:25 |
mithro | woulda forgot that one. | 07:25 |
mithro | that might help | 07:25 |
mithro | maybe -e trace=open ? | 07:25 |
hyades | yeah fine, getting what you are saying | 07:27 |
mithro | hyades, that will give you a better idea of what is being accessed | 07:28 |
mithro | hyades, do you have a local set up, or are you just pushing to travis? | 07:28 |
hyades | i have a local setup also | 07:28 |
mithro | hyades, and you get the same problem? | 07:28 |
hyades | no | 07:29 |
hyades | I have all dependencies met..but I dont know which ones are those | 07:29 |
mithro | hyades, so you don't really have a local set up which reproduces travis then? | 07:30 |
hyades | ah..no | 07:30 |
hyades | I have a VM which I sometimes use | 07:30 |
mithro | hyades, a local vm? | 07:30 |
hyades | yes | 07:30 |
mithro | hyades, what are you using to create it? | 07:32 |
hyades | its just a fresh install of precise/quantal | 07:33 |
hyades | should I work with the travis worker images? | 07:33 |
mithro | hyades, I mean which technology? | 07:33 |
mithro | KVM, VirtualBox, vmware, chroot? | 07:33 |
hyades | vmware | 07:33 |
mithro | okay | 07:34 |
mithro | so what I recommend is a fresh install of precise | 07:34 |
mithro | then take a snapshot | 07:34 |
mithro | and try running the travis stuff step by step | 07:34 |
mithro | and looking at what changes on the filesystem | 07:35 |
hyades | yeah fine | 07:35 |
hyades | I will concentrate on /usr/local/lib and bin | 07:36 |
mithro | hyades, If you do a "find /" and then compare the output you can see where all changes end up, right? | 07:37 |
hyades | okay, | 07:37 |
mithro | hyades, you know how to use a diff tool like meld or vimdiff right? | 07:38 |
hyades | I will find out :) | 07:39 |
mithro | hyades, they are tools you should be using all the time :) | 07:41 |
mithro | give it two files and find the differences | 07:41 |
hyades | :) | 07:41 |
hyades | this looks simple enough :) | 07:43 |
mithro | hyades, the other thing I'd like you to do is to split the README.md file into a few sections | 07:44 |
mithro | it's gotten a bit huge | 07:44 |
hyades | k | 07:44 |
hyades | I will put the api part in a different document in python-api/README.md | 07:45 |
mithro | hyades, that was actually always the plan | 07:46 |
hyades | :) | 07:46 |
hyades | k | 07:46 |
mithro | hyades, notice there are two different README.md? | 07:46 |
mithro | Create a README.md for the Python API | 07:47 |
mithro | Update README.md (the existing README) | 07:47 |
hyades | k | 07:47 |
mithro | Create a "how to write tests for gst-switch" document seems to have ended up in the README too? | 07:48 |
hyades | where should this be kept? | 07:50 |
mithro | in a docs folder, or just in a file called "WRITING-TESTS.md" or something? | 07:52 |
mithro | hyades, should be in a fairly obvious | 07:53 |
mithro | place | 07:53 |
hyades | kk | 07:53 |
mithro | hyades, anything else? | 07:54 |
hyades | I removed all those dependencies from travis-setup | 07:54 |
hyades | GError: Could not locate gst_init: libgstreamer-1.0.soso: cannot open shared object file: No such file or directory | 07:54 |
hyades | this will be present in /usr/local/lib | 07:54 |
hyades | https://s3.amazonaws.com/archive.travis-ci.org/jobs/11403873/log.txt | 07:54 |
hyades | should I symlink these to /usr/lib? | 07:55 |
mithro | libgstreamer-1.0.soso ? | 07:56 |
hyades | /usr/local/lib/libgstreamer-1.0.so | 07:57 |
mithro | hyades, no you shouldn't just randomly symlink things | 07:57 |
hyades | or maybe libgstreamer-1.0.so.0 | 07:58 |
mithro | hyades, find out how it is looking for the file | 07:58 |
mithro | hyades, and then you'll find out why it can't find it | 07:58 |
hyades | its like | 07:58 |
hyades | ** (process:10467): WARNING **: Failed to load shared library 'libgstreamer-1.0.so.0' referenced by the typelib: libgstreamer-1.0.soso: cannot open shared object file: No such file or directory | 07:58 |
hyades | where do they look for the typelib? | 07:58 |
mithro | hyades, my guess is that you actually have some gstreamer stuff installed | 07:59 |
mithro | hyades, but I don't know | 07:59 |
hyades | nothing this time :) | 07:59 |
hyades | removed everything | 07:59 |
mithro | hyades, how are you sure? | 08:00 |
hyades | https://github.com/hyades/gst-switch/blob/master/.travis-setup.sh | 08:00 |
tpb | <http://ln-s.net/-wGT> (at github.com) | 08:00 |
mithro | I don't see anything which confirms that gstreamer stuff is not installed | 08:00 |
mithro | hyades, all it confirms is that you don't try and install it | 08:01 |
hyades | aw | 08:01 |
mithro | hyades, I want you to think about testable things you can do rather then just guessing about the state | 08:02 |
mithro | you might be right and there is no gstreamer installed | 08:02 |
mithro | hyades, but how could you make sure that is the case? | 08:02 |
mithro | hyades, how is the program searching for libgstreamer-1.0.so? | 08:02 |
hyades | I am not sure how the gi thing exactly imports stuff | 08:03 |
mithro | hyades, I don't either, I have some guesses on how it might work but nothing concrete | 08:05 |
mithro | hyades, for example | 08:07 |
mithro | you do a | 08:07 |
mithro | + sudo cp /usr/local/lib/girepository-1.0/Gst-1.0.typelib /usr/local/lib/girepository-1.0/GstAllocators-1.0.typelib /usr/local/lib/girepository-1.0/GstApp-1.0.typelib /usr/local/lib/girepository-1.0/GstAudio-1.0.typelib /usr/local/lib/girepository-1.0/GstBase-1.0.typelib /usr/local/lib/girepository-1.0/GstCheck-1.0.typelib /usr/local/lib/girepository-1.0/GstController-1.0.typelib /usr/local/lib/girepository-1.0/GstFft-1.0.typelib /u | 08:07 |
mithro | sr/local/lib/girepository-1.0/GstInsertBin-1.0.typelib /usr/local/lib/girepository-1.0/GstNet-1.0.typelib /usr/local/lib/girepository-1.0/GstPbutils-1.0.typelib /usr/local/lib/girepository-1.0/GstRiff-1.0.typelib /usr/local/lib/girepository-1.0/GstRtp-1.0.typelib /usr/local/lib/girepository-1.0/GstRtsp-1.0.typelib /usr/local/lib/girepository-1.0/GstSdp-1.0.typelib /usr/local/lib/girepository-1.0/GstTag-1.0.typelib /usr/local/lib/gir | 08:07 |
mithro | epository-1.0/GstVideo-1.0.typelib /usr/lib/girepository-1.0/ | 08:07 |
mithro | what was in that directory before? what about after? what file permissions do they have? etc | 08:07 |
hyades | this is also related | 08:08 |
hyades | I dont know much regarding this, was just trying it out. It was a commented line in previous commits | 08:08 |
mithro | hyades, when trying things you want to have before and after results | 08:10 |
mithro | hyades, so you can check that the action had the required result | 08:10 |
mithro | hyades, IE what are you trying to actually do? | 08:10 |
mithro | hyades, maybe it's copy the files there because they don't exist | 08:11 |
mithro | hyades, maybe it's overwrite the files which are already there | 08:11 |
mithro | hyades, your going to have two different things to tests | 08:11 |
hyades | hm | 08:11 |
mithro | hyades, approach this like you would unittesting your code | 08:12 |
mithro | have pre/post conditions | 08:12 |
hyades | see since my prefix is /usr/local | 08:12 |
mithro | if you don't know *why* something needs to occur then find out | 08:12 |
hyades | there is a girepository1.0 formed in /usr/local | 08:12 |
hyades | the rest of the typelibs are generally located at /usr/lib/girepository1.0 | 08:13 |
mithro | hyades, I'm not saying that doing that copy is not reasonable, I just want you to know why and what your expected result is | 08:15 |
hyades | I just removed it and pushed it. Maybe a couple of weeks back, I tried what you are saying. Can't find out which commit it is | 08:17 |
mithro | hyades, great! I was just using it as an example | 08:18 |
hyades | yeah I remember now. | 08:18 |
hyades | You remember I showed you a ImportError couple of weeks back? | 08:19 |
hyades | A very similar one | 08:19 |
hyades | ? | 08:19 |
hyades | i still cant find that commit :/ | 08:22 |
hyades | mithro, bb in 15 mins lunch | 08:29 |
mithro | hyades, nope I don't remeber | 08:29 |
mithro | I'm heading to dinner | 08:29 |
mithro | be back in 30 minutes | 08:29 |
hyades | :) | 08:29 |
*** hyades has quit IRC | 08:34 | |
*** hyades has joined #timvideos | 08:35 | |
hyades | mithro: atleast that's fixed :) | 09:34 |
hyades | i changed prefix to /usr | 09:34 |
hyades | maybe it imports from /usr/lib | 09:34 |
hyades | hence it was not able to find it | 09:35 |
*** mithro has quit IRC | 09:59 | |
*** hyades has quit IRC | 12:22 | |
*** p2-mate has quit IRC | 12:41 | |
*** p2-mate has joined #timvideos | 12:45 | |
*** iiie has joined #timvideos | 12:58 | |
*** p2-mate has quit IRC | 13:04 | |
*** p2-mate has joined #timvideos | 13:07 | |
*** hYaDeS has joined #timvideos | 13:20 | |
*** hyades_ has joined #timvideos | 13:21 | |
*** hYaDeS has quit IRC | 14:03 | |
*** hyades_ has quit IRC | 14:31 | |
*** mithro-work has quit IRC | 15:15 | |
*** Sewar has quit IRC | 15:16 | |
*** hyades has joined #timvideos | 15:17 | |
*** Sewar has joined #timvideos | 15:20 | |
*** mithro-work has joined #timvideos | 15:28 | |
*** mithro-work has quit IRC | 15:36 | |
*** mithro-work has joined #timvideos | 15:37 | |
*** hyades has quit IRC | 16:04 | |
*** hyades has joined #timvideos | 16:26 | |
*** tpb has joined #timvideos | 16:42 | |
*** hyades has quit IRC | 16:53 | |
*** tpb has joined #timvideos | 17:22 | |
*** hyades has joined #timvideos | 17:29 | |
*** hyades has quit IRC | 17:39 | |
iiie | Way to go Sewar! (criteria document) | 18:15 |
*** hyades has joined #timvideos | 18:18 | |
*** hyades has quit IRC | 18:47 | |
*** tpb has joined #timvideos | 18:55 | |
*** iiie has quit IRC | 19:21 |
Generated by irclog2html.py 2.12.1 by Marius Gedminas - find it at mg.pov.lt!