/[gentoo]/xml/htdocs/doc/en/bugzilla-howto.xml
Gentoo

Diff of /xml/htdocs/doc/en/bugzilla-howto.xml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.7 Revision 1.12
1<?xml version="1.0" encoding="UTF-8"?> 1<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> 2<!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
3<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/bugzilla-howto.xml,v 1.7 2006/09/02 05:26:46 rane Exp $ --> 3<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/bugzilla-howto.xml,v 1.12 2008/02/01 19:30:40 jkt Exp $ -->
4 4
5<guide link="/doc/en/bugzilla-howto.xml"> 5<guide link="/doc/en/bugzilla-howto.xml">
6<title>Gentoo Bug Reporting Guide</title> 6<title>Gentoo Bug Reporting Guide</title>
7 7
8<author title="Author"> 8<author title="Author">
18 18
19<!-- The content of this document is licensed under the CC-BY-SA license --> 19<!-- The content of this document is licensed under the CC-BY-SA license -->
20<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> 20<!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
21<license/> 21<license/>
22 22
23<version>1.6</version> 23<version>1.11</version>
24<date>2006-09-01</date> 24<date>2008-01-31</date>
25 25
26<chapter> 26<chapter>
27<title>Introduction</title> 27<title>Introduction</title>
28<section> 28<section>
29<title>Preface</title> 29<title>Preface</title>
308<comment>(-ggdb flag enabled)</comment> 308<comment>(-ggdb flag enabled)</comment>
309-rwxr-xr-x 1 chris users 19552 6/28 13:11 bad_code 309-rwxr-xr-x 1 chris users 19552 6/28 13:11 bad_code
310</pre> 310</pre>
311 311
312<p> 312<p>
313As you can see, -ggdb adds about <e>13178</e> more bytes to the file size over the one 313As you can see, -ggdb adds about <e>13178</e> more bytes to the file size over
314with debugging symbols. However, as shown above, this increase in file size can 314the one with debugging symbols. However, as shown above, this increase in file
315be worth it if presenting debug information to developers. The backtrace can be 315size can be worth it if presenting debug information to developers. The
316saved to a file by copying and pasting from the terminal (if it's a non-x based 316backtrace can be saved to a file by copying and pasting from the terminal (if
317terminal, you can use gpm. To keep this doc simple, I recommend you read up on 317it's a non-x based terminal, you can use gpm. To keep this doc simple, I
318recommend you read up on the <uri link="/doc/en/gpm.xml#doc_chap4">documentation
318the documentation for gpm to see how to copy and paste with it). Now that we're 319for gpm</uri> to see how to copy and paste with it). Now that we're done with
319done with <c>gdb</c>, we can quit. 320<c>gdb</c>, we can quit.
320</p> 321</p>
321 322
322<pre caption="Quitting GDB"> 323<pre caption="Quitting GDB">
323(gdb) <i>quit</i> 324(gdb) <i>quit</i>
324The program is running. Exit anyway? (y or n) <i>y</i> 325The program is running. Exit anyway? (y or n) <i>y</i>
845 Build Identifier is basically the User Agent of the browser that is being 846 Build Identifier is basically the User Agent of the browser that is being
846 used to report the bugs (for logging purposes). You can just leave this as 847 used to report the bugs (for logging purposes). You can just leave this as
847 is. 848 is.
848 </li> 849 </li>
849 <li> 850 <li>
850 URL is optional and is used to point to errors on a site someplace 851 URL is optional and is used to point to relevant information on another site
851 (pastebin, etc.). However, doing it inside the bug allows the developers be 852 (upstream bugzilla, release notes on package homepage etc.). You should
852 able to reference to it at any time and is preferred. 853 never use URL to point to pastebins for error messages, logs, <c>emerge
854 --info</c> output, screenshots or similar information. Instead, these should
855 always be attached to the bug.
853 </li> 856 </li>
854 <li> 857 <li>
855 In the Summary, you should put the package category, name, and number. 858 In the Summary, you should put the package category, name, and number.
856 </li> 859 </li>
857</ul> 860</ul>
951Now we can submit the bug report by clicking on the Submit Bug Report box. You 954Now we can submit the bug report by clicking on the Submit Bug Report box. You
952will now see your new bug come up. See <uri 955will now see your new bug come up. See <uri
953link="https://bugs.gentoo.org/show_bug.cgi?id=97265">Bug 97561</uri> for what 956link="https://bugs.gentoo.org/show_bug.cgi?id=97265">Bug 97561</uri> for what
954the result looks like. We've reported our bug! Now let's see how it's dealt 957the result looks like. We've reported our bug! Now let's see how it's dealt
955with. 958with.
959</p>
960
961</body>
962</section>
963<section>
964<title>Zero-day bump requests</title>
965<body>
966
967<p>
968So far, we've shown what to do when filing a bug. Now let's take a look at what
969<e>not</e> to do.
970</p>
971
972<p>
973Suppose that you've eagerly been following an upstream project's schedule, and
974when you check their homepage, guess what? They just released a new version a
975few minutes ago! Most users would immediately rush over to Gentoo's bugzilla to
976report the new version is available; please bump the existing version and add
977it to Portage, etc. However, this is exactly what you should <b>not</b> do.
978These kinds of requests are called zero-day (or 0-day) bump requests, as they're
979made the same day that a new version is released.
980</p>
981
982<impo>
983<b>Please wait <e>at least</e> 48 hours before reporting a new release on our
984bugzilla.</b> Also, you <e>must</e> check bugzilla before posting your request
985to make sure that someone else hasn't already reported it, or that the Gentoo
986maintainers haven't already dealt with the new version.
987</impo>
988
989<p>
990Why should you wait? First, it's quite rude to demand that Gentoo developers
991drop everything they're doing just to add a new release that came out 15 minutes
992ago. Your zero-day bump request could be marked as INVALID or LATER, as
993developers have plenty of pressing issues to keep them busy. Second, developers
994are usually aware of pending new releases well in advance of users, as they must
995follow upstream quite closely. They already know a new version is on its way.
996In many cases, they will have already opened a bug, or might even already added
997it in Portage as a masked package.
998</p>
999
1000<p>
1001Be smart when testing and requesting new versions of packages. Search bugzilla
1002before posting your bump request -- is there already a bug open? Have you synced
1003lately; is it already in Portage? Has it actually been released by upstream?
1004Basic common sense will go a long way, and will endear you to developers that
1005already have a lot to do. If it's been several days since release and you're
1006sure that there are no open requests for it (and that it's not in Portage), then
1007you can open up a new bug. Be sure to mention that it compiles and runs well on
1008your arch. Any other helpful information you provide is most welcome.
1009</p>
1010
1011<p>
1012Want to see the newest version of your favorite package in Portage? File smart
1013bugs.
956</p> 1014</p>
957 1015
958</body> 1016</body>
959</section> 1017</section>
960</chapter> 1018</chapter>
1282</pre> 1340</pre>
1283 1341
1284<p> 1342<p>
1285Now we'll want to create the appropriate directories to put our test ebuild 1343Now we'll want to create the appropriate directories to put our test ebuild
1286files in. In this case, we're supposed to put them in sys-apps/foobar2. You'll 1344files in. In this case, we're supposed to put them in sys-apps/foobar2. You'll
1287notice that the second comment asks for a files directory for the patch. The 1345notice that the second comment asks for a <path>files</path> directory for the
1288files directory holds the digests (md5sums of files for a particular version of 1346patch. This directory holds other required files that aren't included with
1289a package) and any other required files that aren't included with the standard
1290source archive (patches, init.d scripts, etc). This is a subdir in the package 1347the standard source archive (patches, init.d scripts, etc). This is a subdir in
1291directory called files. Go ahead and create these directories: 1348the package directory called <path>files</path>. Go ahead and create these
1349directories:
1292</p> 1350</p>
1293 1351
1294<pre caption="Setting Up The Category And Package Directories"> 1352<pre caption="Setting Up The Category And Package Directories">
1295# <i>mkdir -p /usr/local/portage/sys-apps/foobar2/files</i> 1353# <i>mkdir -p /usr/local/portage/sys-apps/foobar2/files</i>
1296</pre> 1354</pre>
1313<title>Testing The ebuild</title> 1371<title>Testing The ebuild</title>
1314<body> 1372<body>
1315 1373
1316<p> 1374<p>
1317The process to create an ebuild that can be used by emerge is fairly simple. You 1375The process to create an ebuild that can be used by emerge is fairly simple. You
1318must create a Manifest and a digest file for the ebuild. This can be done with 1376must create a Manifest file for the ebuild. This can be done with
1319the ebuild command. Run it as shown. 1377the ebuild command. Run it as shown.
1320</p> 1378</p>
1321 1379
1322<pre caption="Creating the Manifest and digest files"> 1380<pre caption="Creating the Manifest file">
1323# <i>ebuild foobar2-1.0.ebuild digest</i> 1381# <i>ebuild foobar2-1.0.ebuild manifest</i>
1324&gt;&gt;&gt; Generating digest file... 1382&gt;&gt;&gt; Creating Manifest for /usr/local/portage/sys-apps/foobar2
1325&lt;&lt;&lt; foobar2-1.0.tar.bz2
1326&gt;&gt;&gt; Generating manifest file...
1327&lt;&lt;&lt; foobar2-1.0.ebuild
1328&lt;&lt;&lt; files/digest-foobar2-1.0
1329&lt;&lt;&lt; files/foobar2-1.0-Makefile.patch
1330&gt;&gt;&gt; Computed message digests.
1331</pre> 1383</pre>
1332 1384
1333<p> 1385<p>
1334Now let's test to see if it works as it should. 1386Now let's test to see if it works as it should.
1335</p> 1387</p>

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.12

  ViewVC Help
Powered by ViewVC 1.1.20