#1 0.05 bump; Package tests
Merged 6 months ago by jplesnik. Opened 6 months ago by jplesnik.
Unknown source rawhide  into  rawhide

file added
+1
@@ -0,0 +1,1 @@

+ 1

file modified
+1
@@ -1,1 +1,2 @@

  /Unix-Mknod-0.04.tar.gz

+ /Unix-Mknod-0.05.tar.gz

@@ -1,61 +0,0 @@

- From 1669d02d5425a01e08aaa4584d0c5fe61a0cb7a8 Mon Sep 17 00:00:00 2001

- From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>

- Date: Mon, 5 Mar 2018 17:14:27 +0100

- Subject: [PATCH] Include <sys/sysmacros.h> on glibc

- MIME-Version: 1.0

- Content-Type: text/plain; charset=UTF-8

- Content-Transfer-Encoding: 8bit

- 

- glibc-2.27.9000 changed something in header files and minor() symbol

- is not defined without including <sys/sysmacros.h> now:

- 

- + make test

- "/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- Mknod.bs blib/arch/auto/Unix/M

- knod/Mknod.bs 644

- PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef

- *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t

- Can't load '/home/test/fedora/perl-Unix-Mknod/Unix-Mknod-0.04/blib/arch/auto/Unix/Mknod/Mk

- nod.so' for module Unix::Mknod: /home/test/fedora/perl-Unix-Mknod/Unix-Mknod-0.04/blib/arc

- h/auto/Unix/Mknod/Mknod.so: undefined symbol: minor at /usr/lib64/perl5/DynaLoader.pm line

-  193.

- 

- This patch fixes it by including <sys/sysmacros.h> on systems with glibc.

- 

- CPAN RT#124687

- 

- Signed-off-by: Petr Písař <ppisar@redhat.com>

- ---

-  Makefile.PL | 2 ++

-  Mknod.xs    | 3 +++

-  2 files changed, 5 insertions(+)

- 

- diff --git a/Makefile.PL b/Makefile.PL

- index a78f929..f0fe012 100644

- --- a/Makefile.PL

- +++ b/Makefile.PL

- @@ -4,6 +4,8 @@ use Config(%Config);

-  

-  $defines= '-DHAS_SYSMKDEV'

-  	if ($Config{osname} eq 'solaris');

- +$defines= '-DHAS_SYSSYSMACROS'

- +	if (defined $Config{d_gnulibc});

-  

-  # See lib/ExtUtils/MakeMaker.pm for details of how to influence

-  # the contents of the Makefile that is written.

- diff --git a/Mknod.xs b/Mknod.xs

- index 3b9f55f..263614e 100644

- --- a/Mknod.xs

- +++ b/Mknod.xs

- @@ -11,6 +11,9 @@ extern "C" {

-  #ifdef HAS_SYSMKDEV

-  #include <sys/mkdev.h>

-  #endif

- +#ifdef HAS_SYSSYSMACROS

- +#include <sys/sysmacros.h>

- +#endif

-  

-  #ifdef __cplusplus

-  }

- -- 

- 2.13.6

- 

file added
+16
@@ -0,0 +1,16 @@

+ --- !Policy

+ product_versions:

+   - fedora-*

+ decision_context: bodhi_update_push_testing

+ subject_type: koji_build

+ rules:

+   - !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional}

+ 

+ # Rawhide

+ --- !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}

file modified
+39 -11
@@ -1,19 +1,17 @@

  Name:           perl-Unix-Mknod

- Version:        0.04

- Release:        27%{?dist}

+ Version:        0.05

+ Release:        1%{?dist}

  Summary:        Perl extension for mknod, major, minor, and makedev

  License:        NCSA

  URL:            https://metacpan.org/release/Unix-Mknod

  Source0:        https://cpan.metacpan.org/authors/id/P/PI/PIRZYK/Unix-Mknod-%{version}.tar.gz

- # Adapt to changes in glibc-2.27.9000, bug #1551656, CPAN RT#124687

- Patch0:         Unix-Mknod-0.04-Include-sys-sysmacros.h-on-glibc.patch

  BuildRequires:  coreutils

  BuildRequires:  findutils

  BuildRequires:  gcc

  BuildRequires:  make

- BuildRequires:  perl-interpreter

  BuildRequires:  perl-devel

  BuildRequires:  perl-generators

+ BuildRequires:  perl-interpreter

  BuildRequires:  perl(Config)

  BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76

  # Run-time
@@ -30,29 +28,59 @@

  This module allows access to the device routines major()/minor()/makedev()

  that may or may not be macros in .h files.

  

+ %package tests

+ Summary:        Tests for %{name}

+ Requires:       %{name} = %{?epoch:%{epoch}:}%{version}-%{release}

+ Requires:       perl-Test-Harness

+ 

+ %description tests

+ Tests from %{name}. Execute them

+ with "%{_libexecdir}/%{name}/test".

+ 

  %prep

  %setup -q -n Unix-Mknod-%{version}

- %patch0 -p1

+ 

+ # Help generators to recognize Perl scripts

+ for F in t/*.t; do

+     perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!.*perl\b}{$Config{startperl}}' "$F"

+     chmod +x "$F"

+ done

  

  %build

- perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" NO_PACKLIST=1 NO_PERLLOCAL=1

+ perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" NO_PACKLIST=1 NO_PERLLOCAL=1

  %{make_build}

  

  %install

  %{make_install}

- find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -delete

- %{_fixperms} $RPM_BUILD_ROOT/*

+ find %{buildroot} -type f -name '*.bs' -size 0 -delete

+ %{_fixperms} %{buildroot}/*

+ 

+ # Install tests

+ mkdir -p %{buildroot}%{_libexecdir}/%{name}

+ cp -a t %{buildroot}%{_libexecdir}/%{name}

+ cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF'

+ #!/bin/sh

+ cd %{_libexecdir}/%{name} && exec prove -I . -r -j "$(getconf _NPROCESSORS_ONLN)"

+ EOF

+ chmod +x %{buildroot}%{_libexecdir}/%{name}/test

  

  %check

  make test

  

  %files

  %doc Changes README

- %{perl_vendorarch}/auto/*

+ %{perl_vendorarch}/auto/Unix*

  %{perl_vendorarch}/Unix*

- %{_mandir}/man3/*

+ %{_mandir}/man3/Unix::Mknod*

+ 

+ %files tests

+ %{_libexecdir}/%{name}

  

  %changelog

+ * Wed Nov 29 2023 Jitka Plesnikova <jplesnik@redhat.com> - 0.05-1

+ - 0.05 bump (rhbz#2252003)

+ - Package tests

+ 

  * Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.04-27

  - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild

  

file added
+5
@@ -0,0 +1,5 @@

+ summary: Sanity tests

+ discover:

+     how: fmf

+ execute:

+     how: tmt

file modified
+1 -1
@@ -1,1 +1,1 @@

- SHA512 (Unix-Mknod-0.04.tar.gz) = 1b14f970006dca5166491c5a113420121d295641c61b6b17ec8e77c79f5660639b950abfcd2b82d4ac196737aea1fb00d55a2ae3c6523afdede4ec72ae6435b9

+ SHA512 (Unix-Mknod-0.05.tar.gz) = 5ca07b360f841aeb1fe1241e852aa2c986c350e8b39941a5f2fe09bca07c6d2035a391e6a4bb3ec7063f56753af8a3675c5254ae53d69808d6540e3cd3389146

@@ -0,0 +1,4 @@

+ summary: Upstream tests

+ component: perl-Unix-Mknod

+ require: perl-Unix-Mknod-tests

+ test: /usr/libexec/perl-Unix-Mknod/test