[РЕШЕНО]Не собирается boost 1.58

в общем нужна именна ента версия пакета.
исправил PKGBUILD boost'a из репы, получился такой:
`--> cat PKGBUILD
# $Id$
# Maintainer:  Bartłomiej Piotrowski <[email protected]>
# Contributor: Ionut Biru <[email protected]>
# Contributor: Stéphane Gaudreault <[email protected]>
# Contributor: kevin <[email protected]>
# Contributor: Giovanni Scafora <[email protected]>
# Contributor: Kritoke <[email protected]>
# Contributor: Luca Roccia <[email protected]>

pkgbase=boost
pkgname=('boost-libs-58' 'boost-58')
pkgver=1.58.0
_boostver=${pkgver//./_}
pkgrel=2
url='http://www.boost.org/'
arch=('i686' 'x86_64')
license=('custom')
makedepends=('icu>=55.1' 'python' 'python2' 'bzip2' 'zlib' 'openmpi')
source=("https://downloads.sourceforge.net/project/${pkgbase}/${pkgbase}/${pkgver}/${pkgbase}_${_boostver}.tar.bz2")
md5sums=('b8839650e61e9c1c0a89f371dd475546')

build() {
   export _stagedir="${srcdir}/stagedir"
   local JOBS="$(sed -e 's/.*\(-j *[0-9]\+\).*/\1/' <<< ${MAKEFLAGS})"

   cd ${pkgbase}_${_boostver}

   ./bootstrap.sh --with-toolset=gcc --with-icu --with-python=/usr/bin/python2

   _bindir="bin.linuxx86"
   [[ "${CARCH}" = "x86_64" ]] && _bindir="bin.linuxx86_64"
   install -Dm755 tools/build/src/engine/$_bindir/b2 "${_stagedir}"/bin/b2

   # Support for OpenMPI
   echo "using mpi ;" >> project-config.jam

   # default "minimal" install: "release link=shared,static
   # runtime-link=shared threading=single,multi"
   # --layout=tagged will add the "-mt" suffix for multithreaded libraries
   # and installs includes in /usr/include/boost.
   # --layout=system no longer adds the -mt suffix for multi-threaded libs.
   # install to ${_stagedir} in preparation for split packaging
   "${_stagedir}"/bin/b2 \
      variant=release \
      debug-symbols=off \
      threading=multi \
      runtime-link=shared \
      link=shared,static \
      toolset=gcc \
      python=2.7 \
      cflags="${CPPFLAGS} ${CFLAGS} -fPIC -O3" \
      cxxflags="${CPPFLAGS} ${CXXFLAGS} -std=c++14 -fPIC -O3" \
      linkflags="${LDFLAGS}" \
      --layout=system \
      ${JOBS} \
      \
      --prefix="${_stagedir}" \
      install

   # because b2 in boost 1.62.0 doesn't seem to respect python parameter, we
   # need another run for liboost_python3.so
#   sed -e '/using python/ s@;@: /usr/include/python${PYTHON_VERSION/3*/${PYTHON_VERSION}m} ;@' \
#      -i bootstrap.sh

   ./bootstrap.sh --with-toolset=gcc --with-icu --with-python=/usr/bin/python3 \
      --with-libraries=python

   "${_stagedir}"/bin/b2 clean
   "${_stagedir}"/bin/b2 \
      variant=release \
      debug-symbols=off \
      threading=multi \
      runtime-link=shared \
      link=shared,static \
      toolset=gcc \
      python=3.6 \
      cflags="${CPPFLAGS} ${CFLAGS} -fPIC -O3" \
      cxxflags="${CPPFLAGS} ${CXXFLAGS} -std=c++14 -fPIC -O3" \
      linkflags="${LDFLAGS}" \
      --layout=system \
      ${JOBS} \
      \
      --prefix="${_stagedir}/python3" \
      --with-python \
      install
}

package_boost-58() {
   pkgdesc='Free peer-reviewed portable C++ source libraries - development headers'
   depends=("boost-libs=${pkgver}")
   optdepends=('python: for python bindings'
               'python2: for python2 bindings')
   options=('staticlibs')

   install -dm755 "${pkgdir}"/usr
   cp -a "${_stagedir}"/{bin,include,share} "${pkgdir}"/usr

   install -d "${pkgdir}"/usr/lib
   cp -a "${_stagedir}"/lib/*.a "${pkgdir}"/usr/lib/

   install -Dm644 "${_stagedir}"/python3/lib/libboost_python3.a \
      "${pkgdir}"/usr/lib/libboost_python3.a

   ln -s /usr/bin/b2 "$pkgdir"/usr/bin/bjam
}

package_boost-libs-58() {
   pkgdesc='Free peer-reviewed portable C++ source libraries - runtime libraries'
   depends=('bzip2' 'zlib' 'icu')
   optdepends=('openmpi: for mpi support')

   # powerdns-recursor keeps being rebuild against outdated boost-libs
   provides=('libboost_context.so')

   install -dm755 "${pkgdir}"/usr
   cp -a "${_stagedir}"/lib "${pkgdir}"/usr
   cp -a "${_stagedir}"/python3/lib/libboost_python3* "${pkgdir}"/usr/lib
   rm "${pkgdir}"/usr/lib/*.a
}

не пойму в чем проблема, в конце пишет:
gcc.compile.c++ bin.v2/libs/wave/build/gcc-7.1.1/release/link-static/threading-multi/cpplexer/re2clex/cpp_re.o
gcc.archive bin.v2/libs/wave/build/gcc-7.1.1/release/link-static/threading-multi/libboost_wave.a
common.copy /home/safff/git/boost/src/stagedir/lib/libboost_wave.a
...failed updating 1 target...
...skipped 2 targets...
...updated 12738 targets...
==> ОШИБКА: Произошел сбой в build().
    Прерывание...

если у когото есть нормальный рабочий PKGBUILD для ентой версии прошу выложить...

П.С. и еще -- где брать билды прошлых версий?
в общем ответ нашел в ответе
конечный рабочий пакеджбилд
# $Id$
# Maintainer: Ionut Biru <[email protected]>
# Contributor: Stéphane Gaudreault <[email protected]>
# Contributor: kevin <[email protected]>
# Contributor: Giovanni Scafora <[email protected]>
# Contributor: Kritoke <[email protected]>
# Contributor: Luca Roccia <[email protected]>

pkgbase=boost
pkgname=('boost-libs58') # 'boost58')
pkgver=1.58.0
_boostver=${pkgver//./_}
pkgrel=3
url='http://www.boost.org/'
arch=('i686' 'x86_64')
license=('custom')
makedepends=('icu>=55.1' 'python' 'python2' 'bzip2' 'zlib' 'openmpi')
source=(https://downloads.sourceforge.net/project/${pkgbase}/${pkgbase}/${pkgver}/${pkgbase}_${_boostver}.tar.bz2
        https://svn.boost.org/trac10/raw-attachment/ticket/10282/py_nonblocking.patch
        boost-1.58.0-Fix-for-bind-void-mf-ambiguous-resolution-error.patch)
sha1sums=('2fc96c1651ac6fe9859b678b165bd78dc211e881'
          '903ed0bfcc9f716127c60f7bf6a7e8c0d2ee9939'
          'f78d9c6a1ca0c073c21a74d01e6f72e3eb1d8d80')

prepare() {
   cd ${pkgbase}_${_boostver}

   patch -p2 -i ../boost-1.58.0-Fix-for-bind-void-mf-ambiguous-resolution-error.patch
   patch -p0 -i ../../py_nonblocking.patch
}

build() {
   export _stagedir="${srcdir}/stagedir"
   export _instdir="boost58"
   local JOBS="$(sed -e 's/.*\(-j *[0-9]\+\).*/\1/' <<< ${MAKEFLAGS})"

   cd ${pkgbase}_${_boostver}

   ./bootstrap.sh --with-toolset=gcc --with-icu --with-python=/usr/bin/python2

   _bindir="bin.linuxx86"
   [[ "${CARCH}" = "x86_64" ]] && _bindir="bin.linuxx86_64"
   install -Dm755 tools/build/src/engine/$_bindir/b2 "${_stagedir}"/bin/b2

   # Add an extra python version. This does not replace anything and python 2.x
   # need to be the default.
   echo "using python : 3.4 : /usr/bin/python3 : /usr/include/python3.4m : /usr/lib ;" \
      >> project-config.jam

   # Support for OpenMPI
   echo "using mpi ;" >> project-config.jam

   # boostbook is needed by quickbook

   # default "minimal" install: "release link=shared,static
   # runtime-link=shared threading=single,multi"
   # --layout=tagged will add the "-mt" suffix for multithreaded libraries
   # and installs includes in /usr/include/boost.
   # --layout=system no longer adds the -mt suffix for multi-threaded libs.
   # install to ${_stagedir} in preparation for split packaging
   "${_stagedir}"/bin/b2 \
      variant=release \
      debug-symbols=off \
      threading=multi \
      runtime-link=shared \
      link=shared,static \
      toolset=gcc \
      python=2.7 \
      cflags="${CPPFLAGS} ${CFLAGS} -O3" linkflags="${LDFLAGS}" \
      --layout=system \
      --prefix="${_stagedir}" \
      --libdir="${_stagedir}"/lib/$_instdir \
      --includedir="${_stagedir}"/include/$_instdir \
      ${JOBS} \
      install
}

#package_boost58() {
#   pkgdesc='Free peer-reviewed portable C++ source libraries - development headers'
#   depends=("boost-libs58=${pkgver}")
#   optdepends=('python: for python bindings'
#               'python2: for python2 bindings'
#               'boost-build: to use boost jam for building your project.')
#   options=('staticlibs')

#   install -dm755 "${pkgdir}"/usr
#   cp -a "${_stagedir}"/include "${pkgdir}"/usr

#   install -d "${pkgdir}"/usr/lib
#   cp -a "${_stagedir}"/lib/*.a "${pkgdir}"/usr/lib/

#   ln -s /usr/bin/b2 "$pkgdir"/usr/bin/bjam
#}

package_boost-libs58() {
   pkgdesc='Free peer-reviewed portable C++ source libraries - runtime libraries'
   depends=('bzip2' 'zlib' 'icu')
   optdepends=('openmpi: for mpi support')

   install -dm755 "${pkgdir}"/usr
   cp -a "${_stagedir}"/{include,lib} "${pkgdir}"/usr
   cp "${pkgdir}"/usr/lib/$_instdir/*.so.$pkgver "${pkgdir}"/usr/lib
 }

апд PKGBUILD (сделал установку в свою директорию без перезаписи стандартных include и lib, и ставятся только файлы из ентих папок, т.к. файлы из bin наверна не нужны прогам для сборок)
safocl
П.С. и еще -- где брать билды прошлых версий?

downgrade в аур ходить не умеет?
Morisson
downgrade в аур ходить не умеет?
чо за downgrade?

мне надо рядом с текущей версией, как енто есть во всех аурских старых пакетах, вместо не надо
понял чо за даунгрейд, но не, мне не надо так, так я бы и сам легко с архива бы восстановил
и еще как сделать, что бы в пакете не создавались ссылки? вроде в билде актуальной версии нет команд создания линков, но они есть в пакете... и если установлю версию старее с линками, надо будет переустанавливать актуальную версию после установки старой
https://git.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD?h=packages/boost&id=f56f9507cbdf5882ca7cfcaaf964456d1548f4cb
A.T.W.A.
https://git.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD?h=packages/boost&id=f56f9507cbdf5882ca7cfcaaf964456d1548f4cb
хммм то чо надо, как самому енто все найтить?
кажется догнал... в суммариес выбирать нужный коммит?
ну и как мне сделать чо бы символьные ссылки не поролись старой версией? чо бы они не создавались в пакете
снова та же ошибка с оригинальным пакейджбилдом... не пойму поч он не может скопировать? в чем проблема?
 
Зарегистрироваться или войдите чтобы оставить сообщение.