Skip to content

Commit

Permalink
Merge pull request #441 from aguycalled/fix-makefile-qt
Browse files Browse the repository at this point in the history
Fix Gitian build
  • Loading branch information
proletesseract authored Apr 15, 2019
2 parents 5ba6b6a + a185018 commit afa2e8b
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 13 deletions.
6 changes: 3 additions & 3 deletions src/Makefile.qt.include
Original file line number Diff line number Diff line change
Expand Up @@ -470,12 +470,12 @@ qt_navcoin_qt_CPPFLAGS = $(AM_CPPFLAGS) $(NAVCOIN_INCLUDES) $(CURL_INCLUDES) $(N
$(QT_INCLUDES) $(PROTOBUF_CFLAGS) $(QR_CFLAGS)
qt_navcoin_qt_CXXFLAGS = $(AM_CXXFLAGS) $(QT_PIE_FLAGS)

qt_navcoin_qt_SOURCES=qt/navcoin.cpp
qt_navcoin_qt_SOURCES = qt/navcoin.cpp
if TARGET_DARWIN
qt_navcoin_qt_SOURCES+=$(NAVCOIN_MM)
qt_navcoin_qt_SOURCES += $(NAVCOIN_MM)
endif
if TARGET_WINDOWS
qt_navcoin_qt_SOURCES += $(NAVCOIN_RC)
qt_navcoin_qt_SOURCES+=$(NAVCOIN_RC)
endif
qt_navcoin_qt_LDADD = qt/libnavcoinqt.a $(LIBNAVCOIN_SERVER)
if ENABLE_WALLET
Expand Down
8 changes: 6 additions & 2 deletions src/qt/communityfunddisplay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ void CommunityFundDisplay::refresh()
std::string expiry_title = "Rejected on: ";
std::time_t t = static_cast<time_t>(proptime);
std::stringstream ss;
ss << std::put_time(std::gmtime(&t), "%c %Z");
char buf[24];
if (strftime(buf, sizeof(buf), "%c %Z", std::gmtime(&t)))
ss << buf;
ui->labelTitleDuration->setText(QString::fromStdString(expiry_title));
ui->labelDuration->setText(QString::fromStdString(ss.str().erase(10, 9)));
}
Expand All @@ -106,7 +108,9 @@ void CommunityFundDisplay::refresh()
std::string expiry_title = "Expired on: ";
std::time_t t = static_cast<time_t>(proptime);
std::stringstream ss;
ss << std::put_time(std::gmtime(&t), "%c %Z");
char buf[24];
if (strftime(buf, sizeof(buf), "%c %Z", std::gmtime(&t)))
ss << buf;
ui->labelTitleDuration->setText(QString::fromStdString(expiry_title));
ui->labelDuration->setText(QString::fromStdString(ss.str().erase(10, 9)));
}
Expand Down
8 changes: 6 additions & 2 deletions src/qt/communityfunddisplaydetailed.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,9 @@ void CommunityFundDisplayDetailed::setProposalLabels() const
std::string expiry_title = "Rejected on: ";
std::time_t t = static_cast<time_t>(proptime);
std::stringstream ss;
ss << std::put_time(std::gmtime(&t), "%c %Z");
char buf[24];
if (strftime(buf, sizeof(buf), "%c %Z", std::gmtime(&t)))
ss << buf;
ui->labelExpiresInTitle->setText(QString::fromStdString(expiry_title));
ui->labelExpiresIn->setText(QString::fromStdString(ss.str().erase(10, 9)));
}
Expand All @@ -118,7 +120,9 @@ void CommunityFundDisplayDetailed::setProposalLabels() const
std::string expiry_title = "Expired on: ";
std::time_t t = static_cast<time_t>(proptime);
std::stringstream ss;
ss << std::put_time(std::gmtime(&t), "%c %Z");
char buf[24];
if (strftime(buf, sizeof(buf), "%c %Z", std::gmtime(&t)))
ss << buf;
ui->labelExpiresInTitle->setText(QString::fromStdString(expiry_title));
ui->labelExpiresIn->setText(QString::fromStdString(ss.str().erase(10, 9)));
}
Expand Down
12 changes: 9 additions & 3 deletions src/qt/communityfunddisplaypaymentrequest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@ void CommunityFundDisplayPaymentRequest::refresh()
std::string duration_title = "Accepted on: ";
std::time_t t = static_cast<time_t>(proptime);
std::stringstream ss;
ss << std::put_time(std::gmtime(&t), "%c %Z");
char buf[24];
if (strftime(buf, sizeof(buf), "%c %Z", std::gmtime(&t)))
ss << buf;
ui->labelTitleDuration->setText(QString::fromStdString(duration_title));
ui->labelDuration->setText(QString::fromStdString(ss.str().erase(10, 9)));
}
Expand All @@ -101,7 +103,9 @@ void CommunityFundDisplayPaymentRequest::refresh()
std::string expiry_title = "Rejected on: ";
std::time_t t = static_cast<time_t>(proptime);
std::stringstream ss;
ss << std::put_time(std::gmtime(&t), "%c %Z");
char buf[24];
if (strftime(buf, sizeof(buf), "%c %Z", std::gmtime(&t)))
ss << buf;
ui->labelTitleDuration->setText(QString::fromStdString(expiry_title));
ui->labelDuration->setText(QString::fromStdString(ss.str().erase(10, 9)));
}
Expand All @@ -114,7 +118,9 @@ void CommunityFundDisplayPaymentRequest::refresh()
std::string expiry_title = "Expired on: ";
std::time_t t = static_cast<time_t>(proptime);
std::stringstream ss;
ss << std::put_time(std::gmtime(&t), "%c %Z");
char buf[24];
if (strftime(buf, sizeof(buf), "%c %Z", std::gmtime(&t)))
ss << buf;
ui->labelTitleDuration->setText(QString::fromStdString(expiry_title));
ui->labelDuration->setText(QString::fromStdString(ss.str().erase(10, 9)));
}
Expand Down
12 changes: 9 additions & 3 deletions src/qt/communityfunddisplaypaymentrequestdetailed.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,9 @@ void CommunityFundDisplayPaymentRequestDetailed::setPrequestLabels() const
std::string duration_title = "Accepted on: ";
std::time_t t = static_cast<time_t>(proptime);
std::stringstream ss;
ss << std::put_time(std::gmtime(&t), "%c %Z");
char buf[24];
if (strftime(buf, sizeof(buf), "%c %Z", std::gmtime(&t)))
ss << buf;
ui->labelPrequestExpiryTitle->setText(QString::fromStdString(duration_title));
ui->labelPrequestExpiry->setText(QString::fromStdString(ss.str().erase(10, 9)));
}
Expand All @@ -135,7 +137,9 @@ void CommunityFundDisplayPaymentRequestDetailed::setPrequestLabels() const
std::string expiry_title = "Rejected on: ";
std::time_t t = static_cast<time_t>(proptime);
std::stringstream ss;
ss << std::put_time(std::gmtime(&t), "%c %Z");
char buf[24];
if (strftime(buf, sizeof(buf), "%c %Z", std::gmtime(&t)))
ss << buf;
ui->labelPrequestExpiryTitle->setText(QString::fromStdString(expiry_title));
ui->labelPrequestExpiry->setText(QString::fromStdString(ss.str().erase(10, 9)));
}
Expand All @@ -146,7 +150,9 @@ void CommunityFundDisplayPaymentRequestDetailed::setPrequestLabels() const
std::string expiry_title = "Expired on: ";
std::time_t t = static_cast<time_t>(proptime);
std::stringstream ss;
ss << std::put_time(std::gmtime(&t), "%c %Z");
char buf[24];
if (strftime(buf, sizeof(buf), "%c %Z", std::gmtime(&t)))
ss << buf;
ui->labelPrequestExpiryTitle->setText(QString::fromStdString(expiry_title));
ui->labelPrequestExpiry->setText(QString::fromStdString(ss.str().erase(10, 9)));
}
Expand Down

0 comments on commit afa2e8b

Please sign in to comment.