IRC Logs for #crux Saturday, 2011-12-17

*** Rotwang has joined #crux03:12
*** Lukc has joined #crux03:13
*** Evil_Bob has joined #crux04:39
*** Rotwang has quit IRC04:56
*** Evil_Bob has quit IRC05:09
*** linXea has joined #crux05:26
*** linXea has joined #crux05:26
*** DaViruz has quit IRC05:55
*** DaViruz has joined #crux06:09
*** horrorStruck has quit IRC06:10
*** vaddi has joined #crux06:23
*** mike_k_ has joined #crux06:52
*** linXea has quit IRC07:30
cruxbot[opt.git/2.7]: libdrm: updated to 2.4.29 and enabled nouveau bits.09:26
*** Rotwang has joined #crux10:29
*** zetsu has joined #crux10:40
Rotwanghttp://static.themetapicture.com/media/funny-gif-white-blood-cell-chasing-bacteria.gif10:47
rmullWhat should I do if I'm packaging some software that sets its own CFLAGS in the Makefile?11:07
Rotwangrmull: it depends11:09
Rotwangwhat kind of flags11:09
RotwangI usually patch makefiles11:10
Rotwangto be able to add own flags11:10
rmullRotwang: It sets -O2 and -ggdb3 (among others that I'm less concerned about)11:11
Rotwanghehe interestingf11:12
Rotwangs/f//11:12
RotwangI wonder whats to point of such flags for release builds?11:13
Rotwangs/to/the/11:13
Rotwangrmull: you probably safely may override them with $(CFLAGS)11:13
rmullJust sed -i all the offending flags out?11:14
Rotwangrmull: you probably want to add possibility for custom CFLAGS, don't you?11:15
rmullIt would be nice - this Makefile += appends these CFLAGS to $(CFLAGS) I think, so I only want to shorten the list11:16
RotwangI see11:16
Rotwangthen it should be ok11:16
rmullAlright, thanks.11:16
*** Lukc has quit IRC11:17
rmullThe whole line is: CFLAGS+= -O2 -Wall -ggdb3 -D_GNU_SOURCE -I. $(shell pkg-config --cflags $(LIBS))11:18
rmullSo I only really want to clip -O2 and -ggdb3 out of there11:18
cruxbot[contrib.git/2.7]: libtorrent: 0.12.9 -> 0.13.011:26
teK_for frinnst <311:26
Rotwangrmull: this makefile looks weird11:41
Rotwangrmull: could I see it?11:41
rmullRotwang: Sure11:42
rmullhttp://sprunge.us/ZPRb11:43
rmullThis software (xxxterm) was written for bsd as the primary platform and has ad ifferent Makefile (the one linked) for the linux port11:44
Rotwanghaha11:44
Rotwangfunny11:44
rmullI made a port though, I'll upload11:44
Rotwangeither they use some other make implementation or they don't know how make works11:45
rmullhttp://lug.bu.edu/mirror/crux/ports/xxxterm/Pkgfile11:46
rmullRotwang: They may not use GNU make primarily11:46
rmullThere is a different makefile in the parent directory11:46
rmullthis one appears in the ./linux directory11:47
rmulland it seems to work11:47
Rotwangok11:47
rmullI'm not a make afficionado myself11:47
rmullAnyway, I'm excited for this browser :)11:49
RotwangI was reffering to CC?= gcc line primarly11:49
rmullahh.11:50
Rotwangrmull: you could different delimiters for sed11:50
Rotwangcould use*11:50
rmullhow do you mean?11:50
rmullcombine them all into one line?11:50
RotwangI meant backslashes, at first I thought you are escaping delimiters11:51
Rotwangbut you escape - which doesn't seem to make much sense11:51
Rotwangrmull: - is not special in anyway, except when it is inside [ ] brackets11:52
rmullI suppose it's very possible that i did something wrong, but the result seemed correct - which escapes are the ones under questions? the ones leading the "-" character?11:52
Rotwangand also: sed -i "/^PREFIX/s|local||" ./Makefile11:53
Rotwangis more readable imo11:53
Rotwang"/^PREFIX/s|/local||"11:53
Rotwanganyway, everything seems correct, just selling some hints ;}11:54
rmullYeah, much appreciated, I'll update the Pkgfile11:54
rmullCan I use the pipe char when replacing multiple words, for example, in CFLAGS?11:57
Rotwangdon't understand11:59
rmullSo removing the substring "/local" in the line beginning with PREFIX works as you described just now - can I use the same method to remove two substrings from a line?12:00
Rotwangyes, you can use other delimiters as well12:02
Rotwange.g.: $ sed -r 's,a|b,,' <<< "acb"12:02
Rotwangcb12:02
Rotwangwhithout g flag only first substitution works12:02
rmullahh.12:02
Rotwangof course12:02
rmullman, I suck at sed.12:05
rmullIs there any reason I shouldn't use this line? sed -i "/^CFLAGS/s/\-O2 \|\-ggdb3 //" ./Makefile12:06
Rotwangno but the second substitution probably won't work12:07
rmullBecause of the g flag12:08
rmullOkay12:08
rmullGot it.12:09
*** rines has joined #crux13:29
rineshi everybody. There's a problem in opt / libdrm: old md5sum (v2.4.27)13:29
*** rines has quit IRC13:43
*** jdolan has quit IRC15:02
*** jdolan has joined #crux15:14
*** ChanServ sets mode: +o jdolan15:14
*** seanw has quit IRC15:29
*** seanw has joined #crux15:33
seanwrmull, offlineimap port updated, enjoy!15:47
seanwtho it’s broken offlineimap for me as I think my python file needs changing :(15:59
*** zetsu has quit IRC16:11
*** mike_k has joined #crux16:38
*** mike_k_ has quit IRC16:41
*** mike_k has quit IRC16:43
*** DaViruz has quit IRC17:15
*** Rotwang has quit IRC17:53
*** DaViruz has joined #crux19:25
*** vaddi has quit IRC20:46
rmullseanw: Great, thanks20:51
*** Dudde has quit IRC21:31
*** Dudde has joined #crux21:32
*** jdolan has quit IRC23:17

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