Andreas Schleifer pushed to branch main at Arch Linux / Packaging / Packages / 
gitlab


Commits:
696c5774 by Andreas Schleifer at 2025-03-04T23:07:50+01:00
upgpkg: 17.9.1-2; remove unreproducible files

- - - - -


2 changed files:

- .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,7 +1,7 @@
 pkgbase = gitlab
        pkgdesc = Project management and code hosting application
        pkgver = 17.9.1
-       pkgrel = 1
+       pkgrel = 2
        url = https://gitlab.com/gitlab-org/gitlab-foss
        install = gitlab.install
        arch = x86_64


=====================================
PKGBUILD
=====================================
@@ -10,7 +10,7 @@
 
 pkgname=gitlab
 pkgver=17.9.1
-pkgrel=1
+pkgrel=2
 pkgdesc='Project management and code hosting application'
 arch=(x86_64)
 url='https://gitlab.com/gitlab-org/gitlab-foss'
@@ -242,4 +242,28 @@ package() {
        install -Dm644 "${srcdir}/gitlab.logrotate" 
"${pkgdir}/etc/logrotate.d/gitlab"
 
        find "$pkgdir$_appdir" -name man -type d -print0 | xargs -0 -I {} rm 
-rf {}
+
+  # remove unreproducible ruby files
+  local rubyapiversion="$(ruby -e 'puts Gem.extension_api_version')"
+  find 
"${pkgdir}/usr/share/webapps/gitlab/vendor/bundle/ruby/${rubyapiversion}/extensions/"
 \
+    -type f \
+    \( \
+      -iname "*.log" -o \
+      -iname "*.time" -o \
+      -iname "gem.build_complete" -o \
+      -iname "gem_make.out" -o \
+      -iname "Makefile" \
+    \) \
+    -delete
+
+  find 
"${pkgdir}/usr/share/webapps/gitlab/vendor/bundle/ruby/${rubyapiversion}/gems/" 
\
+    -type f \
+    \( \
+      -iname "*.log" -o \
+      -iname "*.time" -o \
+      -iname "gem.build_complete" -o \
+      -iname "gem_make.out" -o \
+      -iname "Makefile" \
+    \) \
+    -delete
 }



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/gitlab/-/commit/696c57743e1e28244b10a86528810883a973fe77

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/gitlab/-/commit/696c57743e1e28244b10a86528810883a973fe77
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to