Re: install: gitweb.cgi was not found anywhere

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, May 1, 2019 at 6:30 PM Jonathan Nieder <jrnieder@xxxxxxxxx> wrote:
>
> 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



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux