Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
devel:languages:perl
request-tracker
enable-build-as-non-root.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File enable-build-as-non-root.patch of Package request-tracker
Index: rt-5.0.1/Makefile.in =================================================================== --- rt-5.0.1.orig/Makefile.in +++ rt-5.0.1/Makefile.in @@ -282,8 +282,6 @@ fixdeps: fixperms: # Make the libraries readable chmod $(RT_READABLE_DIR_MODE) $(DESTDIR)$(RT_PATH) - chown -R $(LIBS_OWNER) $(DESTDIR)$(RT_LIB_PATH) - chgrp -R $(LIBS_GROUP) $(DESTDIR)$(RT_LIB_PATH) chmod -R u+rwX,go-w,go+rX $(DESTDIR)$(RT_LIB_PATH) @@ -294,17 +292,14 @@ fixperms: #TODO: the config file should probably be able to have its # owner set separately from the binaries. - chown -R $(BIN_OWNER) $(DESTDIR)$(RT_ETC_PATH) - chgrp -R $(RTGROUP) $(DESTDIR)$(RT_ETC_PATH) - chmod 0440 $(DESTDIR)$(CONFIG_FILE) chmod 0640 $(DESTDIR)$(SITE_CONFIG_FILE) # Make the system binaries - cd $(DESTDIR)$(RT_BIN_PATH) && ( chmod 0755 $(BINARIES) ; chown $(BIN_OWNER) $(BINARIES); chgrp $(RTGROUP) $(BINARIES)) + cd $(DESTDIR)$(RT_BIN_PATH) && ( chmod 0755 $(BINARIES)) # Make the system binaries executable also - cd $(DESTDIR)$(RT_SBIN_PATH) && ( chmod 0755 $(SYSTEM_BINARIES) ; chown $(BIN_OWNER) $(SYSTEM_BINARIES); chgrp $(RTGROUP) $(SYSTEM_BINARIES)) + cd $(DESTDIR)$(RT_SBIN_PATH) && ( chmod 0755 $(SYSTEM_BINARIES)) # Make upgrade scripts executable if they are in the source. # @@ -319,26 +314,10 @@ fixperms: $(DESTDIR)$(LOCAL_LEXICON_PATH) \ $(DESTDIR)$(RT_STATIC_PATH) \ $(DESTDIR)$(LOCAL_STATIC_PATH) - chown -R $(LIBS_OWNER) $(DESTDIR)$(MASON_HTML_PATH) \ - $(DESTDIR)$(MASON_LOCAL_HTML_PATH) \ - $(DESTDIR)$(RT_LEXICON_PATH) \ - $(DESTDIR)$(LOCAL_LEXICON_PATH) \ - $(DESTDIR)$(RT_STATIC_PATH) \ - $(DESTDIR)$(LOCAL_STATIC_PATH) - chgrp -R $(LIBS_GROUP) $(DESTDIR)$(MASON_HTML_PATH) \ - $(DESTDIR)$(MASON_LOCAL_HTML_PATH) \ - $(DESTDIR)$(RT_LEXICON_PATH) \ - $(DESTDIR)$(LOCAL_LEXICON_PATH) \ - $(DESTDIR)$(RT_STATIC_PATH) \ - $(DESTDIR)$(LOCAL_STATIC_PATH) # Make the web ui's data dir writable chmod 0770 $(DESTDIR)$(MASON_DATA_PATH) \ $(DESTDIR)$(MASON_SESSION_PATH) - chown -R $(WEB_USER) $(DESTDIR)$(MASON_DATA_PATH) \ - $(DESTDIR)$(MASON_SESSION_PATH) - chgrp -R $(WEB_GROUP) $(DESTDIR)$(MASON_DATA_PATH) \ - $(DESTDIR)$(MASON_SESSION_PATH) dirs: $(INSTALL) -m 0755 -d $(DESTDIR)$(RT_LOG_PATH) @@ -363,14 +342,15 @@ clean-mason-cache: rm -rf $(DESTDIR)$(MASON_DATA_PATH)/etc/* rm -rf $(DESTDIR)$(MASON_DATA_PATH)/obj/* -install: testdeps config-install dirs files-install fixperms instruct +#install: testdeps config-install dirs files-install fixperms instruct +install: config-install dirs files-install fixperms instruct files-install: libs-install etc-install config-install bin-install sbin-install html-install doc-install font-install po-install static-install config-install: -@COMMENT_INPLACE_LAYOUT@ $(INSTALL) -m 0755 -o $(BIN_OWNER) -g $(RTGROUP) -d $(DESTDIR)$(CONFIG_FILE_PATH) -@COMMENT_INPLACE_LAYOUT@ -$(INSTALL) -m 0440 -o $(BIN_OWNER) -g $(RTGROUP) etc/RT_Config.pm $(DESTDIR)$(CONFIG_FILE) -@COMMENT_INPLACE_LAYOUT@ [ -f $(DESTDIR)$(SITE_CONFIG_FILE) ] || $(INSTALL) -m 0640 -o $(BIN_OWNER) -g $(RTGROUP) etc/RT_SiteConfig.pm $(DESTDIR)$(SITE_CONFIG_FILE) +@COMMENT_INPLACE_LAYOUT@ $(INSTALL) -m 0755 -d $(DESTDIR)$(CONFIG_FILE_PATH) +@COMMENT_INPLACE_LAYOUT@ -$(INSTALL) -m 0440 etc/RT_Config.pm $(DESTDIR)$(CONFIG_FILE) +@COMMENT_INPLACE_LAYOUT@ [ -f $(DESTDIR)$(SITE_CONFIG_FILE)] || $(INSTALL) -m 0640 etc/RT_SiteConfig.pm $(DESTDIR)$(SITE_CONFIG_FILE) @COMMENT_INPLACE_LAYOUT@ @echo "Installed configuration. About to install RT in $(RT_PATH)" test: @@ -474,7 +454,7 @@ etc-install: sbin-install: @COMMENT_INPLACE_LAYOUT@ $(INSTALL) -m 0755 -d $(DESTDIR)$(RT_SBIN_PATH) @COMMENT_INPLACE_LAYOUT@ for file in $(SYSTEM_BINARIES) ; do \ -@COMMENT_INPLACE_LAYOUT@ $(INSTALL) -o $(BIN_OWNER) -g $(RTGROUP) -m 0755 "sbin/$$file" "$(DESTDIR)$(RT_SBIN_PATH)/" ; \ +@COMMENT_INPLACE_LAYOUT@ $(INSTALL) -m 0755 "sbin/$$file" "$(DESTDIR)$(RT_SBIN_PATH)/" ; \ @COMMENT_INPLACE_LAYOUT@ done @@ -482,7 +462,7 @@ sbin-install: bin-install: @COMMENT_INPLACE_LAYOUT@ $(INSTALL) -m 0755 -d $(DESTDIR)$(RT_BIN_PATH) @COMMENT_INPLACE_LAYOUT@ for file in $(BINARIES) ; do \ -@COMMENT_INPLACE_LAYOUT@ $(INSTALL) -o $(BIN_OWNER) -g $(RTGROUP) -m 0755 "bin/$$file" "$(DESTDIR)$(RT_BIN_PATH)/" ; \ +@COMMENT_INPLACE_LAYOUT@ $(INSTALL) -m 0755 "bin/$$file" "$(DESTDIR)$(RT_BIN_PATH)/" ; \ @COMMENT_INPLACE_LAYOUT@ done Index: rt-5.0.1/sbin/rt-setup-fulltext-index.in =================================================================== --- rt-5.0.1.orig/sbin/rt-setup-fulltext-index.in +++ rt-5.0.1/sbin/rt-setup-fulltext-index.in @@ -49,6 +49,7 @@ use strict; use warnings; no warnings 'once'; +use lib '__vendorperl__'; use Term::ReadKey; # fix lib paths, some may be relative Index: rt-5.0.1/sbin/rt-test-dependencies.in =================================================================== --- rt-5.0.1.orig/sbin/rt-test-dependencies.in +++ rt-5.0.1/sbin/rt-test-dependencies.in @@ -48,7 +48,7 @@ # END BPS TAGGED BLOCK }}} use strict; use warnings; - +use lib '__vendorperl__'; use Getopt::Long; use Cwd qw(abs_path); @@ -436,7 +436,7 @@ sub check_users_groups { my $group = sub { $line->("group", sub {getgrnam($_[0])}, @_) }; my $user = sub { $line->("user", sub {getpwnam($_[0])}, @_) }; - $group->( rt => "@RTGROUP@" ); +# $group->( rt => "@RTGROUP@" ); $user->( bin => "@BIN_OWNER@" ); $user->( libs => "@LIBS_OWNER@" ); $group->( libs => "@LIBS_GROUP@" );
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor