mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-22 15:58:50 -05:00
makepkg: create package from stripped debug symbols
Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
a5e81f5599
commit
7e8d9dfda2
@ -277,6 +277,8 @@ A normal sync or upgrade will not use its value.
|
|||||||
*debug*;;
|
*debug*;;
|
||||||
Add the user-specified debug flags (DEBUG_CFLAGS, DEBUG_CXXFLAGS) to
|
Add the user-specified debug flags (DEBUG_CFLAGS, DEBUG_CXXFLAGS) to
|
||||||
their counterpart buildflags as specified in linkman:makepkg.conf[5].
|
their counterpart buildflags as specified in linkman:makepkg.conf[5].
|
||||||
|
When used in combination with the `strip' option, a separate package
|
||||||
|
containing the debug symbols is created.
|
||||||
|
|
||||||
build() Function
|
build() Function
|
||||||
----------------
|
----------------
|
||||||
|
@ -177,7 +177,8 @@ Options
|
|||||||
|
|
||||||
*debug*;;
|
*debug*;;
|
||||||
Add the user-specified debug flags as specified in DEBUG_CFLAGS and
|
Add the user-specified debug flags as specified in DEBUG_CFLAGS and
|
||||||
DEBUG_CXXFLAGS to their counterpart buildflags.
|
DEBUG_CXXFLAGS to their counterpart buildflags. Creates a separate
|
||||||
|
package containing the debug symbols with used with `strip'.
|
||||||
|
|
||||||
**INTEGRITY_CHECK=(**check1 ...**)**::
|
**INTEGRITY_CHECK=(**check1 ...**)**::
|
||||||
File integrity checks to use. Multiple checks may be specified; this
|
File integrity checks to use. Multiple checks may be specified; this
|
||||||
|
@ -1864,6 +1864,28 @@ create_package() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
create_debug_package() {
|
||||||
|
# check if a debug package was requested
|
||||||
|
if ! check_option "debug" "y" || ! check_option "strip" "y"; then
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
|
||||||
|
pkgdir="${pkgdir}-debug"
|
||||||
|
|
||||||
|
# check if we have any debug symbols to package
|
||||||
|
if dir_is_empty "$pkgdir/usr/lib/debug"; then
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
|
||||||
|
depends=("$pkgname=$(get_full_version)")
|
||||||
|
pkgdesc="Detached debugging symbols for $pkgname"
|
||||||
|
pkgname=$pkgname-debug
|
||||||
|
|
||||||
|
unset groups optdepends provides conflicts replaces backup install changelog
|
||||||
|
|
||||||
|
create_package
|
||||||
|
}
|
||||||
|
|
||||||
create_signature() {
|
create_signature() {
|
||||||
if [[ $SIGNPKG != 'y' ]]; then
|
if [[ $SIGNPKG != 'y' ]]; then
|
||||||
return
|
return
|
||||||
@ -2332,6 +2354,7 @@ run_split_packaging() {
|
|||||||
run_package $pkgname
|
run_package $pkgname
|
||||||
tidy_install
|
tidy_install
|
||||||
create_package
|
create_package
|
||||||
|
create_debug_package
|
||||||
restore_package_variables
|
restore_package_variables
|
||||||
pkgdir="${pkgdir%/*}"
|
pkgdir="${pkgdir%/*}"
|
||||||
done
|
done
|
||||||
@ -2756,6 +2779,7 @@ if (( INFAKEROOT )); then
|
|||||||
fi
|
fi
|
||||||
tidy_install
|
tidy_install
|
||||||
create_package
|
create_package
|
||||||
|
create_debug_package
|
||||||
pkgdir="${pkgdir%/*}"
|
pkgdir="${pkgdir%/*}"
|
||||||
else
|
else
|
||||||
run_split_packaging
|
run_split_packaging
|
||||||
@ -2895,6 +2919,7 @@ else
|
|||||||
fi
|
fi
|
||||||
tidy_install
|
tidy_install
|
||||||
create_package
|
create_package
|
||||||
|
create_debug_package
|
||||||
pkgdir="${pkgdir%/*}"
|
pkgdir="${pkgdir%/*}"
|
||||||
else
|
else
|
||||||
run_split_packaging
|
run_split_packaging
|
||||||
|
Loading…
Reference in New Issue
Block a user