Compare commits

...

10 Commits

Author SHA1 Message Date
blarsen1 79012d04a6 Use getaddrinfo instead of gethostbyname 2023-05-18 10:20:06 +00:00
Bruno Larsen 721091daa7 Bump NVR to release this as a subpackage
Resolves: rhbz#2058409
2022-03-15 13:43:27 -03:00
Jan Kurik 1eed46a908 Intoducing gating 2021-09-06 18:37:58 +02:00
Mohan Boddu 226e3f5f40 Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
Related: rhbz#1991688
Signed-off-by: Mohan Boddu <mboddu@redhat.com>
2021-08-09 19:27:30 +00:00
Martin Cermak 20546ebdc7 gating.yaml: Set up CI gating 2021-06-22 12:46:37 +02:00
Mohan Boddu 60b80fb3e6 - Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
Signed-off-by: Mohan Boddu <mboddu@redhat.com>
2021-04-15 22:41:47 +00:00
DistroBaker dccdda3c69 Merged update from upstream sources
This is an automated DistroBaker update from upstream sources.
If you do not know what this is about or would like to opt out,
contact the OSCI team.

Source: https://src.fedoraproject.org/rpms/babeltrace.git#aedb8bb91f0cfb994e3a15695bbba7ba5831ac46
2021-02-03 11:21:47 +01:00
Troy Dawson 5e3c2d8180 RHEL 9.0.0 Alpha bootstrap
The content of this branch was automatically imported from Fedora ELN
with the following as its source:
https://src.fedoraproject.org/rpms/babeltrace#4202065c301a2b8c8035b20131fa8e6241f8f23c
2020-11-16 12:48:04 -08:00
DistroBaker 113df3764e Merged update from upstream sources
This is an automated DistroBaker update from upstream sources.
If you do not know what this is about or would like to opt out,
contact the OSCI team.

Source: https://src.fedoraproject.org/rpms/babeltrace.git#e68e952d97dcc6f10f4675202e924b70d3dafe46
2020-10-27 14:38:35 +01:00
Petr Šabata 424bb6ed43 RHEL 9.0.0 Alpha bootstrap
The content of this branch was automatically imported from Fedora ELN
with the following as its source:
https://src.fedoraproject.org/rpms/babeltrace#7db06bbb286ad3ad164b12432d4e01a76e6df51d
2020-10-26 17:47:47 +01:00
4 changed files with 155 additions and 1 deletions

2
.babeltrace.metadata Normal file
View File

@ -0,0 +1,2 @@
574dd85d98146974518212792c4ae9abb57f3084 babeltrace-1.5.8.tar.bz2
0cc3469c331c5b931829c97f6c725e70df53ebbd babeltrace-1.5.8.tar.bz2.asc

View File

@ -0,0 +1,106 @@
*** babeltrace-1.5.8.orig/configure.ac 2021-04-22 09:56:01.645909350 -0700
--- babeltrace-1.5.8/configure.ac 2021-04-22 10:41:30.537328243 -0700
*************** AC_CHECK_FUNCS([ \
*** 102,108 ****
dirfd \
dup2 \
ftruncate \
! gethostbyname \
gethostname \
gettimeofday \
localtime_r \
--- 102,108 ----
dirfd \
dup2 \
ftruncate \
! getaddrinfo \
gethostname \
gettimeofday \
localtime_r \
*** babeltrace-1.5.8.orig/formats/lttng-live/lttng-live-comm.c 2021-04-22 09:56:01.662909278 -0700
--- babeltrace-1.5.8/formats/lttng-live/lttng-live-comm.c 2021-04-22 11:01:13.166302197 -0700
*************** ssize_t lttng_live_send(int fd, const vo
*** 111,149 ****
int lttng_live_connect_viewer(struct lttng_live_ctx *ctx)
{
- struct hostent *host;
- struct sockaddr_in server_addr;
int ret;
if (lttng_live_should_quit()) {
ret = -1;
goto end;
}
! host = gethostbyname(ctx->relay_hostname);
! if (!host) {
! fprintf(stderr, "[error] Cannot lookup hostname %s\n",
! ctx->relay_hostname);
goto error;
}
! if ((ctx->control_sock = socket(AF_INET, SOCK_STREAM, 0)) == -1) {
perror("Socket");
goto error;
}
! server_addr.sin_family = AF_INET;
! server_addr.sin_port = htons(ctx->port);
! server_addr.sin_addr = *((struct in_addr *) host->h_addr);
! memset(&(server_addr.sin_zero), 0, 8);
!
! if (connect(ctx->control_sock, (struct sockaddr *) &server_addr,
! sizeof(struct sockaddr)) == -1) {
perror("Connect");
goto error;
}
ret = 0;
end:
return ret;
--- 111,153 ----
int lttng_live_connect_viewer(struct lttng_live_ctx *ctx)
{
int ret;
+ struct addrinfo hints, *res;
+ char port[16];
if (lttng_live_should_quit()) {
ret = -1;
goto end;
}
! memset(&hints, 0, sizeof(hints));
! hints.ai_family = AF_INET;
! hints.ai_socktype = SOCK_STREAM;
! sprintf(port, "%d", ctx->port);
!
! ret = getaddrinfo(ctx->relay_hostname, port, &hints, &res);
! if (ret != 0) {
! fprintf(stderr, "[error] getaddrinfo: %s\n",
! gai_strerror(ret));
goto error;
}
! ctx->control_sock = socket(res->ai_family, res->ai_socktype,
! res->ai_protocol);
! if (ctx->control_sock == -1) {
perror("Socket");
+ freeaddrinfo(res);
goto error;
}
! if (connect(ctx->control_sock, res->ai_addr, res->ai_addrlen) == -1) {
perror("Connect");
+ freeaddrinfo(res);
goto error;
}
ret = 0;
+ freeaddrinfo(res);
end:
return ret;

View File

@ -1,6 +1,6 @@
Name: babeltrace
Version: 1.5.8
Release: 3%{?dist}
Release: 10%{?dist}
Summary: Trace Viewer and Converter, mainly for the Common Trace Format
License: MIT and GPLv2
URL: https://www.efficios.com/babeltrace
@ -9,6 +9,7 @@ Source1: https://www.efficios.com/files/%{name}/%{name}-%{version}.tar.bz
# gpg2 --export --export-options export-minimal 7F49314A26E0DE78427680E05F1B2A0789F12B11 > gpgkey-7F49314A26E0DE78427680E05F1B2A0789F12B11.gpg
Source2: gpgkey-7F49314A26E0DE78427680E05F1B2A0789F12B11.gpg
Patch0: python39.patch
Patch1: babeltrace-getaddrinfo.patch
BuildRequires: bison >= 2.4
BuildRequires: flex >= 2.5.35
@ -20,6 +21,7 @@ BuildRequires: swig >= 2.0
BuildRequires: elfutils-devel >= 0.154
BuildRequires: autoconf automake libtool
BuildRequires: gnupg2
BuildRequires: make
Requires: lib%{name}%{?_isa} = %{version}-%{release}
@ -115,6 +117,31 @@ rm -f %{buildroot}/%{_pkgdocdir}/std-ext-lib.txt
%changelog
* Wed Mar 16 2022 Bruno Larsen <blarsen@redhat.com> - 1.5.8-10
- Use getaddrinfo instead of gethostbyname.
(Keith Seitz)
* Tue Mar 15 2022 Bruno Larsen <blarsen@redhat.com> - 1.6.8-9
- Bumped NVR to release subpackage
Related: rhbz#2058409
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.5.8-8
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
Related: rhbz#1991688
* Thu Apr 15 2021 Mohan Boddu <mboddu@redhat.com> - 1.5.8-7
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.8-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Mon Nov 16 2020 Keith Seitz <keiths@redhat.com> - 1.5.8-5
- Remove workaround for 1890813 now that binutils is fixed.
* Mon Oct 26 2020 Keith Seitz <keiths@redhat.com> - 1.5.8-4
- Workaround __openat_missing_mode compiler error.
(Keith Seitz, RH BZ 1890813)
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.8-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild

19
gating.yaml Normal file
View File

@ -0,0 +1,19 @@
--- !Policy
product_versions:
- fedora-*
decision_context: bodhi_update_push_stable
subject_type: koji_build
rules:
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional}
--- !Policy
product_versions:
- rhel-8
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: baseos-ci.brew-build.tier1.functional}
--- !Policy
product_versions:
- rhel-9
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: baseos-ci.brew-build.tier1.functional}