Bug 255100 - devel/git build fails when installing contributed scripts
Summary: devel/git build fails when installing contributed scripts
Status: Closed Unable to Reproduce
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Renato Botelho
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-15 21:19 UTC by Mamadou Babaei
Modified: 2024-11-14 08:45 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (garga)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mamadou 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='--' 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.
Comment 6 commit-hook freebsd_committer freebsd_triage 2024-11-14 08:45:27 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=a3b2656e217657f86fb00bca582c90b5ff42db08

commit a3b2656e217657f86fb00bca582c90b5ff42db08
Author:     Lexi Winter <lexi@hemlock.eden.le-fay.org>
AuthorDate: 2024-11-12 13:07:23 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2024-11-14 08:43:26 +0000

    databases/prometheus-postgres-exporter: update to 0.16.0

     - the maintainer address is updated
     - a new pkg-message is added to document the breaking change in the log
       format when upgrading the package.

    upstream release notes:

    ---o<---
    BREAKING CHANGES:

    The logging system has been replaced with log/slog from the stdlib. This
    change is being made across the prometheus ecosystem. The logging output
    has changed, but the messages and levels remain the same. The ts label
    for the timestamp has bewen replaced with time, the accuracy is less,
    and the timezone is not forced to UTC. The caller field has been replaced
    by the source field, which now includes the full path to the source file.
    The level field now exposes the log level in capital letters.

    * [CHANGE] Replace logging system #1073
    * [ENHANCEMENT] Add save_wal_size and wal_status to replication_slot collector #1027
    * [ENHANCEMENT] Add roles collector and connection limit metrics to database collector #997
    * [ENHANCEMENT] Excluded databases log messgae is now info level #1003
    * [ENHANCEMENT] Add active_time to stat_database collector #961
    * [ENHANCEMENT] Add slot_type label to replication_slot collector #960
    * [BUGFIX] Fix walreceiver collectore when no repmgr #1086
    * [BUGFIX] Remove logging errors on replicas #1048
    * [BUGFIX] Fix active_time query on postgres>=14 #1045
    ---o<---

    PR:             255100

 UPDATING                                                  | 15 +++++++++++++++
 databases/prometheus-postgres-exporter/Makefile           |  7 +++----
 databases/prometheus-postgres-exporter/distinfo           | 10 +++++-----
 .../prometheus-postgres-exporter/files/pkg-message.in     | 15 +++++++++++++++
 4 files changed, 38 insertions(+), 9 deletions(-)