[asterisk-bugs] [JIRA] (ASTERISK-29852) make_version uses GNU-ism that break git-svn-id parsing on NetBSD

Asterisk Team (JIRA) noreply at issues.asterisk.org
Thu Feb 3 06:53:08 CST 2022


     [ https://issues.asterisk.org/jira/browse/ASTERISK-29852?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Asterisk Team updated ASTERISK-29852:
-------------------------------------

    Target Release Version/s: 18.10.0

> make_version uses GNU-ism that break git-svn-id parsing on NetBSD
> -----------------------------------------------------------------
>
>                 Key: ASTERISK-29852
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-29852
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Core/BuildSystem
>    Affects Versions: GIT
>         Environment: NetBSD 9.2
>            Reporter: Michał Górny
>            Assignee: Michał Górny
>            Severity: Trivial
>      Target Release: 18.10.0, 16.24.0
>
>
> {code}
> SVN_REV=`${GIT} log --pretty=full -1 | ${GREP} -F "git-svn-id:" | sed -e "s/.*\@\([^\s]*\)\s.*/\1/g"
> {code}
> The "\s" is a GNU-ism and does not work with NetBSD sed. As a result, git-svn-id processing does not work correctly on this system. For example, if I create an artificial commit with git-svn-id, on Linux I get:
> {code}
> SVN-trunk-r434708
> {code}
> but on NetBSD, I get:
> {code}
> SVN-trunk-r git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@434708 65c4cc65-6c06-0410-ace0-fbb531ad65f2M
> {code}
> The POSIX {noformat}[[:space:]]{noformat} can be used in place of \s.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list