Bug 255885 - devel/git: fails at: Installing contributed scripts
Summary: devel/git: fails at: Installing contributed scripts
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Renato Botelho
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-14 18:42 UTC by Chris Hutchinson
Modified: 2021-06-22 17:44 UTC (History)
1 user (show)

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


Attachments
patch for devel/git that corrects install of contrib files (1.09 KB, patch)
2021-05-14 20:06 UTC, Chris Hutchinson
portmaster: maintainer-approval? (garga)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Hutchinson 2021-05-14 18:42:11 UTC
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 1 Chris Hutchinson 2021-05-14 18:45:50 UTC
For the sake of clarity. This on devel/git
DISTVERSION=	2.31.1
Comment 2 Chris Hutchinson 2021-05-14 19:45:06 UTC
OK upon closer examination:

/usr/ports/devel/git/work-default/git-2.31.1/contrib/credential/netrc/test.netrc.gpg

is a ZERO length file. Which is why it fails.

HTH

--Chris
Comment 3 Chris Hutchinson 2021-05-14 20:06:36 UTC
Created attachment 224947 [details]
patch for devel/git that corrects install of contrib files

OK the attached patch (diff) gets past the ZERO
length problem, and permits a successful install.
But DOESN'T explain why the file in question
( contrib/credential/netrc/test.netrc.gpg ) is an
empty file to begin with.
The patch attached allows for an install of devel/git
Tested on 13-RELEASE

Thanks!

--Chris
Comment 4 commit-hook freebsd_committer freebsd_triage 2021-06-22 17:43:13 UTC
A commit in branch main references this bug:

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

commit c3dd3472dd49bc570f01294d7f7ad73202a3c684
Author:     Chris Hutchinson <portmaster@bsdforge.com>
AuthorDate: 2021-06-22 17:38:15 +0000
Commit:     Renato Botelho <garga@FreeBSD.org>
CommitDate: 2021-06-22 17:42:25 +0000

    devel/git: Fix contrib installation

    In some cases installation is aborted when try to copy test.netrc.gpg,
    which is an empty file.  This file is not actually needed so the fix
    here is to stop trying to install it
    PR:             255885
    Sponsored by:   Rubicon Communications, LLC ("Netgate")

 devel/git/Makefile  | 1 +
 devel/git/pkg-plist | 1 -
 2 files changed, 1 insertion(+), 1 deletion(-)