From debbugs-submit-bounces@debbugs.gnu.org Sat Mar 04 07:24:08 2017 Received: (at 25957) by debbugs.gnu.org; 4 Mar 2017 12:24:08 +0000 Received: from localhost ([127.0.0.1]:39220 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ck8jH-00064h-Uv for submit@debbugs.gnu.org; Sat, 04 Mar 2017 07:24:08 -0500 Received: from perdizione.investici.org ([94.23.50.208]:51753) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ck8jG-00064Z-4e for 25957@debbugs.gnu.org; Sat, 04 Mar 2017 07:24:06 -0500 Received: from [94.23.50.208] (perdizione [94.23.50.208]) (Authenticated sender: niasterisk@grrlz.net) by localhost (Postfix) with ESMTPSA id C474B12115B for <25957@debbugs.gnu.org>; Sat, 4 Mar 2017 12:24:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cryptolab.net; s=stigmate; t=1488630245; bh=LN3FqxqM3RRqOuSMzS7h/iQUOUEFeAHdRNCc9TGdbyQ=; h=Date:From:To:Subject:References:In-Reply-To; b=iDW/6LkM5TyZNw3WHrSQLlFtpFwrG9pNfQgH9Xlk02DT4IM16SHrrf7a4U2FcMd2c M+yRa4TrDfJg5NXe6Wv3cUX5NWQmU79nyxTr50xwkQ7b/NfBpgd9fm+avtvzDr3Oc/ kCVHCYvtMZZSg0TVwfp/bRfItWwtEiCzzJZqmro4= Date: Sat, 4 Mar 2017 13:32:42 +0000 From: ng0 To: 25957@debbugs.gnu.org Subject: Re: bug#25957: Acknowledgement (gitolite broken: created repositories keep references to /usr/bin for hooks) Message-ID: <20170304133242.towlmzdcm6x43hvi@abyayala> Mail-Followup-To: 25957@debbugs.gnu.org References: <20170303215819.bttmrfsbhlxyipmy@abyayala> <20170303222743.wf777eedaauuof3f@abyayala> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20170303222743.wf777eedaauuof3f@abyayala> X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 25957 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) On 17-03-03 22:27:43, ng0 wrote: > What makes this worse, with every update (push) of gitolite-admin > repository the shebang of "hooks/update" is reset. > Other repositories seem to keep changes in the hooks shebangs so > far. > > > When I build gitolite from guix, this looks trivial to fix. [user@abyayala /gnu/store/jw252kw9blfh1lrrib3yk4fkbj5mvdpm-gitolite-3.6.5/share/gitolite]$ egrep -nr "/usr/" commands/svnserve:9:$svnserve ||= "/usr/bin/svnserve -r /var/svn/ -t --tunnel-user=%u"; lib/Gitolite/Test/Tsh.pm:42:# path when cwd is [...] at /usr/share/perl5/File/Temp.pm line 902". lib/Gitolite/Hooks/PostUpdate.pm:62:#!/usr/bin/perl lib/Gitolite/Hooks/Update.pm:158:#!/usr/bin/perl lib/Gitolite/Cache.pm:127: open( REDIS, "|-", "/usr/sbin/redis-server", "-" ) or die "start redis server fail ed: $!"; The parts I want to fix as my immediately affect every user, are in the directory "lib/Gitolite/Hooks/", I have no idea about redis, but I think there should be a reference to /gnu/store/ reddis and not "/usr/sbin/redis-server". Different problem, related bug.. This can be solved in a commit after this bug.