[asterisk-bugs] [JIRA] (ASTERISK-22480) Embedded pjproject: build.mak contains hardcoded full path to version.mak
George Joseph (JIRA)
noreply at issues.asterisk.org
Wed Aug 2 10:14:07 CDT 2017
[ https://issues.asterisk.org/jira/browse/ASTERISK-22480?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
George Joseph updated ASTERISK-22480:
-------------------------------------
Target Release Version/s: 15.0.0
> 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
> Target Release: 13.13.0, 14.2.0, 15.0.0
>
> 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