python/python3-pydantic-core: Build fixes.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
fourtysixandtwo 2024-01-02 15:45:04 -07:00 committed by Willy Sudiarto Raharjo
parent 1204f057b7
commit fb2fa9d122
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
2 changed files with 6 additions and 3 deletions

View File

@ -5,7 +5,7 @@
# installed. It is only needed if you are upgrading the version and
# need new vendored rust libs.
#
# create $PRGNAM-vendored-sources-$VERSION-$BUILD.tar.xz
# create $PRGNAM-vendored-sources-$VERSION-$VSBUILD.tar.xz
# requires network access, but does not require root privilege.
# requires that $PRGNAM's REQUIRES need to be installed first

View File

@ -2,7 +2,7 @@
# Slackware build script for python3-pydantic-core
# Copyright 2023 fourtysixandtwo <fourtysixandtwo@sliderr.net>
# Copyright 2023-2024 fourtysixandtwo <fourtysixandtwo@sliderr.net>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -22,6 +22,8 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# 20240102 46and2: Use VSBUILD for vendored sources
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=python3-pydantic-core
@ -30,6 +32,7 @@ VERSION=${VERSION:-2.14.6}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
VSBUILD=${VSBUILD:-1}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@ -72,7 +75,7 @@ mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $SRCNAM-$VERSION
tar xvf $CWD/$SRCNAM-$VERSION.tar.?z
tar xvf $CWD/$SRCNAM-vendored-sources-$VERSION-$BUILD.tar.?z
tar xvf $CWD/$SRCNAM-vendored-sources-$VERSION-$VSBUILD.tar.?z
cd $SRCNAM-$VERSION
chown -R root:root .
find -L . \