Running makepkg in the scripts directory creates some packages and
temporary directories. As these files and directories are not in
gitignore, they appear in the list of untracked files and directories
in git status.

Note that as the PKGBUILD is also modified in the process: it retrieve
the local libsamsung-ipc git revision and then updates the PKGBUILD
with that information.

For instance if locally we made some local commits and that we have
the 113695fa7d455af5ff01457e5b8bb05591534711 git revision, the
PKGBUILD will be modified as follows:
-pkgver=0.3.1.r703.7c5e96a
+pkgver=0.3.1.r743.113695f

This enables to precisely track the git revision being used which is a
good thing for development and testing (this PKGBUILD is meant for
that) as users or developers can then know which version they are
running.

The issue is that if this modification is added to a git commit, then
the revision changes again and the next time makepkg is run, the
revision will change again.

However as far as I know it's not really possible to fix that (without
doing bruteforce computations) so the PKGBUILD will still end up in
the list of untracked files in git status.

Signed-off-by: Denis 'GNUtoo' Carikli <gnu...@cyberdimension.org>
---
 .gitignore | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/.gitignore b/.gitignore
index 2c06001..674d061 100644
--- a/.gitignore
+++ b/.gitignore
@@ -13,6 +13,12 @@
 /tools/test-suite.log
 valgrind.*.log
 
+# scripts/PKGBUILD
+/scripts/libsamsung-ipc-git-*.pkg.tar.xz
+/scripts/libsamsung-ipc-git-debug-*.pkg.tar.xz
+/scripts/pkg/**
+/scripts/src/**
+
 # Text editors
 \#.*\#
 *~
-- 
2.36.1

_______________________________________________
Replicant mailing list
Replicant@osuosl.org
https://lists.osuosl.org/mailman/listinfo/replicant

Reply via email to