From owner-svn-ports-head@freebsd.org Sat Aug 3 07:43:35 2019 Return-Path: Delivered-To: svn-ports-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id C3370AA0B5; Sat, 3 Aug 2019 07:43:35 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 460wxz4YWdz428P; Sat, 3 Aug 2019 07:43:35 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 7E119FDB1; Sat, 3 Aug 2019 07:43:35 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x737hZpV014650; Sat, 3 Aug 2019 07:43:35 GMT (envelope-from tobik@FreeBSD.org) Received: (from tobik@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x737hZV2014648; Sat, 3 Aug 2019 07:43:35 GMT (envelope-from tobik@FreeBSD.org) Message-Id: <201908030743.x737hZV2014648@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: tobik set sender to tobik@FreeBSD.org using -f From: Tobias Kortkamp Date: Sat, 3 Aug 2019 07:43:35 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r507933 - in head/databases/tablelog: . files X-SVN-Group: ports-head X-SVN-Commit-Author: tobik X-SVN-Commit-Paths: in head/databases/tablelog: . files X-SVN-Commit-Revision: 507933 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Aug 2019 07:43:35 -0000 Author: tobik Date: Sat Aug 3 07:43:34 2019 New Revision: 507933 URL: https://svnweb.freebsd.org/changeset/ports/507933 Log: databases/tablelog: Unbreak build with PostgreSQL >= 11.0 table_log.c:76:29: error: member reference type 'FormData_pg_attribute' (aka 'struct FormData_pg_attribute') is not a pointer; did you mean to use '.'? if (!tupleDesc->attrs[i]->attisdropped) { ~~~~~~~~~~~~~~~~~~~^~ . table_log.c:303:59: error: member reference type 'FormData_pg_attribute' (aka 'struct FormData_pg_attribute') is not a pointer; did you mean to use '.'? if (trigdata->tg_relation->rd_att->attrs[col_nr - 1]->attisdropped) { ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ . table_log.c:348:59: error: member reference type 'FormData_pg_attribute' (aka 'struct FormData_pg_attribute') is not a pointer; did you mean to use '.'? if (trigdata->tg_relation->rd_att->attrs[col_nr - 1]->attisdropped) { ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ . table_log.c:375:59: error: member reference type 'FormData_pg_attribute' (aka 'struct FormData_pg_attribute') is not a pointer; did you mean to use '.'? if (trigdata->tg_relation->rd_att->attrs[col_nr - 1]->attisdropped) { ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ . 4 errors generated. http://package18.nyi.freebsd.org/data/120amd64-default-PR239514/2019-07-29_20h41m52s/logs/tablelog-0.4.4_3.log While here - Mark it as deprecated. The last release was in 2007 and upstream has been inactive since then. - Fix WWW PR: 239514 Reported by: antoine (via exp-run) Modified: head/databases/tablelog/Makefile head/databases/tablelog/files/patch-table__log.c head/databases/tablelog/pkg-descr Modified: head/databases/tablelog/Makefile ============================================================================== --- head/databases/tablelog/Makefile Sat Aug 3 07:25:18 2019 (r507932) +++ head/databases/tablelog/Makefile Sat Aug 3 07:43:34 2019 (r507933) @@ -12,6 +12,9 @@ COMMENT= Logs changes on a table in PostgreSQL LICENSE= PostgreSQL +DEPRECATED= Abandonware +EXPIRATION_DATE= 2019-09-15 + WRKSRC= ${WRKDIR}/table_log-${DISTVERSION} USES= gmake pgsql Modified: head/databases/tablelog/files/patch-table__log.c ============================================================================== --- head/databases/tablelog/files/patch-table__log.c Sat Aug 3 07:25:18 2019 (r507932) +++ head/databases/tablelog/files/patch-table__log.c Sat Aug 3 07:43:34 2019 (r507933) @@ -9,3 +9,51 @@ #include /* for PostgreSQL >= 8.2.x */ +@@ -71,7 +73,11 @@ int count_columns (TupleDesc tupleDesc) { + int i; + + for (i = 0; i < tupleDesc->natts; ++i) { ++#if PG_VERSION_NUM < 110000 + if (!tupleDesc->attrs[i]->attisdropped) { ++#else ++ if (!tupleDesc->attrs[i].attisdropped) { ++#endif + ++count; + } + } +@@ -298,7 +304,11 @@ static void __table_log (TriggerData *trigdata, char * + col_nr++; + found_col = 0; + do { ++#if PG_VERSION_NUM < 110000 + if (trigdata->tg_relation->rd_att->attrs[col_nr - 1]->attisdropped) { ++#else ++ if (trigdata->tg_relation->rd_att->attrs[col_nr - 1].attisdropped) { ++#endif + /* this column is dropped, skip it */ + col_nr++; + continue; +@@ -343,7 +353,11 @@ static void __table_log (TriggerData *trigdata, char * + col_nr++; + found_col = 0; + do { ++#if PG_VERSION_NUM < 110000 + if (trigdata->tg_relation->rd_att->attrs[col_nr - 1]->attisdropped) { ++#else ++ if (trigdata->tg_relation->rd_att->attrs[col_nr - 1].attisdropped) { ++#endif + /* this column is dropped, skip it */ + col_nr++; + continue; +@@ -370,7 +384,11 @@ static void __table_log (TriggerData *trigdata, char * + col_nr++; + found_col = 0; + do { ++#if PG_VERSION_NUM < 110000 + if (trigdata->tg_relation->rd_att->attrs[col_nr - 1]->attisdropped) { ++#else ++ if (trigdata->tg_relation->rd_att->attrs[col_nr - 1].attisdropped) { ++#endif + /* this column is dropped, skip it */ + col_nr++; + continue; Modified: head/databases/tablelog/pkg-descr ============================================================================== --- head/databases/tablelog/pkg-descr Sat Aug 3 07:25:18 2019 (r507932) +++ head/databases/tablelog/pkg-descr Sat Aug 3 07:43:34 2019 (r507933) @@ -3,4 +3,4 @@ any INSERTs, UPDATEs and DELETEs on a specific table i The second part of tablelog is able to restore the state of the original table or of a specific row for any time in the past. -WWW: http://tablelog.projects.postgresql.org/ +WWW: http://pgfoundry.org/projects/tablelog/