ports/www/aws/files/patch-makefile
John Marino 640e99a0f6 www/aws: Upgrade from 3.1.0.0 => 3.2.0.0
The templates parser was split out from AWS and due to quirk how
GPRBuild interacts with aggregate library projects, linking it as a
separate library was more than challenging.  It would drop a library
exchange file (aws.lexch) in /usr/local/lib/templates_parser during
the linking process.  Ports are not support to touch areas outside of
their work directory -- if they do, builders will notice and fail the
port.  After hours of trying to get GPRLib to behave, I was reduced to
copying the *.ali files over to the work directory and creating a
custom gpr file to make linking legal.  In the process, I noticed AWS
was linking back to work directory (sanity checks don't flag this yet)
so that was fixed the the custom "-R" option that I added to GPRBuild
a couple of years ago.

I had to create a custom aws.gpr file for lib/gnat, and it works really
well.  Currently something like 238 of 243 tests are passing and the
failing ones are socket related and may looking for linux-specific
output in a couple of cases.

* Documentation is now based on Sphinx.
* A fixed package list has replaced the generated one (due to number
  of options, this was a real chore to generate and validate)
* The option to generate only a shared library was removed.  It was
  confusing and not really useful.  It produces static and shared
  libraries by default, and the shared ones can be suppressed optionally.
* The FreeBSD-specific makefile was removed.  The previous issue was
  caused by the way the compiler was built which has since been fixed
* ASIS was added as dependency
* RUN_DEPENDS were defined (they were missing before)
* GNUTLS support was fixed.  It requires version 3 now and does not
  required gcrypt or openssl anymore which indicated a previous problem.

The aws-demos port had some missing files and other problems.  It has
been updated at the same time.  Note that the output directory has
changed from share/examples/aws-demos to share/examples/aws.  A couple
of tests that were broken now build, and a new test was added.

This update comes straight from the latest repositories and was custom
packaged.  The annual Adacore release was about 5 months old.
2014-05-17 21:21:18 +00:00

28 lines
980 B
Plaintext

--- makefile.orig 2014-05-15 19:48:07.000000000 +0000
+++ makefile
@@ -61,15 +61,14 @@ ALL_OPTIONS = $(MAKE_OPT) SOCKET="$(SOCK
GPRBUILD="$(GPRBUILD)" ZLIB="$(ZLIB)" BDIR="$(BDIR)" \
prefix="$(prefix)" ENABLE_SHARED="$(ENABLE_SHARED)" \
SOEXT="$(SOEXT)" BUILD_DOC_SCRIPT="false" GNAT="$(GNAT)" \
- T2A="../../$(BDIR)/static/tools/templates2ada" \
+ T2A="$(prefix)/bin/templates2ada" \
LIBRARY_TYPE="$(LIBRARY_TYPE)" PYTHON="$(PYTHON)" \
TARGET="$(TARGET)" IS_CROSS=$(IS_CROSS) GPRINSTALL="$(GPRINSTALL)"
build-doc:
echo ""
echo "=== Build doc"
- ${MAKE} -C docs html latexpdf
- ${MAKE} -C templates_parser/docs html latexpdf
+ ${MAKE} -C docs html
run_regtests:
echo ""
@@ -343,4 +342,5 @@ gen_setup:
setup: gen_setup setup_dir setup_modules setup_config setup_tp $(GEXT_MODULE)
setup_tp:
- $(MAKE) -C templates_parser setup $(GALL_OPTIONS)
+ echo "Templates Parser has already been externally built"
+ #$(MAKE) -C templates_parser setup $(GALL_OPTIONS)