Hello there.
I'm trying to build some packages with pkgsrc.
I was happy to see everything was working fine until I understood that instead of using the pkgsrc-2016Q4 from pkgsrc repo I had to use the joyent/release/2016Q4 from pkgsrc-legacy repos to get all updates.
My problem here is I got stuck with the bootstrap.
It complains with that message Binary packages not supported during bootstrap => https://github.com/joyent/pkgsrc-legacy/blob/f6760ab5a4616e0845515ed737727db7d6dfb766/pkgtools/pkg_install/files/info/perform.c#L342.
Trying to dig in the commits did not helped me (I also don't know much about pkgsrc for now).
I have no idea how to fix this, so expect someone can give a hint for that.
My OS is archlinux, kernel 4.14.24-1-lts.
Here is the docker file I used to init my packages builder image:
FROM debian:9-slim
# Defines pkgsrc version
ARG PKG_VERSION
RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get -y upgrade && \
DEBIAN_FRONTEND=noninteractive apt-get -y autoremove && \
DEBIAN_FRONTEND=noninteractive apt-get install -y build-essential git
ENV SH /bin/bash
ENV PATH $PATH:/usr/pkg/bin:/usr/pkg/sbin
ENV PKG_VERSION $PKG_VERSION
ENV PKG_BOOTSTRAP_ARCHIVE pkgsrc-bootstrap-x86_64-$PKG_VERSION.tar.gz
ENV PKGSRC_PATH /data/pkgsrc
# Fix for pkgsrc fetch error Unsupported URL scheme `https' (see xz source fetching fix below)
# This blocks https sources fetching which are not anymore in the main BSD ftp repos
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y curl
ENV FETCH_CMD=curl
# Init pkgsrc and pkgin
RUN mkdir -p /data && \
cd /data && \
git clone --depth 1 -b joyent/release/$PKG_VERSION https://github.com/joyent/pkgsrc-legacy.git pkgsrc
# && \
# Fix missing source code
# sed -i 's~http://tukaani.org/xz/~https://github.com/xz-mirror/xz/releases/download/v5.2.2/~' $PKGSRC_PATH/archivers/xz/Makefile && \
# # Now continue with common procedure
# cd $PKGSRC_PATH/bootstrap && \
# ./bootstrap && \
# cd $PKGSRC_PATH/pkgtools/pkgin && \
# bmake && \
# bmake install
# docker build --build-arg PKG_VERSION=2016Q4 -t pkgsrc:2016Q4-release .
# docker run -it --rm pkgsrc:2016Q4-release bash
# cd /data/pkgsrc/bootstrap && ./bootstrap
Eventually do not take care of the xz sources fix I made, I did it for the pkgsrc-2016Q4 from pkgsrc repo and I wasn't able to check for the pkgsrc-legacy repo.
Thanks in advance,
Thomas.
Hello there.
I'm trying to build some packages with pkgsrc.
I was happy to see everything was working fine until I understood that instead of using the
pkgsrc-2016Q4from pkgsrc repo I had to use thejoyent/release/2016Q4from pkgsrc-legacy repos to get all updates.My problem here is I got stuck with the bootstrap.
It complains with that message
Binary packages not supported during bootstrap=> https://github.com/joyent/pkgsrc-legacy/blob/f6760ab5a4616e0845515ed737727db7d6dfb766/pkgtools/pkg_install/files/info/perform.c#L342.Trying to dig in the commits did not helped me (I also don't know much about pkgsrc for now).
I have no idea how to fix this, so expect someone can give a hint for that.
My OS is archlinux, kernel 4.14.24-1-lts.
Here is the docker file I used to init my packages builder image:
Eventually do not take care of the xz sources fix I made, I did it for the pkgsrc-2016Q4 from pkgsrc repo and I wasn't able to check for the pkgsrc-legacy repo.
Thanks in advance,
Thomas.