[00:29] <lfaraone> persia: ping
[07:09] <dholbach> good morning
[07:42] <iulian> Morning dholbach.
[07:42] <dholbach> hey iulian
[09:08] <Rhonda> duh
[10:04] <Laney> bdrung: can the native sync branch be merged now?
[10:04] <Laney> bdrung: also, please vote on the dmb applicants
[10:06] <bdrung> Laney: i came back from vacation yesterday. i will have a look at both.
[10:06] <Laney> ah ok, thought you were back for some days now since you've been commenting before
[10:10] <bdrung> Laney: since monday i had internet access
[10:11] <Laney> i see
[10:11] <Laney> hope you had a nice time!
[10:17] <bdrung> Laney: yes (but it was too short) :)
[10:29] <hakermania> tumbleweed, wow! What is this MemoServ thing? Thanks for the link!!! How can you leave a message to someone who's logged off?
[10:30] <StevenK> hakermania: Send it a privmsg of 'help'
[10:32] <hakermania> StevenK, I see. Thanks
[10:54] <hakermania> tumbleweed, I have a hard time explaining to ##c++ and #qt folks what's going on with PREFIX. Do you know any direct way to use it inside my program? cout << "PREFIX" outputs 'PREFIX' but cout << PREFIX gives: /usr/local: was not declared in this scope
[10:58] <jtaylor> you could use a higher level buildsystem like autotools, cmake or scons, it does all for you
[10:59] <hakermania> jtaylor, I don't know if you know what i'm talking about
[10:59] <hakermania> :)
[10:59] <jtaylor> I did not read your message properly :/
[11:00] <jtaylor> the PREFIX macro should be a const string
[11:00] <hakermania> jtaylor, compiler or something provides my code with the variable PREFIX. PREFIX will be /usr/local if the program is installed by source and /usr if installed by DEB.
[11:00] <jtaylor> it seems it is unquoted
[11:00] <hakermania> jtaylor, Yes, exactly!
[11:01] <hakermania> But I have declared it as: DEFINES +="PREFIX=\"/usr/local\""
[11:01] <hakermania> (quoted)
[11:01] <hakermania> So I don't know what to do or what to say (LOL)
[11:02] <jtaylor> in a makefile?
[11:03] <hakermania> jtalor, in the project file I have the Definition
[11:04] <hakermania> jtaylor, in the Makefile, after the definition, it looks like: DEFINES = -DPREFIX="/usr/local" -DQT_NO_DEBUG etc
[11:05] <jtaylor> how is DEFINES used?
[11:06] <hakermania> jtaylor, to define something :P I asked yesterday tumbleweed about the Makefile's condition (DEFINES = -DPREFIX="/usr/local"), i mean if it is what I should achieve, and he said that yes, it's ok
[11:06] <hakermania> And yes, it seems that it is because inside my code I see that PREFIX contains /usr/local, despite the fact that I cannot use it
[11:07] <jtaylor> you can indirect it thorough another macro to quote it, but thats more a workaround
[11:07] <jtaylor> there must be a proper way to do it, but I don't know qmake
[11:09] <jtaylor> maybe drop the quotes around the PREFIX
[11:21] <hakermania> jtaylor, you mean DEFINES +=PREFIX=\"/usr/local\"  ?
[11:21] <jtaylor> maybe
[11:22] <hakermania> failure
[11:22] <hakermania> I bet that tumbleweed knows but enjoys seeing me try :P
[11:24] <jtaylor> in cmake its just -DMACRO="value"
[11:24] <hakermania> jtaylor, and then it's just a const string?
[11:24] <jtaylor> y
[11:29] <geser> you might perhaps need -DPREFIX="\"/usr/local\"" if the inner quotes should stay
[11:36] <hakermania> geser, I used DEFINES +="PREFIX=\"\"/usr/local\"\"" and the Makefile *successfully* gave -DPREFIX=""/usr/local"" but again the same error :(
[11:37] <jtaylor> maybe DEFINES +="PREFIX=\"\\\"/usr/local\\\"\""
[11:38] <hakermania> jtaylor, GODLIKE
[11:38] <hakermania> how did you know?
[11:39] <jtaylor> you need to escape quotes for gcc
[11:40] <jtaylor> quite weird qmake does not handle if for you like cmake
[11:55] <hakermania> jtaylor, tumbleweed does not seem to be around. In my project file I've tell the program to move the files manually to /usr/share, should I tell it to move them to $PREFIX/share?
[11:56] <jtaylor> yes
[12:18] <ahasenack> ng
[12:19] <Ng> that is me
[12:25] <nigelb> heh
[12:38] <tumbleweed> hakermania: no, I don't know the details of how to actually achive most of this (but I could work it out if I needed to, I assume). I have no qmake experience.
[12:39] <tumbleweed> and yes, you learn more when you have to work things out yourself :)
[12:57] <hakermania> tumbleweed, I know that you learn more when you figure out things yourself. Something last about the PREFIX, I use it so as to actually move the files to /usr/(local/)share, so i assume that I should use the PREFIX so as to move the files to the correct directory.
[12:58] <hakermania> I do this in my wallch.pro file while I could do this in the debian/install file. But I don't know how to use PREFIX there. PREFIX could be a variable inside the project file but this variable will be changed by dh!
[12:59] <hakermania> will *not* be changed by dh
[12:59] <hakermania> so it will always be /usr/local
[12:59] <hakermania> Oh, found it I think!
[13:00] <hakermania> tumbleweed, is this the correct way to do it: PREFIX = /usr/local
[13:00] <hakermania> DEFINES += "PREFIX=\\\"$$PREFIX\\\""
[13:00] <hakermania> err and sorry: http://paste.ubuntu.com/670065/
[13:01] <hakermania> I mean by doing so inside the project file will dh be able to change it back to /usr/share?
[13:29] <tumbleweed> hakermania: that sounds about right
[13:31] <hakermania> tumbleweed, about=right?
[13:31] <hakermania> about=semi?
[13:32] <hakermania> about=not?
[13:32] <Laney> try it?
[13:33] <hakermania> Laney, :)
[13:53] <hakermania> i will try it when i'm back cause i have a lesson ._.
[13:53] <hakermania> B
[14:22] <cjwatson> lfaraone: any chance of uploading http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=633904 ?  it would be good to just sync it from unstable rather than needing to do an Ubuntu-specific upload
[14:25] <cjwatson> ow, working on libav transitions is hard work
[14:27] <Laney> are there large api changes?
[14:36] <cjwatson> lots of small ones
[14:55] <lfaraone> cjwatson: sure.
[14:55] <lfaraone> wow, I must have a very expansive definition of "two days"
[14:56] <tumbleweed> you wouldn't be the first person to do that :)
[14:57] <Laney> you never said they were earth days ;-)
[15:14] <manu-tm> Hello, I just uploaded package News-RSS-Ticker on revu and am waiting for someone up to review it: http://revu.ubuntuwire.com/p/news. Thanks! ;)
[15:37] <debfx> what's the best way to check if a package is installed in a shell script?
[15:53] <jtaylor> dpkg -l package | grep -E "^ii.*package" maybe
[15:54] <Laney> dpkg-query
[15:56] <debfx> currently I have: dpkg-query -W -f='${Status}' $PKG | grep -q '^install'
[20:21] <hakermania> tumbleweed, jtaylor, any possible reasons for this: http://paste.ubuntu.com/670346/ ? Also why does it sends them to /usr/local/share while I've run 'debuild' and there were supposed to go to /usr/share?
[20:27] <tumbleweed> hakermania: those errors are because they are going to /usr/local. As to why, I'd need the source package
[20:47] <hakermania> tumbleweed, would you like to send it to you?
[20:48] <hakermania> tumbleweed, I am quite sure that this is happening because inside the project file, PREFIX is a set variable which apparently dh cannot change.
[20:49] <tumbleweed> hakermania: there must be a way to do a variable with can be provided on the command ine
[20:59] <hakermania> tumbleweed, can you tell me exactly what is my need so as to have the necessary information so as to search it on the web?
[21:00] <hakermania> i.e. you need a variable editable by dh, or you need X or Y
[21:01] <hakermania> Because, to be honest, I don't know what I'm trying to achive... A PREFIX variable accessible by the code [OK] editable by dh [(EPIC) FAIL]
[21:05] <tumbleweed> hakermania: I don't know what you are asking, but I read a little qmake documentation and discovered isEmpty. try this: isEmpty(PREFIX) { PREFIX = /usr/local }
[21:08] <jtaylor> isn't prefix built into qmake?
[21:08] <jtaylor> I never used it, but it seems like a pretty standard thing that should just work out of the box on anything above plain makefiles
[21:08] <tumbleweed> that's what I was expecting, but I can't see anything. Ask some qt people :)
[21:23] <hakermania> jtaylor, tumbleweed, can you make me understand the nature of the problem? What's the problem here? As far as I have understood the problem is that dh cannot edit PREFIX variable so as to change it to /usr instead of the default /usr/local
[21:23] <jtaylor> your file should allow PREFIX to be overriden by commandline
[21:24] <jtaylor> search for other qmake projects and see how they do it
[21:24] <hakermania> jtaylor, i'll have a look at clementine
[21:25] <hakermania> unlucky, it uses cmake
[21:51] <hakermania> jtaylor, how would I describe what I want to do? i want qmake set a commandline PREFIX as cmake does so annoyingly easily?
[22:22] <hakermania> Good Night