[asterisk-bugs] [JIRA] (ASTERISK-29905) bininstall launchd issue on cross-platfrom build

Sergey V. Lobanov (JIRA) noreply at issues.asterisk.org
Tue Feb 8 16:53:06 CST 2022


Sergey V. Lobanov created ASTERISK-29905:
--------------------------------------------

             Summary: bininstall launchd issue on cross-platfrom build
                 Key: ASTERISK-29905
                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-29905
             Project: Asterisk
          Issue Type: Bug
      Security Level: None
          Components: General
    Affects Versions: GIT
         Environment: Build host: macos bigsur arm64 (11.6)
Target host: Linux (OpenWrt GCC Toolchain)
            Reporter: Sergey V. Lobanov
            Severity: Trivial


I'm sorry but I can't send patch via gerrit.asterisk.org because asterisk legal team ignores my license agreement request (I've signed the license 9 days ago). Please review my very simple patch in this ticket. This patch can be applied to master branch (e1b050d8a3c0bf56f822e40a2c14cefc72ea50ef). I will attach the patch file in the first comment.
---

configure script detects /sbin/launchd, but the result of this
check is not used in Makefile (bininstall). Makefile also detects
/sbin/launchd file to decide if it is required to install
safe_asterisk.

configure script correctly detects cross compile build and sets
PBX_LAUNCHD=0

In case of building asterisk on MacOS host for Linux target using
external toolchain (e.g. OpenWrt toolchain), bininstall does not
install safe_asterisk (due to /sbin/launchd detection in Makefile),
but it is required on target (Linux).

This patch adds HAVE_SBIN_LAUNCHD=@PBX_LAUNCHD@ to makeopts.in to
use the result of /sbin/launchd detection from configure script in
Makefile.
Also this patch uses HAVE_SBIN_LAUNCHD in Makefile (bininstall) to
decide if it is required to install safe_asterisk.



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



More information about the asterisk-bugs mailing list