Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 260575 - Ebuild request: Redmine
Summary: Ebuild request: Redmine
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: MATSUU Takuto (RETIRED)
URL: http://redmine.org
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-28 00:36 UTC by Allen Brooker (AllenJB)
Modified: 2010-02-10 16:41 UTC (History)
17 users (show)

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


Attachments
www-apps/redmine-0.8.4.ebuild (redmine-0.8.4.ebuild,2.12 KB, text/plain)
2009-06-12 17:25 UTC, MATSUU Takuto (RETIRED)
Details
www-apps/redmine-0.8.4.ebuild (redmine-0.8.4.ebuild,2.07 KB, text/plain)
2009-06-18 23:48 UTC, MATSUU Takuto (RETIRED)
Details
www-apps/redmine-9999.ebuild (redmine-9999.ebuild,2.10 KB, text/plain)
2009-06-18 23:49 UTC, MATSUU Takuto (RETIRED)
Details
www-apps/redmine-0.8.4-r1.ebuild (redmine-0.8.4-r1.ebuild,2.39 KB, text/plain)
2009-08-24 13:59 UTC, rubenqba
Details
www-apps/redmine-9999.ebuild (redmine-9999.ebuild,2.22 KB, text/plain)
2009-10-08 16:23 UTC, MATSUU Takuto (RETIRED)
Details
redmine-9999.ebuild with passenger (mod_rails) support (redmine-9999.ebuild,3.03 KB, text/plain)
2009-10-30 20:09 UTC, Brian Evans (RETIRED)
Details
vhost file to load into apache with passenger (10_redmine_vhost.conf,344 bytes, text/plain)
2009-10-30 20:17 UTC, Brian Evans (RETIRED)
Details
redmine-9999.ebuild with passenger (mod_rails) support (redmine-9999.ebuild,2.80 KB, text/plain)
2009-10-30 20:30 UTC, Brian Evans (RETIRED)
Details
www-apps/redmine-9999.ebuild (redmine-9999.ebuild,3.82 KB, text/plain)
2009-10-30 23:11 UTC, MATSUU Takuto (RETIRED)
Details
redmine-9999.ebuild with passenger (mod_rails) support (redmine-9999.ebuild,4.31 KB, text/plain)
2009-11-16 16:08 UTC, Brian Evans (RETIRED)
Details
www-apps/redmine-0.8.7.ebuild (redmine-0.8.7.ebuild,4.27 KB, text/plain)
2009-12-24 15:27 UTC, MATSUU Takuto (RETIRED)
Details
www-apps/redmine-9999.ebuild (redmine-9999.ebuild,4.43 KB, text/plain)
2009-12-24 15:29 UTC, MATSUU Takuto (RETIRED)
Details
www-apps/redmine-0.9.1.ebuild (redmine-0.9.1.ebuild,4.43 KB, text/plain)
2010-01-31 23:47 UTC, MATSUU Takuto (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Allen Brooker (AllenJB) 2009-02-28 00:36:04 UTC
Requesting package for Redmine
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-02-28 00:55:20 UTC
Reassigning to maintainer-wanted.
Comment 2 Azamat H. Hackimov 2009-05-05 09:42:24 UTC
You can try ebuild from pva's overlay
http://overlays.gentoo.org/dev/pva/browser/www-apps/redmine
Comment 3 MATSUU Takuto (RETIRED) gentoo-dev 2009-06-12 17:25:38 UTC
Created attachment 194437 [details]
www-apps/redmine-0.8.4.ebuild
Comment 4 MATSUU Takuto (RETIRED) gentoo-dev 2009-06-18 23:48:42 UTC
Created attachment 195124 [details]
www-apps/redmine-0.8.4.ebuild

cleanup
Comment 5 MATSUU Takuto (RETIRED) gentoo-dev 2009-06-18 23:49:28 UTC
Created attachment 195126 [details]
www-apps/redmine-9999.ebuild

live ebuild
Comment 6 Marcin Kwiatkowski 2009-08-17 11:02:34 UTC
Please fix your ebuilds

http://www.redmine.org/boards/2/topics/7316

config symlinked to /etc/redmine results in non working plugins.
Comment 7 rubenqba 2009-08-24 13:59:31 UTC
Created attachment 202155 [details]
www-apps/redmine-0.8.4-r1.ebuild

New ebuild redmine-0.8.4-r1.ebuild because dev-ruby/rails-2.1.2-r1 masked by package.mask
Comment 8 Steven Green 2009-10-07 13:55:29 UTC
I just tried to use this ebuild and got told that one of its dependencies is masked and is going to be removed from portage in 60 days:

!!! All ebuilds that could satisfy ">=dev-ruby/actionwebservice-1.1.3" have been masked.
!!! One of the following masked packages is required to complete your request:
- dev-ruby/actionwebservice-1.2.6 (masked by: package.mask)
/usr/portage/profiles/package.mask:
# Hans de Graaff <graaff@gentoo.org> (22 Aug 2009)
# These Rails versions are no longer supported upstream
# and will be removed in 60 days.
# Alex Legler <a3li@gentoo.org> (27 Sep 2009)
# Added Rails 1. Due for removal together with the rest here.

Comment 9 Azamat H. Hackimov 2009-10-07 14:07:05 UTC
(In reply to comment #8)
This dep actually no more required for Redmine from SVN. 0.8.x You can use 9999 until 0.9 will be released.
Comment 10 MATSUU Takuto (RETIRED) gentoo-dev 2009-10-08 16:23:29 UTC
Created attachment 206458 [details]
www-apps/redmine-9999.ebuild

cleanup
removed /etc/redmine/ because it doesn't work with dev-ruby/rack.
Comment 11 Azamat H. Hackimov 2009-10-08 17:16:57 UTC
(In reply to comment #10)
Matsuu, can you replace ESVN_REPO_URI to http://redmine.rubyforge.org/svn/trunk/?
Comment 12 Rory Ye 2009-10-25 15:00:32 UTC
where can I found the two files:

redmine.confd
redmine.initd

thanks.
Comment 13 Sebastian Pipping gentoo-dev 2009-10-25 15:17:07 UTC
(In reply to comment #12)
> where can I found the two files:
> 
> redmine.confd
> redmine.initd

here:
http://overlays.gentoo.org/dev/pva/browser/www-apps/redmine/files
Comment 14 Rory Ye 2009-10-25 16:22:52 UTC
Thanks Sebastian Pipping 

But this script is to old?

This
/usr/bin/ruby18
should be change to /usr/bin/ruby

and the mongrel not in dependence.

after the config I got this error. The service can not start.




** Starting Mongrel listening at 0.0.0.0:3000
** Initiating groups for "redmine":"redmine".
** Changing group to "redmine".
** Changing user to "redmine".
** Starting Rails with production environment...
/usr/lib64/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:417:in `load_missing_constant': Object is not missing constant Project! (ArgumentError)
	from /usr/lib64/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:80:in `const_missing'
	from /usr/lib64/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:92:in `const_missing'
	from /usr/lib64/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:98:in `send'
	from /usr/lib64/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:98:in `const_missing'
	from /var/lib/redmine/app/models/attachment.rb:36
	from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
	from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
	from /usr/lib64/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:158:in `require'
	 ... 62 levels...
	from /usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/command.rb:212:in `run'
	from /usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:281
	from /usr/bin/mongrel_rails:19:in `load'
	from /usr/bin/mongrel_rails:19
Comment 15 Brian Evans (RETIRED) gentoo-dev 2009-10-30 20:09:37 UTC
Created attachment 208784 [details]
redmine-9999.ebuild with passenger (mod_rails) support

Add ebuild that uses Apache + mod_rails
Comment 16 Azamat H. Hackimov 2009-10-30 20:16:23 UTC
(In reply to comment #15)
Current Redmine from trunk require >=Rails 2.3.4 (see http://www.redmine.org/wiki/redmine/RedmineInstall)
Comment 17 Brian Evans (RETIRED) gentoo-dev 2009-10-30 20:17:04 UTC
Created attachment 208786 [details]
vhost file to load into apache with passenger

Add support file to last ebuild attachment
Comment 18 Brian Evans (RETIRED) gentoo-dev 2009-10-30 20:29:33 UTC
(In reply to comment #16)
> (In reply to comment #15)
> Current Redmine from trunk require >=Rails 2.3.4 (see
> http://www.redmine.org/wiki/redmine/RedmineInstall)
> 

Will fix this now, though it does pull it correctly if new
Comment 19 Brian Evans (RETIRED) gentoo-dev 2009-10-30 20:30:01 UTC
Created attachment 208787 [details]
redmine-9999.ebuild with passenger (mod_rails) support

Fix deps
Comment 20 MATSUU Takuto (RETIRED) gentoo-dev 2009-10-30 23:11:49 UTC
Created attachment 208813 [details]
www-apps/redmine-9999.ebuild

added pkg_config
Comment 21 Azamat H. Hackimov 2009-11-15 12:14:40 UTC
Latest redmine from trunk also required >=dev-ruby/rubygems-1.3.5 for rake operations (db:migrate, db:update etc)
Comment 22 Brian Evans (RETIRED) gentoo-dev 2009-11-16 16:08:28 UTC
Created attachment 210422 [details]
redmine-9999.ebuild with passenger (mod_rails) support

add in MATSUU Takuto's pkg_config support

(In reply to comment #21)
> Latest redmine from trunk also required >=dev-ruby/rubygems-1.3.5 for rake
> operations (db:migrate, db:update etc)
> 

I don't think this is explicitly required because:
rails-2.3.4 requires rubygems >=1.3.2
rubygems-1.3.5 is the stable version on all platforms
Comment 23 MATSUU Takuto (RETIRED) gentoo-dev 2009-12-24 15:27:23 UTC
Created attachment 214045 [details]
www-apps/redmine-0.8.7.ebuild

redmine-0.8.7 contains rails-2.1 so it works well.
Comment 24 MATSUU Takuto (RETIRED) gentoo-dev 2009-12-24 15:29:50 UTC
Created attachment 214047 [details]
www-apps/redmine-9999.ebuild
Comment 25 Eric Johnson 2010-01-10 04:51:51 UTC
both redmine-0.8.7 and redmine-9999 die with the same message at install:

>>> Source compiled.
>>> Test phase [not enabled]: www-apps/redmine-0.8.7

>>> Install redmine-0.8.7 into /var/tmp/portage/www-apps/redmine-0.8.7/image/ category www-apps
!!! newconfd: /usr/local/portage/www-apps/redmine/files/redmine-0.8.7.confd does not exist
 * 
 * ERROR: www-apps/redmine-0.8.7 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_install
 *             environment, line 2432:  Called die
 * The specific snippet of code:
 *           newconfd "${FILESDIR}/${P}.confd" ${PN} || die;
 *  The die message:
 *   (no error message)
newconfd: /usr/local/portage/www-apps/redmine/files/redmine-0.8.7.confd does not 
Comment 26 Eric Johnson 2010-01-10 05:42:27 UTC
(In reply to comment #25)
> both redmine-0.8.7 and redmine-9999 die with the same message at install:
> 
> !!! newconfd: /usr/local/portage/www-apps/redmine/files/redmine-0.8.7.confd
> does not exist

(In reply to comment #13)
After pulling down redmine.confd and redmine.initd to files/redmine-9999.confd and files/redmine-9999.initd, compilation and installation was successful on sparc (modified a few ebuilds in my own local overlay).
Comment 27 Eric Johnson 2010-01-17 20:05:56 UTC
Not only did redmine-9999 install, but redmine-9999 runs like a champ under sparc using postgresql back-end - and the only (very undramatic) modifications were to include the ~sparc keyword in the following ebuilds in my local overlay, and make sure the (properly formatted) init.d and conf.d files (referenced in comment #13) were in the files directory.

dev-ruby/coderay  
dev-ruby/pg  
dev-ruby/ruby-net-ldap  
dev-ruby/ruby-openid
www-apps/redmine

Gotta love Gentoo, Ruby, and the open source community!
Comment 28 MATSUU Takuto (RETIRED) gentoo-dev 2010-01-31 23:47:44 UTC
Created attachment 218043 [details]
www-apps/redmine-0.9.1.ebuild
Comment 29 Domen Kožar 2010-02-01 13:09:00 UTC
!!! newconfd: /usr/local/portage/www-apps/redmine/files/redmine-0.9.1.confd does not exist

I revice such error upon upgrade from 0.8.7 to 0.9.1
Comment 30 Alex Pogodin 2010-02-01 23:59:22 UTC
(In reply to comment #28)
> Created an attachment (id=218043) [details]
> www-apps/redmine-0.9.1.ebuild
> 

Can you provide *.confd & *.initd files for this ebuild (though I don't need them  - I am runnig redmine on thin server)
Comment 31 Ewoud Kohl van Wijngaarden 2010-02-03 04:55:45 UTC
On http://github.com/webkiller71/webkiller71/blob/master/www-apps/redmine/redmine-0.9.1.ebuild I have my redmine 0.9.1 ebuild, but with tests. I've also packaged object_daddy on the same overlay since it's required for the tests. Since dev-ruby/shoulda isn't keyworded (~)x86, I've dropped ~x86 from the keywords.

There's a minor issue. I use sqlite3 for the tests, so it should have dev-ruby/activerecord:2.3[sqlite3] as test? dependency, but I'm not sure if it's valid to depend on the same package more than once. Another issue is that the tests fail without dev-ruby/activerecord:2.3[mysql], even though I'm using a sqlite3 database. Anyone knows more about this?
Comment 32 Domen Kožar 2010-02-03 23:10:38 UTC
For "Object is not missing constant Project" error, take a look at
http://www.redmine.org/boards/2/topics/9825
Comment 33 Sergio D. Rodríguez Inclan 2010-02-06 13:34:59 UTC
Hi,

I tried to emerge redmine-0.9.1 but it seems that the file redmine-0.9.1.tar.gz is not a valid tar archive, the output is:

>>> Emerging (1 of 1) www-apps/redmine-0.9.1 from unknown repo
 * redmine-0.9.1.tar.gz RMD160 SHA1 SHA256 size ;-) ...                                                                               [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                  [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                 [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                [ ok ]
 * CPV:  www-apps/redmine-0.9.1
 * REPO:
 * USE:  apache2 elibc_glibc git imagemagick kernel_linux mysql openid sqlite3 subversion userland_GNU x86
>>> Unpacking source...
>>> Unpacking redmine-0.9.1.tar.gz to /var/tmp/portage/www-apps/redmine-0.9.1/work

gzip: /var/tmp/portage/www-apps/redmine-0.9.1/distdir/redmine-0.9.1.tar.gz: not in gzip format
tar: This does not look like a tar archive
tar: Error exit delayed from previous errors
 * ERROR: www-apps/redmine-0.9.1 failed:
 *   failure unpacking redmine-0.9.1.tar.gz
 *
 * Call stack:
 *               ebuild.sh, line   54:  Called src_unpack
 *             environment, line 2755:  Called _eapi0_src_unpack
 *               ebuild.sh, line  605:  Called unpack 'redmine-0.9.1.tar.gz'
 *               ebuild.sh, line  388:  Called _unpack_tar 'gzip'
 *               ebuild.sh, line  366:  Called assert 'failure unpacking redmine-0.9.1.tar.gz'
 *   isolated-functions.sh, line   14:  Called die
 * The specific snippet of code:
 *              [[ $x -eq 0 ]] || die "$@"
 *
 * If you need support, post the output of 'emerge --info =www-apps/redmine-0.9.1',
 * the complete build log and the output of 'emerge -pqv =www-apps/redmine-0.9.1'.
 * This ebuild is from an overlay: '/usr/local/portage/'
 * The complete build log is located at '/var/tmp/portage/www-apps/redmine-0.9.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/www-apps/redmine-0.9.1/temp/environment'.
 * S: '/var/tmp/portage/www-apps/redmine-0.9.1/work/redmine-0.9.1'

>>> Failed to emerge www-apps/redmine-0.9.1, Log file:

>>>  '/var/tmp/portage/www-apps/redmine-0.9.1/temp/build.log'
Comment 34 Sergio D. Rodríguez Inclan 2010-02-06 15:19:15 UTC
(In reply to comment #33)
> Hi,
> 
> I tried to emerge redmine-0.9.1 but it seems that the file redmine-0.9.1.tar.gz
> is not a valid tar archive, the output is:
> 
> >>> Emerging (1 of 1) www-apps/redmine-0.9.1 from unknown repo
>  * redmine-0.9.1.tar.gz RMD160 SHA1 SHA256 size ;-) ...                        
>                                                       [ ok ]
>  * checking ebuild checksums ;-) ...                                           
>                                                       [ ok ]
>  * checking auxfile checksums ;-) ...                                          
>                                                       [ ok ]
>  * checking miscfile checksums ;-) ...                                         
>                                                       [ ok ]
>  * CPV:  www-apps/redmine-0.9.1
>  * REPO:
>  * USE:  apache2 elibc_glibc git imagemagick kernel_linux mysql openid sqlite3
> subversion userland_GNU x86
> >>> Unpacking source...
> >>> Unpacking redmine-0.9.1.tar.gz to /var/tmp/portage/www-apps/redmine-0.9.1/work
> 
> gzip: /var/tmp/portage/www-apps/redmine-0.9.1/distdir/redmine-0.9.1.tar.gz: not
> in gzip format
> tar: This does not look like a tar archive
> tar: Error exit delayed from previous errors
>  * ERROR: www-apps/redmine-0.9.1 failed:
>  *   failure unpacking redmine-0.9.1.tar.gz
>  *
>  * Call stack:
>  *               ebuild.sh, line   54:  Called src_unpack
>  *             environment, line 2755:  Called _eapi0_src_unpack
>  *               ebuild.sh, line  605:  Called unpack 'redmine-0.9.1.tar.gz'
>  *               ebuild.sh, line  388:  Called _unpack_tar 'gzip'
>  *               ebuild.sh, line  366:  Called assert 'failure unpacking
> redmine-0.9.1.tar.gz'
>  *   isolated-functions.sh, line   14:  Called die
>  * The specific snippet of code:
>  *              [[ $x -eq 0 ]] || die "$@"
>  *
>  * If you need support, post the output of 'emerge --info
> =www-apps/redmine-0.9.1',
>  * the complete build log and the output of 'emerge -pqv
> =www-apps/redmine-0.9.1'.
>  * This ebuild is from an overlay: '/usr/local/portage/'
>  * The complete build log is located at
> '/var/tmp/portage/www-apps/redmine-0.9.1/temp/build.log'.
>  * The ebuild environment file is located at
> '/var/tmp/portage/www-apps/redmine-0.9.1/temp/environment'.
>  * S: '/var/tmp/portage/www-apps/redmine-0.9.1/work/redmine-0.9.1'
> 
> >>> Failed to emerge www-apps/redmine-0.9.1, Log file:
> 
> >>>  '/var/tmp/portage/www-apps/redmine-0.9.1/temp/build.log'
> 

I'm so sorry it was my web filter... :/
Comment 35 MATSUU Takuto (RETIRED) gentoo-dev 2010-02-10 16:41:36 UTC
www-apps/redmine-0.9.2 in cvs now.