Package Details: google-compute-engine-oslogin 20231004.00-1

Git Clone URL: https://aur.archlinux.org/google-compute-engine-oslogin.git (read-only, click to copy)
Package Base: google-compute-engine-oslogin
Description: OS Login Guest Environment for Google Compute Engine
Upstream URL: https://github.com/GoogleCloudPlatform/guest-oslogin
Licenses: Apache
Submitter: lcastelli
Maintainer: lcastelli (samuellittley)
Last Packager: samuellittley
Votes: 2
Popularity: 0.068249
First Submitted: 2019-12-07 00:42 (UTC)
Last Updated: 2023-10-28 16:54 (UTC)

Latest Comments

componentscience commented on 2025-12-27 04:39 (UTC)

Thank you Shulhan. Your patches build successfully on our end FYI.

shulhan commented on 2025-12-25 18:21 (UTC)

Hi lcastelli,

Thanks for the package.

I have some patch for PKGBUILD for release 20251022.00. I hope it can help others. For anyone who looking pre-build binary, you can find it at https://build.kilabit.info/.

Changes,

  • Add package boost as one of the dependencies

  • Remove the prepare and checkdepends. The latest test does not run with the following error:

*** No rule to make target '/usr/src/googletest/googletest//src/gtest-all.cc', needed by 'gtest-all.o'. Stop.

  • Remove patch on the test/Makefile since it does not relevant anymore.

  • Update the build commands, following google-compute-engine-oslogin.spec in the packaging directory.

  • Remove option --now in post_install and pre_remove script. In Arch Linux we did not start or stop the service manually during installation or removal.

  • Add common tasks in the Makefile.

diff --git a/PKGBUILD b/PKGBUILD
index f21ce56..ffc3648 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -14,30 +14,30 @@

 # Maintainer: Lorenzo Castelli <lcastelli@google.com>
 # Maintainer: Samuel Littley <samuellittley@google.com>
+# Maintainer: Shulhan <ms@kilabit.info>

 pkgname='google-compute-engine-oslogin'
-pkgver=20220721.00
+pkgver=20251022.00
 pkgrel=1
 pkgdesc='OS Login Guest Environment for Google Compute Engine'
 arch=('x86_64')
 url='https://github.com/GoogleCloudPlatform/guest-oslogin'
 license=('Apache')
-depends=('curl' 'json-c' 'pam')
-checkdepends=('gtest')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/GoogleCloudPlatform/guest-oslogin/archive/$pkgver.tar.gz"
-        'google-compute-engine-oslogin.install')
-sha256sums=('17a0cd15df917c6ae29daa299d04e2e95e8b891918d2976b31b6c13398f0bc37'
-            '3e488f66f6ddc5882d731bd951391efe588c1fbb19afcf4de5283ec7fd481039')
+depends=('boost' 'curl' 'json-c' 'pam')
+source=(
+   "$pkgname-$pkgver.tar.gz::https://github.com/GoogleCloudPlatform/guest-oslogin/archive/$pkgver.tar.gz"
+        'google-compute-engine-oslogin.install'
+)
+sha256sums=(
+   '9c103feef0687c0b7b76197c83956999ea422fe17144c6e3c1864c74af5d12af'
+   '041a40fb7f7f1e22241734ecaa1d57190996b09950a342db3fe6f2bca7d70533'
+)
 install='google-compute-engine-oslogin.install'

 build() {
    cd "guest-oslogin-$pkgver"
-   make
-}
-
-check() {
-   cd "guest-oslogin-$pkgver"
-   make GTEST_DIR=/usr/src/googletest non_network_tests
+   chmod +x find-requires
+   make LDLIBS="-lcurl -ljson-c -lboost_regex"
 }

 package() {

componentscience commented on 2025-12-20 04:44 (UTC)

Getting the following error when running makepkg:

make[1]: *** No rule to make target '/usr/src/googletest/src/gtest-all.cc', needed by 'gtest-all.o'. Stop. make[1]: Leaving directory '/project/Citra/CitraAur/google-compute-engine-oslogin/src/guest-oslogin-20231004.00/test' make: *** [Makefile:18: non_network_tests] Error 2 ==> ERROR: A failure occurred in check(). Aborting...

crunk1 commented on 2020-05-12 23:53 (UTC)

Latest guest oslogin package works: https://github.com/GoogleCloudPlatform/guest-oslogin/releases/tag/20200507.00

crunk1 commented on 2020-05-12 23:37 (UTC)

Needs updated. Incompatible with json-c 0.14.4 (latest as of this comment).

Getting an error when trying to SSH in: "PAM unable to dlopen(/usr/lib/security/pam_oslogin_admin.so): libjson-c.so.4: cannot open shared object file: No such file or directory"

json-c 0.14.4 upgraded to libjson-c.so.5