From 80aeb31082823fbd9c84791d3dc35570a659cebe Mon Sep 17 00:00:00 2001 From: Jeffery To Date: Fri, 27 Oct 2023 21:09:53 +0800 Subject: [PATCH] unixodbc: Copy pgsqlodbc.ini instead of creating it dynamically Signed-off-by: Jeffery To --- libs/unixodbc/Makefile | 4 +--- libs/unixodbc/files/pgsqlodbc.ini | 3 +++ 2 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 libs/unixodbc/files/pgsqlodbc.ini diff --git a/libs/unixodbc/Makefile b/libs/unixodbc/Makefile index 4dc5b553b6..52ff9959b3 100644 --- a/libs/unixodbc/Makefile +++ b/libs/unixodbc/Makefile @@ -115,9 +115,7 @@ define Package/pgsqlodbc/install $(INSTALL_DIR) $(1)/usr/lib $(CP) $(PKG_INSTALL_DIR)/usr/lib/libodbcpsql*so* $(1)/usr/lib/ $(INSTALL_DIR) $(1)/etc/odbcinst.ini.d/ - echo "[PostgreSQL]" > $(1)/etc/odbcinst.ini.d/pgsqlodbc.ini - echo "Description = unixODBC PostgreSQL driver" >> $(1)/etc/odbcinst.ini.d/pgsqlodbc.ini - echo "Driver = /usr/lib/libodbcpsql.so" >> $(1)/etc/odbcinst.ini.d/pgsqlodbc.ini + $(INSTALL_DATA) ./files/pgsqlodbc.ini $(1)/etc/odbcinst.ini.d/ endef define Host/Configure diff --git a/libs/unixodbc/files/pgsqlodbc.ini b/libs/unixodbc/files/pgsqlodbc.ini new file mode 100644 index 0000000000..54a64bcfa8 --- /dev/null +++ b/libs/unixodbc/files/pgsqlodbc.ini @@ -0,0 +1,3 @@ +[PostgreSQL] +Description = unixODBC PostgreSQL driver +Driver = /usr/lib/libodbcpsql.so -- 2.30.2