git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: install: gitweb.cgi was not found anywhere

From
JWJeffrey Walton <noloader@gmail.com>
Date
May 2, 2019, 18:35 UTC
Message-ID
<CAH8yC8=AB1E=U7vCTkOLELQ9z1vW2up_WCYziW25Uqe0jXZBaA@mail.gmail.com>
In-Reply-To
<20190501223005.GB42435@google.com>
On Wed, May 1, 2019 at 6:30 PM Jonathan Nieder <jrnieder@gmail.com> wrote:
Show 25 quoted lines
>
> Jeffrey Walton wrote:
>
> > I'm attempting to install Git 2.21.0 on Solaris 11.3 x86_64.
> > /usr/gnu/bin is on-path.
> [...]
> > gmake -C gitweb install
> > gmake[1]: Entering directory `/export/home/build/git-2.21.0/gitw
> > eb'
> > gmake[2]: Entering directory `/export/home/build/git-2.21.0'
> > gmake[2]: `GIT-VERSION-FILE' is up to date.
> > gmake[2]: Leaving directory `/export/home/build/git-2.21.0'
> >     GEN gitweb.cgi
> >     GEN static/gitweb.js
> > install -d -m 755 '/usr/local/share/gitweb'
> > directory /usr/local/share/gitweb created
> > install -m 755 gitweb.cgi '/usr/local/share/gitweb'
> > find: cycle detected for /lib/secure/32/
> [...]
> > install: gitweb.cgi was not found anywhere!
>
> Sounds like it's using "install" when it should be using "ginstall".
> config.mak.uname contains, under the SunOS category:
>
>         INSTALL = /usr/ucb/install
Thanks again Jonathan.
/usr/ucb/install no longer exists in Solaris 11.3 i86pc:
    solaris3:~$ ls -Al /usr/ucb/install
    /usr/ucb/install: No such file or directory
    solaris3:~$ uname -a
    SunOS solaris3. 5.11 11.3 i86pc i386 i86pc
The config files need to be patched:
# Solaris 11.3 no longer has /usr/ucb/install
for file in $(find "$PWD" -name 'config*')
do
    if [[ ! -f "$file" ]]
    then
        continue
    fi
    sed -e 's|/usr/ucb/install|install|g' "$file" > "$file.fixed"
    mv "$file.fixed" "$file"
    chmod +x "$file"
    touch -t 197001010000 "$file"
done
But I think I tracked it down to sane tool path. originally I was using:
    SANE_TOOL_PATH="..." \
    ./configure ...
When I changed it to:
    ./configure ... \
    --sane-tool-path="..."
most of the errors went away.

I also removed a bunch of old patches and hacks that don't seem to be needed for Git 2.21.0. Between both of them I am building Git on Solaris again.

Related to /usr/ucb, also see https://blogs.oracle.com/solaris/preparing-for-the-upcoming-removal-of-ucb-utilities-from-the-next-version-of-solaris-v2 .

Thanks again.
Jeff
Previous: Jeffrey WaltonNext: Jonathan Nieder
Message 4 of 5 in “”
  1. Jeffrey WaltonMay 1, 2019
  2. Jonathan NiederMay 1, 2019
  3. Jeffrey WaltonMay 1, 2019
  4. Jeffrey WaltonMay 2, 2019
  5. Jonathan NiederMay 3, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.