Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 15031 - Please add bugzilla ebuild into portage
Summary: Please add bugzilla ebuild into portage
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Gentoo Web Application Packages Maintainers
URL:
Whiteboard:
Keywords: EBUILD
: 17709 29578 32164 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-02-03 08:42 UTC by pasi.valminen
Modified: 2004-05-01 12:28 UTC (History)
21 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Ebuilds for bugzilla (bugzilla-ebuilds.tar.gz,2.34 KB, application/gzip)
2003-02-03 15:06 UTC, Laurent Maestracci
Details
bugzilla-2.16.2.ebuild update (bugzilla-2.16.2.ebuild,1.96 KB, application/octet-stream)
2003-02-05 14:19 UTC, Laurent Maestracci
Details
bugzilla-2.16.2.ebuild update (bugzilla-2.16.2.ebuild,1.96 KB, text/plain)
2003-02-05 14:20 UTC, Laurent Maestracci
Details
bugzilla-2.17.3.ebuild (bugzilla-2.17.3.ebuild,2.81 KB, text/plain)
2003-02-18 13:32 UTC, Axxackall
Details
improved installation and postinstallation (bugzilla-2.17.3-r1.ebuild.tgz,2.67 KB, application/octet-stream)
2003-02-27 16:04 UTC, Axxackall
Details
improved installation and postinstallation (bugzilla-2.17.3-r1.ebuild.tgz,2.67 KB, application/octet-stream)
2003-02-27 16:04 UTC, Axxackall
Details
improved installation and postinstallation (bugzilla-2.17.3-r1.ebuild.tgz,2.67 KB, application/x-compressed)
2003-02-27 16:05 UTC, Axxackall
Details
improved installation and postinstallation (bugzilla-2.17.3-r1.ebuild.tgz,2.67 KB, application/x-compressed)
2003-02-27 16:05 UTC, Axxackall
Details
Ebuild for bugzilla with perl modules (bugzilla.tar.gz,4.63 KB, application/octet-stream)
2003-05-01 21:32 UTC, Abhishek Amit (RETIRED)
Details
Updated bugzilla (bugzilla.tgz,4.04 KB, application/x-gzip-compressed)
2003-09-16 06:55 UTC, Benjamin Coles
Details
Updated bugzilla (bugzilla.tgz,4.04 KB, application/x-gzip-compressed)
2003-09-16 06:55 UTC, Benjamin Coles
Details

Note You need to log in before you can comment on or make changes to this bug.
Description pasi.valminen 2003-02-03 08:42:23 UTC
It's a load of crap that gentoo can't be used on a server ;) Would you please,
please add bugzilla ebuild or at least Bundle::Bugzilla perl module from CPAN so
I can get debugging rather than reading my email...

Reproducible: Always
Steps to Reproduce:
Comment 1 Laurent Maestracci 2003-02-03 15:06:52 UTC
Created attachment 7899 [details]
Ebuilds for bugzilla

I've attached the ebuilds I've created this week-end (see
http://forums.gentoo.org/viewtopic.php?t=33253).

It contains the following ebuilds : 
- dev-perl/Data-Dumper
- dev-perl/Template-Toolkit
- dev-perl/File-spec
- dev-perl/Text-Tabs+Wrap
- net-misc/bugzilla

The first two are broken but I can't find what the problem is (I'm not a Perl
developper :( ).
Comment 2 John Davis (zhen) (RETIRED) gentoo-dev 2003-02-04 00:50:06 UTC
Since you are one of the resident perl gods ;-)

Cheers -
//zhen
Comment 3 pasi.valminen 2003-02-04 02:00:43 UTC
It seems I was not alone on this one. And mcummings, I'll come and bow you again if you make this work. :D

And thanks Laurent Maestracci for the ebuilds. :)
Comment 4 SpanKY gentoo-dev 2003-02-04 15:59:26 UTC
zhen, i think the actual package is more appropriate than the perl module ...
Comment 5 Laurent Maestracci 2003-02-05 14:19:39 UTC
Created attachment 7956 [details]
bugzilla-2.16.2.ebuild update

I've updated the bugzilla ebuild
The *.cgi/*.pl scripts needed /usr/bonsaitools/bin/perl instead of
/usr/bin/perl

Still can't test it since the Template-Toolkit ebuild doesn't work for me as
you can see below.
Another point is Data-Dumper. The ebuild doesn't work but it seems already
installed (perl 5.8 includes it ?)


Installing optional components into /usr/local/tt2
  + docs
ACCESS DENIED  mkdir:	  /usr/local/tt2
mkdir /usr/local/tt2: Permission denied at bin/tt2inst line 55
make: *** [tt2_install] Error 255

!!! ERROR: dev-perl/Template-Toolkit-2.08 failed.
!!! Function perl-module_src_install, Line 72, Exitcode 2
!!! (no error message)

--------------------------- ACCESS VIOLATION SUMMARY
---------------------------
LOG FILE = "/tmp/sandbox-Template-Toolkit-2.08-7437.log"

mkdir:	   /usr/local/tt2
--------------------------------------------------------------------------------
Comment 6 Laurent Maestracci 2003-02-05 14:20:11 UTC
Created attachment 7957 [details]
bugzilla-2.16.2.ebuild update

I've updated the bugzilla ebuild
The *.cgi/*.pl scripts needed /usr/bonsaitools/bin/perl instead of
/usr/bin/perl

Still can't test it since the Template-Toolkit ebuild doesn't work for me as
you can see below.
Another point is Data-Dumper. The ebuild doesn't work but it seems already
installed (perl 5.8 includes it ?)


Installing optional components into /usr/local/tt2
  + docs
ACCESS DENIED  mkdir:	  /usr/local/tt2
mkdir /usr/local/tt2: Permission denied at bin/tt2inst line 55
make: *** [tt2_install] Error 255

!!! ERROR: dev-perl/Template-Toolkit-2.08 failed.
!!! Function perl-module_src_install, Line 72, Exitcode 2
!!! (no error message)

--------------------------- ACCESS VIOLATION SUMMARY
---------------------------
LOG FILE = "/tmp/sandbox-Template-Toolkit-2.08-7437.log"

mkdir:	   /usr/local/tt2
--------------------------------------------------------------------------------
Comment 7 Axxackall 2003-02-18 05:45:11 UTC
is there any way to install Template-Toolkit? It seems that the default answer for installation path [/usr/local/tt2] is wrong, but what is the right answer?
Comment 8 Axxackall 2003-02-18 13:32:21 UTC
Created attachment 8444 [details]
bugzilla-2.17.3.ebuild

The sandbox violation problem of Template-Toolkit has been solved by:

# (export SANDBOX_DISABLED=1 ; emerge dev-perl/Template-Toolkit)

There was another problem: ebuild used "doins", which doesn't work recursivley.
I've used "cp -r" instead.

Additionally, I've decided to try Bugzilla-2.17.3. 

In my case it also required to upgrade to dev-perl/CGI-2.88

Everything has been installed (ignoring the annoying fact of installing
Template-Toolkit interactively) and works fine.

I attach my version of ebuild.
Comment 9 John Davis (zhen) (RETIRED) gentoo-dev 2003-02-19 21:53:17 UTC
I have heard that portage will soon integrate automatic cpan usage, so I am marking this as invalid, but it will still be in the database.
Comment 10 Axxackall 2003-02-27 16:04:20 UTC
Created attachment 8785 [details]
improved installation and postinstallation

bugzilla-2.17.3-r1.ebuild: installation and post-installation has been touched
a lot to work smooth and friendly. Perhaps same thing I should do for
un-installation: now you should drop bugs db manually. Well, two things should
stay manual for sure (as they closely relates to another package - apache):
apache crontab and /etc/apache/conf/apache.conf.

By the way, bugzilla-2.17.3.ebuild (previous one) has been used in production
for a couple of weeks and works stable. Why not commit it to the portage?
Comment 11 Axxackall 2003-02-27 16:04:41 UTC
Created attachment 8786 [details]
improved installation and postinstallation

bugzilla-2.17.3-r1.ebuild: installation and post-installation has been touched
a lot to work smooth and friendly. Perhaps same thing I should do for
un-installation: now you should drop bugs db manually. Well, two things should
stay manual for sure (as they closely relates to another package - apache):
apache crontab and /etc/apache/conf/apache.conf.

By the way, bugzilla-2.17.3.ebuild (previous one) has been used in production
for a couple of weeks and works stable. Why not commit it to the portage?
Comment 12 Axxackall 2003-02-27 16:05:05 UTC
Created attachment 8787 [details]
improved installation and postinstallation

bugzilla-2.17.3-r1.ebuild: installation and post-installation has been touched
a lot to work smooth and friendly. Perhaps same thing I should do for
un-installation: now you should drop bugs db manually. Well, two things should
stay manual for sure (as they closely relates to another package - apache):
apache crontab and /etc/apache/conf/apache.conf.

By the way, bugzilla-2.17.3.ebuild (previous one) has been used in production
for a couple of weeks and works stable. Why not commit it to the portage?
Comment 13 Axxackall 2003-02-27 16:05:46 UTC
Created attachment 8788 [details]
improved installation and postinstallation

bugzilla-2.17.3-r1.ebuild: installation and post-installation has been touched
a lot to work smooth and friendly. Perhaps same thing I should do for
un-installation: now you should drop bugs db manually. Well, two things should
stay manual for sure (as they closely relates to another package - apache):
apache crontab and /etc/apache/conf/apache.conf.

By the way, bugzilla-2.17.3.ebuild (previous one) has been used in production
for a couple of weeks and works stable. Why not commit it to the portage?
Comment 14 Axxackall 2003-02-27 16:10:48 UTC
Oh, man, I've got "Status: 400 Bad request (malformed multipart POST)" and tried to fix it. Several times as you can see. My appologize. 

Seems, bugzilla on Gentoo has a bug: it doesn't work well with tgz attachments: it shows error message on a submit, but it submits on backend.
Comment 15 Attila Kesmarki 2003-03-21 19:55:45 UTC
  
The bugzilla ebuilds are still not in the portage tree.  
IMHO this bug should be reopened...  
  
  
Comment 16 Seemant Kulleen (RETIRED) gentoo-dev 2003-03-31 01:26:18 UTC
the actual ebuild for bugzilla is attached, but not added to portage.
Comment 17 Seemant Kulleen (RETIRED) gentoo-dev 2003-03-31 01:27:04 UTC
*** Bug 17709 has been marked as a duplicate of this bug. ***
Comment 18 John Davis (zhen) (RETIRED) gentoo-dev 2003-04-30 13:09:02 UTC
Looks like we need ebuilds for some of the perl modules that it wants to install. Any takers?
Comment 19 Abhishek Amit (RETIRED) gentoo-dev 2003-05-01 21:32:28 UTC
Created attachment 11371 [details]
Ebuild for bugzilla with perl modules

All of the perl ebuilds are from the original submission.
Comment 20 Julien Allanos (RETIRED) gentoo-dev 2003-05-21 03:26:06 UTC
please change >=sys-devel/perl-5.005 to >=dev-lang/perl-5.005 in the DEPEND statement of bugzilla-2.7.3-r1.ebuild in order to work.
Comment 21 Laurent Maestracci 2003-06-12 12:51:54 UTC
great job !

all goes well until the last step
ebuild /var/db/pkg/net-misc/bugzilla-2.17.3-r1/bugzilla-2.17.3-r1.ebuild config 

I get this :
!!! ERROR: net-misc/bugzilla-2.17.3-r1 failed.
!!! Function pkg_config, Line 94, Exitcode 1
!!! (no error message)

I executed the end of the pkg_config function by copying each interesting line to an xterm.
The only last problem is I needed to 'chown -R apache:apache /home/httpd/bugzilla' to get access to bugzilla
Comment 22 Jeff Ames 2003-08-09 12:14:39 UTC
I just installed this based on the 2003-05-01 ebuild, and thought I'd add my comments to this thread....  I'm using apache2 (2.0.47) so perhaps some of my configuration differences are due to that.

- moved bugzilla.conf from /etc/apache/conf to /etc/apache2/conf
- added LOCK TABLES privilege to bugs user, didn't seem to want to work without that
- "su - apache -c ..." commands didn't work for me (perhaps since apache's shell is /bin/false?), so I did those as root, and then had to chown -r apache:apache again later on

I'm not sure why the admin email/password/name prompts are commented out....  I ended up hard-coding them in bz.cfg.templ.

Otherwise, though, it's all happy and working.
Comment 23 John Davis (zhen) (RETIRED) gentoo-dev 2003-08-18 21:21:59 UTC
wrong category
Comment 24 Benjamin Coles 2003-09-16 06:55:06 UTC
Created attachment 17803 [details]
Updated bugzilla

Updated ebuild to match new portage, edited config part of ebuild to complete
sucessfully, added an extra chown -R apache:apache /home/httpd/bugzilla because
when running one of the bugzilla scripts, it changes ownership. Also moved to
net-www instead of net-misc. Removed the additional perl modules which were
already in the portage tree. Further testing and then we'll put it in the
portage tree.
Comment 25 Benjamin Coles 2003-09-16 06:55:40 UTC
Created attachment 17804 [details]
Updated bugzilla

Updated ebuild to match new portage, edited config part of ebuild to complete
sucessfully, added an extra chown -R apache:apache /home/httpd/bugzilla because
when running one of the bugzilla scripts, it changes ownership. Also moved to
net-www instead of net-misc. Removed the additional perl modules which were
already in the portage tree. Further testing and then we'll put it in the
portage tree.
Comment 26 Marius Mauch (RETIRED) gentoo-dev 2003-09-21 03:19:01 UTC
Should be fixed to use the correct apache directory (/etc/apache2 if you don't have apache-1).
Comment 27 pasi.valminen 2003-09-21 05:53:24 UTC
The config should also handle the case when mysql is not running on localhost.
Comment 28 Markus Nigbur (RETIRED) gentoo-dev 2003-09-25 07:16:14 UTC
*** Bug 29578 has been marked as a duplicate of this bug. ***
Comment 29 Benjamin Coles 2003-09-25 19:19:20 UTC
bugzilla ebuild is borked, working on....
Comment 30 Stuart Herbert (RETIRED) gentoo-dev 2003-10-04 08:26:53 UTC
Hi,

The web-apps herd is currently working on delivering some important changes
to the way that web-based applications are installed and managed on Gentoo
Linux.  Until this work is complete, we're not commiting ebuilds for new
web-based packages.

I've marked this bug as 'LATER'.  As soon as we are able to, we will come
back to this bug and help you convert your ebuild to our new approach.

Keep at it - a working bugzilla ebuild is sure to be popular!

Many thanks for your patience,
Stu
Comment 31 Martin Holzer (RETIRED) gentoo-dev 2003-10-28 02:59:35 UTC
*** Bug 32164 has been marked as a duplicate of this bug. ***
Comment 32 Mark Lynch 2003-11-24 02:57:38 UTC
Hi Stuart,

Is it possible to reopen this bug yet? From what I can see on my installation the Apache guys have done there magic and reorganised the apache install.  If I'm wrong with this is there an open bug for the apache changes that we can make this bug depend on?
Comment 33 Martin Holzer (RETIRED) gentoo-dev 2003-11-24 03:20:02 UTC
reopening as requested
Comment 34 Benjamin Coles 2003-11-24 16:48:05 UTC
I do have an ebuild ready for this, the biggest problem that I'm having are upgrades... the upgrades for bugzilla are NEVER easy... I will finish up what I can and let it be up to the admin to upgrade.
Comment 35 Benjamin Coles 2003-12-01 08:40:48 UTC
Commited bugzilla ebuild as unstable, the ebuild works fine but there is no safe way to upgrade - Maybe someone could research this for me but in any case bugzilla.org says to backup before upgrading due to possible problems with the bugzilla database.