Bug 264638 - www/redmine Add Redmine 5 port
Summary: www/redmine Add Redmine 5 port
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Mikael Urankar
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-12 18:08 UTC by Alexander Ushakov
Modified: 2022-12-19 09:35 UTC (History)
10 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Ushakov 2022-06-12 18:08:59 UTC
Hello, thank you for maintaining the redmine port.
Please, add Redmine 5 port. It has been released 28th of March.
As version 5 depends on Rails 6.1 and still supported version 4 - on Rails 5.2 it looks like Redmine 5 needs separate port like www/redmine5
Comment 1 Alexander Ushakov 2022-06-13 11:00:03 UTC
It is worth to mention Redmine 5 supports Ruby 3 where Redmine 4 only Ruby 2.7
Comment 2 Yuri Dolgoruki 2022-06-20 06:20:31 UTC
Guys, can I join to Alexander's request. Redmine is important thing and for new instance it is good to start on actual version with far EoL.

Please!
Comment 3 Yuri Dolgoruki 2022-06-29 16:17:01 UTC
There is a version 5.0.2 released. Hope to find it un ports! :)

Thanks for Maintainer!
Comment 4 Wen Heping freebsd_committer freebsd_triage 2022-06-29 22:40:45 UTC
I have created redmine5 port on my system, but there is a run time so I hold the import:

https://www.redmine.org/boards/2/topics/67359
Comment 5 Yuri Dolgoruki 2022-06-30 04:47:00 UTC
Wen Heping, thanks for Your work!

That WikiFormatting issue looks related to that https://www.redmine.org/issues/35892

In 5.0.2 changelog described that solved issue:
Redmine::WikiFormatting::CommonMark::FormatterTest#test_footnotes fails with CommonMarker 0.23.2

Maybe Dev's not fully resolved it.
Comment 6 Yuri Dolgoruki 2022-07-06 03:18:39 UTC
(In reply to Wen Heping from comment #4)

Wen, maybe you provide current state of port, and I post issue at redmine help forum? I ask for that, because there are topic  How to request help on redmine forums (https://www.redmine.org/boards/2/topics/667) and for request help need to provide some info:

- Ruby implementation and version
- Rails version (rails --version)
- Operating system (precise if you're using cygwin when running on Windows)
- Database used, and its version
- Ruby-aware server used: Webrick, Mongrel, Thin, etc. If you don't understand this point, you're using Webrick.
Don't forget to precise where you're meeting your problem in the application (creating an issue, adding a project, etc.)

Please also attach the output from running the following in your Redmine directory.
RAILS_ENV=YOUR_ENVIRONMENT script/about

where YOUR_ENVIRONMENT is what you configured in config/database.yml (typically 'production' or 'development). This will help us see about your environment.
Comment 7 Wen Heping freebsd_committer freebsd_triage 2022-07-07 01:15:39 UTC
(In reply to Yuri Dolgoruki from comment #6)
I send the patch to your email.
Comment 8 Yuri Dolgoruki 2022-07-08 07:33:32 UTC
(In reply to Wen Heping from comment #7)
Wen, thanks for patch! I'm get a absolutely fresh install with your port on a FreeBSD 13.1 amd64, with nginx + passenger and get similar error. Detailed info on redmine's forum is here: https://www.redmine.org/boards/2/topics/67383
Comment 9 Yuri Dolgoruki 2022-07-18 04:07:58 UTC
(In reply to Wen Heping from comment #7)

Wen, there is a solution from Azamat Hackimov on redmine's help forum.
https://www.redmine.org/boards/2/topics/67383?r=67404#message-67404

He noticed that error because of commonMarker part is not exists in /usr/local/www/redmine/Gemfile

That part are strips down by files/patch-Gemfile:
-# Optional CommonMark support, not for JRuby
-group :common_mark do
-  gem "html-pipeline", "~> 2.13.2"
-  gem "commonmarker", (Gem.ruby_version < Gem::Version.new('2.6.0') ? '0.21.0' : '0.23.4')
-  gem "sanitize", "~> 6.0"
-  gem 'deckar01-task_list', '2.3.2'
-end


If I manual add in /usr/local/www/redmine/Gemfile such part:
group :common_mark do
  gem "html-pipeline", "~> 2.13.2" 
  gem "commonmarker", (Gem.ruby_version < Gem::Version.new('2.6.0') ? '0.21.0' : '~> 0.23.5') # Here
  gem "sanitize", "~> 6.0" 
  gem 'deckar01-task_list', '~> 2.3.2' # Here too
end

and followed:
su -m redmine -c "bundle install"

it install commonMarker dependencies and error disappear.
Comment 10 Daniel O'Connor 2022-09-10 03:52:35 UTC
Can you post the updated port here? I'd like to try it :)

Thanks.
Comment 11 Ben Stuyts 2022-10-21 09:54:01 UTC
Currently using an outdated redmine4 package, not able to upgrade.

Is redmine5 ever going to appear in ports/packages? Is there anything I can do to help/test?
Comment 12 Mikael Urankar freebsd_committer freebsd_triage 2022-12-14 12:25:27 UTC
Any news on this?
Comment 13 commit-hook freebsd_committer freebsd_triage 2022-12-18 15:57:57 UTC
A commit in branch main references this bug:

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

commit c0efc8c88e6baef7bef5c4e1e3a939980caae827
Author:     Mikael Urankar <mikael@FreeBSD.org>
AuthorDate: 2022-12-18 09:40:04 +0000
Commit:     Mikael Urankar <mikael@FreeBSD.org>
CommitDate: 2022-12-18 15:57:07 +0000

    mail/rubygem-roadie-rails-rails61: Add new port

    Hooks Roadie into Rails applications to help with HTML email generation.

    PR:             264638

 mail/rubygem-roadie-rails-rails61/Makefile (new)  | 24 +++++++++++++++++++++++
 mail/rubygem-roadie-rails-rails61/distinfo (new)  |  3 +++
 mail/rubygem-roadie-rails-rails61/pkg-descr (new) |  1 +
 3 files changed, 28 insertions(+)
Comment 14 commit-hook freebsd_committer freebsd_triage 2022-12-18 15:58:03 UTC
A commit in branch main references this bug:

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

commit 1e28a7d7b66c9dd386d27dd6af3d64615c8019ee
Author:     Mikael Urankar <mikael@FreeBSD.org>
AuthorDate: 2022-12-18 09:39:21 +0000
Commit:     Mikael Urankar <mikael@FreeBSD.org>
CommitDate: 2022-12-18 15:57:07 +0000

    textproc/rubygem-actionpack-xml_parser-rails61: Add new port

    actionpack-xml_parser is an XML parameters parser for Action Pack (removed from
    core in Rails 4.0).

    PR:             264638

 .../Makefile (new)                                 | 22 ++++++++++++++++++++++
 .../distinfo (new)                                 |  3 +++
 .../pkg-descr (new)                                |  4 ++++
 3 files changed, 29 insertions(+)
Comment 15 commit-hook freebsd_committer freebsd_triage 2022-12-18 15:58:05 UTC
A commit in branch main references this bug:

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

commit 2f6b395b30deb4f48a2d8ddad31e98cc763162c9
Author:     Mikael Urankar <mikael@FreeBSD.org>
AuthorDate: 2022-12-18 09:40:49 +0000
Commit:     Mikael Urankar <mikael@FreeBSD.org>
CommitDate: 2022-12-18 15:57:07 +0000

    www/redmine50: Add new port

    Redmine is a flexible project management web application
    written using Ruby on Rails framework, it is cross-platform
    and cross-database.

    Feature Overview:
    * Multiple projects support
    * Flexible role based access control
    * Flexible issue tracking system
    * Gantt chart and calendar
    * News, documents & files management
    * Feeds & email notifications
    * Per project wiki
    * Per project forums
    * Time tracking
    * Custom fields for issues, time-entries, projects and users
    * SCM integration (SVN, CVS, Git, Mercurial, Bazaar and Darcs)
    * Issue creation via email
    * Multiple LDAP authentication support
    * User self-registration support
    * Multilanguage support
    * Multiple databases support

    PR:             264638

 www/redmine50/Makefile (new)             |  120 ++
 www/redmine50/bsd.redmine.mk (new)       |   78 ++
 www/redmine50/distinfo (new)             |    3 +
 www/redmine50/files/markdown.rb (new)    |    1 +
 www/redmine50/files/mini_magick.rb (new) |    1 +
 www/redmine50/files/mysql.rb (new)       |    1 +
 www/redmine50/files/patch-Gemfile (new)  |  116 ++
 www/redmine50/files/pg.rb (new)          |    1 +
 www/redmine50/files/redmine.in (new)     |   38 +
 www/redmine50/files/thin.rb (new)        |    1 +
 www/redmine50/pkg-descr (new)            |   21 +
 www/redmine50/pkg-message (new)          |   18 +
 www/redmine50/pkg-plist (new)            | 2235 ++++++++++++++++++++++++++++++
 13 files changed, 2634 insertions(+)
Comment 16 Ben Stuyts 2022-12-18 16:10:13 UTC
(In reply to commit-hook from comment #15)
Thank you, Mikael!