[asterisk-bugs] [JIRA] (ASTERISK-28929) pjproject_bundled: Honor --without-pjproject.

Asterisk Team (JIRA) noreply at issues.asterisk.org
Tue Jun 2 05:19:25 CDT 2020


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

Asterisk Team commented on ASTERISK-28929:
------------------------------------------

Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution.

A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report.

Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process].

Please note that once your issue enters an open state it has been accepted. As Asterisk is an open source project there is no guarantee or timeframe on when your issue will be looked into. If you need expedient resolution you will need to find and pay a suitable developer. Asking for an update on your issue will not yield any progress on it and will not result in a response. All updates are posted to the issue when they occur.

> pjproject_bundled: Honor --without-pjproject.
> ---------------------------------------------
>
>                 Key: ASTERISK-28929
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-28929
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Core/BuildSystem, pjproject/pjsip
>    Affects Versions: 16.10.0, 17.4.0
>            Reporter: Alexander Traud
>
> Fixing my own stuff. ASTERISK-28837 is incomplete, the change creates a new issue, and its issue description is wrong actually.
> *First*, the wrong issue description:
> bq. {{./configure --without-pjproject --without-pjproject-bundled}} … errors
> No. I did not test but just read the error message in the file {{third-party/pjproject/configure.m4}}. The code there is different: Only with
> bq. {{./configure --with-pjproject --with-pjproject-bundled}}
> the script {{./configure}} should error. Should, because the check is wrong because {{--with-pjproject}} is not parsed yet—when that test is executed: {{THIRD_PARTY_CONFIGURE()}} is called before {{AST_EXT_LIB_SETUP(\[PJPROJECT\] …)}}.
> *Second*, the new issue:
> bq. {{./configure --without-pjproject --without-pjproject-bundled}}
> gives
> {noformat}
>    [CC] libasteriskpj.c -> libasteriskpj.o
> make[1]: *** No rule to make target 'pjproject.symbols', needed by 'libasteriskpj.exports'.  Stop.
> make: *** [Makefile:387: main] Error 2
> {noformat}because the Makefile still looks for the state of the variable {{PJPROJECT_BUNDLED}} (several times). After the change for ASTERISK-28837, the script {{./configure}} does not download the PJProject. Yehh. However, {{make}} downloads the PJProject. And because of the change for ASTERISK-28837, several build variables are not set, {{make}} enters an unexpected state.
> *Third*, the incomplete part:
> As mentioned already, not only the script {{./configure}} but also {{make}} downloads the PJProject if it was removed why ever.
> *Therefore*,
> bq. {{./configure --without-pjproject --without-pjproject-bundled}}
> worked before ASTERISK-28837. Only
> bq. {{./configure --without-pjproject}}
> did not disable the PJProject also. Consequently, ASTERISK-28837 was not a major but just a minor issue because a workaround existed. ASTERISK-28837 was about a difference between Asterisk 13 and newer branches. In newer branches {{--without-pjproject}} is not enough to disable PJProject, you have to disable the bundled PJProject as well. That is couter-intuitive. Therefore ASTERISK-28837 was valid but the analysis and its change was wrong.
> Just noticed this while testing the latest Asterisk branch. Normally, I am on Asterisk 13 and there {{PJPROJECT_BUNDLED=no}} on default and therefore I did not notice that {{make}} issue. Puh. Sorry.



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



More information about the asterisk-bugs mailing list