14:59:45 #startmeeting Fedora Packaging Committee 14:59:45 Meeting started Wed Jul 27 14:59:45 2011 UTC. The chair is spot. Information about MeetBot at http://wiki.debian.org/MeetBot. 14:59:45 Useful Commands: #action #agreed #halp #info #idea #link #topic. 14:59:48 #meetingname fpc 14:59:48 The meeting name has been set to 'fpc' 14:59:53 #topic Roll Call 15:00:03 I'm here 15:00:09 Howdy. 15:00:13 although my connection is flaky and I may drop out 15:01:07 * spot is here 15:01:12 (obviously) 15:01:57 FPC ping: abadger1999, limburgher, rdieter, SmootherFrOgZ 15:02:24 Oh captain, my captain! 15:02:34 * abadger1999 here 15:02:55 abadger1999: is the board meeting still conflicting? 15:03:47 spot: not at the moment 15:04:08 okay, well, we have quorum (just barely) 15:04:09 spot: At beginning of September the Board will have to find a new meeting time again. 15:04:30 nirik: are you around? 15:04:34 (but now they're aware of the FPC meeting at least) 15:04:43 yeah, sorry... 15:04:58 so, there's some progress on the PIE thing... 15:04:58 nirik: do you have a draft ready for the PIE issue? 15:05:11 https://fedoraproject.org/wiki/User:Kevin/DRAFT_When_to_use_PIE_compiler_flags 15:05:20 #topic PIE 15:05:28 we need to change the section about flags, ajax was going to make macros for it. 15:05:41 * nirik ediits really quickly. 15:07:14 * spot waits for the ninja edit 15:07:19 basically we have a list where we would like to require it, but also leave open to maintainers to enable it if their package meets criteria for it being usefull 15:07:50 so, the 'use something like this' section will change once we have macros. 15:08:11 as a point of legibility, i'd like to see this broken out on both sides 15:08:21 on the guidelines side, sectioned out by case 15:08:22 I see it's currently 'can'. I'd like must (ain't gonna happen), and failing that I'm not sure if it should be 'can', 'should' or 'should consider' 15:08:25 where PIE is a case 15:08:26 yeah, FPC side/ list side 15:08:36 and the same on the FESCo side 15:08:59 so we can be a bit more specific than "a list of packages that they require to have certain additional compilation flags enabled" 15:09:22 yeah, makes sense. 15:09:30 What's the rationale for preventing maintainers from adding these flags on their own? 15:10:11 I guess that it could cause slowdowns... but I suppose if they don't feel thats a problem then not sure we should prevent them. 15:10:24 abadger1999: PIE will break some code, all PIE compiled code will now longer be prelink-able 15:10:26 they can't use prelink then, and the startup costs will be higher 15:10:32 does the security SIG have a say in which packages get PIE'd? 15:11:02 Okay. I think "should consider" is likely a better choice than "can" in the section limburgher's pointing out. 15:11:33 Probably mention the "PIE may break some code" case as well. 15:11:36 I'd almost want to reword it and switch the ordering. 15:11:45 1) These packages must enable PIE 15:11:51 abadger1999: I agree. Do we agree that 'should consider' is better than 'should'? Due to breakage, performance, etc? 15:11:57 Rathann: what security sig? ;) 15:12:10 First rule of security sig. . . 15:12:37 2) Other packages are not required to enable PIE, but can consider enabling PIE, if . 15:12:50 15:12:56 spot: +1 15:13:29 spot: Shall we have a 'do not/cannot use PIE list' with reasons, like 'too slow', 'ate my baby', etc? 15:13:31 * nirik nods at spot's suggestion. makes sense. 15:13:39 spot:+1 15:13:49 nirik: May I update for the reorder real quick? 15:14:13 limburgher: i think we should perhaps merge the disadvantages into the guideline as part of #2, explaining why you might not want to do it. 15:14:14 abadger1999: sure. go for it. 15:14:36 i'd rather not have a blacklist and just let maintainers use their head 15:15:16 spot: Good. That leaves the decision up to enterprising mainainer. Besides, a blacklist would imply re-testing periodically, if later an item works well with PIE. 15:16:01 Where is this actually going to go in the guidelines? Replacing https://fedoraproject.org/wiki/Packaging:Guidelines#Compiler_flags or somewhere else? 15:16:58 I could see this replacing that section 15:17:07 that section is particularly crufty and old 15:17:15 "as of 2006..." 15:17:48 I would like to see "Adding to and overriding or filtering parts of these flags is permitted if there's a good reason to do so; the rationale for doing so should be reviewed and documented in the specfile especially in the override and filter cases." survive. 15:18:19 but the rest i think is covered in the draft 15:18:39 then tease out === PIE === as a subsection 15:18:54 First reorder of page done. 15:19:27 * nirik reloads 15:21:18 * spot ninja edits in the disadvantages 15:22:19 It would be nice if we had an example of how you might know PIE is breaking your code: "If you compile with gcc and see that it gives an error BLEAGH then it could be the code doesn't work with PIE" or "When you run the app compiled with PIE, if it fails on startup but works when compiled without PIE then your code might not be compatibile with PIE" "If the app segfaults predictably when compiled with PIE [...]" 15:22:40 Just something to point people in the right direction or away from wrong assumptions. 15:22:41 There are some grammar issues, I guess, and if this is going to replace the existing compiler flags guideline it needs to also mention everything that's in that guideline which we want to keep. Particularly, I think it's important to explicitly limit the scope to C, C++ and such where the flags actually make sense. 15:22:51 * nirik isn't sure the cases of that off hand... I agree it would be nice to add. 15:23:24 * spot ninja edits some override language 15:24:33 I think I'd add a sentence to the Compiler flags section that also points at this guideline. 15:24:37 * spot ninja edits for C, C++, and Fortran 15:24:58 abadger1999: i honestly think this can replace the existing section 15:25:00 I think I'd add the guideline text to a new section on http://fedoraproject.org/wiki/Packaging/RPMMacros 15:25:08 * abadger1999 refreshes 15:26:10 the only remaining change that I would make would be to change "should" in the first sentence to "must". 15:26:49 * nirik reloads ago 15:26:50 again 15:27:16 I think I'd add some more of the generic stuff from the current guide. /me does so 15:29:01 Not trying to be an ass, but the sentence starting with "Overriding these flags" approaches Bulwer-Lytton territory. 15:29:21 hee, yeah. 15:29:35 (this is the legal side of me bleeding over, feel free to improve it.) 15:29:43 It was a dark and stormy night when I changed the optimization from -O2 to -O3... 15:31:53 * spot fills in the TODO explaining PIE 15:32:36 ROTLFMAOandspillingmycoffee 15:33:20 Naive edit: http://fpaste.org/fVXD/ 15:33:34 "While it may seem like applying all the compiler flags found in Gentoo's wiki (or the gcc manpage) will make your code go OMGWTFBBQ, it is usually idiotic." 15:33:47 +99 15:33:59 :) 15:34:12 #laughingcantbreathe 15:34:36 tibbs|h: +1 to your change 15:34:41 tibbs|h: looks good, i might drop the ", however, " 15:35:27 but i could leave it in too. 15:35:36 Either way. 15:35:50 * nirik thinks it reads better without that 15:36:03 i just worry that that parses weird with it, much less to someone who doesn't speak English as a first 15:36:19 Sure. I was just rearranging words. 15:36:38 go ahead and ninja edit it in 15:36:54 tibbs|h: Never, ever say that to a legal person. ;) 15:37:25 limburgher: its right up there with "i fixed this existing license" 15:39:09 i think with tibbs's improved wording, I'm +1 on this, although we'd have to wait in on the macros and list before going live with it 15:40:34 OK, edited. 15:40:47 (no ",however, ". 15:41:11 any feedback on changing the first "should" to a "must" ? 15:41:11 Yep, with the macros/how to add the macro to optflags section, this looks good. 15:41:34 spot: Hmm, yeah, "must" makes more sense to me. 15:41:36 "; the rationale for doing so should be documented in the specfile" ? 15:41:44 * nirik thanks everyone for the ninja editing. Sorry its needed work. ;) 15:41:45 yeah, s/should/must/ 15:41:53 abadger1999: no, "Compilers used to build packages should" 15:42:04 although, i could see must there too 15:42:12 yeah, +1 to change both to must. 15:42:38 +1 15:42:46 Generally, yeah, I think we should be using "must" in most of these places. 15:43:33 People tend to disagree over the strength of "should" when we use it. 15:43:50 nirik: No problem, clarifying guidelines is not an onerous task. 15:44:23 i'm not hearing any opposition to the musts 15:44:27 Far better to get it right up front rather than later. 15:44:27 so i am editing them in 15:44:45 as a non-english native, to me must -> mandatory -> optionnal, it is advised, not mandatory 15:44:57 as a non-english native, to me must -> mandatory | should -> optionnal, it is advised, not mandatory* 15:45:08 pingou: that is generally how we consider it as well 15:45:28 except when we use should instead of must :-) 15:45:37 spot: not 100% if you are replacing should by must :) 15:45:37 abadger1999: yeah, except when we get it wrong. :) 15:46:04 okay, i changed the two shoulds to musts. 15:46:10 can we get votes on the draft? 15:46:20 +1 15:46:40 +1 fwiw, still need the macros to finish it off. 15:47:02 yeah, we'll need to review the macros for sanity before it goes live 15:47:32 * spot notes that we just barely have quorum today, so i need votes from everyone to pass this 15:47:34 +1 (but, of course, it's incomplete) 15:48:06 +1 15:48:19 Rathann: still with us? 15:48:22 +1 so far 15:49:02 #action existing draft text (missing macros and FESCo list link) approved, waiting for missing pieces for final approval (+1:5, 0:0, -1:0) 15:49:15 nirik: please keep us updated on progress on the missing bits 15:49:20 will do. 15:49:22 thanks! 15:49:27 #topic Open Floor 15:50:16 there's movement from ville to remove the trigger for (at least common cases) of the systemd guidelines. 15:50:21 * spot will note that he's hoping for a tested draft on any systemd scriptlet changes 15:50:38 i really am expecting that legwork to happen before it hits the consideration queue 15:50:53 Looking at an old ticket, how does this PIE stuff interact with that embryonic PIC guideline? 15:50:55 yeah. The legwork for that is horrendously awful. 15:51:01 i don't want those migraines again. 15:51:27 tibbs|h: PIE is for libs, PIC is for executables 15:51:28 hmm... nirik, could you ask ajax tibbs|h's question? 15:51:40 hum? which guideline? 15:51:42 but yeah, it would be nice to get that done at the same time 15:51:46 I mean, I know they're not the same thing. 15:51:51 https://fedorahosted.org/fpc/ticket/9 15:51:59 thats our oldest open ticket. :) 15:52:10 errrr..... 15:52:15 i got that backwards. 15:52:21 PIC is for libs, PIE for execs 15:52:25 ajax started that quite some time ago. 15:52:45 Honestly I think most of it could go away if rpmlint could just do the check when its appropriate. 15:52:59 But I've no real idea how reasonable that it. 15:53:26 i suspect ajax and someone like jakub would need to figure it out 15:53:33 * nirik isn't sure on that one... might be best to ask ajax. 15:54:33 And relating to the draft we just did, is is there any point to worrying about language-specific build systems (like Perl, Python, R, etc.) that will call the compiler themselves? 15:54:53 tibbs|h: There is... we just don't know the answers atm. 15:55:18 I mean, you generally don't specify compiler flags anywhere when building an arch-specific R module; R takes care of that for you. 15:55:23 in python, for things built using distutils or setuptools, the CFLAGS used to build the python interpreter are used. 15:55:28 tibbs|h: in the cases you call out, the compiler flags inherit from the runtime 15:55:41 But I guess the reviewer can still look at how the compiler is called. 15:55:45 but if you have your own makefile to do it, you'd have to figure out the makefile. 15:55:50 e.g. building R with the proper optflags means that R modules all get built with them too 15:56:25 * spot has a hard stop at 12:00 to take people out to lunch 15:56:41 so... unless there is an item in the next minute or so, i'll close out the meeting 15:56:51 Nothing from me. 15:57:38 nothing here either. 15:58:14 Okay, thanks everyone. 15:58:17 #endmeeting