From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS31976 209.132.180.0/23 X-Spam-Status: No, score=-3.9 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI shortcircuit=no autolearn=ham autolearn_force=no version=3.4.0 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by dcvr.yhbt.net (Postfix) with ESMTP id 198D51FD4F for ; Fri, 1 Jun 2018 06:33:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751015AbeFAGdR (ORCPT ); Fri, 1 Jun 2018 02:33:17 -0400 Received: from cloud.peff.net ([104.130.231.41]:58930 "HELO cloud.peff.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1750821AbeFAGdQ (ORCPT ); Fri, 1 Jun 2018 02:33:16 -0400 Received: (qmail 11503 invoked by uid 109); 1 Jun 2018 06:33:16 -0000 Received: from Unknown (HELO peff.net) (10.0.1.2) by cloud.peff.net (qpsmtpd/0.94) with SMTP; Fri, 01 Jun 2018 06:33:16 +0000 Authentication-Results: cloud.peff.net; auth=none Received: (qmail 21436 invoked by uid 111); 1 Jun 2018 06:33:27 -0000 Received: from sigill.intra.peff.net (HELO sigill.intra.peff.net) (10.0.0.7) by peff.net (qpsmtpd/0.94) with (ECDHE-RSA-AES256-GCM-SHA384 encrypted) SMTP; Fri, 01 Jun 2018 02:33:27 -0400 Authentication-Results: peff.net; auth=none Received: by sigill.intra.peff.net (sSMTP sendmail emulation); Fri, 01 Jun 2018 02:33:14 -0400 Date: Fri, 1 Jun 2018 02:33:14 -0400 From: Jeff King To: mlell@posteo.de Cc: git@vger.kernel.org Subject: Re: Bug: Install from .tar.xz fails without write permission on /usr/local/share/man/man3 Message-ID: <20180601063314.GA2170@sigill.intra.peff.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org On Thu, May 31, 2018 at 06:30:18PM +0200, mlell@posteo.de wrote: > I was trying to build git 2.9.5 as a normal user, as I have no root access > on a cluster with outdated software. > > The build fails, unless I change the PREFIX=/usr/local line in > per/perl.mak:80 to a folder where I have write permission. > Apparently, perl.mak does not honour the --prefix= setting of ./configure. Weird, I can't reproduce. That perl.mak is generated by running Makefile.PL. If I follow your steps: > wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.9.5.tar.xz > tar xf git-2.9.5.tar.xz > cd git-2.9.5 > ./configure --prefix=$HOME/.usr > make During this step I get output like this (amidst the other compiles): /usr/bin/perl Makefile.PL PREFIX='/tmp/foo' INSTALL_BASE='' --localedir='/tmp/foo/share/locale' Generating a Unix-style perl.mak Writing perl.mak for Git So I wonder if there is some reason your perl MakeMaker module is not behaving the same way. At any rate, though, I don't know if it's worth digging too far. Git v2.17 drastically simplified the perl section of the build process, ditching MakeMaker completely. The new code is much simpler and follows the same prefix rules as the rest of the Makefile. So probably the simplest thing is try v2.17.1. -Peff