From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gisle Vanem To: location@lists.ipfire.org Subject: What generates database.db from database.txt? Date: Mon, 19 Oct 2020 17:53:36 +0200 Message-ID: <4eaccd86-f9d9-d53d-738a-6103179a15ef@gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6065675017813764800==" List-Id: --===============6065675017813764800== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Hello list, my ports post. I'm on Windows and have little interest in installing IPFire or do any Linux related. But the 'libloc' library caught my interest. So I did a port to MSVC, MinGW and clang-cl (x86 only) in a hurry. Running all the 'test-*' programs, it worked seemingly well. Until I built the Python3 module and played with e.g. 'location dump' and 'verify'. Nothing worked :-( So I reckon the .db file is hosed somehow. AFAICS, it's not an issue with structure packing or 'fopen(path, "r")'. Anyway, I want to regenerate 'database.db' from 'database.txt' 'countries.txt' and the 'override' files myself. But how? According to the git log at: git://git.ipfire.org/location/location-database.git there once was a 'compile-database' script. Not now. -- --gv --===============6065675017813764800==--