[asterisk-bugs] [JIRA] (ASTERISK-28623) pjsip: PJPROJECT_CONFIGURE_OPTS install location not honored

Richard Frith-Macdonald (JIRA) noreply at issues.asterisk.org
Fri May 15 10:42:25 CDT 2020


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

Richard Frith-Macdonald commented on ASTERISK-28623:
----------------------------------------------------

This is for a standalone setup installed to /home/brains99/Install/ThirdParty

$ ./configure --prefix=/home/brains99/Install/ThirdParty --with-jansson-bundled --with-pjproject-bundled PJPROJECT_CONFIGURE_OPTS=--prefix=/home/brains99/Install/ThirdParty PJPROJECTCFLAGS=-I/home/brains99/Install/ThirdParty/include PJPROJECTCLIBS=-L/home/brains99/Install/ThirdParty/lib CC=gcc CXX=g++ CFLAGS=-I/home/brains99/Install/ThirdParty/include LDFLAGS=-L/home/brains99/Install/ThirdParty/lib
$ make

Clearly, with an unmodified copy of the asterisk release, the PJPROJECT_CONFIGURE_OPTS=--prefix=/home/brains99/Install/ThirdParty had no effect.  To make that configure command work (as in earlier released), I have to edit third-party/pjproject/Makefile.rules
If pjproject is never installed anywhere, I guess overriding --prefix= is not really a bad thing; as long as the location you override it to is one that the install script can write to, or you can be sure that the install script won't check (I don't know how you'd reliably determine that though).

> pjsip: PJPROJECT_CONFIGURE_OPTS install location not honored
> ------------------------------------------------------------
>
>                 Key: ASTERISK-28623
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-28623
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Third-Party/pjproject
>    Affects Versions: 17.0.0
>            Reporter: Richard Frith-Macdonald
>            Assignee: Richard Frith-Macdonald
>            Severity: Minor
>
> This appears to be deliberate (judging by the comment in third-party/pjproject/Makefile.rules), but its not clear to me why this was done.
> The --prefix= option is explicitly overridden in Makefile.rules to set the install location to be /opt/pjproject 
> Doing this prevents building and installing asterisk into a sandbox area (and means you need to build as root, which is generally a bad idea).
> The simple fix is to remove that override in Makefile.rules
> If there's a good reason to have that override, I suggest adding a top-level configure option to be used to override the override :-)



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



More information about the asterisk-bugs mailing list