wok-current annotate libboost-dev/receipt @ rev 25725
Patch openssh CVE-2024-6387
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Mon Jul 01 15:09:44 2024 +0000 (3 months ago) |
parents | a23978bfa665 |
children |
rev | line source |
---|---|
pascal@1136 | 1 # SliTaz package receipt. |
pascal@1136 | 2 |
pascal@1136 | 3 # Boost is a set of two types of libraries. Most of them are just |
pascal@1136 | 4 # headers with inline functions, these are included in this package |
pascal@1136 | 5 # named libboost-dev. Some few set of libraries require build and |
pascal@1136 | 6 # installation steps. These will be relocated and have their own two |
pascal@1136 | 7 # packages : libboost-name and libboost-name-dev. |
pascal@1136 | 8 |
pascal@1136 | 9 PACKAGE="libboost-dev" |
shann@25634 | 10 VERSION="1.78.0" |
pascal@1136 | 11 CATEGORY="development" |
pascal@1136 | 12 SHORT_DESC="Free peer-reviewed portable C++ source libraries." |
pascal@1136 | 13 MAINTAINER="chadi.elahmad@gmail.com" |
pascal@15472 | 14 LICENSE="MIT" |
Hans-G?nter@21149 | 15 WEB_SITE="https://www.boost.org/" |
pascal@1136 | 16 |
Hans-G?nter@21149 | 17 # We have to do it this way because of the underscores |
Hans-G?nter@21149 | 18 # to get a package with the slitaz version numbering |
Hans-G?nter@21149 | 19 SOURCE="boost" |
shann@25634 | 20 WGET_SOURCE="boost_1_78_0" |
pascal@1136 | 21 TARBALL="$WGET_SOURCE.tar.bz2" |
Hans-G?nter@21149 | 22 #EXTRA_SOURCE_FILES="boost_changeset_75540.u" |
rcx@3702 | 23 WGET_URL="$SF_MIRROR/$SOURCE/$TARBALL" |
pascal@1136 | 24 |
Hans-G?nter@21149 | 25 DEPENDS="gcc-lib-base libboost-chrono-dev libboost-date-time-dev \ |
Hans-G?nter@21149 | 26 libboost-math-dev" |
Hans-G?nter@21149 | 27 BUILD_DEPENDS="bzip2-dev expat expat-dev python python-dev zlib-dev" |
pascal@1136 | 28 RELOCATE_LIBS="{ date_time filesystem graph iostreams \ |
rcx@3702 | 29 math program_options python regex serialization \ |
rcx@3702 | 30 signal system test thread tr1 wave }" |
pascal@1136 | 31 |
pascal@1136 | 32 |
pascal@24411 | 33 # What is the latest version available today? |
pascal@24411 | 34 current_version() |
pascal@24411 | 35 { |
pascal@24411 | 36 wget -O - https://sourceforge.net/projects/boost/files/boost/ 2>/dev/null | \ |
pascal@24411 | 37 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24411 | 38 sed '/scope="row/!d;s|.*/boost/||;s|/.*||;q' |
pascal@24411 | 39 } |
pascal@24411 | 40 |
pascal@1136 | 41 # Rules to configure and make the package. |
pascal@1136 | 42 # Uses boost:build building tool for the compilation: |
pascal@1136 | 43 # Doesn't use DESTDIR. |
pascal@1136 | 44 # Doesn't recognize the $CONFIGURE_ARGS, gives an error back |
pascal@1136 | 45 # Have to add some params to get static libs compiled too |
pascal@1136 | 46 compile_rules() |
pascal@1136 | 47 { |
rcx@3702 | 48 # Determine if TOOLPREFIX has been defined in tazwok.conf as it should |
rcx@3702 | 49 if [ -z "$TOOLPREFIX" ] ; then |
rcx@3702 | 50 # Provide a default TOOLPREFIX value |
pascal@13878 | 51 TOOLPREFIX=$ARCH-pc-linux-gnu- |
rcx@3702 | 52 fi |
rcx@3702 | 53 |
Hans-G?nter@21149 | 54 # [ -s $SOURCES_REPOSITORY/boost_changeset_75540.u ] || |
Hans-G?nter@21149 | 55 # wget -O $SOURCES_REPOSITORY/boost_changeset_75540.u --no-check-certificate \ |
Hans-G?nter@21149 | 56 # 'https://svn.boost.org/trac/boost/changeset/75540?format=diff&new=75540' |
Hans-G?nter@21149 | 57 # patch -p2 < $SOURCES_REPOSITORY/boost_changeset_75540.u || return 1 |
Hans-G?nter@21149 | 58 |
Hans-G?nter@21149 | 59 ./bootstrap.sh \ |
Hans-G?nter@21149 | 60 --prefix=$DESTDIR/usr \ |
Hans-G?nter@21149 | 61 --exec-prefix=$DESTDIR/usr \ |
Hans-G?nter@21149 | 62 --libdir=$DESTDIR/usr/lib \ |
Hans-G?nter@21149 | 63 --includedir=$DESTDIR/usr/include \ |
shann@25634 | 64 --with-toolset=gcc \ |
rcx@3702 | 65 --without-icu && |
rcx@3702 | 66 EXPAT_INCLUDE=/usr/include \ |
rcx@3702 | 67 EXPAT_LIBPATH=/usr/lib \ |
shann@25634 | 68 ./b2 \ |
Hans-G?nter@21149 | 69 --prefix=$DESTDIR/usr \ |
Hans-G?nter@21149 | 70 --exec-prefix=$DESTDIR/usr \ |
Hans-G?nter@21149 | 71 --libdir=$DESTDIR/usr/lib \ |
Hans-G?nter@21149 | 72 --includedir=$DESTDIR/usr/include \ |
Hans-G?nter@21149 | 73 --build-type=minimal \ |
rcx@3702 | 74 install |
rcx@3702 | 75 |
pascal@1136 | 76 # create the missing links to the shared libs |
gokhlayeh@8305 | 77 cd $DESTDIR/usr/lib |
pascal@14338 | 78 #for i in `ls *-mt.so`; do |
pascal@14338 | 79 # boost_tmp=`echo $i | sed s/-gcc.*-mt//g` |
pascal@14338 | 80 # boost_tmp_mt=`echo $i | sed s/-gcc.*-mt/-mt/g` |
pascal@14338 | 81 # ln -s $i $boost_tmp |
pascal@14338 | 82 # ln -s $i $boost_tmp_mt |
pascal@14338 | 83 #done |
pascal@14338 | 84 #for i in `ls *-mt.a`; do |
pascal@14338 | 85 # boost_tmp=`echo $i | sed s/-gcc.*-mt//g` |
pascal@14338 | 86 # boost_tmp_mt=`echo $i | sed s/-gcc.*-mt/-mt/g` |
pascal@14338 | 87 # ln -s $i $boost_tmp |
pascal@14338 | 88 # ln -s $i $boost_tmp_mt |
pascal@14338 | 89 #done |
pascal@1136 | 90 } |
pascal@1136 | 91 |
pascal@1136 | 92 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1136 | 93 genpkg_rules() |
pascal@1136 | 94 { |
pascal@1136 | 95 mkdir -p $fs/usr |
Hans-G?nter@21149 | 96 |
Hans-G?nter@21149 | 97 cp -a $install/usr/lib $fs/usr |
Hans-G?nter@21149 | 98 cp -a $install/usr/include $fs/usr |
Hans-G?nter@21149 | 99 |
pascal@1136 | 100 for i in $RELOCATE_LIBS; do |
gokhlayeh@8305 | 101 rm -f $fs/usr/lib/*$i* |
gokhlayeh@8305 | 102 rm -r -f $fs/usr/include/boost/*$i* |
pascal@1136 | 103 done |
Hans-G?nter@21149 | 104 |
al@18514 | 105 # libboost-chrono{-dev} |
al@18514 | 106 rm $fs/usr/lib/libboost_chrono* |
al@18514 | 107 rm $fs/usr/include/boost/chrono* |
al@18514 | 108 rm -r $fs/usr/include/boost/chrono |
shann@25629 | 109 |
shann@25629 | 110 # Ensure remove .la files |
shann@25629 | 111 find $fs -name "*.la" -delete |
pascal@1136 | 112 } |