Bug 180379 - devel/rubygem-shoulda-context: negative group permissions
Summary: devel/rubygem-shoulda-context: negative group permissions
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Steve Wills
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-08 08:40 UTC by Romain Tartière
Modified: 2013-07-21 05:50 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Romain Tartière freebsd_committer freebsd_triage 2013-07-08 08:40:00 UTC
After installing rubygem-shoulda-3.5.0, the daily scripts reports:

---------------------------------- 8< ----------------------------------
Checking negative group permissions:
303304 -rw----r--  1 root  wheel     84 Jun 30 15:19:55 2013 /usr/local/lib/ruby/gems/1.9/gems/shoulda-context-1.1.4/.gitignore
303305 -rw----r--  1 root  wheel     25 Jun 30 15:19:55 2013 /usr/local/lib/ruby/gems/1.9/gems/shoulda-context-1.1.4/.travis.yml
303306 -rw----r--  1 root  wheel    321 Jun 30 15:19:55 2013 /usr/local/lib/ruby/gems/1.9/gems/shoulda-context-1.1.4/Appraisals
303307 -rw----r--  1 root  wheel   1336 Jun 30 15:19:55 2013 /usr/local/lib/ruby/gems/1.9/gems/shoulda-context-1.1.4/CONTRIBUTING.md
303308 -rw----r--  1 root  wheel     38 Jun 30 15:19:55 2013 /usr/local/lib/ruby/gems/1.9/gems/shoulda-context-1.1.4/Gemfile
303309 -rw----r--  1 root  wheel   1102 Jun 30 15:19:55 2013 /usr/local/lib/ruby/gems/1.9/gems/shoulda-context-1.1.4/MIT-LICENSE
303310 -rw----r--  1 root  wheel   2063 Jun 30 15:19:55 2013 /usr/local/lib/ruby/gems/1.9/gems/shoulda-context-1.1.4/README.md
303311 -rw----r--  1 root  wheel    466 Jun 30 15:19:55 2013 /usr/local/lib/ruby/gems/1.9/gems/shoulda-context-1.1.4/Rakefile
303315 -rw----r--  1 root  wheel    113 Jun 30 15:19:55 2013 /usr/local/lib/ruby/gems/1.9/gems/shoulda-context-1.1.4/gemfiles/3.0.gemfile
303316 -rw----r--  1 root  wheel   1984 Jun 30 15:19:55 2013 /usr/local/lib/ruby/gems/1.9/gems/shoulda-context-1.1.4/gemfiles/3.0.gemfile.lock
303317 -rw----r--  1 root  wheel    148 Jun 30 15:19:55 2013 /usr/local/lib/ruby/gems/1.9/gems/shoulda-context-1.1.4/gemfiles/3.1.gemfile
303318 -rw----r--  1 root  wheel   2409 Jun 30 15:19:55 2013 /usr/local/lib/ruby/gems/1.9/gems/shoulda-context-1.1.4/gemfiles/3.1.gemfile.lock
303319 -rw----r--  1 root  wheel    148 Jun 30 15:19:55 2013 /usr/local/lib/ruby/gems/1.9/gems/shoulda-context-1.1.4/gemfiles/3.2.gemfile
303320 -rw----r--  1 root  wheel   2379 Jun 30 15:19:55 2013 /usr/local/lib/ruby/gems/1.9/gems/shoulda-context-1.1.4/gemfiles/3.2.gemfile.lock
303321 -rw----r--  1 root  wheel    165 Jun 30 15:19:55 2013 /usr/local/lib/ruby/gems/1.9/gems/shoulda-context-1.1.4/gemfiles/4.0.gemfile
303322 -rw----r--  1 root  wheel   2499 Jun 30 15:19:55 2013 /usr/local/lib/ruby/gems/1.9/gems/shoulda-context-1.1.4/gemfiles/4.0.gemfile.lock
303323 -rw----r--  1 root  wheel     59 Jun 30 15:19:55 2013 /usr/local/lib/ruby/gems/1.9/gems/shoulda-context-1.1.4/init.rb
303325 -rw----r--  1 root  wheel     26 Jun 30 15:19:55 2013 /usr/local/lib/ruby/gems/1.9/gems/shoulda-context-1.1.4/lib/shoulda-context.rb
303327 -rw----r--  1 root  wheel    960 Jun 30 15:19:55 2013 /usr/local/lib/ruby/gems/1.9/gems/shoulda-context-1.1.4/lib/shoulda/context.rb
303329 -rw----r--  1 root  wheel   3987 Jun 30 15:19:55 2013 /usr/local/lib/ruby/gems/1.9/gems/shoulda-context-1.1.4/lib/shoulda/context/assertions.rb
303330 -rw----r--  1 root  wheel   1928 Jun 30 15:19:55 2013 /usr/local/lib/ruby/gems/1.9/gems/shoulda-context-1.1.4/lib/shoulda/context/autoload_macros.rb
303331 -rw----r--  1 root  wheel  14156 Jun 30 15:19:55 2013 /usr/local/lib/ruby/gems/1.9/gems/shoulda-context-1.1.4/lib/shoulda/context/context.rb
303332 -rw----r--  1 root  wheel    373 Jun 30 15:19:55 2013 /usr/local/lib/ruby/gems/1.9/gems/shoulda-context-1.1.4/lib/shoulda/context/proc_extensions.rb
303333 -rw----r--  1 root  wheel     83 Jun 30 15:19:55 2013 /usr/local/lib/ruby/gems/1.9/gems/shoulda-context-1.1.4/lib/shoulda/context/tasks.rb
303335 -rw----r--  1 root  wheel    836 Jun 30 15:19:55 2013 /usr/local/lib/ruby/gems/1.9/gems/shoulda-context-1.1.4/lib/shoulda/context/tasks/list_tests.rake
303336 -rw----r--  1 root  wheel    907 Jun 30 15:19:55 2013 /usr/local/lib/ruby/gems/1.9/gems/shoulda-context-1.1.4/lib/shoulda/context/tasks/yaml_to_shoulda.rake
303337 -rw----r--  1 root  wheel     71 Jun 30 15:19:55 2013 /usr/local/lib/ruby/gems/1.9/gems/shoulda-context-1.1.4/lib/shoulda/context/version.rb
303339 -rw----r--  1 root  wheel    136 Jun 30 15:19:55 2013 /usr/local/lib/ruby/gems/1.9/gems/shoulda-context-1.1.4/rails/init.rb
303340 -rw----r--  1 root  wheel   1159 Jun 30 15:19:55 2013 /usr/local/lib/ruby/gems/1.9/gems/shoulda-context-1.1.4/shoulda-context.gemspec
303342 -rw----r--  1 root  wheel     86 Jun 30 15:19:55 2013 /usr/local/lib/ruby/gems/1.9/gems/shoulda-context-1.1.4/tasks/shoulda.rake
303347 -rw----r--  1 root  wheel     90 Jun 30 15:19:55 2013 /usr/local/lib/ruby/gems/1.9/gems/shoulda-context-1.1.4/test/fake_rails_root/test/shoulda_macros/custom_macro.rb
303352 -rw----r--  1 root  wheel     81 Jun 30 15:19:55 2013 /usr/local/lib/ruby/gems/1.9/gems/shoulda-context-1.1.4/test/fake_rails_root/vendor/gems/gem_with_macro-0.0.1/shoulda_macros/gem_macro.rb
303354 -rw----r--  1 root  wheel      0 Jun 30 15:19:55 2013 /usr/local/lib/ruby/gems/1.9/gems/shoulda-context-1.1.4/test/fake_rails_root/vendor/plugins/.keep
303357 -rw----r--  1 root  wheel     90 Jun 30 15:19:55 2013 /usr/local/lib/ruby/gems/1.9/gems/shoulda-context-1.1.4/test/fake_rails_root/vendor/plugins/plugin_with_macro/shoulda_macros/plugin_macro.rb
303359 -rw----r--  1 root  wheel    459 Jun 30 15:19:55 2013 /usr/local/lib/ruby/gems/1.9/gems/shoulda-context-1.1.4/test/shoulda/autoload_macro_test.rb
303360 -rw----r--  1 root  wheel   8354 Jun 30 15:19:55 2013 /usr/local/lib/ruby/gems/1.9/gems/shoulda-context-1.1.4/test/shoulda/context_test.rb
303361 -rw----r--  1 root  wheel   1305 Jun 30 15:19:55 2013 /usr/local/lib/ruby/gems/1.9/gems/shoulda-context-1.1.4/test/shoulda/convert_to_should_syntax_test.rb
303362 -rw----r--  1 root  wheel   5843 Jun 30 15:19:55 2013 /usr/local/lib/ruby/gems/1.9/gems/shoulda-context-1.1.4/test/shoulda/helpers_test.rb
303363 -rw----r--  1 root  wheel   7967 Jun 30 15:19:55 2013 /usr/local/lib/ruby/gems/1.9/gems/shoulda-context-1.1.4/test/shoulda/should_test.rb
303364 -rw----r--  1 root  wheel    319 Jun 30 15:19:55 2013 /usr/local/lib/ruby/gems/1.9/gems/shoulda-context-1.1.4/test/test_helper.rb
---------------------------------- 8< ----------------------------------

Fix: 

These files should be chmod'ed 644.
How-To-Repeat: 
As a consequence, users in the weel group can't use shoulda:

---------------------------------- 8< ----------------------------------
irb(main):001:0> require 'shoulda'
LoadError: cannot load such file -- shoulda/context
	from /usr/local/lib/ruby/site_ruby/1.9/rubygems/custom_require.rb:60:in `require'
	from /usr/local/lib/ruby/site_ruby/1.9/rubygems/custom_require.rb:60:in `rescue in require'
	from /usr/local/lib/ruby/site_ruby/1.9/rubygems/custom_require.rb:35:in `require'
	from /usr/local/lib/ruby/gems/1.9/gems/shoulda-3.5.0/lib/shoulda.rb:3:in `<top (required)>'
	from /usr/local/lib/ruby/site_ruby/1.9/rubygems/custom_require.rb:60:in `require'
	from /usr/local/lib/ruby/site_ruby/1.9/rubygems/custom_require.rb:60:in `rescue in require'
	from /usr/local/lib/ruby/site_ruby/1.9/rubygems/custom_require.rb:35:in `require'
	from (irb):1
	from /usr/local/bin/irb:12:in `<main>'
irb(main):002:0> 
---------------------------------- 8< ----------------------------------
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-07-08 08:40:08 UTC
Responsible Changed
From-To: freebsd-ports-bugs->ruby

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Steve Wills freebsd_committer freebsd_triage 2013-07-19 14:05:42 UTC
Responsible Changed
From-To: ruby->swills

I'll take it.
Comment 3 dfilter service freebsd_committer freebsd_triage 2013-07-21 05:45:12 UTC
Author: swills
Date: Sun Jul 21 04:45:05 2013
New Revision: 323365
URL: http://svnweb.freebsd.org/changeset/ports/323365

Log:
  - Fix group permissions
  
  PR:		ports/180379
  Reported by:	romain

Modified:
  head/devel/rubygem-shoulda-context/Makefile

Modified: head/devel/rubygem-shoulda-context/Makefile
==============================================================================
--- head/devel/rubygem-shoulda-context/Makefile	Sun Jul 21 02:41:07 2013	(r323364)
+++ head/devel/rubygem-shoulda-context/Makefile	Sun Jul 21 04:45:05 2013	(r323365)
@@ -3,6 +3,7 @@
 
 PORTNAME=	shoulda-context
 PORTVERSION=	1.1.4
+PORTREVISION=	1
 CATEGORIES=	devel rubygems
 MASTER_SITES=	RG
 
@@ -14,4 +15,8 @@ USE_RUBYGEMS=	yes
 RUBYGEM_AUTOPLIST=	yes
 PLIST_FILES+=	bin/convert_to_should_syntax
 
+post-patch:
+	@${FIND} ${WRKSRC} -type d -exec ${CHMOD} g+rx '{}' +
+	@${FIND} ${WRKSRC} -type f -exec ${CHMOD} g+r  '{}' +
+
 .include <bsd.port.mk>
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 4 Steve Wills freebsd_committer freebsd_triage 2013-07-21 05:45:56 UTC
State Changed
From-To: open->closed

Fix committed, thanks for the report.