{"thread":{"id":"51022","subject":"","startedAt":"2019-05-01T21:57:42Z","lastAt":"2019-05-03T20:56:42Z","messageCount":5,"participants":["Jeffrey Walton","Jonathan Nieder"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"374791","messageId":"CAH8yC8kec2N0fkt6cWChOEGtGkrOE5S+QuZnQnDP1eM9mg_EOQ@mail.gmail.com","threadId":"51022","inReplyTo":null,"subject":"","fromName":"Jeffrey Walton","fromEmail":"noloader@gmail.com","sentAt":"2019-05-01T21:57:24Z","receivedAt":"2019-05-01T21:57:42Z","isPatch":false,"sender":{"key":"noloader@gmail.com","avatar":null},"body":"Hi Everyone,\n\nI'm attempting to install Git 2.21.0 on Solaris 11.3 x86_64.\n/usr/gnu/bin is on-path.\n\n'make' was OK, 'make check' had a few failures. 'make install' has troubles.\n\n$ sudo gmake install\n...\n\ngmake -C gitweb install\ngmake[1]: Entering directory `/export/home/build/git-2.21.0/gitw\neb'\ngmake[2]: Entering directory `/export/home/build/git-2.21.0'\ngmake[2]: `GIT-VERSION-FILE' is up to date.\ngmake[2]: Leaving directory `/export/home/build/git-2.21.0'\n    GEN gitweb.cgi\n    GEN static/gitweb.js\ninstall -d -m 755 '/usr/local/share/gitweb'\ndirectory /usr/local/share/gitweb created\ninstall -m 755 gitweb.cgi '/usr/local/share/gitweb'\nfind: cycle detected for /lib/secure/32/\nfind: cycle detected for /lib/32/\nfind: cycle detected for /lib/crypto/32/\nfind: cycle detected for /usr/lib/locale/en_US.UTF-8/LO_LTYPE/32/\nfind: cycle detected for /usr/lib/locale/en_US.UTF-8/32/\nfind: cycle detected for /usr/lib/locale/en_US.UTF-8/LC_CTYPE/32/\nfind: cycle detected for /usr/lib/32/\nfind: cycle detected for /usr/lib/security/32/\nfind: cycle detected for /usr/lib/link_audit/32/\nfind: cycle detected for /usr/lib/rad/client/c/32/\nfind: cycle detected for /usr/lib/secure/32/\nfind: cycle detected for /usr/lib/fm/topo/plugins/32/\nfind: cycle detected for /usr/lib/lwp/32/\nfind: cycle detected for /usr/lib/pool/32/\nfind: cycle detected for /usr/lib/brand/solaris10/32/\nfind: cycle detected for /usr/lib/elfedit/32/\nfind: cycle detected for /usr/lib/gss/32/\ninstall: gitweb.cgi was not found anywhere!\ngmake[1]: *** [install] Error 2\ngmake[1]: Leaving directory `/export/home/build/git-2.21.0/gitweb'\ngmake: *** [install] Error 2\n\nJeff\n"},{"id":"374793","messageId":"20190501223005.GB42435@google.com","threadId":"51022","inReplyTo":"CAH8yC8kec2N0fkt6cWChOEGtGkrOE5S+QuZnQnDP1eM9mg_EOQ@mail.gmail.com","subject":"Re: install: gitweb.cgi was not found anywhere","fromName":"Jonathan Nieder","fromEmail":"jrnieder@gmail.com","sentAt":"2019-05-01T22:30:05Z","receivedAt":"2019-05-01T22:30:10Z","isPatch":false,"sender":{"key":"jrnieder@gmail.com","avatar":"https://avatars.githubusercontent.com/u/281595?v=4"},"body":"Hi,\n\nJeffrey Walton wrote:\n\n> I'm attempting to install Git 2.21.0 on Solaris 11.3 x86_64.\n> /usr/gnu/bin is on-path.\n[...]\n> gmake -C gitweb install\n> gmake[1]: Entering directory `/export/home/build/git-2.21.0/gitw\n> eb'\n> gmake[2]: Entering directory `/export/home/build/git-2.21.0'\n> gmake[2]: `GIT-VERSION-FILE' is up to date.\n> gmake[2]: Leaving directory `/export/home/build/git-2.21.0'\n>     GEN gitweb.cgi\n>     GEN static/gitweb.js\n> install -d -m 755 '/usr/local/share/gitweb'\n> directory /usr/local/share/gitweb created\n> install -m 755 gitweb.cgi '/usr/local/share/gitweb'\n> find: cycle detected for /lib/secure/32/\n[...]\n> install: gitweb.cgi was not found anywhere!\n\nSounds like it's using \"install\" when it should be using \"ginstall\".\nconfig.mak.uname contains, under the SunOS category:\n\n\tINSTALL = /usr/ucb/install\n\nBut gitweb/Makefile seems to forget to include ../config.mak.uname.\nHow about this patch?\n\n-- >8 --\nSubject: gitweb: use system-appropriate defaults for commands\n\nAttempting to install gitweb on Solaris 11 produces\n\n $ gmake install\n...\n gmake -C gitweb install\n gmake[1]: Entering directory `/export/home/build/git-2.21.0/gitweb'\n gmake[2]: Entering directory `/export/home/build/git-2.21.0'\n gmake[2]: `GIT-VERSION-FILE' is up to date.\n gmake[2]: Leaving directory `/export/home/build/git-2.21.0'\n     GEN gitweb.cgi\n     GEN static/gitweb.js\n install -d -m 755 '/usr/local/share/gitweb'\n directory /usr/local/share/gitweb created\n install -m 755 gitweb.cgi '/usr/local/share/gitweb'\n find: cycle detected for /lib/secure/32/\n find: cycle detected for /lib/32/\n find: cycle detected for /lib/crypto/32/\n...\n find: cycle detected for /usr/lib/gss/32/\n install: gitweb.cgi was not found anywhere!\n gmake[1]: *** [install] Error 2\n gmake[1]: Leaving directory `/export/home/build/git-2.21.0/gitweb'\n\nThis is because the default \"install\" tool on SunOS doesn't follow the\nconvention we require.  Use the /usr/ucb/install command specified in\nconfig.mak.uname instead to fix it.\n\nThis should also help on other platforms where the default \"install\"\ncommand is not functional enough.\n\nReported-by: Jeffrey Walton <noloader@gmail.com>\nSigned-off-by: Jonathan Nieder <jrnieder@gmail.com>\n---\nCompletely untested.  Junio, please don't apply this without Jeffrey's\ntested-by.\n\nThanks,\nJonathan\n\n gitweb/Makefile | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n\ndiff --git a/gitweb/Makefile b/gitweb/Makefile\nindex cd194d057f..333aa58be0 100644\n--- a/gitweb/Makefile\n+++ b/gitweb/Makefile\n@@ -39,7 +39,7 @@ GITWEB_SITE_HEADER =\n GITWEB_SITE_FOOTER =\n HIGHLIGHT_BIN = highlight\n \n-# include user config\n+include ../config.mak.uname\n -include ../config.mak.autogen\n -include ../config.mak\n -include config.mak\n-- \n2.21.0.1020.gf2820cf01a\n\n"},{"id":"374794","messageId":"CAH8yC8=kntpNKwEFrQ32zHbRqrQyvAgSqejFmJcAu__B9KTC7Q@mail.gmail.com","threadId":"51022","inReplyTo":"20190501223005.GB42435@google.com","subject":"Re: install: gitweb.cgi was not found anywhere","fromName":"Jeffrey Walton","fromEmail":"noloader@gmail.com","sentAt":"2019-05-01T22:55:12Z","receivedAt":"2019-05-01T22:55:29Z","isPatch":false,"sender":{"key":"noloader@gmail.com","avatar":null},"body":"On Wed, May 1, 2019 at 6:30 PM Jonathan Nieder <jrnieder@gmail.com> wrote:\n> ...\n> > install -m 755 gitweb.cgi '/usr/local/share/gitweb'\n> > find: cycle detected for /lib/secure/32/\n> [...]\n> > install: gitweb.cgi was not found anywhere!\n>\n> Sounds like it's using \"install\" when it should be using \"ginstall\".\n> config.mak.uname contains, under the SunOS category:\n>\n>         INSTALL = /usr/ucb/install\n>\n> But gitweb/Makefile seems to forget to include ../config.mak.uname.\n> How about this patch?\n> ...\n>  gitweb/Makefile | 2 +-\n>  1 file changed, 1 insertion(+), 1 deletion(-)\n>\n> diff --git a/gitweb/Makefile b/gitweb/Makefile\n> index cd194d057f..333aa58be0 100644\n> --- a/gitweb/Makefile\n> +++ b/gitweb/Makefile\n> @@ -39,7 +39,7 @@ GITWEB_SITE_HEADER =\n>  GITWEB_SITE_FOOTER =\n>  HIGHLIGHT_BIN = highlight\n>\n> -# include user config\n> +include ../config.mak.uname\n>  -include ../config.mak.autogen\n>  -include ../config.mak\n>  -include config.mak\n\nNo joy; same error.\n\nIs there an option to build and install only client tools? If so, I am\nhappy to use it as I don't need server tools.\n\nDo you want an account on the box? I need an authorized_keys file.\n\nJeff\n"},{"id":"374841","messageId":"CAH8yC8=AB1E=U7vCTkOLELQ9z1vW2up_WCYziW25Uqe0jXZBaA@mail.gmail.com","threadId":"51022","inReplyTo":"20190501223005.GB42435@google.com","subject":"Re: install: gitweb.cgi was not found anywhere","fromName":"Jeffrey Walton","fromEmail":"noloader@gmail.com","sentAt":"2019-05-02T18:35:11Z","receivedAt":"2019-05-02T18:35:32Z","isPatch":false,"sender":{"key":"noloader@gmail.com","avatar":null},"body":"On Wed, May 1, 2019 at 6:30 PM Jonathan Nieder <jrnieder@gmail.com> wrote:\n>\n> Jeffrey Walton wrote:\n>\n> > I'm attempting to install Git 2.21.0 on Solaris 11.3 x86_64.\n> > /usr/gnu/bin is on-path.\n> [...]\n> > gmake -C gitweb install\n> > gmake[1]: Entering directory `/export/home/build/git-2.21.0/gitw\n> > eb'\n> > gmake[2]: Entering directory `/export/home/build/git-2.21.0'\n> > gmake[2]: `GIT-VERSION-FILE' is up to date.\n> > gmake[2]: Leaving directory `/export/home/build/git-2.21.0'\n> >     GEN gitweb.cgi\n> >     GEN static/gitweb.js\n> > install -d -m 755 '/usr/local/share/gitweb'\n> > directory /usr/local/share/gitweb created\n> > install -m 755 gitweb.cgi '/usr/local/share/gitweb'\n> > find: cycle detected for /lib/secure/32/\n> [...]\n> > install: gitweb.cgi was not found anywhere!\n>\n> Sounds like it's using \"install\" when it should be using \"ginstall\".\n> config.mak.uname contains, under the SunOS category:\n>\n>         INSTALL = /usr/ucb/install\n\nThanks again Jonathan.\n\n/usr/ucb/install no longer exists in Solaris 11.3 i86pc:\n\n    solaris3:~$ ls -Al /usr/ucb/install\n    /usr/ucb/install: No such file or directory\n    solaris3:~$ uname -a\n    SunOS solaris3. 5.11 11.3 i86pc i386 i86pc\n\nThe config files need to be patched:\n\n# Solaris 11.3 no longer has /usr/ucb/install\nfor file in $(find \"$PWD\" -name 'config*')\ndo\n    if [[ ! -f \"$file\" ]]\n    then\n        continue\n    fi\n\n    sed -e 's|/usr/ucb/install|install|g' \"$file\" > \"$file.fixed\"\n    mv \"$file.fixed\" \"$file\"\n    chmod +x \"$file\"\n    touch -t 197001010000 \"$file\"\ndone\n\nBut I think I tracked it down to sane tool path. originally I was using:\n\n    SANE_TOOL_PATH=\"...\" \\\n    ./configure ...\n\nWhen I changed it to:\n\n    ./configure ... \\\n    --sane-tool-path=\"...\"\n\nmost of the errors went away.\n\nI also removed a bunch of old patches and hacks that don't seem to be\nneeded for Git 2.21.0. Between both of them I am building Git on\nSolaris again.\n\nRelated to /usr/ucb, also see\nhttps://blogs.oracle.com/solaris/preparing-for-the-upcoming-removal-of-ucb-utilities-from-the-next-version-of-solaris-v2\n.\n\nThanks again.\n\nJeff\n"},{"id":"374894","messageId":"20190503205637.GC42435@google.com","threadId":"51022","inReplyTo":"CAH8yC8=AB1E=U7vCTkOLELQ9z1vW2up_WCYziW25Uqe0jXZBaA@mail.gmail.com","subject":"Re: install: gitweb.cgi was not found anywhere","fromName":"Jonathan Nieder","fromEmail":"jrnieder@gmail.com","sentAt":"2019-05-03T20:56:37Z","receivedAt":"2019-05-03T20:56:42Z","isPatch":false,"sender":{"key":"jrnieder@gmail.com","avatar":"https://avatars.githubusercontent.com/u/281595?v=4"},"body":"Jeffrey Walton wrote:\n> On Wed, May 1, 2019 at 6:30 PM Jonathan Nieder <jrnieder@gmail.com> wrote:\n\n>> Sounds like it's using \"install\" when it should be using \"ginstall\".\n>> config.mak.uname contains, under the SunOS category:\n>>\n>>         INSTALL = /usr/ucb/install\n>\n> Thanks again Jonathan.\n>\n> /usr/ucb/install no longer exists in Solaris 11.3 i86pc:\n>\n>     solaris3:~$ ls -Al /usr/ucb/install\n>     /usr/ucb/install: No such file or directory\n>     solaris3:~$ uname -a\n>     SunOS solaris3. 5.11 11.3 i86pc i386 i86pc\n>\n> The config files need to be patched:\n[...]\n> Related to /usr/ucb, also see\n> https://blogs.oracle.com/solaris/preparing-for-the-upcoming-removal-of-ucb-utilities-from-the-next-version-of-solaris-v2\n\nHm.  How about this, in combination with the previous one?\n\nIf it looks good, I can send it out as a series for real.\n\n[...]\n> I also removed a bunch of old patches and hacks that don't seem to be\n> needed for Git 2.21.0. Between both of them I am building Git on\n> Solaris again.\n\nTo be clear, does that mean you are using unpatched source now, or\nthat you still needed some patches?  In the latter case, can you point\nme to them so we can get something sufficient upstream?\n\nThanks,\nJonathan\n\ndiff --git i/config.mak.uname w/config.mak.uname\nindex d916d1dc7a..41ad90c76a 100644\n--- i/config.mak.uname\n+++ w/config.mak.uname\n@@ -162,7 +162,7 @@ ifeq ($(uname_S),SunOS)\n \t\tNO_STRTOUMAX = YesPlease\n \t\tGIT_TEST_CMP = cmp\n \tendif\n-\tINSTALL = /usr/ucb/install\n+\tINSTALL = ginstall\n \tTAR = gtar\n \tBASIC_CFLAGS += -D__EXTENSIONS__ -D__sun__\n endif\n"}]}