FreeBSD Bugzilla – Attachment 232029 Details for
Bug 262139
editors/poedit: Fix build with non-default BDB (eg: 18) versions
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch file
editors_poedit.patch (text/plain), 1.32 KB, created by
Yasuhiro Kimura
on 2022-02-23 06:48:24 UTC
(
hide
)
Description:
Patch file
Filename:
MIME Type:
Creator:
Yasuhiro Kimura
Created:
2022-02-23 06:48:24 UTC
Size:
1.32 KB
patch
obsolete
>From 68fcbaf9e1f0b66578e57130e815481f93fec8cc Mon Sep 17 00:00:00 2001 >From: Yasuhiro Kimura <yasu@FreeBSD.org> >Date: Sun, 6 Feb 2022 05:27:47 +0900 >Subject: [PATCH] editors/poedit: Fix build when default version of berkeley db > is 18 > >--- > .../files/patch-src_tm_dump__legacy__tm.cpp | 18 ++++++++++++++++++ > 1 file changed, 18 insertions(+) > >diff --git a/editors/poedit/files/patch-src_tm_dump__legacy__tm.cpp b/editors/poedit/files/patch-src_tm_dump__legacy__tm.cpp >index 0bade0d17730..33deec5298e8 100644 >--- a/editors/poedit/files/patch-src_tm_dump__legacy__tm.cpp >+++ b/editors/poedit/files/patch-src_tm_dump__legacy__tm.cpp >@@ -8,3 +8,21 @@ > #include <string.h> > > #ifdef DB_HEADER >+@@ -305,7 +306,7 @@ std::unique_ptr<DbEnv> CreateDbEnv(const char *path) >+ DB_RECOVER | >+ DB_CREATE; >+ >+- std::unique_ptr<DbEnv> env(new DbEnv(0)); >++ std::unique_ptr<DbEnv> env(new DbEnv((u_int32_t)0)); >+ env->open(path, flags, 0600); >+ >+ // This prevents the log from growing indefinitely >+@@ -324,7 +325,7 @@ void DestroyDbEnv(std::unique_ptr<DbEnv>& env) >+ env->close(0); >+ >+ // Clean up temporary environment files (unless they're still in use): >+- DbEnv env2(0); >++ DbEnv env2((u_int32_t)0); >+ env2.remove(dbpath.c_str(), 0); >+ >+ env.reset(); >-- >2.35.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 262139
: 232029 |
232042