nixpkgs/pkgs/development/libraries/ada/gnatcoll/omp-setup-text-mode.patch
sternenseemann 41f190a360 gnatcoll-*: init gnatcoll-bindings at 21.0.0
gnatcoll-gmp: init at 21.0.0
gnatcoll-iconv: init at 21.0.0
gnatcoll-lzma: init at 21.0.0
gnatcoll-omp: init at 21.0.0
gnatcoll-python3: init at 21.0.0
gnatcoll-readline: init at 21.0.0
gnatcoll-syslog: init at 21.0.0
gnatcoll-zlib: init at 21.0.0

This inits a bunch of gnatcoll-* packages which are managed in the
gnatcoll-bindings repository. I have chosen not to include "bindings"
in their derivation or attribute names, since the GPR project
definitions themselves all don't contain that as well, instead they
are name `gnatcoll_${component}.gpr`.
2021-08-03 14:58:49 +02:00

24 lines
872 B
Diff

commit 37c815ee660d1bf37256638d23b0346ad7cc19e7
Author: sternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org>
Date: Wed Jul 21 00:18:30 2021 +0200
omp/setup.py: open version_information in text mode
Otherwise saving the config in setup_support.py will fail as a bytes
object is not encodeable as JSON. Luckily, version_information is text
anyways.
diff --git a/omp/setup.py b/omp/setup.py
index 942ab1f5..5281398e 100755
--- a/omp/setup.py
+++ b/omp/setup.py
@@ -25,7 +25,7 @@ class GNATCollOMP(SetupApp):
# Set library version
with open(os.path.join(config.source_dir, '..',
- 'version_information'), 'rb') as fd:
+ 'version_information'), 'r') as fd:
version = fd.read().strip()
config.set_data('GNATCOLL_VERSION', version, sub='gprbuild')