[asterisk-bugs] [JIRA] (ASTERISK-22480) Embedded pjproject: build.mak contains hardcoded full path to version.mak

Friendly Automation (JIRA) noreply at issues.asterisk.org
Thu Oct 27 13:32:10 CDT 2016


    [ https://issues.asterisk.org/jira/browse/ASTERISK-22480?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=233012#comment-233012 ] 

Friendly Automation commented on ASTERISK-22480:
------------------------------------------------

Change 4200 merged by Joshua Colp:
pjproject_bundled:  Remove usage of tar's --strip-components option

[https://gerrit.asterisk.org/4200|https://gerrit.asterisk.org/4200]

> Embedded pjproject: build.mak contains hardcoded full path to version.mak
> -------------------------------------------------------------------------
>
>                 Key: ASTERISK-22480
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-22480
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Core/BuildSystem
>    Affects Versions: 13.11.2, 14.0.2, GIT
>            Reporter: Matt Jordan
>            Assignee: George Joseph
>         Attachments: pjproject-11-realpath.patch
>
>
> After an initial {{configure}}, pjproject (in {{res/pjproject/build.mak}}) will embed the full path to version.mak:
> {noformat}
> export PJDIR := /srv/bamboo/xml-data/build-dir/AST-ATRUNKFULLBUILD3-C632BB/asterisk/res/pjproject
> include $(PJDIR)/version.mak
> {noformat}
> This is done in {{build.mak.in}}:
> {noformat}
> export PJDIR := @ac_pjdir@
> include $(PJDIR)/version.mak
> export PJ_DIR := $(PJDIR)
> {noformat}
> Not using a relative path is okay; however, if the directory of Asterisk is moved, Asterisk will no longer compile. Worse, a {{make clean}} or {{make distclean}} won't fix the issue as the make target itself is borked:
> {noformat}
> mjordan at asterisk-testsuite-32-centos:/srv/bamboo/xml-data/build-dir/AST-ATRUNKUNIT3-C632UT/asterisk$ sudo make distclean
> [sudo] password for mjordan: 
> build.mak:2: /srv/bamboo/xml-data/build-dir/AST-ATRUNKFULLBUILD3-C632BB/asterisk/res/pjproject/version.mak: No such file or directory
> make[2]: *** No rule to make target `/srv/bamboo/xml-data/build-dir/AST-ATRUNKFULLBUILD3-C632BB/asterisk/res/pjproject/version.mak'.  Stop.
> make[1]: *** [clean] Error 2
> make: *** [res-dist-clean] Error 2
> mjordan at asterisk-testsuite-32-centos:/srv/bamboo/xml-data/build-dir/AST-ATRUNKUNIT3-C632UT/asterisk$ 
> {noformat}



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



More information about the asterisk-bugs mailing list