Compare commits

...

No commits in common. "c8" and "c10s" have entirely different histories.
c8 ... c10s

9 changed files with 133 additions and 8 deletions

1
.fmf/version Normal file
View File

@ -0,0 +1 @@
1

2
.gitignore vendored
View File

@ -1 +1 @@
SOURCES/libdaemon-0.14.tar.gz libdaemon-0.14.tar.gz

View File

@ -1 +0,0 @@
78a4db58cf3a7a8906c35592434e37680ca83b8f SOURCES/libdaemon-0.14.tar.gz

2
ci.fmf Normal file
View File

@ -0,0 +1,2 @@
# Docs: https://docs.fedoraproject.org/en-US/ci/tmt/#_multiple_plans
resultsdb-testcase: separate

6
gating.yaml Normal file
View File

@ -0,0 +1,6 @@
--- !Policy
product_versions:
- rhel-*
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: osci.brew-build./plans/tier1-internal.functional}

View File

@ -0,0 +1,56 @@
--- libdaemon-0.11/libdaemon/dfork.c.debug 2007-06-11 11:36:11.000000000 -0400
+++ libdaemon-0.11/libdaemon/dfork.c 2007-07-02 14:49:35.000000000 -0400
@@ -354,31 +354,38 @@
int daemon_close_all(int except_fd, ...) {
va_list original_ap, ap;
- int n, i, r;
- int *p;
+ int n = 0, i = 0, r = -1;
+ int *p = NULL;
- va_start(original_ap, except_fd);
- va_copy(ap, original_ap);
+ if (except_fd >= 0) {
+ va_start(original_ap, except_fd);
+ va_copy(ap, original_ap);
- for (n = 0; va_arg(ap, int) >= 0; n++)
- ;
+ for (n = 0; va_arg(ap, int) >= 0; n++)
+ ;
- va_end(ap);
-
- if (!(p = malloc(sizeof(int) * (n+1)))) {
- va_end(original_ap);
- return -1;
+ va_end(ap);
}
- i = 0;
- while ((p[i++] = va_arg(original_ap, int)) >= 0)
- ;
+ if (!(p = malloc(sizeof(int) * (n+2))))
+ goto out;
+
+ p[i++] = except_fd;
+
+ if (except_fd >= 0) {
+ i = 1;
+ while ((p[i++] = va_arg(original_ap, int)) >= 0)
+ ;
+ }
p[i] = -1;
r = daemon_close_allv(p);
+
+out:
+ if (except_fd >= 0)
+ va_end(original_ap);
free(p);
-
return r;
}

View File

@ -1,14 +1,15 @@
Name: libdaemon Name: libdaemon
Version: 0.14 Version: 0.14
Release: 15%{?dist} Release: 31%{?dist}
Summary: Library for writing UNIX daemons Summary: Library for writing UNIX daemons
Group: System Environment/Libraries License: LGPL-2.1-or-later
License: LGPLv2+
URL: http://0pointer.de/lennart/projects/libdaemon/ URL: http://0pointer.de/lennart/projects/libdaemon/
Source0: http://0pointer.de/lennart/projects/libdaemon/%{name}-%{version}.tar.gz Source0: http://0pointer.de/lennart/projects/libdaemon/%{name}-%{version}.tar.gz
# Requires lynx to build the docs # Requires lynx to build the docs
BuildRequires: gcc
BuildRequires: lynx BuildRequires: lynx
BuildRequires: make
%description %description
libdaemon is a lightweight C library which eases the writing of UNIX daemons. libdaemon is a lightweight C library which eases the writing of UNIX daemons.
@ -24,7 +25,6 @@ It consists of the following parts:
to syslog. to syslog.
%package devel %package devel
Group: Development/Libraries
Summary: Libraries and header files for libdaemon development Summary: Libraries and header files for libdaemon development
Requires: libdaemon = %{version}-%{release} Requires: libdaemon = %{version}-%{release}
@ -50,18 +50,65 @@ rm $RPM_BUILD_ROOT/%{_datadir}/doc/libdaemon/style.css
%ldconfig_scriptlets %ldconfig_scriptlets
%files %files
%defattr(-,root,root,-)
%doc LICENSE README %doc LICENSE README
%{_libdir}/*so.* %{_libdir}/*so.*
%files devel %files devel
%defattr(-,root,root,-)
%doc doc/README.html doc/style.css %doc doc/README.html doc/style.css
%{_includedir}/* %{_includedir}/*
%{_libdir}/*.so %{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc %{_libdir}/pkgconfig/*.pc
%changelog %changelog
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 0.14-31
- Bump release for October 2024 mass rebuild:
Resolves: RHEL-64018
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 0.14-30
- Bump release for June 2024 mass rebuild
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.14-29
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.14-28
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Wed Aug 02 2023 Lukáš Zaoral <lzaoral@redhat.com> - 0.14-27
- migrate to SPDX license format
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.14-26
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.14-25
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.14-24
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.14-23
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.14-22
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.14-21
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.14-20
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.14-19
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.14-18
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.14-17
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.14-16
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.14-15 * Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.14-15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild

13
plans.fmf Normal file
View File

@ -0,0 +1,13 @@
/tier1-internal:
discover:
how: fmf
url: https://pkgs.devel.redhat.com/git/tests/libdaemon
filter: 'tier: 1'
prepare:
how: shell
script: yum config-manager --set-enabled rhel-CRB
execute:
how: tmt
adjust:
enabled: false
when: distro == centos-stream or distro == fedora

1
sources Normal file
View File

@ -0,0 +1 @@
509dc27107c21bcd9fbf2f95f5669563 libdaemon-0.14.tar.gz