Bug 287233 - [NEW PORT] www/rt60: Version 6.0 of Request Tracker
Summary: [NEW PORT] www/rt60: Version 6.0 of Request Tracker
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Mikael Urankar
URL: https://requesttracker.com/2025/05/re...
Keywords:
Depends on: 287339
Blocks:
  Show dependency treegraph
 
Reported: 2025-06-02 11:33 UTC by Einar Bjarni Halldórsson
Modified: 2025-07-07 08:48 UTC (History)
2 users (show)

See Also:


Attachments
New port www/rt60 (122.89 KB, patch)
2025-06-06 11:58 UTC, Einar Bjarni Halldórsson
no flags Details | Diff
v0 (111.33 KB, patch)
2025-06-30 08:51 UTC, Mikael Urankar
no flags Details | Diff
v1 (111.29 KB, patch)
2025-06-30 09:01 UTC, Mikael Urankar
no flags Details | Diff
v2 (111.37 KB, patch)
2025-06-30 10:59 UTC, Mikael Urankar
no flags Details | Diff
Change maintainer (791 bytes, patch)
2025-07-03 14:28 UTC, Einar Bjarni Halldórsson
einar: maintainer-approval? (mikael)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Einar Bjarni Halldórsson 2025-06-02 11:33:32 UTC
Latest version of Request Tracker

Requires two new ports for dependencies and update of another

Diff review at https://reviews.freebsd.org/D50649
Comment 1 Einar Bjarni Halldórsson 2025-06-03 09:51:40 UTC
Error when trying to start rt-server.fcgi:

$ sudo /usr/local/sbin/rt-server.fcgi --listen /var/run/rt60/rt.sock --nproc 10
[56349] [Tue Jun  3 09:47:43 2025] [critical]: Something went wrong while trying to run RT's standalone web server:
	Can't locate FCGI/ProcManager.pm in @INC (you may need to install the FCGI::ProcManager module) (@INC entries checked: /usr/local/share/rt60/lib /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/site_perl/mach/5.40 /usr/local/lib/perl5/5.40/mach /usr/local/lib/perl5/5.40) at /usr/local/lib/perl5/site_perl/Plack/Util.pm line 26. (/usr/local/lib/perl5/site_perl/RT.pm:409)
Something went wrong while trying to run RT's standalone web server:
	Can't locate FCGI/ProcManager.pm in @INC (you may need to install the FCGI::ProcManager module) (@INC entries checked: /usr/local/share/rt60/lib /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/site_perl/mach/5.40 /usr/local/lib/perl5/5.40/mach /usr/local/lib/perl5/5.40) at /usr/local/lib/perl5/site_perl/Plack/Util.pm line 26.

I guess I need a dependency on p5-FCGI-ProcManager
Comment 2 Einar Bjarni Halldórsson 2025-06-03 11:07:27 UTC
Can't get it to run with either mod_fcgid or mod_fastcgi. The process always crashes. I was able to access RT by running rt-server.fcgi in console and using mod_proxy_fcgi in apache
Comment 3 Mikael Urankar freebsd_committer freebsd_triage 2025-06-06 09:01:54 UTC
Thanks for your submission.

For textproc/p5-Markdown-Render:
can you pet portlint -AC?
you'll have to reorder build_dep and run_dep, see https://docs.freebsd.org/en/books/porters-handbook/book/#porting-order

For devel/p5-Hash-Merge-Extra:
can you pet portlint -AC?
pkg-descr: contains less than 2 lines, make it longer if possible.(currently 1 line)

For www/p5-CSS-Inliner:
Can you create a separate PR in bugzilla so that the current maintainer can approve the update?


For www/rt60:
add devel/p5-Time-Local to CORE_DEPS

Bump minimum version for
HTML::RewriteAttributes 0.06 (p5-HTML-RewriteAttributes>=0.05)

HTTP::Message 6.46 (p5-HTTP-Message>=6.07)
Comment 4 Einar Bjarni Halldórsson 2025-06-06 11:58:18 UTC
Created attachment 261033 [details]
New port www/rt60

New port for latest major version of Request Tracker, 6.0.0

Adds two new ports for dependencies:
  devel/p5-Hash-Merge-Extra
  textproc/p5-Markdown-Render

Depends on www/p5-CSS-Inliner being updated to latest version
Comment 5 Einar Bjarni Halldórsson 2025-06-06 12:02:00 UTC
(In reply to Mikael Urankar from comment #3)

> For textproc/p5-Markdown-Render:
> can you pet portlint -AC?

Done

> For devel/p5-Hash-Merge-Extra:
> can you pet portlint -AC?
> pkg-descr: contains less than 2 lines, make it longer if possible.(currently 1 > line)

I've got nothing here... The description is the only text from upstream.

> For www/p5-CSS-Inliner:
> Can you create a separate PR in bugzilla so that the current maintainer can
> approve the update?

I split the www/p5-CSS-Inliner into a different patch and opened a PR so the maintainer can approve it.

> For www/rt60:
> add devel/p5-Time-Local to CORE_DEPS

It's part of std, added a comment about it in Makefile.cpan

> Bump minimum version for
> HTML::RewriteAttributes 0.06 (p5-HTML-RewriteAttributes>=0.05)
> 
> HTTP::Message 6.46 (p5-HTTP-Message>=6.07)

Done
Comment 6 Einar Bjarni Halldórsson 2025-06-06 12:03:37 UTC
(In reply to Einar Bjarni Halldórsson from comment #5)

I should explain that Time::Local is part of std, so we don't need dependency on p5-Time-Local. I don't know when it was added to standard, but it's in 5.40 and I *think* 5.38. Older versions than that are not in ports any more
Comment 7 Mikael Urankar freebsd_committer freebsd_triage 2025-06-08 14:40:28 UTC
(In reply to Einar Bjarni Halldórsson from comment #6)
Do you want to maintain devel/Hash-Merge-Extra? I can't put perl@ without their consent.
Comment 8 Einar Bjarni Halldórsson 2025-06-08 14:59:26 UTC
(In reply to Mikael Urankar from comment #7)

Yes, no problem.
Comment 9 commit-hook freebsd_committer freebsd_triage 2025-06-13 07:38:32 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=c5f6d54b881e58481c5aff8442ba8d3f0f236c53

commit c5f6d54b881e58481c5aff8442ba8d3f0f236c53
Author:     Einar Bjarni Halldórsson <einar@isnic.is>
AuthorDate: 2025-06-06 11:53:13 +0000
Commit:     Mikael Urankar <mikael@FreeBSD.org>
CommitDate: 2025-06-13 07:37:27 +0000

    textproc/p5-Markdown-Render: Add new port

    This module can be used, along with a CSS::Parse::* module, to parse CSS
    data and represent it as a tree of objects. Using a CSS::Adaptor::* module,
    the CSS data tree can then be transformed into other formats.

    PR:             287233

 textproc/Makefile                           |  1 +
 textproc/p5-Markdown-Render/Makefile (new)  | 31 +++++++++++++++++++++++++++++
 textproc/p5-Markdown-Render/distinfo (new)  |  3 +++
 textproc/p5-Markdown-Render/pkg-descr (new) |  3 +++
 textproc/p5-Markdown-Render/pkg-plist (new) |  3 +++
 5 files changed, 41 insertions(+)
Comment 10 commit-hook freebsd_committer freebsd_triage 2025-06-13 07:38:35 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=8cb5bc2ef1aebb00d2c9d622be4fba01c5283dae

commit 8cb5bc2ef1aebb00d2c9d622be4fba01c5283dae
Author:     Einar Bjarni Halldórsson <einar@isnic.is>
AuthorDate: 2025-06-06 11:53:13 +0000
Commit:     Mikael Urankar <mikael@FreeBSD.org>
CommitDate: 2025-06-13 07:37:27 +0000

    devel/p5-Hash-Merge-Extra: Add new port

    Collection of extra behaviors for Hash::Merge

    PR:             287233

 devel/Makefile                            |  1 +
 devel/p5-Hash-Merge-Extra/Makefile (new)  | 20 ++++++++++++++++++++
 devel/p5-Hash-Merge-Extra/distinfo (new)  |  3 +++
 devel/p5-Hash-Merge-Extra/pkg-descr (new) |  1 +
 devel/p5-Hash-Merge-Extra/pkg-plist (new) |  2 ++
 5 files changed, 27 insertions(+)
Comment 11 Mikael Urankar freebsd_committer freebsd_triage 2025-06-25 07:36:07 UTC
(In reply to Einar Bjarni Halldórsson from comment #1)
I'm not able to reproduce this issue, do you have a way to repro it?
Comment 12 Mikael Urankar freebsd_committer freebsd_triage 2025-06-25 07:38:04 UTC
(In reply to Einar Bjarni Halldórsson from comment #2)
Do you have some logs for this issue? It seems to work fine on my server, I only need to change a few files ownership/perm
Comment 13 Einar Bjarni Halldórsson 2025-06-25 08:48:40 UTC
(In reply to Mikael Urankar from comment #11)

This is my apache vhost config, which works with RT 5.0.8:

FastCgiServer /usr/local/sbin/rt-server.fcgi -processes 2 -idle-timeout 300

Listen 443 https

SSLCertificateFile "/usr/local/etc/ssl/rt.v.nic.is/cert.pem"
SSLCertificateKeyFile "/usr/local/etc/ssl/rt.v.nic.is/privkey.pem"
SSLCertificateChainFile "/usr/local/etc/ssl/rt.v.nic.is/fullchain.pem"
SSLEngine on
SSLProtocol             all -SSLv3 -TLSv1 -TLSv1.1 -TLSv1.2
SSLHonorCipherOrder     off
SSLSessionTickets       off
SSLOpenSSLConfCmd Curves X25519:secp521r1:secp384r1:prime256v1

<VirtualHost *:443>
    AddDefaultCharset UTF-8
    SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
    ScriptAlias / /usr/local/sbin/rt-server.fcgi/

    DocumentRoot "/usr/local/share/rt60/html"
    <Location />
        Require all granted
        Options +ExecCGI
        AddHandler fcgid-script fcgi
    </Location>
</VirtualHost>

---

In /var/log/messages I see:

<188>1 2025-06-25T08:41:54.044763+00:00 pop-os-rt fcgi- 8309 - - [:warn] [pid 8309] FastCGI: server "/usr/local/sbin/rt-server.fcgi" (pid 8771) terminated by calling exit with status '2'
<188>1 2025-06-25T08:41:58.084889+00:00 pop-os-rt fcgi- 8309 - - [:warn] [pid 8309] FastCGI: server "/usr/local/sbin/rt-server.fcgi" restarted (pid 8772)
<188>1 2025-06-25T08:41:58.140756+00:00 pop-os-rt fcgi- 8309 - - [:warn] [pid 8309] FastCGI: server "/usr/local/sbin/rt-server.fcgi" (pid 8772) terminated by calling exit with status '2'
<188>1 2025-06-25T08:41:58.140800+00:00 pop-os-rt fcgi- 8309 - - [:warn] [pid 8309] FastCGI: server "/usr/local/sbin/rt-server.fcgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds

---

I'll try with a default config and see if I can get rid of the errors.
Comment 14 Mikael Urankar freebsd_committer freebsd_triage 2025-06-25 09:10:35 UTC
(In reply to Einar Bjarni Halldórsson from comment #13)
I have AddHandler fastcgi-script fcgi in my conf (instead of AddHandler fcgid-script fcgi)
Comment 15 Mikael Urankar freebsd_committer freebsd_triage 2025-06-30 08:51:06 UTC
Created attachment 261756 [details]
v0

Change directory layout to stock version. I have a user who tells me that the current change is causing him problems, revert to stock layout.

Fix plist
Comment 16 Mikael Urankar freebsd_committer freebsd_triage 2025-06-30 09:01:39 UTC
Created attachment 261757 [details]
v1

Remove www/p5-FCGI-ProcManager as it's not needed with MODFASTCGI
Comment 17 Einar Bjarni Halldórsson 2025-06-30 10:05:55 UTC
(In reply to Mikael Urankar from comment #16)

Tried the v1 patch, got these errors in log:

<10>1 2025-06-30T09:56:06.626240+00:00 pop-os-rt RT 9652 - - [9652] Cannot create directory '/var/run/rt60/mason_data/obj' (mkdir /var/run/rt60/mason_data/obj: Permission denied at /usr/local/lib/perl5/site_perl/HTML/Mason/Interp.pm line 301. ) for user 'www', group 'www'. Perhaps you need to create or set permissions on your data_dir ('/var/run/rt60/mason_data').  Stack:   [/usr/local/lib/perl5/site_perl/HTML/Mason/Interp.pm:318]   [/usr/local/lib/perl5/site_perl/HTML/Mason/Interp.pm:222]   [/usr/local/lib/perl5/site_perl/HTML/Mason/Interp.pm:169]   [/usr/local/lib/perl5/site_perl/HTML/Mason/Interp.pm:155]   [/usr/local/lib/perl5/site_perl/Class/Container.pm:329]   [/usr/local/lib/perl5/site_perl/Class/Container.pm:53]   [/usr/local/lib/perl5/site_perl/HTML/Mason/CGIHandler.pm:38]   [/usr/local/lib/perl5/site_perl/HTML/Mason/PSGIHandler.pm:14]   [/usr/local/lib/perl5/site_perl/RT/Interface/Web/Handler.pm:114]   [/usr/local/lib/perl5/site_perl/RT/Interface/Web/Handler.pm:295]   [/usr/local/lib/perl5/site_perl/RT/PlackRunner.pm:108]   [/usr/local/lib/perl5/site_perl/RT/PlackRunner.pm:72]   [/usr/local/sbin/rt-server.fcgi:153]
<188>1 2025-06-30T09:56:06.665219+00:00 pop-os-rt fcgi- 9178 - - [:warn] [pid 9178] FastCGI: server "/usr/local/sbin/rt-server.fcgi" (pid 9652) terminated by calling exit with status '255'

---

Fixed by running `chgrp -R www /var/run/rt60/mason_data` . RT 6.0 now runs from apache!
Comment 18 Mikael Urankar freebsd_committer freebsd_triage 2025-06-30 10:59:10 UTC
Created attachment 261759 [details]
v2

fix pkg-message.in
fix /var/run/rt60 owner/grp
Comment 19 commit-hook freebsd_committer freebsd_triage 2025-06-30 11:19:02 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=851560d0bc9e7d1968f04f12d0af9cbcc2f429d2

commit 851560d0bc9e7d1968f04f12d0af9cbcc2f429d2
Author:     Einar Bjarni Halldórsson <einar@isnic.is>
AuthorDate: 2025-06-06 11:53:13 +0000
Commit:     Mikael Urankar <mikael@FreeBSD.org>
CommitDate: 2025-06-30 11:18:29 +0000

    www/rt60: Add new port

    RT is a battle-tested issue tracking system which thousands of
    organizations use for bug tracking, help desk ticketing, customer
    service, workflow processes, change management, network operations,
    youth counselling and even more. Organizations around the world have
    been running smoothly thanks to RT for over 10 years.

    PR:             287233

 www/Makefile                                       |    1 +
 www/rt60/Makefile (new)                            |  179 ++
 www/rt60/Makefile.cpan (new)                       |  350 ++++
 www/rt60/distinfo (new)                            |    3 +
 www/rt60/files/patch-Makefile.in (new)             |   91 +
 www/rt60/files/patch-config.layout (new)           |   19 +
 www/rt60/files/patch-configure (new)               |   11 +
 .../files/patch-sbin_rt-test-dependencies.in (new) |   11 +
 www/rt60/files/pkg-message.in (new)                |   52 +
 www/rt60/pkg-descr (new)                           |    5 +
 www/rt60/pkg-plist (new)                           | 1938 ++++++++++++++++++++
 11 files changed, 2660 insertions(+)
Comment 20 Mikael Urankar freebsd_committer freebsd_triage 2025-06-30 11:20:58 UTC
Thanks!
Comment 21 Mikael Urankar freebsd_committer freebsd_triage 2025-07-03 13:43:14 UTC
BTW, do you want to maintain the rt60 port?
Comment 22 Einar Bjarni Halldórsson 2025-07-03 14:23:37 UTC
(In reply to Mikael Urankar from comment #21)

Sure, why not?

I'll create a patch for changing maintainer and post it here
Comment 23 Einar Bjarni Halldórsson 2025-07-03 14:28:47 UTC
Created attachment 261846 [details]
Change maintainer
Comment 24 commit-hook freebsd_committer freebsd_triage 2025-07-07 08:46:46 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=b10fda481933500414614b78b2476211c26722ce

commit b10fda481933500414614b78b2476211c26722ce
Author:     Einar Bjarni Halldórsson <einar@isnic.is>
AuthorDate: 2025-07-03 14:26:08 +0000
Commit:     Mikael Urankar <mikael@FreeBSD.org>
CommitDate: 2025-07-07 08:45:21 +0000

    www/rt60: pass maintainership to Einar Bjarni Halldórsson

    PR:             287233

 www/rt60/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Comment 25 commit-hook freebsd_committer freebsd_triage 2025-07-07 08:48:47 UTC
A commit in branch 2025Q3 references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=01bd316c75541ae9deb2abb199fb69a9949ef177

commit 01bd316c75541ae9deb2abb199fb69a9949ef177
Author:     Einar Bjarni Halldórsson <einar@isnic.is>
AuthorDate: 2025-07-03 14:26:08 +0000
Commit:     Mikael Urankar <mikael@FreeBSD.org>
CommitDate: 2025-07-07 08:46:51 +0000

    www/rt60: pass maintainership to Einar Bjarni Halldórsson

    PR:             287233
    (cherry picked from commit b10fda481933500414614b78b2476211c26722ce)

 www/rt60/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)