colmap-git
The non-standard host (demuc.de) hosts static vocabulary tree data files used by the application, not executable code; these are standard project assets, and the worst case of a swapped source is limited to data tampering, not remote code execution.
Triggered rules
llm_review
The static rules flagged this MEDIUM, but an AI model (qwen/qwen3-235b-a22b-07-25) reviewed the full PKGBUILD and judged it LOW (confidence 95%): The non-standard host (demuc.de) hosts static vocabulary tree data files used by the application, not executable code; these are standard project assets, and the worst case of a swapped source is limited to data tampering, not remote code execution.
1 higher static finding superseded - not the current verdict (shown for transparency)
source_untrusted_domain
One or more source=() URLs point to a host outside the trusted allowlist (github.com, gitlab.com, codeberg.org, pypi.org, …).
-
PKGBUILD:35
"vocabulary-tree-32K.bin::https://demuc.de/colmap/vocab_tree_flickr100K_words32K.bin"
PKGBUILD
1 offending line(s) highlighted#!/bin/hint/bash
# Maintainer : bartus <arch-user-repoᘓbartus.33mail.com>
check_option "debug" "y" && BUILD_TYPE=Debug || BUID_TYPE=Release
## Configuration env vars:
_BUILD_CUDA="${BUILD_CUDA:-ON}"
_CUDA_ARCHITECTURES="${CUDA_ARCH:-native}"
_fragment=${FRAGMENT:-#branch=main}
# Use CMAKE_FLAGS=xxx:yyy:zzz to define extra CMake flags
[[ -v CMAKE_FLAGS ]] && mapfile -t -d: _CMAKE_FLAGS < <(echo -n "$CMAKE_FLAGS")
_name=colmap
#fragment="#commit=5bea89263bf5f3ed623b8e6e6a5f022a0ed9c1de"
pkgname=${_name}-git
pkgver=4.1.0.dev0.r64.gac6f952cb
pkgrel=1
pkgdesc="General-purpose Structure-from-Motion (SfM) and Multi-View Stereo (MVS) pipeline with a graphical and command-line interface."
arch=('i686' 'x86_64')
url="https://colmap.github.io/"
license=('GPL')
groups=()
provides=("$_name")
conflicts=("$_name")
depends=('cgal' 'ceres-solver' 'gflags' 'metis' 'openimageio' 'suitesparse' 'freeglut' 'glew' 'google-glog' 'freeimage' 'libjpeg' 'boost-libs' qt5-{base,svg} 'flann')
makedepends=('boost' 'cmake' 'eigen' 'git' 'ninja' 'python-sphinx' )
if [ "$_BUILD_CUDA" == "ON" ] ; then
depends+=('onnxruntime-cuda' 'protobuf')
makedepends+=('cuda')
optdepends+=('libcudart.so: required for dense reconstruction')
else
depends+=('onnxruntime-cpu' 'protobuf')
fi
source=("${pkgname}::git+https://github.com/colmap/colmap.git${_fragment}"
"vocabulary-tree-32K.bin::https://demuc.de/colmap/vocab_tree_flickr100K_words32K.bin"
"vocabulary-tree-256K.bin::https://demuc.de/colmap/vocab_tree_flickr100K_words256K.bin"
"vocabulary-tree-1M.bin::https://demuc.de/colmap/vocab_tree_flickr100K_words1M.bin"
)
sha256sums=('SKIP'
'd37d8f19ee0a49705c4c0b06967a08cedfed5cf86519eada3271497256732bc2'
'd2055600452a531b5b0a62aa5943e1a07195273dc4eeebcf23d3a924d881d53a'
'fb60f7ba8081ee5c278f03c62329a374d1b24136b374a49393b453db1529a8c6')
pkgver() {
# git -C "$pkgname" describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
_blame=$(git -C "$pkgname" blame CMakeLists.txt|grep COLMAP_VERSION)
_ver=$(grep -oP 'COLMAP_VERSION "\K.*(?=")' <<<"$_blame")
_commit=$(grep -oE "^\w+" <<<"$_blame")
_count=$(git -C "$pkgname" rev-list $_commit.. --count)
_head=$(git -C "$pkgname" rev-parse --short HEAD)
printf "%s.r%d.g%s" "$_ver" "$_count" "$_head"
}
prepare() {
sed -e '1 i\#include <cassert>' -i "${srcdir}"/${pkgname}/src/colmap/sfm/observation_manager.cc
}
build() {
# determine whether we can precompile CUDA kernels
_CUDA_PKG=$(pacman -Qsq cuda 2>/dev/null) || true
if [[ -n "$_CUDA_PKG" && "$_BUILD_CUDA" == "ON" ]]; then
# determine whether we need to define cuda host compiler
if _cuda_gcc=$(readlink /opt/cuda/bin/gcc) ; then
[ -f "$_cuda_gcc" ] && export CUDAHOSTCXX="$_cuda_gcc"
fi
_CMAKE_FLAGS+=( -DCUDA_ENABLED=ON
-DCMAKE_CUDA_ARCHITECTURES=$_CUDA_ARCHITECTURES
)
else
_CMAKE_FLAGS+=( -DCUDA_ENABLED=OFF )
fi
_CMAKE_FLAGS+=( -DTESTS_ENABLED=OFF
-DCMAKE_BUILD_TYPE=${BUILD_TYPE}
-DFETCH_ONNX=OFF
-DCMAKE_INSTALL_PREFIX=/usr )
cmake "${_CMAKE_FLAGS[@]}" -G Ninja -S "$pkgname" -B build
# shellcheck disable=SC2046 # allow MAKEFLAGS to carry multiple flags.
ninja -C "$srcdir/build" $(grep -oP -- '-+[A-z]+ ?[0-9]*'<<<"${MAKEFLAGS:--j1}")
}
package() {
DESTDIR="${pkgdir}" ninja -C build install
# build manpage
make -C "${pkgname}/doc" man BUILDDIR="$PWD" && \
install -Dm644 man/colmap.1 -t "${pkgdir}/usr/share/man/man1"
# install vocabulary trees for sequential,vocabulary matching
install -d -m755 "${pkgdir}/usr/share/${_name}"
for vocab_tree in "${srcdir}"/vocabulary-tree-*.bin ; do
install -m644 "${vocab_tree}" "${pkgdir}/usr/share/${_name}/${vocab_tree##*/}"
done
# install license
install -Dm644 "${srcdir}/${pkgname}/COPYING.txt" "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
}
# vim:set ts=2 sw=2 et:
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-17 00:27:14 | Low | 2 |
| 2026-09-16 00:03:17 | Low | 2 |
| 2026-09-15 00:25:31 | Low | 2 |
| 2026-09-14 00:27:57 | Low | 2 |
| 2026-09-13 00:19:54 | Low | 2 |
| 2026-09-12 00:25:17 | Low | 2 |
| 2026-09-11 00:19:22 | Low | 2 |
| 2026-09-10 00:22:44 | Low | 2 |
| 2026-09-09 00:04:09 | Low | 2 |
| 2026-09-08 00:18:08 | Low | 2 |
| 2026-09-07 00:30:15 | Low | 2 |
| 2026-09-06 00:17:06 | Low | 2 |
| 2026-09-05 00:16:27 | Low | 2 |
| 2026-09-04 00:03:13 | Low | 2 |
| 2026-09-03 00:15:47 | Low | 2 |
| 2026-09-02 00:02:31 | Low | 2 |
| 2026-09-01 00:11:19 | Low | 2 |
| 2026-08-31 00:19:57 | Low | 2 |
| 2026-08-30 00:04:14 | Low | 2 |
| 2026-08-29 00:29:17 | Low | 2 |