Bugzilla

Bugzilla is a web application for tracking bugs.

Emerge
You may want first to emerge app-admin/webapp-config and configure it to your liking. Then emerge www-apps/bugzilla

MySQL
Install < dev-db/mysql-8, then create a user for the bugzilla database :

Postgresql
Install bugzilla with the postgresql use flag on, then create a user and a database for bugzilla to use :

Next, edit the following configuration file and add the following line

Then restart the database server

Checksetup
Change directory to /var/www/localhost/htdocs/bugzilla, then execute checksetup.pl.

The first execution produces a localconfig file, in which you have to put the information about the database you use. The comments in that files are self-explanatory. Next, re-run checksetup.pl, which will create the database, configure bugzilla and create the admin user.

Apache
Add theses lines to the following file

Then restart the web server.

Web end
Finally, point a web browser to http://127.0.0.1/bugzilla/. Log in with your admin account and bugzilla will invite you to proceed to the essential post-installation configuration.

Upgrading
Before upgrading, one should make backup the application and its database. Note that one cannot downgrade bugzilla.

Before emerging bugzilla, move your bugzilla directory

Then emerge bugzilla

Next, copy the directories data, lib (may be empty) and template/en/custom (may not exist) from your previous installation to your new installation, together with the previous localconfig file. Then run checksetup.pl.

After having ascertained that the new installation works as expected, you may delete your old bugzilla directory.

Troubleshooting
If after executing checksetup.pl you get something like

Try and comment this line.

Then re-execute checksetup.pl

More documentation
You can find more documentation on the official bugzila documentation page.