#1086243 libglobus-common-dev: please add a superficial autopkgtest

Package:
libglobus-common-dev
Source:
libglobus-common-dev
Description:
Grid Community Toolkit - Common Library Development Files
Submitter:
Simon McVittie
Date:
2026-01-10 11:07:04 UTC
Severity:
normal
#1086243#5
Date:
2024-10-29 15:34:32 UTC
From:
To:
I recently reported a bug against libglobus-common-dev which can easily
be reproduced by compiling a trivial program against it:

$ podman run --rm -it debian:sid-slim   # or use a chroot or something
# apt update
# apt upgrade
# apt install libglobus-common-dev build-essential pkgconf
# cat > t.c <<'EOF'
#include <stdio.h>
int main(void) { return 0; }
EOF
# gcc -ot t.c $(pkgconf --cflags --libs globus-common)

Adding a superficial autopkgtest would be an excellent way to detect this
sort of problem in future, and ci.debian.net would regularly re-run the
test for you, making it easy to spot regressions. For example, the
gdk-pixbuf source package contains debian/tests/build:
https://sources.debian.org/src/gdk-pixbuf/2.42.10%2Bdfsg-1%2Bdeb12u1/debian/tests/build/

Ideally the test would call a trivial function in the library under test,
like maybe initialization or getting the version number. I have no idea
what libglobus-common-dev or what it does, so I don't know whether that's
feasible or not.

If there is no suitable trivial function, another good way to do a
superficial test like this would be to link the test executable with
"-Wl,--no-as-needed" added to the compiler command-line, something
like this:

    "${CROSS_COMPILE}gcc" -o build_test build_test.c -Wl,--no-as-needed $("${CROSS_COMPILE}pkg-config" --cflags --libs globus-common)

to ensure that the globus-common library is added to the executable as
a dependency even if no functions from it are actually called.

Thanks,
    smcv

#1086243#10
Date:
2026-01-10 10:10:54 UTC
From:
To:
Es gibt eine Familienspende in Höhe von 1.850.000,00 USD von Cheng Charlie
Saephan. Bitte antworten Sie für weitere Informationen. Denken Sie daran,
Ihrer Familie und den Bedürftigen in Ihrer Umgebung Gutes zu tun.

Dies ist bereits der zweite Versuch, Sie zu erreichen. Bitte antworten Sie
für weitere Details.