Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uFcLW-006eHk-4m for pgsql-bugs@arkaria.postgresql.org; Thu, 15 May 2025 17:26:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1uFcLU-00Fq7J-MQ for pgsql-bugs@arkaria.postgresql.org; Thu, 15 May 2025 17:26:12 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uFcLU-00Fq7A-Cl for pgsql-bugs@lists.postgresql.org; Thu, 15 May 2025 17:26:12 +0000 Received: from janus.karlpinc.com ([173.161.46.12] helo=smtp.karlpinc.com) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uFcLQ-001xDe-0m for pgsql-bugs@lists.postgresql.org; Thu, 15 May 2025 17:26:10 +0000 Received: from slate.karlpinc.com (unknown [192.168.1.14]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp.karlpinc.com (Postfix) with ESMTPS id 76E3EA0B8 for ; Thu, 15 May 2025 12:26:02 -0500 (CDT) Received: from slate.karlpinc.com (localhost [IPv6:::1]) by slate.karlpinc.com (Postfix) with ESMTPS id E77713FBE9 for ; Thu, 15 May 2025 12:26:01 -0500 (CDT) Date: Thu, 15 May 2025 12:25:59 -0500 From: "Karl O. Pinc" To: pgsql-bugs@lists.postgresql.org Subject: PGXS does not properly uninstall documentation Message-ID: <20250515122559.067c4ee0@slate.karlpinc.com> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="MP_/A4+849Z.byp+qSkZW+=bEh/" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --MP_/A4+849Z.byp+qSkZW+=bEh/ Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, When using PGXS, putting a pathname, as opposed to just a file name, into DOCS means that file won't uninstall. When installing documentation via the DOCS variable, the Makefile runs `install`, which installs a single file into a directory somewhere, regardless of the source path. But the source path is what's in DOCS, so when uninstalling the Makefile must strip the directory part from what's in DOCS when deleting the file. Makefile patch attached. Regards, Karl Free Software: "You don't pay back, you pay forward." -- Robert A. Heinlein --MP_/A4+849Z.byp+qSkZW+=bEh/ Content-Type: application/octet-stream; name=pgxs_doc_bug Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename=pgxs_doc_bug ZGlmZiAtLWdpdCBhL3NyYy9tYWtlZmlsZXMvcGd4cy5tayBiL3NyYy9tYWtlZmlsZXMvcGd4cy5t awppbmRleCAwZGUzNzM3ZTc4Li4yMTNmZjNhMjQyIDEwMDY0NAotLS0gYS9zcmMvbWFrZWZpbGVz L3BneHMubWsKKysrIGIvc3JjL21ha2VmaWxlcy9wZ3hzLm1rCkBAIC0zMjAsNyArMzIwLDcgQEAg aWZlcSAoJCh3aXRoX2xsdm0pLCB5ZXMpCiBlbmRpZiAjIHdpdGhfbGx2bQogZW5kaWYgIyBNT0RV TEVTCiBpZmRlZiBET0NTCi0Jcm0gLWYgJChhZGRwcmVmaXggJyQoREVTVERJUikkKGRvY2Rpcikv JChkb2Ntb2R1bGVkaXIpJy8sICQoRE9DUykpCisJcm0gLWYgJChhZGRwcmVmaXggJyQoREVTVERJ UikkKGRvY2RpcikvJChkb2Ntb2R1bGVkaXIpJy8sICQobm90ZGlyICQoRE9DUykpKQogZW5kaWYK IGlmZGVmIFBST0dSQU0KIAlybSAtZiAnJChERVNURElSKSQoYmluZGlyKS8kKFBST0dSQU0pJChY KScK --MP_/A4+849Z.byp+qSkZW+=bEh/--