-
Notifications
You must be signed in to change notification settings - Fork 359
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add terminfo-db to FreeBSD package requirements #7588
Changes from all commits
099f8f8
c99d3fc
51c137b
71ec321
6e8077a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,9 +7,9 @@ usage() | |
echo "Usage: $0 [BuildArch] [CodeName] [lldbx.y] [--skipunmount] --rootfsdir <directory>]" | ||
echo "BuildArch can be: arm(default), armel, arm64, x86" | ||
echo "CodeName - optional, Code name for Linux, can be: trusty, xenial(default), zesty, bionic, alpine, alpine3.9 or alpine3.13. If BuildArch is armel, LinuxCodeName is jessie(default) or tizen." | ||
echo " for FreeBSD can be: freebsd11 or freebsd12." | ||
echo " for FreeBSD can be: freebsd11, freebsd12, freebsd13" | ||
echo " for illumos can be: illumos." | ||
echo "lldbx.y - optional, LLDB version, can be: lldb3.9(default), lldb4.0, lldb5.0, lldb6.0 no-lldb. Ignored for alpine and FReeBSD" | ||
echo "lldbx.y - optional, LLDB version, can be: lldb3.9(default), lldb4.0, lldb5.0, lldb6.0 no-lldb. Ignored for alpine and FreeBSD" | ||
echo "--skipunmount - optional, will skip the unmount of rootfs folder." | ||
echo "--use-mirror - optional, use mirror URL to fetch resources, when available." | ||
exit 1 | ||
|
@@ -60,13 +60,15 @@ __AlpinePackages+=" krb5-dev" | |
__AlpinePackages+=" openssl-dev" | ||
__AlpinePackages+=" zlib-dev" | ||
|
||
__FreeBSDBase="12.1-RELEASE" | ||
__FreeBSDBase="12.2-RELEASE" | ||
__FreeBSDPkg="1.12.0" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We need to not define |
||
__FreeBSDABI="12" | ||
__FreeBSDPackages="libunwind" | ||
__FreeBSDPackages+=" icu" | ||
__FreeBSDPackages+=" libinotify" | ||
__FreeBSDPackages+=" lttng-ust" | ||
__FreeBSDPackages+=" krb5" | ||
__FreeBSDPackages+=" terminfo-db" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Will this also work with If so, one option would be to first remove There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yes, terminfo-db is found in the pkg repo for FreeBSD 11, 12, and 13. |
||
|
||
__IllumosPackages="icu-64.2nb2" | ||
__IllumosPackages+=" mit-krb5-1.16.2nb4" | ||
|
@@ -208,12 +210,20 @@ while :; do | |
;; | ||
freebsd11) | ||
__FreeBSDBase="11.3-RELEASE" | ||
__FreeBSDABI="11" | ||
;& | ||
freebsd12) | ||
__CodeName=freebsd | ||
__BuildArch=x64 | ||
__SkipUnmount=1 | ||
;; | ||
freebsd13) | ||
__CodeName=freebsd | ||
__FreeBSDBase="13.0-RELEASE" | ||
__FreeBSDABI="13" | ||
__BuildArch=x64 | ||
__SkipUnmount=1 | ||
;; | ||
illumos) | ||
__CodeName=illumos | ||
__BuildArch=x64 | ||
|
@@ -291,17 +301,17 @@ if [[ "$__CodeName" == "alpine" ]]; then | |
rm -r $__ApkToolsDir | ||
elif [[ "$__CodeName" == "freebsd" ]]; then | ||
mkdir -p $__RootfsDir/usr/local/etc | ||
JOBS="$(getconf _NPROCESSORS_ONLN)" | ||
wget -O - https://download.freebsd.org/ftp/releases/amd64/${__FreeBSDBase}/base.txz | tar -C $__RootfsDir -Jxf - ./lib ./usr/lib ./usr/libdata ./usr/include ./usr/share/keys ./etc ./bin/freebsd-version | ||
# For now, ask for 11 ABI even on 12. This can be revisited later. | ||
echo "ABI = \"FreeBSD:11:amd64\"; FINGERPRINTS = \"${__RootfsDir}/usr/share/keys\"; REPOS_DIR = [\"${__RootfsDir}/etc/pkg\"]; REPO_AUTOUPDATE = NO; RUN_SCRIPTS = NO;" > ${__RootfsDir}/usr/local/etc/pkg.conf | ||
echo "ABI = \"FreeBSD:${__FreeBSDABI}:amd64\"; FINGERPRINTS = \"${__RootfsDir}/usr/share/keys\"; REPOS_DIR = [\"${__RootfsDir}/etc/pkg\"]; REPO_AUTOUPDATE = NO; RUN_SCRIPTS = NO;" > ${__RootfsDir}/usr/local/etc/pkg.conf | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These settings are not aligned with pkgng documentation at this point. |
||
echo "FreeBSD: { url: "pkg+http://pkg.FreeBSD.org/\${ABI}/quarterly", mirror_type: \"srv\", signature_type: \"fingerprints\", fingerprints: \"${__RootfsDir}/usr/share/keys/pkg\", enabled: yes }" > ${__RootfsDir}/etc/pkg/FreeBSD.conf | ||
mkdir -p $__RootfsDir/tmp | ||
# get and build package manager | ||
wget -O - https://github.com/freebsd/pkg/archive/${__FreeBSDPkg}.tar.gz | tar -C $__RootfsDir/tmp -zxf - | ||
cd $__RootfsDir/tmp/pkg-${__FreeBSDPkg} | ||
# needed for install to succeed | ||
mkdir -p $__RootfsDir/host/etc | ||
./autogen.sh && ./configure --prefix=$__RootfsDir/host && make && make install | ||
./autogen.sh && ./configure --prefix=$__RootfsDir/host && make -j "$JOBS" && make install | ||
rm -rf $__RootfsDir/tmp/pkg-${__FreeBSDPkg} | ||
# install packages we need. | ||
INSTALL_AS_USER=$(whoami) $__RootfsDir/host/sbin/pkg -r $__RootfsDir -C $__RootfsDir/usr/local/etc/pkg.conf update | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not fully true for 12-STABLE and 13-STABLE. There are known issues with base clang, so lldb from ports gets pulled in for dependencies at the absolute minimum.