Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
asterisk
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Voice
asterisk
Commits
6d3c1a4a
Commit
6d3c1a4a
authored
8 years ago
by
Joshua Colp
Committed by
Gerrit Code Review
8 years ago
Browse files
Options
Downloads
Plain Diff
Merge "build: Warn if asterisk is installed in both 32 and 64 bit sys dirs"
parents
5e5aff04
4692a32e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Makefile
+35
-0
35 additions, 0 deletions
Makefile
main/Makefile
+2
-10
2 additions, 10 deletions
main/Makefile
with
37 additions
and
10 deletions
Makefile
+
35
−
0
View file @
6d3c1a4a
...
...
@@ -652,6 +652,37 @@ ifneq ($(LDCONFIG),)
fi
endif
ifeq
($(and $(findstring 64,$(HOST_CPU)),$(findstring lib64,$(DESTDIR)$(ASTLIBDIR))),lib64)
_oldlibdir
=
$(
subst lib64,lib,
$(
DESTDIR
)$(
ASTLIBDIR
))
check-old-libdir
:
@
oldfiles
=
`
find
"
$(
_oldlibdir
)
"
-name
libasterisk
*
-print
-quit
-o
\(
-path
*
asterisk/modules/
*
-a
-name
*
.so
\)
-print
-quit
`
;
\
if
[
"x
$$
oldfiles"
!=
"x"
]
;
then
\
echo
" WARNING WARNING WARNING"
;
\
echo
""
;
\
echo
" Installation is to: "
;
\
echo
"
$(
DESTDIR
)$(
ASTLIBDIR
)
"
;
\
echo
" but there are asterisk shared libraries in: "
;
\
echo
"
$(
_oldlibdir
)
"
;
\
echo
" or"
;
\
echo
"
$(
_oldlibdir
)
/asterisk/modules"
;
\
echo
""
;
\
echo
" It is unlikely that asterisk will start."
;
\
echo
""
;
\
echo
" You should do one of the following..."
;
\
echo
" * Run 'make uninstall' to remove the incorrect libraries"
;
\
echo
" then run 'make install' again."
;
\
echo
" * Manually remove the libraries from"
;
\
echo
"
$(
_oldlibdir
)
"
;
\
echo
" and run 'ldconfig' to rebuild the linker cache."
;
\
echo
""
;
\
echo
" WARNING WARNING WARNING"
;
\
fi
else
check-old-libdir
:
endif
badshell
:
ifneq
($(filter ~%,$(DESTDIR)),)
@
echo
"Your shell doesn't do ~ expansion when expected (specifically, when doing
\"
make install DESTDIR=~/path
\"
)."
...
...
@@ -691,6 +722,7 @@ install: badshell bininstall datafiles
@
echo
" +-------------------------------------------+"
@$(
MAKE
)
-s
oldmodcheck
@$(
MAKE
)
-s
ld-cache-update
@$(
MAKE
)
-s
check-old-libdir
isntall
:
install
...
...
@@ -911,6 +943,7 @@ main-binuninstall:
_uninstall
:
$(SUBDIRS_UNINSTALL) main-binuninstall
rm
-f
"
$(
DESTDIR
)$(
ASTMODDIR
)
/"
*
rm
-f
"
$(
subst lib64,lib,
$(
DESTDIR
)$(
ASTMODDIR
))
/"
*
rm
-f
"
$(
DESTDIR
)$(
ASTSBINDIR
)
/astgenkey"
rm
-f
"
$(
DESTDIR
)$(
ASTSBINDIR
)
/autosupport"
rm
-rf
"
$(
DESTDIR
)$(
ASTHEADERDIR
)
"
...
...
@@ -943,6 +976,7 @@ uninstall: _uninstall
uninstall-all
:
_uninstall
rm
-rf
"
$(
DESTDIR
)$(
ASTMODDIR
)
"
rm
-rf
"
$(
subst lib64,lib,
$(
DESTDIR
)$(
ASTMODDIR
))
"
rm
-rf
"
$(
DESTDIR
)$(
ASTVARLIBDIR
)
"
rm
-rf
"
$(
DESTDIR
)$(
ASTDATADIR
)
"
rm
-rf
"
$(
DESTDIR
)$(
ASTSPOOLDIR
)
"
...
...
@@ -1057,6 +1091,7 @@ check-alembic: makeopts
.PHONY
:
basic-pbx
.PHONY
:
check-alembic
.PHONY
:
ld-cache-update
.PHONY
:
check-old-libdir
.PHONY
:
$(SUBDIRS_INSTALL)
.PHONY
:
$(SUBDIRS_DIST_CLEAN)
.PHONY
:
$(SUBDIRS_CLEAN)
...
...
This diff is collapsed.
Click to expand it.
main/Makefile
+
2
−
10
View file @
6d3c1a4a
...
...
@@ -359,16 +359,8 @@ endif
binuninstall
:
rm
-f
"
$(
DESTDIR
)$(
ASTSBINDIR
)
/
$(
MAIN_TGT
)
"
rm
-f
"
$(
DESTDIR
)$(
ASTSBINDIR
)
/rasterisk"
ifneq
($(ASTSSL_LIB).$(ASTSSL_SO_VERSION),.)
# ASTSSL_SO_VERSION may not exist on Darwin
rm -f "$(DESTDIR)$(ASTLIBDIR)/$(ASTSSL_LIB).$(ASTSSL_SO_VERSION)" ||
:
rm
-f
"
$(
DESTDIR
)$(
ASTLIBDIR
)
/
$(
ASTSSL_LIB
)
"
endif
ifneq
($(ASTPJ_LIB).$(ASTPJ_SO_VERSION),.)
# ASTSSL_SO_VERSION may not exist on Darwin
rm -f "$(DESTDIR)$(ASTLIBDIR)/$(ASTPJ_LIB).$(ASTPJ_SO_VERSION)" ||
:
rm
-f
"
$(
DESTDIR
)$(
ASTLIBDIR
)
/
$(
ASTPJ_LIB
)
"
endif
rm
-f
"
$(
DESTDIR
)$(
ASTLIBDIR
)
/libasterisk"
*
||
:
rm
-f
"
$(
subst lib64,lib,
$(
DESTDIR
)$(
ASTLIBDIR
))
/libasterisk"
*
||
:
clean
::
rm
-f
asterisk libasteriskssl.o
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment