Unbreak for clang6. Upstream changed their server layout, so adjust

MASTER_SITES.

ok schwarze
This commit is contained in:
tb 2018-04-16 15:07:09 +00:00
parent 8407666f42
commit bf460bdfdc
2 changed files with 16 additions and 3 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.37 2017/07/26 22:45:16 sthen Exp $
# $OpenBSD: Makefile,v 1.38 2018/04/16 15:07:09 tb Exp $
COMMENT= administration and development platform for PostgreSQL
@ -16,8 +16,7 @@ PERMIT_PACKAGE_CDROM= Yes
WANTLIB= c m pthread ${COMPILER_LIBCXX} crypto z
MASTER_SITES= https://ftp.postgresql.org/pub/pgadmin3/release/v$V/src/ \
ftp://ftp.postgresql.org/pub/pgadmin3/release/v$V/src/
MASTER_SITES= https://ftp.postgresql.org/pub/pgadmin/pgadmin3/v$V/src/
LIB_DEPENDS= x11/wxWidgets>=2.8.7 \
databases/postgresql \

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-pgadmin_frm_frmEditGrid_cpp,v 1.1 2018/04/16 15:07:09 tb Exp $
Index: pgadmin/frm/frmEditGrid.cpp
--- pgadmin/frm/frmEditGrid.cpp.orig
+++ pgadmin/frm/frmEditGrid.cpp
@@ -2386,7 +2386,7 @@ sqlTable::sqlTable(pgConn *conn, pgQueryThread *_threa
columns[i].typlen = colSet->GetLong(wxT("typlen"));
columns[i].typmod = colSet->GetLong(wxT("typmod"));
- switch (columns[i].type)
+ switch (static_cast<long>(columns[i].type))
{
case PGOID_TYPE_BOOL:
columns[i].numeric = false;