Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 499540 Details for
Bug 634990
app-crypt/gpgme-1.8.0-r3 fails to build with GCC 4.9
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
gpgme-1.8.0-gcc-4.patch
gpgme-1.8.0-gcc-4.patch (text/plain), 2.15 KB, created by
René Rhéaume
on 2017-10-21 12:21:12 UTC
(
hide
)
Description:
gpgme-1.8.0-gcc-4.patch
Filename:
MIME Type:
Creator:
René Rhéaume
Created:
2017-10-21 12:21:12 UTC
Size:
2.15 KB
patch
obsolete
>--- gpgme-1.8.0/lang/cpp/src/data.cpp >+++ gpgme-1.8.0-gcc4/lang/cpp/src/data.cpp >@@ -26,6 +26,7 @@ > > #include "data_p.h" > #include <error.h> >+#include <stdio.h> > #include <interfaces/dataprovider.h> > > #include <gpgme.h> >@@ -66,9 +67,10 @@ GpgME::Data::Data(const char *buffer, si > { > gpgme_data_t data; > const gpgme_error_t e = gpgme_data_new_from_mem(&data, buffer, size, int(copy)); >- std::string sizestr = std::to_string(size); >+ char sizestr[22]; >+ snprintf(sizestr, 22, "%lu", size); > // Ignore errors as this is optional >- gpgme_data_set_flag(data, "size-hint", sizestr.c_str()); >+ gpgme_data_set_flag(data, "size-hint", sizestr); > d.reset(new Private(e ? 0 : data)); > } > >@@ -135,9 +137,10 @@ GpgME::Data::Data(DataProvider *dp) > if (dp->isSupported(DataProvider::Seek)) { > off_t size = seek(0, SEEK_END); > seek(0, SEEK_SET); >- std::string sizestr = std::to_string(size); >+ char sizestr[22]; >+ snprintf(sizestr, 22, "%lu", size); > // Ignore errors as this is optional >- gpgme_data_set_flag(d->data, "size-hint", sizestr.c_str()); >+ gpgme_data_set_flag(d->data, "size-hint", sizestr); > } > #ifndef NDEBUG > //std::cerr << "GpgME::Data(): DataProvider supports: " >--- gpgme-1.8.0/lang/cpp/src/engineinfo.h >+++ gpgme-1.8.0-gcc4/lang/cpp/src/engineinfo.h >@@ -30,6 +30,7 @@ > #include <algorithm> > #include <string> > #include <iostream> >+#include <stdio.h> > > namespace GpgME > { >@@ -50,7 +51,7 @@ public: > Version(const std::string& version) > { > if (version.empty() || >- std::sscanf(version.c_str(), "%d.%d.%d", &major, &minor, &patch) != 3) { >+ sscanf(version.c_str(), "%d.%d.%d", &major, &minor, &patch) != 3) { > major = 0; > minor = 0; > patch = 0; >@@ -60,7 +61,7 @@ public: > Version(const char *version) > { > if (!version || >- std::sscanf(version, "%d.%d.%d", &major, &minor, &patch) != 3) { >+ sscanf(version, "%d.%d.%d", &major, &minor, &patch) != 3) { > major = 0; > minor = 0; > patch = 0;
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 634990
: 499540