{"thread":{"id":"4781","subject":"git on HP-UX","startedAt":"2006-07-06T07:50:34Z","lastAt":"2006-07-09T22:23:38Z","messageCount":5,"participants":["Michal Rokos","Pavel Roskin","Junio C Hamano","Petr Baudis"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"23309","messageId":"200607060950.34558.michal.rokos@nextsoft.cz","threadId":"4781","inReplyTo":null,"subject":"git on HP-UX","fromName":"Michal Rokos","fromEmail":"michal.rokos@nextsoft.cz","sentAt":"2006-07-06T07:50:34Z","receivedAt":"2006-07-06T07:50:34Z","isPatch":false,"sender":{"key":"michal.rokos@nextsoft.cz","avatar":null},"body":"Hello,\n\nI needed following changes in order to make git compile on HP-UX:\n# uname -s -r -m\nHP-UX B.11.11 9000/800\n\nPackages installed:\nOpenSSL\tA.00.09.07-d.002\nperl\t\tB.5.6.1.C\n+ unofficial:\ngcc\t\t4.1.1\nlibiconv\t1.10\nmake\t3.80\nzlib\t\t1.2.3\n\nHas to be compiled with:\nPERL_PATH=/opt/perl/bin/perl gmake prefix=/opt/git install\n\nPlease keep me on CC (I'm not subscribed).\n\nSigned-off-by: Michal Rokos <michal.rokos@nextsoft.cz>\n\n--- a/Makefile\n+++ b/Makefile\n@@ -328,6 +328,17 @@ ifeq ($(uname_S),IRIX64)\n \t# for now, build 32-bit version\n \tALL_LDFLAGS += -L/usr/lib32\n endif\n+ifeq ($(uname_S),HP-UX)\n+\tNO_IPV6 = YesPlease\n+\tNO_CURL = YesPlease\n+\tNO_SETENV = YesPlease\n+\tNO_STRCASESTR = YesPlease\n+\tNO_STRLCPY = YesPlease\n+\tNEEDS_LIBICONV = YesPlease\n+\tALL_CFLAGS += -D_REENTRANT -D_XOPEN_SOURCE -D_HPUX_SOURCE -I/opt/openssl/include -Dhstrerror=strerror\n+\tALL_LDFLAGS += -L/opt/openssl/lib\n+\tINSTALL = $(PWD)/compat/compat_install\n+endif\n ifneq (,$(findstring arm,$(uname_M)))\n \tARM_SHA1 = YesPlease\n endif\n--- a/compat/compat_install\t2006-07-06 09:31:27.000000000 +0200\n+++ b/compat/compat_install\t2006-07-06 09:31:18.000000000 +0200\n@@ -0,0 +1,34 @@\n+#!/usr/bin/sh\n+#\n+# Copyright (c) 2006 Michal Rokos\n+#\n+# Dummy 'install' replacement intended to be used\n+# on HP-UX under sh-posix.\n+\n+while getopts 'dm:' opt; do\n+    case $opt in\n+    d) DIR_MODE=1;;\n+    m) MODE=$OPTARG;;\n+    \\?) echo \"Unknown argument $OPTARG\"; exit 1;;\n+    esac\n+done\n+shift $((OPTIND-1))\n+\n+if [[ -n \"$DIR_MODE\" ]] && [[ -n \"$MODE\" ]]; then\n+    mkdir -p -m \"$MODE\" \"$@\"\n+elif [[ -n \"$DIR_MODE\" ]]; then\n+    mkdir -p \"$@\"\n+else\n+    set -A args \"$@\"\n+    last=$#\n+    dest=${args[last-1]}\n+    unset args[last-1]\n+    set \"${args[@]}\"\n+\n+    cp \"$@\" \"$dest\"\n+\n+    [[ -n \"$MODE\" ]] && chmod \"$MODE\" \"$@\"\n+fi\n+\n+exit 0\n+\n\n-- \nMichal Rokos\n\nNextSoft s.r.o.\nVyskočilova 1/1410\n140 21 Praha 4\nphone:  +420 267 224 311\nfax:    +420 267 224 307\nmobile: +420 736 646 591\ne-mail: michal.rokos@nextsoft.cz\n"},{"id":"23322","messageId":"1152197629.7720.10.camel@dv","threadId":"4781","inReplyTo":"200607060950.34558.michal.rokos@nextsoft.cz","subject":"Re: git on HP-UX","fromName":"Pavel Roskin","fromEmail":"proski@gnu.org","sentAt":"2006-07-06T14:53:49Z","receivedAt":"2006-07-06T14:53:49Z","isPatch":false,"sender":{"key":"proski@gnu.org","avatar":null},"body":"Hello!\n\nOn Thu, 2006-07-06 at 09:50 +0200, Michal Rokos wrote:\n> Hello,\n> \n> I needed following changes in order to make git compile on HP-UX:\n> +ifeq ($(uname_S),HP-UX)\n> +\tNO_IPV6 = YesPlease\n> +\tNO_CURL = YesPlease\n\nIs there any fundamental problem with curl and IPv6 on HP-UX?  I don't\nthink so.\n\nSorry for using your path as a bad example, but the appearance of such\npatches is a perfect argument for a real configure script.  If we\ncontinue patching Makefile, we'll drown in such conditionals.  And the\nworst thing is, nobody without access to an HP-UX system will know why\nIPv6 isn't working there.  Makefile will become a pile of code that\ncannot be easily verified for correctness.\n\nAutoconf based tests can actually test if certain code can be compiled\nand linked.  If HP-UX fixed IPv6, the test would enable it.  If some\ngenius manages to compile curl on HP-UX, http support will be enabled on\nthat machine with no manual changes in Makefile.\n\nI hope the Autoconf based configure is on its way to git, but I don't\nsee in in the \"pu\" branch yet.  I'm not very keen about reinventing\nAutoconf and hacking a hand-made configure script.\n\n-- \nRegards,\nPavel Roskin\n"},{"id":"23340","messageId":"7vfyhe465i.fsf@assigned-by-dhcp.cox.net","threadId":"4781","inReplyTo":"1152197629.7720.10.camel@dv","subject":"Re: git on HP-UX","fromName":"Junio C Hamano","fromEmail":"junkio@cox.net","sentAt":"2006-07-07T00:20:41Z","receivedAt":"2006-07-07T00:20:41Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Pavel Roskin <proski@gnu.org> writes:\n\n>> I needed following changes in order to make git compile on HP-UX:\n>> +ifeq ($(uname_S),HP-UX)\n>> +\tNO_IPV6 = YesPlease\n>> +\tNO_CURL = YesPlease\n>\n> Is there any fundamental problem with curl and IPv6 on HP-UX?  I don't\n> think so.\n>\n> Sorry for using your path as a bad example, but the appearance of such\n> patches is a perfect argument for a real configure script.  If we\n> continue patching Makefile, we'll drown in such conditionals.\n\nConditionals like 'ifdef NO_IPV6' in Makefile are good, but\nconditionals switch on platforms to set/reset them are not.\nA configure script to set them in config.mak.gen is the way to\ngo, I would agree.\n\n> I hope the Autoconf based configure is on its way to git, but I don't\n> see in in the \"pu\" branch yet.  I'm not very keen about reinventing\n> Autoconf and hacking a hand-made configure script.\n\nOK, you half-convinced me.  The other half came from a recent\nseries of patches to try using 'which' to detect executables,\nwhich is another common mistake handcrafted configure script\nmakes, which autoconf people have solved for us long time ago.\n"},{"id":"23409","messageId":"1152344323.26627.13.camel@dv","threadId":"4781","inReplyTo":"7vfyhe465i.fsf@assigned-by-dhcp.cox.net","subject":"Re: git on HP-UX","fromName":"Pavel Roskin","fromEmail":"proski@gnu.org","sentAt":"2006-07-08T07:38:43Z","receivedAt":"2006-07-08T07:38:43Z","isPatch":false,"sender":{"key":"proski@gnu.org","avatar":null},"body":"On Thu, 2006-07-06 at 17:20 -0700, Junio C Hamano wrote:\n> Pavel Roskin <proski@gnu.org> writes:\n> > I hope the Autoconf based configure is on its way to git, but I don't\n> > see in in the \"pu\" branch yet.  I'm not very keen about reinventing\n> > Autoconf and hacking a hand-made configure script.\n> \n> OK, you half-convinced me.  The other half came from a recent\n> series of patches to try using 'which' to detect executables,\n> which is another common mistake handcrafted configure script\n> makes, which autoconf people have solved for us long time ago.\n\nI really appreciate it.  I hope all the Autoconf patches in the queue\nwill land in \"pu\" shortly, and then I'm going to have a closer look at\nit.\n\n-- \nRegards,\nPavel Roskin\n"},{"id":"23500","messageId":"20060709222338.GV29115@pasky.or.cz","threadId":"4781","inReplyTo":"7vfyhe465i.fsf@assigned-by-dhcp.cox.net","subject":"Re: git on HP-UX","fromName":"Petr Baudis","fromEmail":"pasky@suse.cz","sentAt":"2006-07-09T22:23:38Z","receivedAt":"2006-07-09T22:23:38Z","isPatch":false,"sender":{"key":"pasky@ucw.cz","avatar":"https://avatars.githubusercontent.com/u/18439?v=4"},"body":"Dear diary, on Fri, Jul 07, 2006 at 02:20:41AM CEST, I got a letter\nwhere Junio C Hamano <junkio@cox.net> said that...\n> > I hope the Autoconf based configure is on its way to git, but I don't\n> > see in in the \"pu\" branch yet.  I'm not very keen about reinventing\n> > Autoconf and hacking a hand-made configure script.\n> \n> OK, you half-convinced me.  The other half came from a recent\n> series of patches to try using 'which' to detect executables,\n> which is another common mistake handcrafted configure script\n> makes, which autoconf people have solved for us long time ago.\n\nGood! In fact, I have been a moderate autoconf fan and originally I have\nmeant the hand-crafted ./configure script partially just as a tease and\na nominal competitor for the autoconf one, so that we would for sure got\n_some_ autoconfiguration mechanism (which is what I care about).\n\nI have to admit that I have grown somewhat attached to my script over\ntime and I like it a lot more than the autoconf thing personally, but\nthen again I had no idea that we actually want to support such systems\nlike those with broken which...\n\n-- \n\t\t\t\tPetr \"Pasky\" Baudis\nStuff: http://pasky.or.cz/\nSnow falling on Perl. White noise covering line noise.\nHides all the bugs too. -- J. Putnam\n"}]}