Horst Prote (a2461373) at 28 Mar 15:26
New versions 16.8.5, 16.9.3, 16.10.1
Horst Prote (bd7103c5) at 28 Mar 11:03
Cleanup
Horst Prote (25799236) at 20 Mar 22:31
Version 16.10.0
Horst Prote (5f2ecc5d) at 19 Mar 08:51
Switch to EAPI=8
Horst Prote (5f7a2adc) at 07 Mar 15:55
New versions 16.7.7, 16.8.4, 16.9.2
Updating to 16.8.2 from 16.7.0 got this error in the log. It may have existed previously but got lost since the build takes 6+ hours on this hardware.
make[1]: Leaving directory '/mnt/sasbackup/portage/tmp/portage/www-apps/gitlab-16.8.2/work/gitlab-gitaly-16.8.2/_build/deps/git-distribution'
>>> Completed installing www-apps/gitlab-16.8.2 into /mnt/sasbackup/portage/tmp/portage/www-apps/gitlab-16.8.2/image
* Final size of build directory: 2913996 KiB (2.7 GiB)
* Final size of installed tree: 3749784 KiB (3.5 GiB)
* QA Notice: command not found:
*
* -sh: line 2: systemctl: command not found
This system uses openrc for init, which the ebuild packages init scripts for which implies that it is supported.
Horst Prote (3a93a345) at 16 Feb 22:23
Fix #159
But now I discovered that already since 14.0 upstream changed the handling of background migrations and if I understand the doc/update/background_migrations.md
correctly none of the gitlab daemons needs to be running for the "Checking for background migrations ..." and the rails command I use for this check in the ebuild directly queries the database.
So I made a quick test on my GitLab Test-Instance. I stopped all daemons and then ran the rails command from the ebuild: It returned the number of remaining background migrations (0 in this case).
So I decided to remove the
if use systemd; then
...
else
...
fi
again, now doing the "Checking for background migrations ..." regardless of whether gitlab is running or not.
Hm, I thought there should be a "status" command in OpenRC also. Searching the net I found
rc-service --quiet <SERVICE> status
[ -f /opt/gitlab/gitlab/tmp/pids/puma.pid ]
will tell you if web server is running. Alternately if you're looking for the background services there's a sidekiq.pid
in that directory, and a workhorse.pid
.
Horst Prote (8b72d634) at 16 Feb 17:19
Workaround #159
This is caused by the lines
gstate=$(su -l ${GIT_USER} -s /bin/sh -c "
systemctl show --property=ActiveState --value gitlab.target")
if [ "${gstate}" == "active" ]; then
...
in the ebuilds introduced with commit 307740ce "Do BM check only if gitlab.target is active" where I missed to surround this with
if use systemd; then
...
fi
I will add this now and if you - as openrc user - please supply me (no openrc machine at hand) with the analogous openrc command for the systemd systemctl show --property=ActiveState --value gitlab.target
which just means "tell me if all the gitlab services are running" I'll add that for the else
case (i.e. the openrc case) to the if use systemd
.
Background: The "Checking for background migrations ..." fails when gitlab is not active and the former ebuilds than stopped. So one could't (re)build gitlab when it wasn't running.
And for good measure these are the references under /etc/portage
rockpro64 /var/db/repos # grep gitlab -r /etc/portage/
/etc/portage/package.use/zz-autounmask:# required by dev-vcs/gitlab-shell-13.18.0::gitlab
/etc/portage/package.use/zz-autounmask:# required by www-apps/gitlab-13.12.1::gitlab
/etc/portage/package.use/zz-autounmask:# required by www-apps/gitlab (argument)
/etc/portage/package.use/zz-autounmask:>=acct-user/git-0-r2 gitlab
/etc/portage/package.use/zz-autounmask:# required by www-apps/gitlab-14.0.1::gitlab
/etc/portage/package.use/zz-autounmask:>=dev-vcs/gitlab-shell-13.19.0 relative_url
/etc/portage/package.use/zz-autounmask:# required by www-apps/gitlab-13.12.5::gitlab
/etc/portage/package.use/zz-autounmask:=dev-vcs/gitlab-shell-13.18.0-r2 relative_url
/etc/portage/package.use/package.use:dev-vcs/gitlab-shell relative_url
/etc/portage/package.use/package.use:www-apps/gitlab favicon
/etc/portage/package.use/package.use:www-apps/gitlab relative_url
/etc/portage/make.conf:# Default changed to ruby31 as of 2023-06-18 but gitlab still requires ruby30
/etc/portage/repos.conf/eselect-repo.conf:[gitlab]
/etc/portage/repos.conf/eselect-repo.conf:location = /var/db/repos/gitlab
/etc/portage/repos.conf/eselect-repo.conf:sync-uri = https://github.com/gentoo-mirror/gitlab.git
/etc/portage/repos.conf/eselect-repo.conf~:[gitlab]
/etc/portage/repos.conf/eselect-repo.conf~:location = /var/db/repos/gitlab
/etc/portage/repos.conf/eselect-repo.conf~:sync-uri = https://github.com/gentoo-mirror/gitlab.git
/etc/portage/package.accept_keywords:dev-vcs/gitlab-shell **
/etc/portage/package.accept_keywords:dev-util/gitlab-runner **
/etc/portage/package.accept_keywords:www-apps/gitlab **
rockpro64 /var/db/repos # emerge --info
Portage 3.0.61 (python 3.11.7-final-0, default/linux/arm64/23.0/split-usr, gcc-13, glibc-2.38-r9, 6.6.0-1176-ayufan-g978405e62 aarch64)
=================================================================
System uname: Linux-6.6.0-1176-ayufan-g978405e62-aarch64-with-glibc2.38
KiB Mem: 3857152 total, 657200 free
KiB Swap: 6291444 total, 6000136 free
Timestamp of repository gentoo: Thu, 15 Feb 2024 20:30:01 +0000
Head commit of repository gentoo: 49b598ae8d1d9ea36a2924ae234a8ec56382f8e2
Timestamp of repository gitlab: Wed, 14 Feb 2024 20:48:26 +0000
Head commit of repository gitlab: d98472ceb83578f69c4688e3a9df94a8ee5e28b4
Timestamp of repository graaff: Tue, 13 Feb 2024 07:18:12 +0000
Head commit of repository graaff: 532468ef187e38d6632a103e94f9dd6e2bffd71c
Timestamp of repository guru: Thu, 15 Feb 2024 15:05:21 +0000
Head commit of repository guru: 8adf4d292538166c497c1133cfb04134a8440b9c
sh bash 5.2_p26
ld GNU ld (Gentoo 2.41 p5) 2.41.0
app-misc/pax-utils: 1.3.7::gentoo
app-shells/bash: 5.2_p26::gentoo
dev-build/autoconf: 2.72-r1::gentoo
dev-build/automake: 1.16.5-r1::gentoo
dev-build/cmake: 3.28.1-r1::gentoo
dev-build/libtool: 2.4.7-r1::gentoo
dev-build/make: 4.4.1-r1::gentoo
dev-build/meson: 1.3.1::gentoo
dev-java/java-config: 2.3.3-r1::gentoo
dev-lang/perl: 5.38.2-r1::gentoo
dev-lang/python: 3.11.7::gentoo, 3.12.1_p1::gentoo
dev-lang/rust: 1.74.1::gentoo
sys-apps/baselayout: 2.14-r2::gentoo
sys-apps/openrc: 0.52.1::gentoo
sys-apps/sandbox: 2.38::gentoo
sys-devel/binutils: 2.41-r5::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/gcc: 13.2.1_p20240113-r1::gentoo
sys-devel/gcc-config: 2.11::gentoo
sys-kernel/linux-headers: 6.6::gentoo (virtual/os-headers)
sys-libs/glibc: 2.38-r9::gentoo
Repositories:
gentoo
location: /var/db/repos/gentoo
sync-type: rsync
sync-uri: rsync://rsync.gentoo.org/gentoo-portage
priority: -1000
volatile: False
sync-rsync-verify-max-age: 24
sync-rsync-verify-metamanifest: yes
sync-rsync-verify-jobs: 1
sync-rsync-extra-opts: --new-compress
gitlab
location: /var/db/repos/gitlab
sync-type: git
sync-uri: https://github.com/gentoo-mirror/gitlab.git
masters: gentoo
volatile: False
graaff
location: /var/db/repos/graaff
sync-type: git
sync-uri: https://github.com/gentoo-mirror/graaff.git
masters: gentoo
volatile: False
guru
location: /var/db/repos/guru
sync-type: git
sync-uri: https://github.com/gentoo-mirror/guru.git
masters: gentoo
volatile: False
x-portage
location: /usr/local/portage
masters: gentoo
priority: 0
volatile: True
ACCEPT_KEYWORDS="arm64 ~arm64"
ACCEPT_LICENSE="@FREE unRAR"
CBUILD="aarch64-unknown-linux-gnu"
CFLAGS="-march=armv8-a+crc+crypto -mtune=cortex-a72.cortex-a53 -mfix-cortex-a53-835769 -mfix-cortex-a53-843419 -O2 -pipe"
CHOST="aarch64-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php8.2/ext-active/ /etc/php/apache2-php8.3/ext-active/ /etc/php/cgi-php8.2/ext-active/ /etc/php/cgi-php8.3/ext-active/ /etc/php/cli-php8.2/ext-active/ /etc/php/cli-php8.3/ext-active/ /etc/php/fpm-php8.2/ext-active/ /etc/php/fpm-php8.3/ext-active/ /etc/php/phpdbg-php8.2/ext-active/ /etc/php/phpdbg-php8.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=armv8-a+crc+crypto -mtune=cortex-a72.cortex-a53 -mfix-cortex-a53-835769 -mfix-cortex-a53-843419 -O2 -pipe"
DISTDIR="/mnt/sasbackup/portage/distfiles/"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-march=armv8-a+crc+crypto -mtune=cortex-a72.cortex-a53 -mfix-cortex-a53-835769 -mfix-cortex-a53-843419 -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=armv8-a+crc+crypto -mtune=cortex-a72.cortex-a53 -mfix-cortex-a53-835769 -mfix-cortex-a53-843419 -O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="C.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
LINGUAS="en_US en"
MAKEOPTS="-j4"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--new-compress"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/mnt/sasbackup/portage/tmp/"
SHELL="/bin/bash"
USE="X acl arm64 bzip2 crypt custom-cflags gdbm iconv ipv6 libtirpc lto lzma mysql ncurses nginx nls openmp pam pcre pgo postgres readline seccomp split-usr ssl svt-av1 system-zlib test-rust udev unicode unwind vim-syntax wayland xattr zlib zstd" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_ARM="edsp vfp vfpv3 vfpv4 vfp-d32 aes sha1 sha2 crc32 v8" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en-US en" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" VIDEO_CARDS="lima panfrost" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Updating to 16.8.2 from 16.7.0 got this error in the log. It may have existed previously but got lost since the build takes 6+ hours on this hardware.
make[1]: Leaving directory '/mnt/sasbackup/portage/tmp/portage/www-apps/gitlab-16.8.2/work/gitlab-gitaly-16.8.2/_build/deps/git-distribution'
>>> Completed installing www-apps/gitlab-16.8.2 into /mnt/sasbackup/portage/tmp/portage/www-apps/gitlab-16.8.2/image
* Final size of build directory: 2913996 KiB (2.7 GiB)
* Final size of installed tree: 3749784 KiB (3.5 GiB)
* QA Notice: command not found:
*
* -sh: line 2: systemctl: command not found
This system uses openrc for init, which the ebuild packages init scripts for which implies that it is supported.
Horst Prote (497d964c) at 08 Feb 21:45
Versions 16.6.7, 16.7.5, 16.8.2
Horst Prote (cbb8b396) at 26 Jan 12:37
New versions 16.5.8, 16.6.6, 16.7.4, 16.8.1
Horst Prote (522c5fec) at 17 Jan 18:35
New version 16.8.0