lfaraone | persia: ping | 00:29 |
---|---|---|
=== almaisan-away is now known as al-maisan | ||
=== al-maisan is now known as almaisan-away | ||
=== Quintasan_ is now known as Quintasan | ||
dholbach | good morning | 07:09 |
=== chrisccoulson_ is now known as chrisccoulson | ||
iulian | Morning dholbach. | 07:42 |
dholbach | hey iulian | 07:42 |
Rhonda | duh | 09:08 |
Laney | bdrung: can the native sync branch be merged now? | 10:04 |
Laney | bdrung: also, please vote on the dmb applicants | 10:04 |
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:06 |
bdrung | Laney: since monday i had internet access | 10:10 |
Laney | i see | 10:11 |
Laney | hope you had a nice time! | 10:11 |
bdrung | Laney: yes (but it was too short) :) | 10:17 |
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:29 |
StevenK | hakermania: Send it a privmsg of 'help' | 10:30 |
hakermania | StevenK, I see. Thanks | 10:32 |
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:54 |
jtaylor | you could use a higher level buildsystem like autotools, cmake or scons, it does all for you | 10:58 |
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 :/ | 10:59 |
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:00 |
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:01 |
jtaylor | in a makefile? | 11:02 |
hakermania | jtalor, in the project file I have the Definition | 11:03 |
hakermania | jtaylor, in the Makefile, after the definition, it looks like: DEFINES = -DPREFIX="/usr/local" -DQT_NO_DEBUG etc | 11:04 |
jtaylor | how is DEFINES used? | 11:05 |
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:06 |
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:07 |
jtaylor | maybe drop the quotes around the PREFIX | 11:09 |
hakermania | jtaylor, you mean DEFINES +=PREFIX=\"/usr/local\" ? | 11:21 |
jtaylor | maybe | 11:21 |
hakermania | failure | 11:22 |
hakermania | I bet that tumbleweed knows but enjoys seeing me try :P | 11:22 |
jtaylor | in cmake its just -DMACRO="value" | 11:24 |
hakermania | jtaylor, and then it's just a const string? | 11:24 |
jtaylor | y | 11:24 |
geser | you might perhaps need -DPREFIX="\"/usr/local\"" if the inner quotes should stay | 11:29 |
hakermania | geser, I used DEFINES +="PREFIX=\"\"/usr/local\"\"" and the Makefile *successfully* gave -DPREFIX=""/usr/local"" but again the same error :( | 11:36 |
jtaylor | maybe DEFINES +="PREFIX=\"\\\"/usr/local\\\"\"" | 11:37 |
hakermania | jtaylor, GODLIKE | 11:38 |
hakermania | how did you know? | 11:38 |
jtaylor | you need to escape quotes for gcc | 11:39 |
jtaylor | quite weird qmake does not handle if for you like cmake | 11:40 |
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:55 |
jtaylor | yes | 11:56 |
=== ximion2 is now known as ximion | ||
=== ximion_ is now known as ximion | ||
ahasenack | ng | 12:18 |
Ng | that is me | 12:19 |
nigelb | heh | 12:25 |
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:38 |
tumbleweed | and yes, you learn more when you have to work things out yourself :) | 12:39 |
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:57 |
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:58 |
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! | 12:59 |
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:00 |
hakermania | I mean by doing so inside the project file will dh be able to change it back to /usr/share? | 13:01 |
tumbleweed | hakermania: that sounds about right | 13:29 |
hakermania | tumbleweed, about=right? | 13:31 |
hakermania | about=semi? | 13:31 |
hakermania | about=not? | 13:32 |
Laney | try it? | 13:32 |
hakermania | Laney, :) | 13:33 |
hakermania | i will try it when i'm back cause i have a lesson ._. | 13:53 |
hakermania | B | 13:53 |
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:22 |
ubottu | Debian bug 633904 in imageshack-uploader "Please patch imageshack-uploader to build correctly with libav 0.7 (experimental)" [Wishlist,Open] | 14:22 |
cjwatson | ow, working on libav transitions is hard work | 14:25 |
Laney | are there large api changes? | 14:27 |
cjwatson | lots of small ones | 14:36 |
=== med_out is now known as medberry | ||
lfaraone | cjwatson: sure. | 14:55 |
lfaraone | wow, I must have a very expansive definition of "two days" | 14:55 |
tumbleweed | you wouldn't be the first person to do that :) | 14:56 |
Laney | you never said they were earth days ;-) | 14:57 |
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:14 |
debfx | what's the best way to check if a package is installed in a shell script? | 15:37 |
jtaylor | dpkg -l package | grep -E "^ii.*package" maybe | 15:53 |
Laney | dpkg-query | 15:54 |
debfx | currently I have: dpkg-query -W -f='${Status}' $PKG | grep -q '^install' | 15:56 |
=== 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 | ||
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:21 |
tumbleweed | hakermania: those errors are because they are going to /usr/local. As to why, I'd need the source package | 20:27 |
hakermania | tumbleweed, would you like to send it to you? | 20:47 |
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:48 |
tumbleweed | hakermania: there must be a way to do a variable with can be provided on the command ine | 20:49 |
=== medberry is now known as med_out | ||
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? | 20:59 |
hakermania | i.e. you need a variable editable by dh, or you need X or Y | 21:00 |
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:01 |
=== yofel_ is now known as yofel | ||
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:05 |
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:08 |
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:23 |
jtaylor | search for other qmake projects and see how they do it | 21:24 |
hakermania | jtaylor, i'll have a look at clementine | 21:24 |
hakermania | unlucky, it uses cmake | 21:25 |
=== JasonO_ is now known as JasonO | ||
hakermania | jtaylor, how would I describe what I want to do? i want qmake set a commandline PREFIX as cmake does so annoyingly easily? | 21:51 |
=== Quintasan_ is now known as Quintasan | ||
hakermania | Good Night | 22:22 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!