fix compilation

i9cf
Mamoru TASAKA 3 years ago
parent b9eefba22d
commit 62328f2e1b

@ -0,0 +1,29 @@
From 6ea18afd328fcaa9e6ea2200ef53da5dd9d1e36f Mon Sep 17 00:00:00 2001
From: Mamoru TASAKA <mtasaka@fedoraproject.org>
Date: Thu, 18 Nov 2021 14:48:27 +0900
Subject: [PATCH] GnomeCmdFile::get_adate: fix compilation
ref: ec93dcb7c304c8b45ecc9c18ca3ec833bf248601
ref: 5eccc4a6c892df41ebe845eb80fbd6b4ff9b99fb
`GnomeVFSFileInfo *info` is removed from `struct GnomeCmdFile` .
---
src/gnome-cmd-file.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gnome-cmd-file.cc b/src/gnome-cmd-file.cc
index 57ad963c..d7237285 100644
--- a/src/gnome-cmd-file.cc
+++ b/src/gnome-cmd-file.cc
@@ -671,7 +671,7 @@ inline const gchar *date2string (GDateTime *date, gboolean overide_disp_setting)
#ifdef GLIB_2_70
const gchar *GnomeCmdFile::get_adate(gboolean overide_disp_setting)
{
- g_return_val_if_fail (info != nullptr, nullptr);
+ g_return_val_if_fail (gFileInfo != nullptr, nullptr);
return date2string (g_file_info_get_access_date_time(gFileInfo), overide_disp_setting);
}
--
2.33.1

@ -86,6 +86,7 @@ Source1: gnome-commander.sh
Source2: create-gcmd-git-bare-tarball.sh
Source10: mimeedit-svn%{mimeedit_rev}.sh
Patch1: gnome-commander-1.6.0-path-fedora-specific.patch
Patch101: gnome-commander-1.12.x-git-0001-GnomeCmdFile-get_adate-fix-compilation.patch
BuildRequires: gcc-c++
%if 0%{?use_gcc_strict_sanitize}
@ -194,6 +195,7 @@ git commit -m "base" -q
%patch1 -p1 -b .path
git commit -m "Apply Fedora specific path configuration" -a
cat %PATCH101 | git am
%if 0%{use_autotool} > 0
( export NOCONFIGURE=1 ; sh autogen.sh )

Loading…
Cancel
Save