xbps-src: remove noarch
This commit is contained in:
parent
06d3472acd
commit
cb804fbf85
9 changed files with 11 additions and 33 deletions
|
@ -733,7 +733,7 @@ Examples:
|
|||
# Default value (all arches)
|
||||
archs="*"
|
||||
```
|
||||
Do not use noarch. It is deprecated and being removed.
|
||||
A special value `noarch` used to be available, but has since been removed.
|
||||
|
||||
<a id="explain_depends"></a>
|
||||
#### About the many types of `depends` variables
|
||||
|
|
|
@ -104,14 +104,12 @@ hook() {
|
|||
local arch= binpkg= repo= _pkgver= _desc= _pkgn= _pkgv= _provides= \
|
||||
_replaces= _reverts= f= found_dbg_subpkg=
|
||||
|
||||
if [ "${archs// /}" = "noarch" ]; then
|
||||
arch=noarch
|
||||
elif [ -n "$XBPS_TARGET_MACHINE" ]; then
|
||||
if [ -n "$XBPS_TARGET_MACHINE" ]; then
|
||||
arch=$XBPS_TARGET_MACHINE
|
||||
else
|
||||
arch=$XBPS_MACHINE
|
||||
fi
|
||||
if [ "${archs// /}" != "noarch" -a -z "$XBPS_CROSS_BUILD" -a -n "$XBPS_ARCH" -a "$XBPS_ARCH" != "$XBPS_TARGET_MACHINE" ]; then
|
||||
if [ -z "$XBPS_CROSS_BUILD" -a -n "$XBPS_ARCH" -a "$XBPS_ARCH" != "$XBPS_TARGET_MACHINE" ]; then
|
||||
arch=${XBPS_ARCH}
|
||||
fi
|
||||
|
||||
|
|
|
@ -59,7 +59,7 @@ create_debug_pkg() {
|
|||
hook() {
|
||||
local fname= x= f= _soname= STRIPCMD=
|
||||
|
||||
if [ -n "$nostrip" -o "${archs// /}" = "noarch" ]; then
|
||||
if [ -n "$nostrip" ]; then
|
||||
return 0
|
||||
fi
|
||||
|
||||
|
|
|
@ -13,14 +13,12 @@ registerpkg() {
|
|||
hook() {
|
||||
local arch= binpkg= pkgdir=
|
||||
|
||||
if [ "${archs// /}" = "noarch" ]; then
|
||||
arch=noarch
|
||||
elif [ -n "$XBPS_TARGET_MACHINE" ]; then
|
||||
if [ -n "$XBPS_TARGET_MACHINE" ]; then
|
||||
arch=$XBPS_TARGET_MACHINE
|
||||
else
|
||||
arch=$XBPS_MACHINE
|
||||
fi
|
||||
if [ "${archs// /}" != "noarch" -a -z "$XBPS_CROSS_BUILD" -a -n "$XBPS_ARCH" -a "$XBPS_ARCH" != "$XBPS_TARGET_MACHINE" ]; then
|
||||
if [ -z "$XBPS_CROSS_BUILD" -a -n "$XBPS_ARCH" -a "$XBPS_ARCH" != "$XBPS_TARGET_MACHINE" ]; then
|
||||
arch=${XBPS_ARCH}
|
||||
fi
|
||||
if [ -n "$repository" ]; then
|
||||
|
|
|
@ -56,7 +56,7 @@ hook() {
|
|||
|
||||
mapshlibs=$XBPS_COMMONDIR/shlibs
|
||||
|
||||
if [ "${archs// /}" = "noarch" -o -n "$noverifyrdeps" ]; then
|
||||
if [ -n "$noverifyrdeps" ]; then
|
||||
store_pkgdestdir_rundeps
|
||||
return 0
|
||||
fi
|
||||
|
|
|
@ -20,10 +20,6 @@ hook() {
|
|||
if [ "$XBPS_TARGET_MACHINE" != "i686" ]; then
|
||||
return
|
||||
fi
|
||||
# Ignore noarch pkgs.
|
||||
if [ "${archs// /}" = "noarch" ]; then
|
||||
return
|
||||
fi
|
||||
if [ -z "$lib32mode" ]; then
|
||||
# Library mode, copy only relevant files to new destdir.
|
||||
#
|
||||
|
@ -88,7 +84,7 @@ hook() {
|
|||
_deps="$(<${PKGDESTDIR}/rdeps)"
|
||||
fi
|
||||
for f in ${_deps}; do
|
||||
unset found pkgn pkgv _arch _shprovides
|
||||
unset found pkgn pkgv _shprovides
|
||||
|
||||
pkgn="$($XBPS_UHELPER_CMD getpkgdepname $f)"
|
||||
if [ -z "${pkgn}" ]; then
|
||||
|
@ -106,13 +102,6 @@ hook() {
|
|||
printf "${pkgn}-32bit${pkgv} " >> ${destdir32}/rdeps
|
||||
continue
|
||||
fi
|
||||
# If dependency is noarch do not change it to 32bit.
|
||||
_arch=$($XBPS_QUERY_CMD -R --property=architecture "$f")
|
||||
if [ "${_arch}" = "noarch" ]; then
|
||||
echo " RDEP: $f -> ${pkgn}${pkgv} (noarch)"
|
||||
printf "${pkgn}${pkgv} " >> ${destdir32}/rdeps
|
||||
continue
|
||||
fi
|
||||
# If dependency does not have "shlib-provides" do not
|
||||
# change it to 32bit.
|
||||
for x in ${subpackages}; do
|
||||
|
|
|
@ -45,7 +45,7 @@ collect_sonames() {
|
|||
hook() {
|
||||
local _destdir32=${XBPS_DESTDIR}/${pkgname}-32bit-${version}
|
||||
|
||||
if [ -z "$shlib_provides" -a "${archs// /}" = "noarch" -o -n "$noshlibprovides" ]; then
|
||||
if [ -n "$noshlibprovides" ]; then
|
||||
return 0
|
||||
fi
|
||||
|
||||
|
|
|
@ -328,7 +328,7 @@ get_subpkgs() {
|
|||
|
||||
setup_pkg() {
|
||||
local pkg="$1" cross="$2" show_problems="$3"
|
||||
local basepkg val _vars f dbgflags arch extrarepo
|
||||
local basepkg val _vars f dbgflags extrarepo
|
||||
|
||||
[ -z "$pkg" ] && return 1
|
||||
basepkg=${pkg%-32bit}
|
||||
|
@ -469,13 +469,6 @@ setup_pkg() {
|
|||
XBPS_MAKEJOBS=1
|
||||
fi
|
||||
makejobs="-j$XBPS_MAKEJOBS"
|
||||
|
||||
# strip whitespaces to make " noarch " valid too.
|
||||
if [ "${archs// /}" = "noarch" ]; then
|
||||
arch="noarch"
|
||||
else
|
||||
arch="$XBPS_TARGET_MACHINE"
|
||||
fi
|
||||
if [ -n "$XBPS_BINPKG_EXISTS" ]; then
|
||||
local _binpkgver="$($XBPS_QUERY_XCMD -R -ppkgver $pkgver 2>/dev/null)"
|
||||
if [ "$_binpkgver" = "$pkgver" ]; then
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
check_pkg_arch() {
|
||||
local cross="$1" _arch f match nonegation
|
||||
|
||||
if [ -n "$archs" -a "${archs// /}" != "noarch" ]; then
|
||||
if [ -n "$archs" ]; then
|
||||
if [ -n "$cross" ]; then
|
||||
_arch="$XBPS_TARGET_MACHINE"
|
||||
elif [ -n "$XBPS_ARCH" ]; then
|
||||
|
|
Loading…
Reference in a new issue