• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/asterisk/0003-configure-fix-detection-of-libcrypt.patch
Yann E. MORINYann E. MORIN committed 05e306d8d3309 Sep 2017
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
From 8996503f6c55e55f326ab11c18278954ad7abaf3 Mon Sep 17 00:00:00 2001
2
From: "Yann E. MORIN" <yann.morin.1998@free.fr>
3
Date: Tue, 27 Dec 2016 11:21:57 +0100
4
Subject: [PATCH] configure: fix detection of libcrypt
5
​
6
The crypt() function is searched in two locations: -lcrypt and the
7
standard C library.
8
​
9
The result of the former is stored in the LIBCRYPT 'scheme' while that
10
of the latter is stored in the 'SYSCRYPT' scheme.
11
​
12
However, the check for mandatory modules looks at the CRYPT 'scheme',
13
and thus concludes that crypt is missing when it was successfully found.
14
​
15
Fix that by also storing the result of either check in the 'CRYPT'
16
scheme.
17
​
18
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
19
---
20
 configure    | 2 ++
21
 configure.ac | 2 ++
22
 2 files changed, 4 insertions(+)
23
​
24
diff --git a/configure.ac b/configure.ac
25
index 121dd93..d459ff5 100644
26
--- a/configure.ac
27
+++ b/configure.ac
28
@@ -2406,10 +2406,12 @@ AC_CHECK_FUNC([crypt], [SYSCRYPT=true], [SYSCRYPT=""])
29
 if test "x$LIBCRYPT_LIB" != "x" ; then
30
     CRYPT_LIB="$LIBCRYPT_LIB"
31
     CRYPT_INCLUDE="$LIBCRYPT_INCLUDE"
32
+    PBX_CRYPT=1
33
     AC_DEFINE([HAVE_CRYPT], [1], [Define to 1 if you have the 'crypt' function.])
34
 elif test "x$SYSCRYPT" != "x" ; then
35
     CRYPT_LIB=""
36
     CRYPT_INCLUDE=""
37
+    PBX_CRYPT=1
38
     AC_DEFINE([HAVE_CRYPT], [1], [Define to 1 if you have the 'crypt' function.])
39
 fi
40
 
41
-- 
42
2.7.4
43
​
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.