Re: [Rpm-maint] [rpm-software-management/rpm] Introduce an rpm-controlled per-build directory (PR #2885)
Is it possible to shorten the `- -build` part from a spec file? I package Guix in Fedora Copr. To run Guix tests in the rpmbuild %check step, the full path of the working directory cannot be longer than 29 bytes. The default `/builddir/build/BUILD/guix-1.4.0` used by mock is already too long, so I have to change the default `test-tmp` directory used by Guix tests to `t` to save a few bytes in order to run tests. Now the new default `/builddir/build/BUILD/guix-1.4.0-build/guix-1.4.0` is even longer than `/builddir/build/BUILD/guix-1.4.0`, so the `test-tmp` → `t` trick can't work. Is it possible to tell rpmbuild to use a shorter path than `guix-1.4.0-build`, or I should just `mktemp -d` and tell Guix to run tests in the temporary directory? -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/pull/2885#issuecomment-2453311636 You are receiving this because you are subscribed to this thread. Message ID: ___ Rpm-maint mailing list Rpm-maint@lists.rpm.org http://lists.rpm.org/mailman/listinfo/rpm-maint
Re: [Rpm-maint] [rpm-software-management/rpm] Add rpmlogOnce() and rpmlogReset() (PR #3417)
@ffesti commented on this pull request. > @@ -412,3 +415,36 @@ void rpmlog (int code, const char *fmt, ...) exit: errno = saved_errno; } + +int rpmlogOnce (uint64_t domain, const char * key, int code, const char *fmt, ...) +{ +int saved_errno = errno; +rpmlogCtx ctx = rpmlogCtxAcquire(); +int newkey = 0; + +if (ctx) { + wrlock lock(ctx->mutex); Technically yes. For now I don't want to over complicate things for what is very little gains in practice. -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/pull/3417#discussion_r1826531797 You are receiving this because you are subscribed to this thread. Message ID: ___ Rpm-maint mailing list Rpm-maint@lists.rpm.org http://lists.rpm.org/mailman/listinfo/rpm-maint