[opensuse-buildservice] tar_scm and package-meta
O, OBS gurus: We have a software project in OBS that is using the tar_scm service to generate the tarball from a git repo. Upstream is setting the version number at build time by peeking into the .git directory, so we need to somehow include this directory in the tarball. We tried adding "<param name="package-meta">yes</param>" to the tar_scm XML, and happily I can confirm that this does cause the .git directory to be included in the .tar file. However, after tar_scm completes a glitch occurs: $ osc service dr Cloning into '/tmp/tmpuckA4K/tmpAPx9Ds/ceph'... warning: unable to rmdir src/gmock: Directory not empty HEAD is now at 5ce51ae use same systemd service files for all cluster names. Cleaning: /tmp/tmpuckA4K/tmpAPx9Ds /tmp/tmpuckA4K/ceph-20150511 Compressed ceph-20150511.tar to ceph-20150511.tar.xz rm: remove write-protected regular file ‘/tmp/tmp.aXC3yLlqPE/new/ceph-20150511/.git/modules/ceph-object-corpus/objects/pack/pack-e7789f402323bf1bf59b325bc9c126663c9dc632.idx’? It appears that *something* (not tar_scm) is calling rm -r without -f . . . Any ideas? Nathan -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
Thanks to my colleague Tim Serong, we now know that the missing -f is
in the recompress service - line 112: rm -r $DIFF_TMPDIR
I opened a pull request:
https://github.com/openSUSE/obs-service-recompress/pull/5
Thanks.
On Thu, May 14, 2015 at 2:54 PM, Nathan Cutler
O, OBS gurus:
We have a software project in OBS that is using the tar_scm service to generate the tarball from a git repo. Upstream is setting the version number at build time by peeking into the .git directory, so we need to somehow include this directory in the tarball.
We tried adding "<param name="package-meta">yes</param>" to the tar_scm XML, and happily I can confirm that this does cause the .git directory to be included in the .tar file.
However, after tar_scm completes a glitch occurs:
$ osc service dr
Cloning into '/tmp/tmpuckA4K/tmpAPx9Ds/ceph'... warning: unable to rmdir src/gmock: Directory not empty HEAD is now at 5ce51ae use same systemd service files for all cluster names. Cleaning: /tmp/tmpuckA4K/tmpAPx9Ds /tmp/tmpuckA4K/ceph-20150511 Compressed ceph-20150511.tar to ceph-20150511.tar.xz rm: remove write-protected regular file ‘/tmp/tmp.aXC3yLlqPE/new/ceph-20150511/.git/modules/ceph-object-corpus/objects/pack/pack-e7789f402323bf1bf59b325bc9c126663c9dc632.idx’?
It appears that *something* (not tar_scm) is calling rm -r without -f . . .
Any ideas?
Nathan -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
participants (1)
-
Nathan Cutler