14:59:43 #startmeeting Fedora Packaging Committee 14:59:43 Meeting started Wed Jun 29 14:59:43 2011 UTC. The chair is spot. Information about MeetBot at http://wiki.debian.org/MeetBot. 14:59:43 Useful Commands: #action #agreed #halp #info #idea #link #topic. 14:59:47 #meetingname fpc 14:59:47 The meeting name has been set to 'fpc' 14:59:53 #topic Roll Call 15:01:18 * spot is here (for once) 15:01:23 * limburgher yago! 15:02:33 abadger1999, geppetto, rdieter, tibbs|h, SmootherFrOgZ: ping ? 15:03:00 Howdy. 15:03:01 spot: present 15:03:04 yo 15:03:12 here 15:03:30 okay, thats 6 of us. 15:03:39 Lets get this party started. :) 15:03:53 #topic PIE (https://fedorahosted.org/fpc/ticket/93) 15:04:14 is someone actually writing a draft, aside from abadger1999's stub comment? 15:04:35 nirik: ping ^ 15:04:39 * nirik was going to try to, but hasn't gotten to it. Would welcome someone else doing so. ;) 15:04:48 here 15:04:52 hi Rathann 15:05:11 hi racor 15:05:18 the only thing you two have missed is this: 15:05:19 hi, sorry for being late 15:05:24 is someone actually writing a draft, aside from abadger1999's stub comment? 15:05:28 nirik: ping ^ 15:05:28 * nirik was going to try to, but hasn't gotten to it. Would welcome someone else doing so. ;) 15:05:33 * SmootherFrOgZ here 15:05:43 wow. we have full attendance today! 15:05:51 * spot can't remember when that last happened 15:05:55 Pistachio Baconsmith! 15:06:14 spot: 4 weeks ago ;) 15:06:20 nirik: i think you may be on the hook for this draft, i don't see people jumping all over it. 15:06:26 see the power of this fully attended FPC... the ultimate power in the universe! :) 15:06:26 SmootherFrOgZ: shows how poor my memory is. ;) 15:06:36 ok, I will try and get something this week... 15:06:52 nirik: I'll never join yo. . .shit, already did. 15:06:53 #action Waiting on nirik's draft. 15:07:12 #topic Clarify libexecdir - https://fedorahosted.org/fpc/ticket/95 - https://fedoraproject.org/wiki/Libexecdir_clarification_packaging_draft 15:07:56 FWIW, this draft seems reasonable 15:08:26 And relatively easy to understand. 15:09:16 Does anyone else have an issue with it? (I'm assuming most of us are reading it right now...) 15:09:34 Seems OK to me. 15:09:55 * spot is +1 on the draft 15:09:58 +1 15:09:59 Some of this is "just pick something for the sake of picking something" but I think that's OK. 15:10:04 +1 15:10:05 +1 15:10:26 +1 15:10:35 So … one minor thing 15:11:07 It says "If upstream's build scripts support the use of /usr/libexec then that is the most appropriate place to use." … which implies that people should use that over doing --libexecdir=%{_libexecdir}/%{name} 15:11:22 but maybe that's too anal 15:11:38 it does mention that %{_libexecdir}/%{name} is better a bunch 15:11:38 eeeeeh. . . 15:11:50 to me, it means, "implies that people should use that *prefix*..." 15:11:53 hmm. 15:11:53 thats not how i would read it... but if you have a wording change to eliminate that ambiguity... 15:12:02 That would be lovely. 15:12:17 "as a prefix" ? 15:12:21 * abadger1999 adds that now 15:12:24 * spot nods 15:12:41 seems fine to me 15:12:48 +1 15:13:09 I see +6 at the moment. 15:13:12 If upstream's build scripts support the use of %{_libexecdir} then that is the most appropriate place to configure it (eg. passing --libexecdir=%{libexecdir}/%{name} to autotools configure). 15:13:25 +1 15:13:38 * abadger1999 adds geppetto's version 15:13:43 Still +1 here. 15:13:56 +1 15:14:13 racor: would you like to vote for the record, we are at +8 15:14:15 I disagree on the %{_datadir}/%{name} sentence - It's for data, not for programs 15:14:37 apart of this I am all for this. 15:16:13 okay, well... since i'm not seeing a willingness to tear into that particular discussion... 15:16:23 both FHS and GCS agree on this. 15:16:25 I'm ambilavent 15:16:41 no it's not ambivalent. 15:16:52 I would say that the %{_datadir}/%{name} sentence is a bit of a stretch 15:16:56 I didn't mention /usr/lib for similar reasons to what racor is saying about %{_datadir} 15:17:20 but clearly, there are people/upstreams who think that is an acceptable home for helper binaries 15:17:51 I think the reference to %{_datadir}/%{name} should simply be removed. 15:17:57 racor: I agree that it's not ambiguous -- I'm feeling ambivalent about whether I want to fight with upstreams/packagers over its use. 15:18:42 * abadger1999 would still vote +1 if we struck that sentence. 15:18:53 * spot would also still vote +1 if we struck that sentence 15:19:06 * Rathann too 15:19:07 * limburgher so would I 15:19:15 Okay, striking sentence 15:19:19 abadger1999: that's the dilemma of the FPC ... fighting windmills, ... 15:19:28 then +1 15:19:37 Just for clarity, lets get a revote with that sentence dropped, starting with racor's +1 just now 15:19:40 +1 15:19:49 +1 15:19:51 +1 15:19:52 +1 15:19:57 I'm OK either way. I feel it was sufficiently disparaged in the original draft but it doesn't much matter. 15:19:59 +1 15:19:59 +1 15:20:01 +1 15:20:29 rdieter? 15:20:58 +1 then 15:21:32 #action Draft approved (with modifications made on the fly) - (+1:9, 0:0, -1:0) 15:22:10 #topic Remove absolute paths to binaries in $PATH - https://fedorahosted.org/fpc/ticket/96 15:22:43 Ville says that there is no reason to use absolute paths, I would argue the exact opposite, especially in scriptlets 15:22:52 Does rpm set the PATH variable before running scriptlets? 15:23:08 I think we'd have to get into what $PATH actually is for scriptlets. 15:23:46 abadger1999: I think it does, but we should find out for sure 15:23:57 abadger1999: dunno, but nothing prevents admins to install arbitrary packages to arbitrary dirs in $PATH 15:23:57 it just seems like there is no real benefit to not being safe with the pathing on binaries 15:24:10 Typing. 15:24:12 rpm does: 15:24:13 static const char * const SCRIPT_PATH = "PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin"; 15:24:15 That's about it, I think. 15:24:20 also using absolute paths is a tiny bit faster 15:24:21 and sets that when exec'ing scripts 15:24:39 /usr/X11R6/bin? Really? 15:24:42 geppetto: does that mean it is ignoring env PATH? 15:25:00 Unless _install_script_path is set, in which case it uses that macro 15:25:03 spot: yes 15:25:17 it always sets path, to one of those things 15:25:22 geppetto: huh. that may explain several odd bugs involving custom scriptlets. :/ 15:26:28 So, I think I'm opposed to this unless someone can give a good set of pros for not using absolute pathing on binaries in scriptlets 15:27:12 Agreed, if you need an alternate path in your RPM. . .set it. 15:27:16 fwiw, I'm still in favor of the draft 15:27:23 spot: seconded 15:27:38 As long as we aren't disallowing people to use "rm" … I really don't mind some paranoid using /bin/rm directly 15:28:03 It's not like programs in scriptlets move around much … or won't get compat. symlinks anyway 15:28:49 geppetto: hopefully, rm is not often used in scriptlets. :) 15:29:13 :) 15:29:20 I come down slightly on the side of less typing, but whatever the choice I would prefer that we're at least consistent in the scriptlets we provide. 15:30:26 geppetto: IMO, the real problem is something (e.g. a package) or somebody (e.g. an admin) installing a program with a conflicting name in a dir $PATH, which would take precedence over the nominal program. 15:30:37 I do think we should be documenting absolute pathing in scriptlets, it just seems safer, and no one has presented a good reason (aside from less typing) to not do it. 15:30:47 So... make all absolute or make all rely on PATH (presently looks like */sbin paths are absolute and */bin paths rely on PATH) 15:31:31 * abadger1999 was replying to being consistent 15:31:56 are we more or less concerned about binaries in /bin vs /sbin? 15:32:23 spot: documentation should probably include a link to rpm's source where it is being set, just in case it changes and we don't update our wiki to match 15:32:24 racor: It just really sucks seeing: /usr/sbin/alternatives … etc. … but, meh 15:32:39 spot: Present guidelines seem to be more concerned about binaries in /sbin -- I'm guessing because /sbin wasn't on a normal user's PATH. 15:32:51 spot: stuff has moved into .../sbin before 15:32:57 abadger1999: yeah, i think you're right 15:33:38 FHS says /bin is for Essential user command binaries, and /sbin is for System binaries 15:34:13 Given that RPM is forcing the PATH here 15:34:14 * rdieter would hate to have to do any sort of quasi-mass-pkg-rebuild just because something moves /bin => /sbin again 15:34:27 and thus, /bin and /sbin will never be trumped by /usr/bin or /usr/sbin 15:34:48 perhaps a consistent approach of "binaries in /bin or /sbin do not need to use absolute pathing in scriptlets, all others MUST" 15:35:21 that's a good compromise 15:36:29 any other thoughts on that approach? 15:36:45 hmm... so if safety trumps everything, then /sbin/ is really the only safe directory. 15:37:15 and we'd still have to update the majority of the scriptlets, it looks like. 15:37:24 (to add the abosulte path) 15:37:30 I have to say that I'd prefer to just pick something consistent than have some rather odd rule. 15:37:46 tibbs|h: such as? 15:38:11 I think he's implying either use absolute paths everywhere, or not at all 15:38:19 Probably just "always use the full path to executables in scriptlets" and be done with it. 15:38:45 * spot isn't opposed to that, but I can hear the "why do i need to say /bin/ln ?" grumbling already 15:38:47 counterpoint to safety -- if we're only worried that someone would have a package that installs /sbin/update-desktop-database... are we worrying about something unreasonable? 15:38:53 do we have any safeguards against packages putting same-named binaries in /sbin and /bin (/usr/*, respectively)? 15:39:11 Besides package review and stuff? 15:39:12 abadger1999: I think so... :) 15:39:21 Rathann: no technical ones 15:39:37 and might there be a reason a package would want to call the one that is later in the rpm scriptlet $PATH 15:39:42 I'm -1 on mandating absolute paths in all scriptlets 15:39:52 I'm against disallowing absolute paths 15:39:52 I'd prefer mandating no absolute paths 15:40:03 even if they are in the path 15:40:16 But, I'm happy to give the choice to the packager … and have all our examples use absolute paths 15:40:18 There are two separate issues: 15:40:34 One is that scriptlets in the guidelines are inconsistent, and that's bad. 15:40:47 The other is what to tell packagers to do in their own scriptlets. 15:41:00 * abadger1999 agrees with tibbs 15:41:11 I would say that if an admin installs 2 different rm's in PATH, it's just asking for trouble and we shouldn't try to work around such madness 15:41:22 I don't much care what packagers do, but we should be consistent in the guidelines or else people will think there's some hidden rule. 15:41:31 So, I'd say, on item 1, all of our scriptlets should use absolute paths. On Item 2, we should encourage absolute paths for safety, but not require it. 15:41:45 also rdieter is presenting a pretty good case that if any binaries move around, absolute path scriplets will stop working 15:41:55 spot: +1 15:42:02 spot: +1 15:42:05 spot: +1 15:42:22 I think things moving is a non-argument; we'll always have things to fix up if we decide to do that kind of thing. 15:42:25 kalev: anyone moving essential binaries has to consider that 15:42:34 kalev: IMO, these breakages are good and desired in such cases. 15:42:44 spot: +1 15:42:52 sound reasonable, +1 15:42:56 * abadger1999 I think I agree with geppetto's feelings. 15:43:09 phew, doesn't have to be a tie breaker. 15:43:10 I kind of prefer the "no absolute paths for /bin and /sbin" … but … blah +1 15:43:10 +0 15:43:14 hmmm 15:43:30 +1 15:44:49 #action On item 1, all of our scriptlets should use absolute paths. On Item 2, we should encourage absolute paths for safety, but not require it. (+1:8, 0:1, -1:0) 15:45:28 is anyone willing to fix up the scriptlets, or does that land in my lap? :) 15:45:46 I'm off today and Friday, so I should have time to do it. 15:45:59 tibbs|h: yay! thanks. 15:46:14 Assuming I can actually find all of the scriptlets in the guidelines. 15:46:42 tibbs|h: imho, if you find things outside of ScriptletSnippets, move them and make redirects. 15:47:05 Well, we have templates and such in the language specific guidelines. 15:47:27 tibbs|h: yeah, i suppose so, but i'd still be okay with them moving to one Scriptlets page 15:48:03 #topic Open Floor 15:48:26 The Java folks have some updated guidelines coming down the pipe, I think. 15:48:37 always fun. :) 15:48:55 I guess they haven't submitted them yet. 15:48:58 mmmm. 15:50:03 http://bit.ly/iyz1G7 was the diff, but I guess there's not much point in looking at it yet. 15:50:26 At least it looks simpler (no scriptlets). 15:52:48 Anyway, I'm sure they'll submit them when they're ready. 15:52:56 Nothing else from me. 15:53:40 Okay, thanks everyone 15:53:43 #endmeeting