⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 new_policy_proposal.txt

📁 mplayer播放器的源码
💻 TXT
字号:
New Policy DraftVersion 20070301Intro:------This document is an attempt to write a new policy as the old is fairlyconfusing and easy to misunderstand, its intention is not really tochange the rules but rather to write them down clearer ...also for simplicity and to prevent flamewars, i would suggest that youfork this document and propose that fork as alternative if you have asignificant disagreement with me on some partAuthor:-------Michael Niedermayerthe authors of the old policy as I liberally copy and pasted from itTODO:add more explanations, justifications and exampleshow to become/loose maintainer statusreview patches.txtsecurity/exploit rules------------------------1. Definitions--------------* MPlayer developer, generally referred to simply as developer in this document  is any person who has a open (not cracked, not suspended) svn write account* MPlayer leader, generally referred to simply as leader in this document, every  leader is also a developer* CAN/MUST/SHOULD descriptions ...* public developer mailing list (mplayer-dev-eng at mplayerhq in hungary)C. Code and SVN Rules-----------------------------Renaming/moving/copying files or contents of files  Do not move, rename or copy files of which you are not the maintainer without  discussing it on the public developer mailinglist first!  Never copy or move a file by using 'svn delete' and 'svn add'. Always use  'svn move' or 'svn copy' instead in order to preserve history and minimize  the size of diffs.  To split a file, use 'svn copy' and remove the unneeded lines from each file.  Don't do a lot of cut'n'paste from one file to another without a very good  reason and discuss it on the mplayer-dev-eng mailing list first. It will make  those changes hard to trace.  Such actions are useless and treated as cosmetics in 99% of cases,  so try to avoid them.Reverting broken commits  There are 2 ways to reverse a change, they differ significantly in what they  do to the svn repository  The recommit old method:    svn merge    svn ci <file>    This simply changes the file(s) back to their old version localy and then    the change is commited as if it is a new change  The svn copy method    svn rm <file>    svn ci <file>    svn cp -r<good revision> svn://svn.mplayerhq.hu/mplayer/trunk/[<path>/]<file> <file>    svn ci <file>    This simply removes the file and then copies the last good version with    its history over it, this method can only be used to revert the n last    commits but not to revert a bad commit in the middle of its history  Neither method will change the history, checking out an old version will  always return exactly that revision with all its bugs and features. The  difference is that with the svn copy method the broken commit will not be  part of the directly visible history of the revisions after the reversal  So if the change was completely broken like reindenting a file against the  maintainers decision, or a change which mixed functional and cosmetic  changes then it is better if it is not part of the visible history as it  would make it hard to read, review and would also break svn annotate  For the example of a change which mixed functional and cosmetic parts they  should of course be committed again after the reversal but separately, so one  change with the functional stuff and one with the cosmetics  OTOH if the change which you want to reverse was simply buggy but not  totally broken then it should be reversed with svn merge as otherwise  the fact that the change was bad would be hidden  One method to decide which reversal method is best is to ask yourself  if there is any value in seeing the whole bad change and its removal  in SVN vs just seeing a comment that says what has been reversed while  the actual change does not clutter the immediately visible history and  svn annotate.  If you are even just slightly uncertain how to revert something then ask on  the mplayer-dev-eng mailing list.Broken code    You must not commit code which breaks MPlayer! (Meaning unfinished but   enabled code which breaks compilation or compiles but does not work.)   You can commit unfinished stuff (for testing etc), but it must be disabled   (#ifdef etc) by default so it does not interfere with other developers'   work.Testing code   You don't have to over-test things. If it works for you, and you think it   should work for others, too, then commit. If your code has problems   (portability, exploits compiler bugs, unusual environment etc) they will be   reported and eventually fixed.Splitting changes   Do not commit unrelated changes together, split them into self-contained   pieces. Also dont forget that if part B depends on part A but A doesnt   depend on B, then A can and should be commited first and seperately from B.   Keeping changes well split into self contained parts makes reviewing and   understanding them on svn log at the time of commit and later when   debugging a bug much easier.   Also if you have doubt about spliting or not spliting, dont hesitate to   ask/disscuss it on the developer mailing list.4. Do not change behavior of the program (renaming options etc) or   remove functionality from the code without approval in a discussion on   the mplayer-dev-eng mailing list.5. Do not commit changes to the build system (Makefiles, configure script)   which change behaviour, defaults etc, without asking first. The same   applies to compiler warning fixes, trivial looking fixes and to code   maintained by other developers. We usually have a reason for doing things   the way we do. Send your changes as patches to the mplayer-dev-eng mailing   list, and if the code maintainers say OK, you may commit. This does not   apply to files you wrote and/or maintain.Cosmetics   We refuse source indentation and other cosmetic changes if they are mixed   with functional changes, such commits will be reverted. Every   developer has his own indentation style, you should not change it. Of course   if you (re)write something, you can use your own style... (Many projects   force a given indentation style - we don't.) If you really need to make   indentation changes (try to avoid this), separate them strictly from real   changes.   NOTE: If you had to put if()@{ .. @} over a large (> 5 lines) chunk of code,   then either do NOT change the indentation of the inner part within (don't   move it to the right)! or do so in a separate commitCommit log message   Always fill out the commit log message. Describe in a few lines what you   changed and why. You can refer to mailing list postings if you fix a   particular bug. Comments such as "fixed!" or "Changed it." are unacceptable.Applying patches   If you apply a patch by someone else, include the name and email address in   the log message. Since the mplayer-cvslog mailing list is publicly   archived you should add some spam protection to the email address. Send an   answer to mplayer-dev-eng (or wherever you got the patch from) saying that   you applied the patch. If the patch contains a documentation change, commit   that as well; do not leave it to the documentation maintainers.messing with other developers code   Do NOT commit to code actively maintained by others without permission. Send   a patch to mplayer-dev-eng instead.Subscribe to svnlog    Subscribe to the mplayer-cvslog mailing list. The diffs of all commits    are sent there and reviewed by all the other developers. Bugs and possible    improvements or general questions regarding commits are discussed there. We    expect you to react if problems with your code are uncovered.Documentation    Update the documentation if you change behavior or add features. If you are    unsure how best to do this, send a patch to mplayer-docs, the documentation    maintainers will review and commit your stuff.Controversial changes    Always send a patch to the mplayer-dev-eng mailing list before committing    if you suspect that the change is going to be controversial. Based on past    experience, these changes are likely to be controversial:     - feature removal, even if obsolete     - changes to "special" output messages (like the "Core dumped ;)" message)     - verbosity changes from default (info) level     - changes to "historical" parts of docs and webpages     - use of internal or external libraries     - changes to the internal architecture     - non trivial changes to very fundamental parts of mplayerPublic discussions    Try to keep important discussions and requests (also) on the    mplayer-dev-eng mailing list, so that all developers can benefit from them.    IRC is good for quick discussions, but nobody is there 24/7.    also subscribe to the public developer mailing listCompiler Warning fixes   Do not change code to hide warnings without ensuring that the underlaying   logic is correct and thus the warning was inappropriatePatches    read and follow patches.txt when sending patches for mplayerInsults    Do not insult other people in relation to mplayer on any public mailing    list, that is calling code from someone else a pile of broken shit is    perfectly fine but calling the developer herself a retarded f*cking moron    is not acceptableForking    People disagreeing with the developers or leaders may fork the project,    the leaders MUST in that case provide a svn dump with all history if    the person forking wants oneCommunicating passwords    Developers who have provided a public gpg key shall only receive    passwords or other sensitive information related to mplayer encrypted    with their gpg key or in another secure wayV. Votes--------Its inevitable that some things will be decided by voting, votes in the pasthave due to total lack of rules been problematic for example as many peoplerather wrote long texts and voted based on some condition instead of sayinga clear yes or no, still its important that people can vote based on aconditionThe result of a vote is binding for all developers and leaders, though ofcourse they can leave the project and thus cease to be a developer or leaderany timeVs. Starting a voteAny single developer can start a vote, to do so she has to send a mail to thepublic developer mailing list of the project with a subject containing [VOTE]and a clear and concise description, a longer descrition can be in the bodyof the mailVp. Proposing an option (point on the ballot, better term?)Any single developer can propose an option up to 7 days after a vote hasbeen started, to do so she has to reply to the original vote mail on thepublic developer mailing list and clearly, concise and unmistakably describethe option and place [VOTE-OPTION] instead of [VOTE] in the subjectin addition to proposed options, there always exists the default optionof doing nothingoptions can be conditional on anything which at the end of the vote canbe clearly and unmistakably be answered with true or falseVv. VotingAny developer can cast a vote up to 10 days days after a vote has beenstarted, to do so she has to reply to the original vote mail on thepublic developer mailing list and rate options each with an integerunrated options shall be counted equal to the default optionAny leader can cast a veto against any option except the default up to 10 daysdays after a vote has been started, to do so she has to reply to the originalvote mail on the public developer mailing list and replace [VOTE] by [VOTE-VETO]Developers and leaders who use gpg/pgp MUST sign their votes and vetoesVc. Counting votesThe person starting the vote has to count the votes and vetoes and publishthe result on the public developer mailing list as reply to the original votewith [VOTE-RESULTS] instead of [VOTE] in the subjectVcv. Counting vetoesif the majority of leaders that is yes >= no && yes>0 cast a veto against anoption then it has a required supermajority of 2:1 otherwise it has arequired supermajority of 0:1 and in either case no quorum requirementVcc. the votes shall be counted by using the Condorcet/Clone Proof SSDVoting Method described in http://www.debian.org/devel/constitution A.6Reasoning behind avoiding of a quorum and majority requirement except inthe case of vetoesshort awnser its stupid and has catastrophical failure modesexample of one such failure mode, lets assume a 1:1 majority requirementas debian uses by default, there are 101 developers who vote, there are3 options A,B and D the default (doing nothing / further discussions)50 developers prefer A over B and B over discussions (A>B>D)50 developers prefer discussions over A and A over B (D>A>B)1 developer prefers B over discussions and discussions over A (B>D>A)in this case A is approved by 50 of 101 developers and is droped due tothe lack of majority, B is approved by 51 of 101 developers and is notfurthermore B wins even though 100 of 101 developers prefer A over BS. Changes to developer and Leader status----------------------------------------The majority of leaders, that is yes>no can give and take away developer and leader status to peoplefurthermore any developer or leader can step back and thus loosehis leader and or developer statusPeople disagreeing with the leaders are free to fork the projectnew developers should be asked for real name, public gpg key, phonenumber and email addresses, none of this is mandatory though, it is askedso as to be able to contact the developer if the need arises and onecontact method failsO. Violations-------------Any leader can after at least one leader has warned another developerdue to breaking policy, suspend his account if he repeats the violationOw. A policy violation warning MUST be CCed to the developer who violatedthe policyWe think our rules are not too hard. If you have comments, contact us.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -