Bug 255100

Summary: devel/git build fails when installing contributed scripts
Product: Ports & Packages Reporter: Mohammad S. Babaei <info>
Component: Individual Port(s)Assignee: Renato Botelho <garga>
Status: Closed Unable to Reproduce    
Severity: Affects Only Me CC: mandree, portmaster
Priority: --- Flags: bugzilla: maintainer-feedback? (garga)
Version: Latest   
Hardware: Any   
OS: Any   

Description Mohammad S. Babaei 2021-04-15 21:19:19 UTC
gmake[3]: Entering directory '/usr/ports/devel/git/work-default/git-2.31.1/contrib/subtree'
gmake -C ../../ GIT-VERSION-FILE
gmake[4]: Entering directory '/usr/ports/devel/git/work-default/git-2.31.1'
gmake[4]: 'GIT-VERSION-FILE' is up to date.
gmake[4]: Leaving directory '/usr/ports/devel/git/work-default/git-2.31.1'
sed -e '1s|#!.*/sh|#!/bin/sh|' git-subtree.sh >git-subtree
chmod +x git-subtree
install -d -m 755 /usr/ports/devel/git/work-default/stage/usr/local/libexec/git-core
install -m 755 git-subtree /usr/ports/devel/git/work-default/stage/usr/local/libexec/git-core
asciidoctor -b docbook -d manpage  \
        -agit_version=2.31.1 -I../../Documentation -rasciidoctor-extensions -alitdd='&#x2d;&#x2d;' git-subtree.txt
xmlto -m ../../Documentation/manpage-normal.xsl --skip-validation man git-subtree.xml
/usr/local/bin/xmlto: line 286: /usr/local/bin/getopt: No such file or directory
usage: xmlto [OPTION]... FORMAT XML
OPTIONs are:
  -v              verbose output (-vv for very verbose)
  -x stylesheet   use the specified stylesheet instead of choosing one
  -m fragment     use the XSL fragment to customize the stylesheet
  -o directory    put output in the specified directory instead of
                  the current working directory
  -p postprocopts pass option to postprocessor
  --extensions    turn on stylesheet extensions for this tool chain
  --noautosize    do not autodetect paper size via locales or paperconf
  --noclean       temp files are not deleted automatically
                  (good for diagnostics)
  --noextensions  do not use passivetex/fop extensions
  --profile       use profiling stylesheet
  --searchpath    colon-separated list of fallback directories
  --skip-validation
                  do not attempt to validate the input before processing
  --stringparam paramname=paramvalue
                  pass a named parameter to the stylesheet from the
                  command line
  --with-fop      use fop for formatting (if fop available)
  --with-dblatex  use dblatex for formatting (if dblatex available)

Available FORMATs depend on the type of the XML file (which is
determined automatically).

For documents of type "fo":
awt     dvi     mif     pcl     pdf     ps      svg     txt

For documents of type "docbook":
awt             epub            html            htmlhelp        man             pcl             ps              txt             xhtml-nochunks
dvi             fo              html-nochunks   javahelp        mif             pdf             svg             xhtml

For documents of type "xhtml1":
awt     dvi     fo      mif     pcl     pdf     ps      svg     txt
gmake[3]: *** [Makefile:83: git-subtree.1] Error 1
gmake[3]: Leaving directory '/usr/ports/devel/git/work-default/git-2.31.1/contrib/subtree'
*** Error code 2

Stop.
make[2]: stopped in /usr/ports/devel/git
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/devel/git
*** Error code 1

Stop.
make: stopped in /usr/ports/devel/git


My options from make.conf:

devel_git_UNSET+=\
    CVS \
    GITWEB \
    GUI \
    P4 \
    SEND_EMAIL \
    SVN
Comment 1 Chris Hutchinson 2021-05-14 18:34:09 UTC
Can I add a "me too" here?
This is on 13-RELEASE from install media dated 20210409
and ports tree cloned this morning.
My only change from defaults options, is the omission
of GITWEB:
OPTIONS_FILE_SET+=CONTRIB
OPTIONS_FILE_SET+=CURL
OPTIONS_FILE_SET+=CVS
OPTIONS_FILE_UNSET+=GITWEB
OPTIONS_FILE_UNSET+=GUI
OPTIONS_FILE_UNSET+=HTMLDOCS
OPTIONS_FILE_SET+=ICONV
OPTIONS_FILE_SET+=NLS
OPTIONS_FILE_SET+=P4
OPTIONS_FILE_SET+=PCRE2
OPTIONS_FILE_SET+=PERL
OPTIONS_FILE_SET+=SEND_EMAIL
OPTIONS_FILE_SET+=SUBTREE
OPTIONS_FILE_UNSET+=SVN

The build fails at:
===> Installing contributed scripts
/bin/mkdir -p /usr/ports/devel/git/work-default/stage/usr/local/share/git-core/contrib
cp -f -R /usr/ports/devel/git/work-default/git-2.31.1/contrib/* /usr/ports/devel/git/work-default/stage/usr/local/share/git-core/contrib
cp: /usr/ports/devel/git/work-default/git-2.31.1/contrib/credential/netrc/test.netrc.gpg: Function not implemented
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/devel/git

As a ports MAINTAINER. This makes it pretty much impossible to
maintain ports. :-(
Quick remediation would be GREATLY appreciated. :-)

Thanks!

--Chris
Comment 2 Chris Hutchinson 2021-05-14 18:44:17 UTC
OK upon closer examination. It appears yours is somewhat
different than mine. So I've moved mine to a different pr(1).
( bug #255885 )
Comment 3 Renato Botelho freebsd_committer freebsd_triage 2021-06-22 16:39:22 UTC
(In reply to Mohammad S. Babaei from comment #0)
This seems to be a xmlto error.  It's looking for getopt binary in the wrong directory.

I'm adding mandree@, who is xmlto maintainer to the CC list
Comment 4 Matthias Andree freebsd_committer freebsd_triage 2021-06-22 19:41:48 UTC
Mohammad, Renato, 

this seems quite strange. xmlto depends on misc/getopt, and includes it in BUILD_DEPENDS and RUN_DEPENDS.  Something removed and/or damaged getopt without removing xmlto.

Please try reinstalling textproc/xmlto and/or misc/getopt, then this issue should go away.
Comment 5 Renato Botelho freebsd_committer freebsd_triage 2021-10-08 15:02:40 UTC
It seems to be an environment problem.  Closing after 3 months with no answers, if needed we can re-open.