···11diff --git a/config/environments/production.rb b/config/environments/production.rb
22-index 78bf543..9b37122 100644
22+index 3316ece..c34dec0 100644
33--- a/config/environments/production.rb
44+++ b/config/environments/production.rb
55-@@ -66,10 +66,10 @@ Gitlab::Application.configure do
55+@@ -67,10 +67,10 @@ Gitlab::Application.configure do
6677 config.action_mailer.delivery_method = :sendmail
88 # Defaults to:
···1818 config.action_mailer.raise_delivery_errors = true
19192020diff --git a/config/gitlab.yml.example b/config/gitlab.yml.example
2121-index e7a8d08..834ecaf 100644
2121+index 15930fc..bdb423c 100644
2222--- a/config/gitlab.yml.example
2323+++ b/config/gitlab.yml.example
2424-@@ -17,8 +17,8 @@ production: &base
2424+@@ -29,8 +29,8 @@ production: &base
2525 ## GitLab settings
2626 gitlab:
2727 ## Web server settings (note: host is the FQDN, do not include http://)
···3232 https: false # Set to true if using HTTPS, see installation.md#using-https for additional HTTPS configuration details
33333434 # Uncommment this line below if your ssh host is different from HTTP/HTTPS one
3535-@@ -31,11 +31,11 @@ production: &base
3535+@@ -43,7 +43,7 @@ production: &base
3636 # relative_url_root: /gitlab
37373838 # Uncomment and customize if you can't use the default user to run GitLab (default: 'git')
3939- # user: git
4040+ user: gitlab
41414242- ## Email settings
4242+ ## Date & Time settings
4343+ # Uncomment and customize if you want to change the default time zone of GitLab application.
4444+@@ -54,7 +54,7 @@ production: &base
4545+ # Uncomment and set to false if you need to disable email sending from GitLab (default: true)
4646+ # email_enabled: true
4347 # Email address used in the "From" field in mails sent by GitLab
4448- email_from: example@example.com
4549+ email_from: <%= ENV['GITLAB_EMAIL_FROM'] %>
5050+ email_display_name: GitLab
5151+ email_reply_to: noreply@example.com
46524747- # Email server smtp settings are in [a separate file](initializers/smtp_settings.rb.sample).
4848-4949-@@ -230,12 +230,12 @@ production: &base
5353+@@ -298,12 +298,12 @@ production: &base
5054 # GitLab Satellites
5155 satellites:
5256 # Relative paths are relative to Rails.root (default: tmp/repo_satellites/)
···5862 backup:
5963- path: "tmp/backups" # Relative paths are relative to Rails.root (default: tmp/backups/)
6064+ path: <%= ENV['GITLAB_BACKUP_PATH'] %>
6565+ # archive_permissions: 0640 # Permissions for the resulting backup.tar file (default: 0600)
6166 # keep_time: 604800 # default: 0 (forever) (in seconds)
6262- # upload:
6363- # # Fog storage connection settings, see http://fog.io/storage/ .
6464-@@ -249,11 +249,11 @@ production: &base
6767+ # pg_schema: public # default: nil, it means that all schemas will be backed up
6868+@@ -322,15 +322,15 @@ production: &base
65696670 ## GitLab Shell settings
6771 gitlab_shell:
···7377- hooks_path: /home/git/gitlab-shell/hooks/
7478+ repos_path: <%= ENV['GITLAB_REPOSITORIES_PATH'] %>
7579+ hooks_path: <%= ENV['GITLAB_SHELL_HOOKS_PATH'] %>
8080+8181+ # File that contains the secret key for verifying access for gitlab-shell.
8282+ # Default is '.gitlab_shell_secret' relative to Rails.root (i.e. root of the GitLab app).
8383+- # secret_file: /home/git/gitlab/.gitlab_shell_secret
8484++ secret_file: <%= ENV['GITLAB_SHELL_SECRET_PATH'] %>
76857786 # Git over HTTP
7887 upload_pack: true
7979-@@ -266,7 +266,7 @@ production: &base
8888+@@ -343,7 +343,7 @@ production: &base
8089 # CAUTION!
8190 # Use the default values unless you really know what you are doing
8291 git:
···8594 # The next value is the maximum memory size grit can use
8695 # Given in number of bytes per git object (e.g. a commit)
8796 # This value can be increased if you have very large commits
8888-@@ -299,7 +299,7 @@ test:
9797+@@ -388,7 +388,7 @@ test:
8998 gravatar:
9099 enabled: true
91100 gitlab:
···9510496105 # When you run tests we clone and setup gitlab-shell
97106diff --git a/lib/gitlab/app_logger.rb b/lib/gitlab/app_logger.rb
9898-index 8e4717b..abfe2e4 100644
107107+index dddcb25..d61f10a 100644
99108--- a/lib/gitlab/app_logger.rb
100109+++ b/lib/gitlab/app_logger.rb
101110@@ -1,7 +1,7 @@
102111 module Gitlab
103112 class AppLogger < Gitlab::Logger
104104- def self.file_name
105105-- 'application.log'
113113+ def self.file_name_noext
114114+- 'application'
106115+ ENV["GITLAB_APPLICATION_LOG_PATH"]
107116 end
108117
···11-{ lib, stdenv, fetchurl, enableThreading ? true }:
22-33-let
44-55- libc = if stdenv.cc.libc or null != null then stdenv.cc.libc else "/usr";
66-77-in
88-99-stdenv.mkDerivation rec {
1010- name = "perl-5.16.3";
1111-1212- src = fetchurl {
1313- url = "mirror://cpan/src/${name}.tar.gz";
1414- sha256 = "1dpd9lhc4723wmsn4dsn4m320qlqgyw28bvcbhnfqp2nl3f0ikv9";
1515- };
1616-1717- patches =
1818- [ # Do not look in /usr etc. for dependencies.
1919- ./no-sys-dirs.patch
2020- ./no-impure-config-time.patch
2121- ./fixed-man-page-date.patch
2222- ./no-date-in-perl-binary.patch
2323- ]
2424- ++ lib.optional stdenv.isSunOS ./ld-shared.patch
2525- ++ lib.optional stdenv.isDarwin [ ./cpp-precomp.patch ./no-libutil.patch ] ;
2626-2727- # There's an annoying bug on sandboxed Darwin in Perl's Cwd.pm where it looks for pwd
2828- # in /bin/pwd and /usr/bin/pwd and then falls back on just "pwd" if it can't get them
2929- # while at the same time erasing the PATH environment variable so it unconditionally
3030- # fails. The code in question is guarded by a check for Mac OS, but the patch below
3131- # doesn't have any runtime effect on other platforms.
3232- postPatch = ''
3333- pwd="$(type -P pwd)"
3434- substituteInPlace dist/Cwd/Cwd.pm \
3535- --replace "pwd_cmd = 'pwd'" "pwd_cmd = '$pwd'"
3636- '';
3737-3838- # Build a thread-safe Perl with a dynamic libperls.o. We need the
3939- # "installstyle" option to ensure that modules are put under
4040- # $out/lib/perl5 - this is the general default, but because $out
4141- # contains the string "perl", Configure would select $out/lib.
4242- # Miniperl needs -lm. perl needs -lrt.
4343- configureFlags =
4444- [ "-de"
4545- "-Uinstallusrbinperl"
4646- "-Dinstallstyle=lib/perl5"
4747- "-Duseshrplib"
4848- "-Dlocincpth=${libc}/include"
4949- "-Dloclibpth=${libc}/lib"
5050- ]
5151- ++ lib.optional enableThreading "-Dusethreads";
5252-5353- configureScript = "${stdenv.shell} ./Configure";
5454-5555- dontAddPrefix = true;
5656-5757- enableParallelBuilding = true;
5858-5959- preConfigure =
6060- ''
6161- configureFlags="$configureFlags -Dprefix=$out -Dman1dir=$out/share/man/man1 -Dman3dir=$out/share/man/man3"
6262-6363- ${lib.optionalString stdenv.isArm ''
6464- configureFlagsArray=(-Dldflags="-lm -lrt")
6565- ''}
6666-6767- ${lib.optionalString stdenv.isCygwin ''
6868- cp cygwin/cygwin.c{,.bak}
6969- echo "#define PERLIO_NOT_STDIO 0" > tmp
7070- cat tmp cygwin/cygwin.c.bak > cygwin/cygwin.c
7171- ''}
7272- '';
7373-7474- preBuild = lib.optionalString (!(stdenv ? cc && stdenv.cc.nativeTools))
7575- ''
7676- # Make Cwd work on NixOS (where we don't have a /bin/pwd).
7777- substituteInPlace dist/Cwd/Cwd.pm --replace "'/bin/pwd'" "'$(type -tP pwd)'"
7878- '';
7979-8080- setupHook = ./setup-hook.sh;
8181-8282- passthru.libPrefix = "lib/perl5/site_perl";
8383-}
···11-diff -ru -x '*~' perl-5.14.2-orig/Configure perl-5.14.2/Configure
22---- perl-5.14.2-orig/Configure 2011-09-26 11:44:34.000000000 +0200
33-+++ perl-5.14.2/Configure 2012-02-16 17:24:50.779839039 +0100
44-@@ -1368,7 +1368,7 @@
55- : List of libraries we want.
66- : If anyone needs extra -lxxx, put those in a hint file.
77- libswanted="sfio socket bind inet nsl nm ndbm gdbm dbm db malloc dl dld ld sun"
88--libswanted="$libswanted m crypt sec util c cposix posix ucb bsd BSD"
99-+libswanted="$libswanted m crypt sec c cposix posix ucb bsd BSD"
1010- : We probably want to search /usr/shlib before most other libraries.
1111- : This is only used by the lib/ExtUtils/MakeMaker.pm routine extliblist.
1212- glibpth=`echo " $glibpth " | sed -e 's! /usr/shlib ! !'`
···11-diff --git a/Configure b/Configure
22-index fdbbf20..ba1fd07 100755
33---- a/Configure
44-+++ b/Configure
55-@@ -106,15 +106,7 @@ if test -d c:/. || ( uname -a | grep -i 'os\(/\|\)2' ) 2>&1 >/dev/null ; then
66- fi
77-88- : Proper PATH setting
99--paths='/bin /usr/bin /usr/local/bin /usr/ucb /usr/local /usr/lbin'
1010--paths="$paths /opt/bin /opt/local/bin /opt/local /opt/lbin"
1111--paths="$paths /usr/5bin /etc /usr/gnu/bin /usr/new /usr/new/bin /usr/nbin"
1212--paths="$paths /opt/gnu/bin /opt/new /opt/new/bin /opt/nbin"
1313--paths="$paths /sys5.3/bin /sys5.3/usr/bin /bsd4.3/bin /bsd4.3/usr/ucb"
1414--paths="$paths /bsd4.3/usr/bin /usr/bsd /bsd43/bin /opt/ansic/bin /usr/ccs/bin"
1515--paths="$paths /etc /usr/lib /usr/ucblib /lib /usr/ccs/lib"
1616--paths="$paths /sbin /usr/sbin /usr/libexec"
1717--paths="$paths /system/gnu_library/bin"
1818-+paths=''
1919-2020- for p in $paths
2121- do
2222-@@ -1323,8 +1315,7 @@ archobjs=''
2323- archname=''
2424- : Possible local include directories to search.
2525- : Set locincpth to "" in a hint file to defeat local include searches.
2626--locincpth="/usr/local/include /opt/local/include /usr/gnu/include"
2727--locincpth="$locincpth /opt/gnu/include /usr/GNU/include /opt/GNU/include"
2828-+locincpth=""
2929- :
3030- : no include file wanted by default
3131- inclwanted=''
3232-@@ -1335,17 +1326,12 @@ DEBUGGING=''
3333-3434- libnames=''
3535- : change the next line if compiling for Xenix/286 on Xenix/386
3636--xlibpth='/usr/lib/386 /lib/386'
3737-+xlibpth=''
3838- : Possible local library directories to search.
3939--loclibpth="/usr/local/lib /opt/local/lib /usr/gnu/lib"
4040--loclibpth="$loclibpth /opt/gnu/lib /usr/GNU/lib /opt/GNU/lib"
4141-+loclibpth=""
4242-4343- : general looking path for locating libraries
4444--glibpth="/lib /usr/lib $xlibpth"
4545--glibpth="$glibpth /usr/ccs/lib /usr/ucblib /usr/local/lib"
4646--test -f /usr/shlib/libc.so && glibpth="/usr/shlib $glibpth"
4747--test -f /shlib/libc.so && glibpth="/shlib $glibpth"
4848--test -d /usr/lib64 && glibpth="$glibpth /lib64 /usr/lib64 /usr/local/lib64"
4949-+glibpth=""
5050-5151- : Private path used by Configure to find libraries. Its value
5252- : is prepended to libpth. This variable takes care of special
5353-@@ -1380,8 +1366,6 @@ libswanted="sfio socket bind inet nsl nm ndbm gdbm dbm db malloc dl dld ld sun"
5454- libswanted="$libswanted m crypt sec util c cposix posix ucb bsd BSD"
5555- : We probably want to search /usr/shlib before most other libraries.
5656- : This is only used by the lib/ExtUtils/MakeMaker.pm routine extliblist.
5757--glibpth=`echo " $glibpth " | sed -e 's! /usr/shlib ! !'`
5858--glibpth="/usr/shlib $glibpth"
5959- : Do not use vfork unless overridden by a hint file.
6060- usevfork=false
6161-6262-@@ -2389,7 +2373,6 @@ uname
6363- zip
6464- "
6565- pth=`echo $PATH | sed -e "s/$p_/ /g"`
6666--pth="$pth /lib /usr/lib"
6767- for file in $loclist; do
6868- eval xxx=\$$file
6969- case "$xxx" in
7070-@@ -4708,7 +4691,7 @@ $rm -f testcpp.c testcpp.out
7171- : Set private lib path
7272- case "$plibpth" in
7373- '') if ./mips; then
7474-- plibpth="$incpath/usr/lib /usr/local/lib /usr/ccs/lib"
7575-+ plibpth="$incpath/usr/lib"
7676- fi;;
7777- esac
7878- case "$libpth" in
7979-@@ -8354,13 +8337,8 @@ esac
8080- echo " "
8181- case "$sysman" in
8282- '')
8383-- syspath='/usr/share/man/man1 /usr/man/man1'
8484-- syspath="$syspath /usr/man/mann /usr/man/manl /usr/man/local/man1"
8585-- syspath="$syspath /usr/man/u_man/man1"
8686-- syspath="$syspath /usr/catman/u_man/man1 /usr/man/l_man/man1"
8787-- syspath="$syspath /usr/local/man/u_man/man1 /usr/local/man/l_man/man1"
8888-- syspath="$syspath /usr/man/man.L /local/man/man1 /usr/local/man/man1"
8989-- sysman=`./loc . /usr/man/man1 $syspath`
9090-+ syspath=''
9191-+ sysman=''
9292- ;;
9393- esac
9494- if $test -d "$sysman"; then
9595-@@ -19742,9 +19720,10 @@ $rm_try tryp
9696- case "$full_ar" in
9797- '') full_ar=$ar ;;
9898- esac
9999-+full_ar=ar
100100-101101- : Store the full pathname to the sed program for use in the C program
102102--full_sed=$sed
103103-+full_sed=sed
104104-105105- : see what type gids are declared as in the kernel
106106- echo " "
107107-diff --git a/ext/Errno/Errno_pm.PL b/ext/Errno/Errno_pm.PL
108108-index 439f254..2cdfdb0 100644
109109---- a/ext/Errno/Errno_pm.PL
110110-+++ b/ext/Errno/Errno_pm.PL
111111-@@ -137,11 +137,7 @@ sub get_files {
112112- if ($dep =~ /(\S+errno\.h)/) {
113113- $file{$1} = 1;
114114- }
115115-- } elsif ($^O eq 'linux' &&
116116-- $Config{gccversion} ne '' &&
117117-- $Config{gccversion} !~ /intel/i
118118-- # might be using, say, Intel's icc
119119-- ) {
120120-+ } elsif (0) {
121121- # Some Linuxes have weird errno.hs which generate
122122- # no #file or #line directives
123123- my $linux_errno_h = -e '/usr/include/errno.h' ?
124124-diff --git a/hints/freebsd.sh b/hints/freebsd.sh
125125-index a67c0bb..0f07ca5 100644
126126---- a/hints/freebsd.sh
127127-+++ b/hints/freebsd.sh
128128-@@ -119,21 +119,21 @@ case "$osvers" in
129129- objformat=`/usr/bin/objformat`
130130- if [ x$objformat = xaout ]; then
131131- if [ -e /usr/lib/aout ]; then
132132-- libpth="/usr/lib/aout /usr/local/lib /usr/lib"
133133-- glibpth="/usr/lib/aout /usr/local/lib /usr/lib"
134134-+ libpth=""
135135-+ glibpth=""
136136- fi
137137- lddlflags='-Bshareable'
138138- else
139139-- libpth="/usr/lib /usr/local/lib"
140140-- glibpth="/usr/lib /usr/local/lib"
141141-+ libpth=""
142142-+ glibpth=""
143143- ldflags="-Wl,-E "
144144- lddlflags="-shared "
145145- fi
146146- cccdlflags='-DPIC -fPIC'
147147- ;;
148148- *)
149149-- libpth="/usr/lib /usr/local/lib"
150150-- glibpth="/usr/lib /usr/local/lib"
151151-+ libpth=""
152152-+ glibpth=""
153153- ldflags="-Wl,-E "
154154- lddlflags="-shared "
155155- cccdlflags='-DPIC -fPIC'
156156-diff --git a/hints/linux.sh b/hints/linux.sh
157157-index 688c68d..c12f5f5 100644
158158---- a/hints/linux.sh
159159-+++ b/hints/linux.sh
160160-@@ -60,17 +60,6 @@ libswanted="$*"
161161- # Debian 4.0 puts ndbm in the -lgdbm_compat library.
162162- libswanted="$libswanted gdbm_compat"
163163-164164--# If you have glibc, then report the version for ./myconfig bug reporting.
165165--# (Configure doesn't need to know the specific version since it just uses
166166--# gcc to load the library for all tests.)
167167--# We don't use __GLIBC__ and __GLIBC_MINOR__ because they
168168--# are insufficiently precise to distinguish things like
169169--# libc-2.0.6 and libc-2.0.7.
170170--if test -L /lib/libc.so.6; then
171171-- libc=`ls -l /lib/libc.so.6 | awk '{print $NF}'`
172172-- libc=/lib/$libc
173173--fi
174174--
175175- # Configure may fail to find lstat() since it's a static/inline
176176- # function in <sys/stat.h>.
177177- d_lstat=define
178178-@@ -154,24 +143,6 @@ case "$optimize" in
179179- ;;
180180- esac
181181-182182--# Ubuntu 11.04 (and later, presumably) doesn't keep most libraries
183183--# (such as -lm) in /lib or /usr/lib. So we have to ask gcc to tell us
184184--# where to look. We don't want gcc's own libraries, however, so we
185185--# filter those out.
186186--# This could be conditional on Unbuntu, but other distributions may
187187--# follow suit, and this scheme seems to work even on rather old gcc's.
188188--# This unconditionally uses gcc because even if the user is using another
189189--# compiler, we still need to find the math library and friends, and I don't
190190--# know how other compilers will cope with that situation.
191191--# Morever, if the user has their own gcc earlier in $PATH than the system gcc,
192192--# we don't want its libraries. So we try to prefer the system gcc
193193--# Still, as an escape hatch, allow Configure command line overrides to
194194--# plibpth to bypass this check.
195195--if [ -x /usr/bin/gcc ] ; then
196196-- gcc=/usr/bin/gcc
197197--else
198198-- gcc=gcc
199199--fi
200200-201201- case "$plibpth" in
202202- '') plibpth=`LANG=C LC_ALL=C $gcc -print-search-dirs | grep libraries |
203203-@@ -345,22 +316,6 @@ sparc*)
204204- ;;
205205- esac
206206-207207--# SuSE8.2 has /usr/lib/libndbm* which are ld scripts rather than
208208--# true libraries. The scripts cause binding against static
209209--# version of -lgdbm which is a bad idea. So if we have 'nm'
210210--# make sure it can read the file
211211--# NI-S 2003/08/07
212212--if [ -r /usr/lib/libndbm.so -a -x /usr/bin/nm ] ; then
213213-- if /usr/bin/nm /usr/lib/libndbm.so >/dev/null 2>&1 ; then
214214-- echo 'Your shared -lndbm seems to be a real library.'
215215-- else
216216-- echo 'Your shared -lndbm is not a real library.'
217217-- set `echo X "$libswanted "| sed -e 's/ ndbm / /'`
218218-- shift
219219-- libswanted="$*"
220220-- fi
221221--fi
222222--
223223-224224- # This script UU/usethreads.cbu will get 'called-back' by Configure
225225- # after it has prompted the user for whether to use threads.