[00:29] persia: ping === almaisan-away is now known as al-maisan === al-maisan is now known as almaisan-away === Quintasan_ is now known as Quintasan [07:09] good morning === chrisccoulson_ is now known as chrisccoulson [07:42] Morning dholbach. [07:42] hey iulian [09:08] duh [10:04] bdrung: can the native sync branch be merged now? [10:04] bdrung: also, please vote on the dmb applicants [10:06] Laney: i came back from vacation yesterday. i will have a look at both. [10:06] ah ok, thought you were back for some days now since you've been commenting before [10:10] Laney: since monday i had internet access [10:11] i see [10:11] hope you had a nice time! [10:17] Laney: yes (but it was too short) :) [10:29] 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] hakermania: Send it a privmsg of 'help' [10:32] StevenK, I see. Thanks [10:54] 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] you could use a higher level buildsystem like autotools, cmake or scons, it does all for you [10:59] jtaylor, I don't know if you know what i'm talking about [10:59] :) [10:59] I did not read your message properly :/ [11:00] the PREFIX macro should be a const string [11:00] 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] it seems it is unquoted [11:00] jtaylor, Yes, exactly! [11:01] But I have declared it as: DEFINES +="PREFIX=\"/usr/local\"" [11:01] (quoted) [11:01] So I don't know what to do or what to say (LOL) [11:02] in a makefile? [11:03] jtalor, in the project file I have the Definition [11:04] jtaylor, in the Makefile, after the definition, it looks like: DEFINES = -DPREFIX="/usr/local" -DQT_NO_DEBUG etc [11:05] how is DEFINES used? [11:06] 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] 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] you can indirect it thorough another macro to quote it, but thats more a workaround [11:07] there must be a proper way to do it, but I don't know qmake [11:09] maybe drop the quotes around the PREFIX [11:21] jtaylor, you mean DEFINES +=PREFIX=\"/usr/local\" ? [11:21] maybe [11:22] failure [11:22] I bet that tumbleweed knows but enjoys seeing me try :P [11:24] in cmake its just -DMACRO="value" [11:24] jtaylor, and then it's just a const string? [11:24] y [11:29] you might perhaps need -DPREFIX="\"/usr/local\"" if the inner quotes should stay [11:36] geser, I used DEFINES +="PREFIX=\"\"/usr/local\"\"" and the Makefile *successfully* gave -DPREFIX=""/usr/local"" but again the same error :( [11:37] maybe DEFINES +="PREFIX=\"\\\"/usr/local\\\"\"" [11:38] jtaylor, GODLIKE [11:38] how did you know? [11:39] you need to escape quotes for gcc [11:40] quite weird qmake does not handle if for you like cmake [11:55] 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] yes === ximion2 is now known as ximion === ximion_ is now known as ximion [12:18] ng [12:19] that is me [12:25] heh [12:38] 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] and yes, you learn more when you have to work things out yourself :) [12:57] 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] 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] will *not* be changed by dh [12:59] so it will always be /usr/local [12:59] Oh, found it I think! [13:00] tumbleweed, is this the correct way to do it: PREFIX = /usr/local [13:00] DEFINES += "PREFIX=\\\"$$PREFIX\\\"" [13:00] err and sorry: http://paste.ubuntu.com/670065/ [13:01] I mean by doing so inside the project file will dh be able to change it back to /usr/share? [13:29] hakermania: that sounds about right [13:31] tumbleweed, about=right? [13:31] about=semi? [13:32] about=not? [13:32] try it? [13:33] Laney, :) [13:53] i will try it when i'm back cause i have a lesson ._. [13:53] B [14:22] 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:22] Debian bug 633904 in imageshack-uploader "Please patch imageshack-uploader to build correctly with libav 0.7 (experimental)" [Wishlist,Open] [14:25] ow, working on libav transitions is hard work [14:27] are there large api changes? [14:36] lots of small ones === med_out is now known as medberry [14:55] cjwatson: sure. [14:55] wow, I must have a very expansive definition of "two days" [14:56] you wouldn't be the first person to do that :) [14:57] you never said they were earth days ;-) [15:14] 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] what's the best way to check if a package is installed in a shell script? [15:53] dpkg -l package | grep -E "^ii.*package" maybe [15:54] dpkg-query [15:56] currently I have: dpkg-query -W -f='${Status}' $PKG | grep -q '^install' === ximion1 is now known as ximion === menesis1 is now known as menesis === ximion is now known as ximion1 === ximion1 is now known as ximion === ximion is now known as ximion1 === ximion1 is now known as ximion === medberry is now known as med_out === ximion is now known as ximion1 === ximion2 is now known as ximion === cr3_ is now known as cr3 === slacker_1l is now known as slacker_nl === med_out is now known as medberry === highvolt1ge is now known as highvoltage [20:21] 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] hakermania: those errors are because they are going to /usr/local. As to why, I'd need the source package [20:47] tumbleweed, would you like to send it to you? [20:48] 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] hakermania: there must be a way to do a variable with can be provided on the command ine === medberry is now known as med_out [20:59] 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] i.e. you need a variable editable by dh, or you need X or Y [21:01] 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] === yofel_ is now known as yofel [21:05] 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] isn't prefix built into qmake? [21:08] 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] that's what I was expecting, but I can't see anything. Ask some qt people :) [21:23] 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] your file should allow PREFIX to be overriden by commandline [21:24] search for other qmake projects and see how they do it [21:24] jtaylor, i'll have a look at clementine [21:25] unlucky, it uses cmake === JasonO_ is now known as JasonO [21:51] jtaylor, how would I describe what I want to do? i want qmake set a commandline PREFIX as cmake does so annoyingly easily? === Quintasan_ is now known as Quintasan [22:22] Good Night