Skip to content

Commit c916dd2

Browse files
oliviacrainjslobodzian
authored andcommitted
[main extended] Fix dnf-plugins-core, ocaml-findlib builds (#1950)
1 parent 04944c9 commit c916dd2

File tree

5 files changed

+51
-11
lines changed

5 files changed

+51
-11
lines changed

SPECS-EXTENDED/dnf-plugins-core/dnf-plugins-core.spec

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Distribution: Mariner
1111

1212
Name: dnf-plugins-core
1313
Version: 4.0.18
14-
Release: 4%{?dist}
14+
Release: 5%{?dist}
1515
Summary: Core Plugins for DNF
1616
License: GPLv2+
1717
URL: https://github.com/rpm-software-management/dnf-plugins-core
@@ -68,8 +68,9 @@ Summary: Core Plugins for DNF
6868
%{?python_provide:%python_provide python3-%{name}}
6969
BuildRequires: python3-devel
7070
BuildRequires: python3-dnf >= %{dnf_lowest_compatible}
71+
%if %{with_check}
7172
BuildRequires: python3-nose
72-
73+
%endif
7374
Requires: python3-distro
7475

7576
Requires: python3-dnf >= %{dnf_lowest_compatible}
@@ -399,6 +400,10 @@ PYTHONPATH=./plugins nosetests-%{python3_version} -s tests/
399400
%endif
400401

401402
%changelog
403+
* Tue Jan 18 2022 Thomas Crain <[email protected]> - 4.0.18-5
404+
- Only require python3-nose when building tests
405+
- License verified
406+
402407
* Tue Aug 10 2021 Thomas Crain <[email protected]> - 4.0.18-4
403408
- Remove python2 support, distro-specific checks
404409

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
From 5f1b253a84215d7f83e43bb8a5e247cf44fff569 Mon Sep 17 00:00:00 2001
2+
From: Thomas Crain <[email protected]>
3+
Date: Tue, 18 Jan 2022 15:12:19 -0800
4+
Subject: [PATCH] Make bytes lib detection work for ocaml 4.13
5+
6+
---
7+
configure | 3 ++-
8+
1 file changed, 2 insertions(+), 1 deletion(-)
9+
10+
diff --git a/configure b/configure
11+
index 64656f2..630c319 100755
12+
--- a/configure
13+
+++ b/configure
14+
@@ -543,7 +543,8 @@ fi
15+
# bytes?
16+
17+
if [ -f "${ocaml_core_stdlib}/bytes.cmi" -o \
18+
- -f "${ocaml_core_stdlib}/stdlib__bytes.cmi" ]; then
19+
+ -f "${ocaml_core_stdlib}/stdlib__bytes.cmi" -o \
20+
+ -f "${ocaml_core_stdlib}/stdlib__Bytes.cmi" ]; then
21+
echo "bytes: found, installing fake library"
22+
lbytes="bytes"
23+
cbytes=0
24+
--
25+
2.25.1
26+

SPECS-EXTENDED/ocaml-findlib/ocaml-findlib.spec

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
Name: ocaml-findlib
22
Version: 1.8.1
3-
Release: 14%{?dist}
3+
Release: 15%{?dist}
44
Summary: Objective CAML package manager and build helper
55
License: BSD
66

77
Vendor: Microsoft Corporation
88
Distribution: Mariner
99
URL: http://projects.camlcity.org/projects/findlib.html
1010
Source0: http://download.camlcity.org/download/findlib-%{version}.tar.gz
11-
11+
Patch0: bytes-lib-detection.patch
1212
BuildRequires: ocaml >= 4.02.0
1313
# BuildRequires: ocaml-labltk-devel
1414
BuildRequires: ocaml-ocamlbuild-devel
@@ -37,7 +37,7 @@ developing applications that use %{name}.
3737

3838

3939
%prep
40-
%setup -q -n findlib-%{version}
40+
%autosetup -p1 -n findlib-%{version}
4141

4242

4343
%build
@@ -69,7 +69,8 @@ make install \
6969

7070

7171
%files
72-
%doc LICENSE doc/README
72+
%license LICENSE
73+
%doc doc/README
7374
%config(noreplace) %{_sysconfdir}/ocamlfind.conf
7475
%{_bindir}/*
7576
%{_mandir}/man1/*
@@ -90,7 +91,7 @@ make install \
9091

9192

9293
%files devel
93-
%doc LICENSE doc/README doc/guide-html
94+
%doc doc/README doc/guide-html
9495
%ifarch %{ocaml_native_compiler}
9596
%{_libdir}/ocaml/findlib/*.a
9697
%{_libdir}/ocaml/findlib/*.cmxa
@@ -100,6 +101,10 @@ make install \
100101

101102

102103
%changelog
104+
* Tue Jan 18 2022 Thomas Crain <[email protected]> - 1.8.1-15
105+
- Patch stdlib bytes library detection for ocaml 4.13
106+
- License verified
107+
103108
* Thu Oct 14 2021 Pawel Winogrodzki <[email protected]> - 1.8.1-14
104109
- Switching to using full number for the 'Release' tag.
105110

SPECS-EXTENDED/zfs-fuse/zfs-fuse.spec

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ Distribution: Mariner
33
%define _hardened_build 1
44
Name: zfs-fuse
55
Version: 0.7.2.2
6-
Release: 15%{?dist}
6+
Release: 16%{?dist}
77
Summary: ZFS ported to Linux FUSE
88
License: CDDL
99
URL: https://github.com/gordan-bobic/zfs-fuse
10-
Source00: http://github.com/gordan-bobic/zfs-fuse/archive/%{name}-%{version}.tar.gz
10+
Source00: http://github.com/gordan-bobic/zfs-fuse/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
1111
Source01: zfs-fuse.service
1212
Source02: zfs-fuse.scrub
1313
Source03: zfs-fuse.sysconfig
@@ -52,7 +52,6 @@ chmod -x contrib/test-datasets
5252
chmod -x contrib/find-binaries
5353
chmod -x contrib/solaris/fixfiles.py
5454
chmod -x contrib/zfsstress.py
55-
cp -f /usr/lib/rpm/config.{guess,sub} src/lib/libumem/
5655

5756
%build
5857
export CCFLAGS="%{optflags}"
@@ -128,6 +127,11 @@ rm -rf /var/lock/zfs
128127
%{_mandir}/man8/zstreamdump.8.gz
129128

130129
%changelog
130+
* Tue Jan 18 2022 Thomas Crain <[email protected]> - 0.7.2.2-16
131+
- Remove copying of RPM's config.guess/config.sub into build dir (not shipped by RPM anymore)
132+
- Update Source0 URL
133+
- License verified
134+
131135
* Thu Jun 17 2021 Pawel Winogrodzki <[email protected]> - 0.7.2.2-15
132136
- Initial CBL-Mariner import from Fedora 32 (license: MIT).
133137
- Making SConstruct split 'CFLAGS' before saving them to the build environment.

cgmanifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30371,7 +30371,7 @@
3037130371
"other": {
3037230372
"name": "zfs-fuse",
3037330373
"version": "0.7.2.2",
30374-
"downloadUrl": "http://github.com/gordan-bobic/zfs-fuse/archive/zfs-fuse-0.7.2.2.tar.gz"
30374+
"downloadUrl": "http://github.com/gordan-bobic/zfs-fuse/archive/refs/tags/0.7.2.2.tar.gz"
3037530375
}
3037630376
}
3037730377
},

0 commit comments

Comments
 (0)