commit:     33a01322c5582292b5d408e43b443602c153b09d
Author:     Holger Hoffstätte <holger <AT> applied-asynchrony <DOT> com>
AuthorDate: Wed Aug 13 12:30:09 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Aug 13 12:56:09 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=33a01322

app-admin/syslog-ng: fix config file name mangling

The config file name mangling was hard-coded to strip a specific
file suffix. This breaks when config files have different revisions.

Closes: https://bugs.gentoo.org/961446
Signed-off-by: Holger Hoffstätte <holger <AT> applied-asynchrony.com>
Part-of: https://github.com/gentoo/gentoo/pull/43431
Closes: https://github.com/gentoo/gentoo/pull/43431
Signed-off-by: Sam James <sam <AT> gentoo.org>

 app-admin/syslog-ng/syslog-ng-4.9.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-admin/syslog-ng/syslog-ng-4.9.0.ebuild 
b/app-admin/syslog-ng/syslog-ng-4.9.0.ebuild
index f7d2334d5b55..2e45b4ecd825 100644
--- a/app-admin/syslog-ng/syslog-ng-4.9.0.ebuild
+++ b/app-admin/syslog-ng/syslog-ng-4.9.0.ebuild
@@ -105,7 +105,7 @@ src_prepare() {
 
        for f in syslog-ng.conf.gentoo.hardened.in-r1 \
                        syslog-ng.conf.gentoo.in-r2; do
-               sed -e "s/@SYSLOGNG_VERSION@/$(ver_cut 1-2)/g" 
"${FILESDIR}/${f}" > "${T}/${f/.in-r1/}" || die
+               sed -e "s/@SYSLOGNG_VERSION@/$(ver_cut 1-2)/g" 
"${FILESDIR}/${f}" > "${T}/${f/.in*/}" || die
        done
 
        default

Reply via email to