common: make XBPS{_TARGET}_NEED_ATOMIC less misleading
This commit is contained in:
parent
5f60b9d3cf
commit
9fb3ffe131
|
@ -292,7 +292,7 @@ get_wordsize() {
|
|||
esac
|
||||
}
|
||||
|
||||
get_need_atomic() {
|
||||
get_no_atomic8() {
|
||||
local arch="${1%-*}"
|
||||
|
||||
case "$arch" in
|
||||
|
@ -373,8 +373,8 @@ setup_pkg() {
|
|||
export XBPS_TARGET_LIBC=$(get_libc ${XBPS_TARGET_MACHINE})
|
||||
export XBPS_WORDSIZE=$(get_wordsize ${XBPS_MACHINE})
|
||||
export XBPS_TARGET_WORDSIZE=$(get_wordsize ${XBPS_TARGET_MACHINE})
|
||||
export XBPS_NEED_ATOMIC=$(get_need_atomic ${XBPS_MACHINE})
|
||||
export XBPS_TARGET_NEED_ATOMIC=$(get_need_atomic ${XBPS_TARGET_MACHINE})
|
||||
export XBPS_NO_ATOMIC8=$(get_no_atomic8 ${XBPS_MACHINE})
|
||||
export XBPS_TARGET_NO_ATOMIC8=$(get_no_atomic8 ${XBPS_TARGET_MACHINE})
|
||||
|
||||
export XBPS_INSTALL_XCMD XBPS_QUERY_XCMD XBPS_RECONFIGURE_XCMD \
|
||||
XBPS_REMOVE_XCMD XBPS_RINDEX_XCMD XBPS_UHELPER_XCMD
|
||||
|
|
|
@ -12,7 +12,7 @@ homepage="https://www.isc.org/downloads/dhcp"
|
|||
distfiles="http://ftp.isc.org/isc/dhcp/${version/P/-P}/dhcp-${version/P/-P}.tar.gz"
|
||||
checksum=1a7ccd64a16e5e68f7b5e0f527fd07240a2892ea53fe245620f4f5f607004521
|
||||
|
||||
if [ "$XBPS_TARGET_NEED_ATOMIC" ]; then
|
||||
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
|
||||
makedepends+=" libatomic-devel"
|
||||
fi
|
||||
|
||||
|
@ -22,7 +22,7 @@ conf_files="/etc/dhcpd.conf"
|
|||
make_dirs="/var/lib/dhcp 0755 root root"
|
||||
|
||||
post_patch() {
|
||||
if [ "$XBPS_TARGET_NEED_ATOMIC" ]; then
|
||||
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
|
||||
vsed -i "/LIBATOMIC=/s/$/-latomic/" configure.ac
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue