Upgrade to 0.99.0.1
This commit is contained in:
parent
2964ba1b66
commit
ff392c77cc
@ -0,0 +1,26 @@
|
|||||||
|
From 7f63349fd0405439532f2ff0896a3697c73ccaaf Mon Sep 17 00:00:00 2001
|
||||||
|
From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
|
||||||
|
Date: Thu, 27 Feb 2020 15:20:20 +0100
|
||||||
|
Subject: [PATCH] Fix meson_vapi_link.py to respect DESTDIR
|
||||||
|
|
||||||
|
Fixes #5
|
||||||
|
---
|
||||||
|
meson.build | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/meson.build b/meson.build
|
||||||
|
index 6d314b5..3a423b3 100644
|
||||||
|
--- a/meson.build
|
||||||
|
+++ b/meson.build
|
||||||
|
@@ -135,7 +135,7 @@ if enable_vapi
|
||||||
|
assert(enable_gir, 'vapi support was requested, but introspection support is mandatory.')
|
||||||
|
assert(add_languages('vala', required: false), 'vapi support was requested, but vala not found.')
|
||||||
|
|
||||||
|
- meson.add_install_script('meson_vapi_link.py', libgit2_glib_datadir)
|
||||||
|
+ meson.add_install_script('meson_vapi_link.py', get_option('datadir'))
|
||||||
|
endif
|
||||||
|
|
||||||
|
# Check for libgit2 ssh support
|
||||||
|
--
|
||||||
|
2.24.1
|
||||||
|
|
||||||
@ -0,0 +1,158 @@
|
|||||||
|
From 272024b9370380a538417004d478ef594bd0703c Mon Sep 17 00:00:00 2001
|
||||||
|
From: "Jan Alexander Steffens (heftig)" <jan.steffens@gmail.com>
|
||||||
|
Date: Sun, 1 Mar 2020 17:33:12 +0000
|
||||||
|
Subject: [PATCH 1/4] meson_vapi_link.py: Don't reset the cwd
|
||||||
|
|
||||||
|
We're exiting anyway so it's unnecessary.
|
||||||
|
---
|
||||||
|
meson_vapi_link.py | 6 +-----
|
||||||
|
1 file changed, 1 insertion(+), 5 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/meson_vapi_link.py b/meson_vapi_link.py
|
||||||
|
index eb64fd6..5b33063 100644
|
||||||
|
--- a/meson_vapi_link.py
|
||||||
|
+++ b/meson_vapi_link.py
|
||||||
|
@@ -5,18 +5,14 @@ import subprocess
|
||||||
|
import sys
|
||||||
|
|
||||||
|
vapidir = os.path.join(os.environ['MESON_INSTALL_DESTDIR_PREFIX'], sys.argv[1], 'vala', 'vapi')
|
||||||
|
+os.chdir(vapidir)
|
||||||
|
|
||||||
|
# FIXME: meson will not track the creation of these files
|
||||||
|
# https://github.com/mesonbuild/meson/blob/master/mesonbuild/scripts/uninstall.py#L39
|
||||||
|
old = 'ggit-1.0'
|
||||||
|
new = 'libgit2-glib-1.0'
|
||||||
|
|
||||||
|
-wd = os.getcwd()
|
||||||
|
-os.chdir(vapidir)
|
||||||
|
-
|
||||||
|
for ext in ['vapi', 'deps']:
|
||||||
|
src = os.path.join('{}.{}'.format(new, ext))
|
||||||
|
dest = os.path.join('{}.{}'.format(old, ext))
|
||||||
|
subprocess.call(['ln', '-s', '-f', src, dest])
|
||||||
|
-
|
||||||
|
-os.chdir(wd)
|
||||||
|
--
|
||||||
|
2.24.1
|
||||||
|
|
||||||
|
|
||||||
|
From f49f3f5a6cc20f54cdd9001f64912ca4d018ffec Mon Sep 17 00:00:00 2001
|
||||||
|
From: "Jan Alexander Steffens (heftig)" <jan.steffens@gmail.com>
|
||||||
|
Date: Sun, 1 Mar 2020 17:33:12 +0000
|
||||||
|
Subject: [PATCH 2/4] meson_vapi_link.py: Remove unnecessary os.path.join
|
||||||
|
|
||||||
|
We only have one argument, so it does nothing.
|
||||||
|
---
|
||||||
|
meson_vapi_link.py | 4 ++--
|
||||||
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/meson_vapi_link.py b/meson_vapi_link.py
|
||||||
|
index 5b33063..58e0f6b 100644
|
||||||
|
--- a/meson_vapi_link.py
|
||||||
|
+++ b/meson_vapi_link.py
|
||||||
|
@@ -13,6 +13,6 @@ old = 'ggit-1.0'
|
||||||
|
new = 'libgit2-glib-1.0'
|
||||||
|
|
||||||
|
for ext in ['vapi', 'deps']:
|
||||||
|
- src = os.path.join('{}.{}'.format(new, ext))
|
||||||
|
- dest = os.path.join('{}.{}'.format(old, ext))
|
||||||
|
+ src = '{}.{}'.format(new, ext)
|
||||||
|
+ dest = '{}.{}'.format(old, ext)
|
||||||
|
subprocess.call(['ln', '-s', '-f', src, dest])
|
||||||
|
--
|
||||||
|
2.24.1
|
||||||
|
|
||||||
|
|
||||||
|
From 170e1c31dad2208e3ce659628efdbf0623ebbda7 Mon Sep 17 00:00:00 2001
|
||||||
|
From: "Jan Alexander Steffens (heftig)" <jan.steffens@gmail.com>
|
||||||
|
Date: Sun, 1 Mar 2020 17:33:12 +0000
|
||||||
|
Subject: [PATCH 3/4] meson_vapi_link.py: Improve calculation of vapidir
|
||||||
|
|
||||||
|
The script gets the *absolute* datadir passed as its argument. This
|
||||||
|
means os.path.join will throw away the MESON_INSTALL_DESTDIR_PREFIX,
|
||||||
|
breaking the symlinking when DESTDIR is set.
|
||||||
|
|
||||||
|
Also handle the case where the datadir is not inside the prefix by
|
||||||
|
prepending the destdir ourselves. We make the datadir relative to the
|
||||||
|
root by stripping the drive letter (if any) and the initial separator.
|
||||||
|
---
|
||||||
|
meson.build | 2 +-
|
||||||
|
meson_vapi_link.py | 9 ++++++++-
|
||||||
|
2 files changed, 9 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/meson.build b/meson.build
|
||||||
|
index 3a423b3..6d314b5 100644
|
||||||
|
--- a/meson.build
|
||||||
|
+++ b/meson.build
|
||||||
|
@@ -135,7 +135,7 @@ if enable_vapi
|
||||||
|
assert(enable_gir, 'vapi support was requested, but introspection support is mandatory.')
|
||||||
|
assert(add_languages('vala', required: false), 'vapi support was requested, but vala not found.')
|
||||||
|
|
||||||
|
- meson.add_install_script('meson_vapi_link.py', get_option('datadir'))
|
||||||
|
+ meson.add_install_script('meson_vapi_link.py', libgit2_glib_datadir)
|
||||||
|
endif
|
||||||
|
|
||||||
|
# Check for libgit2 ssh support
|
||||||
|
diff --git a/meson_vapi_link.py b/meson_vapi_link.py
|
||||||
|
index 58e0f6b..d7fc729 100644
|
||||||
|
--- a/meson_vapi_link.py
|
||||||
|
+++ b/meson_vapi_link.py
|
||||||
|
@@ -4,7 +4,14 @@ import os
|
||||||
|
import subprocess
|
||||||
|
import sys
|
||||||
|
|
||||||
|
-vapidir = os.path.join(os.environ['MESON_INSTALL_DESTDIR_PREFIX'], sys.argv[1], 'vala', 'vapi')
|
||||||
|
+datadir = sys.argv[1]
|
||||||
|
+
|
||||||
|
+destdir = os.environ.get('DESTDIR')
|
||||||
|
+if destdir:
|
||||||
|
+ datadir = os.path.splitdrive(datadir)[1].lstrip(os.path.sep)
|
||||||
|
+ datadir = os.path.join(destdir, datadir)
|
||||||
|
+
|
||||||
|
+vapidir = os.path.join(datadir, 'vala', 'vapi')
|
||||||
|
os.chdir(vapidir)
|
||||||
|
|
||||||
|
# FIXME: meson will not track the creation of these files
|
||||||
|
--
|
||||||
|
2.24.1
|
||||||
|
|
||||||
|
|
||||||
|
From 29db98df0f65519bbcc9827253b0849ce7fb741c Mon Sep 17 00:00:00 2001
|
||||||
|
From: "Jan Alexander Steffens (heftig)" <jan.steffens@gmail.com>
|
||||||
|
Date: Sun, 1 Mar 2020 17:33:12 +0000
|
||||||
|
Subject: [PATCH 4/4] meson_vapi_link.py: Use python's own utils instead of
|
||||||
|
calling 'ln'
|
||||||
|
|
||||||
|
Replace the use of 'ln' with os.symlink. Since subprocess.call does not
|
||||||
|
raise any exception when the called process fails, this script likely
|
||||||
|
silently did nothing on Windows. Instead, fall back to using shutil.copy
|
||||||
|
to copy instead of symlinking.
|
||||||
|
---
|
||||||
|
meson_vapi_link.py | 7 +++++--
|
||||||
|
1 file changed, 5 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/meson_vapi_link.py b/meson_vapi_link.py
|
||||||
|
index d7fc729..db1e4e8 100644
|
||||||
|
--- a/meson_vapi_link.py
|
||||||
|
+++ b/meson_vapi_link.py
|
||||||
|
@@ -1,7 +1,7 @@
|
||||||
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
|
import os
|
||||||
|
-import subprocess
|
||||||
|
+import shutil
|
||||||
|
import sys
|
||||||
|
|
||||||
|
datadir = sys.argv[1]
|
||||||
|
@@ -22,4 +22,7 @@ new = 'libgit2-glib-1.0'
|
||||||
|
for ext in ['vapi', 'deps']:
|
||||||
|
src = '{}.{}'.format(new, ext)
|
||||||
|
dest = '{}.{}'.format(old, ext)
|
||||||
|
- subprocess.call(['ln', '-s', '-f', src, dest])
|
||||||
|
+ try:
|
||||||
|
+ os.symlink(src, dest)
|
||||||
|
+ except OSError:
|
||||||
|
+ shutil.copy(src, dest)
|
||||||
|
--
|
||||||
|
2.24.1
|
||||||
|
|
||||||
Binary file not shown.
BIN
libgit2-glib-0.99.0.1.tar.xz
Normal file
BIN
libgit2-glib-0.99.0.1.tar.xz
Normal file
Binary file not shown.
@ -1,11 +1,14 @@
|
|||||||
Name: libgit2-glib
|
Name: libgit2-glib
|
||||||
Version: 0.27.8
|
Version: 0.99.0.1
|
||||||
Release: 2
|
Release: 1
|
||||||
Summary: Git library for GLib
|
Summary: Git library for GLib
|
||||||
License: LGPLv2+
|
License: LGPLv2+
|
||||||
URL: https://wiki.gnome.org/Projects/Libgit2-glib
|
URL: https://wiki.gnome.org/Projects/Libgit2-glib
|
||||||
Source0: https://download.gnome.org/sources/libgit2-glib/0.27/libgit2-glib-%{version}.tar.xz
|
Source0: https://download.gnome.org/sources/libgit2-glib/0.99/libgit2-glib-%{version}.tar.xz
|
||||||
BuildRequires: gtk-doc pkgconfig(glib-2.0) >= 2.44.0 pkgconfig(gobject-2.0) >= 2.44.0 pkgconfig(pygobject-3.0)
|
Patch0: 20-create-oldnamed-softlink-ggit-1.0-to-new-vapifiles-libgit2-glib-1.0-for-compatible.patch
|
||||||
|
Patch1: 22-create-oldnamed-softlink-ggit-1.0-to-new-vapifiles-libgit2-glib-1.0-for-compatible.patch
|
||||||
|
|
||||||
|
BuildRequires: gcc gtk-doc pkgconfig(glib-2.0) >= 2.44.0 pkgconfig(gobject-2.0) >= 2.44.0 pkgconfig(pygobject-3.0)
|
||||||
BuildRequires: pkgconfig(gio-2.0) >= 2.44.0 pkgconfig(libgit2) >= 0.25.0 libssh2-devel python3-devel vala meson
|
BuildRequires: pkgconfig(gio-2.0) >= 2.44.0 pkgconfig(libgit2) >= 0.25.0 libssh2-devel python3-devel vala meson
|
||||||
Requires: glib2 >= 2.44.0 libgit2 >= 0.25.0 python3-gobject
|
Requires: glib2 >= 2.44.0 libgit2 >= 0.25.0 python3-gobject
|
||||||
|
|
||||||
@ -27,7 +30,7 @@ Requires: libgit2-glib-devel
|
|||||||
Documentation for libgit2-glib-devel.
|
Documentation for libgit2-glib-devel.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n libgit2-glib-%{version}
|
%autosetup -n libgit2-glib-%{version} -p1
|
||||||
%build
|
%build
|
||||||
%meson -Dgtk_doc=true -Dpython=true
|
%meson -Dgtk_doc=true -Dpython=true
|
||||||
%meson_build
|
%meson_build
|
||||||
@ -52,5 +55,8 @@ Documentation for libgit2-glib-devel.
|
|||||||
%doc %{_datadir}/gtk-doc/
|
%doc %{_datadir}/gtk-doc/
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Jun 30 2021 weijin deng <weijin.deng@turbolinux.com.cn> - 0.99.0.1-1
|
||||||
|
- Upgrade to 0.99.0.1
|
||||||
|
|
||||||
* Tue Dec 31 2019 Ling Yang <lingyang2@huawei.com> - 0.27.8-2
|
* Tue Dec 31 2019 Ling Yang <lingyang2@huawei.com> - 0.27.8-2
|
||||||
- Package init
|
- Package init
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user