Files
request-tracker/enable-build-as-non-root.patch
Lars Vogdt 4a2b82a814 - update to 5.0.1:
Database Changes
  + For MySQL and MariaDB, the default character set has been updated to 
    utf8mb4 to accommodate more unicode characters including emojis. 
    See README.MySQL and README.MariaDB for details.
  + The Id field in some tables is changed from INT to BIGINT to accommodate 
    large RT systems that may hit the maximum number of ids. Because this 
    change touches large RT tables like Transactions and Attachments, 
    this upgrade step may take a while to run.
  + You also will need free disk space equal to the size of these tables 
    while running because MySQL, MariaDB, and Postgres will create a temporary 
    copy of the table while running. If you don't have sufficient space, 
    it can cause this step to fail.
  Notable Changes
  + System configuration options can now be changed by SuperUsers via the 
    web UI. File-based configuration options are still loaded. Changes made 
    via the web UI take precedence over file-based options if both are set.
  + If you prefer to keep all configuration in files and disable editing in 
    the web UI, set this option to 0:
        Set($ShowEditSystemConfig, 0);
  + The variables which alter the set of HTML elements allowed in HTML 
    scrubbing have moved; they have been renamed, and are now found under
    RT::Interface::Web::Scrubber.
  + The articles interface on tickets has been simplified, now showing only 
    a dropdown for selecting articles. This dropdown converts to an autocomplete
    box when the dropdown contains more than $DropdownMenuLimit items.
  + With this simplified interface, the "hotlist" feature is no longer 
    needed as all articles in classes applied to a given queue are available
    in the dropdown/autocomplete field. To prevent articles in a class from 
    appearing for a queue, you can unapply the class from that queue.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/request-tracker?expand=0&rev=67
2021-04-13 16:33:18 +00:00

133 lines
5.5 KiB
Diff

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@" );