Граф коммитов

116 Коммитов

Автор SHA1 Сообщение Дата
Rob Lemley 1c6c7f4dc3 Bug 1732809 - Add flag to disable building librnp shared library and tools. r=kaie
There is no version checking or verification done at build time since the
library is loaded via ctypes at runtime.

Differential Revision: https://phabricator.services.mozilla.com/D130774
2021-11-04 05:07:46 +00:00
Rob Lemley 289f12af3e Bug 1738798 - Rename RNP commandline executable to "rnp-cli" to avoid name clash. rs=bustage-fix
There's a name clash with the .pdb files that are part of ASan builds between
"rnp.exe" and "rnp.dll". This only happens on Windows builds. Renaming the CLI
executable will avoid the clash.
2021-11-12 18:56:27 -05:00
Rob Lemley 472f8f5cfa Bug 1738708 - Update README.botan for new version. r=kaie
Differential Revision: https://phabricator.services.mozilla.com/D130210
2021-11-02 19:59:23 +00:00
Kai Engert 48aa7b3c2d Bug 1738708 - Update to Botan 2.18.2. r=rjl
Differential Revision: https://phabricator.services.mozilla.com/D130099
2021-11-01 15:54:27 +00:00
Rob Lemley 618c2fead7 Bug 1730711 - Build and include RNP commandline tools with distribution. r=kaie
Differential Revision: https://phabricator.services.mozilla.com/D126030

--HG--
extra : amend_source : 4dd450b9d3c7982346c619bb4a8625ff03a1b4ca
2021-10-27 13:50:52 +03:00
Geoff Lankow 0e154d21c2 Backed out changeset dfd512c51382 (bug 1730711) for breaking the macOS build. 2021-10-26 11:43:08 +13:00
Rob Lemley dae22533f8 Bug 1730711 - Build and include RNP commandline tools with distribution. r=kaie
Differential Revision: https://phabricator.services.mozilla.com/D126030

Depends on D126029
2021-10-21 23:17:15 +00:00
Rob Lemley a05db740d5 Bug 1730711 - Include a real getopt implementation for Windows. r=kaie
Copied from ipc/chromium/src/third_party/libevent/WIN32-Code, with small modifications.

Differential Revision: https://phabricator.services.mozilla.com/D126029
2021-10-21 23:17:12 +00:00
Rob Lemley 20f66e0749 Bug 1732796 - Port bug 1694884: Fix configure when using --with-system-* options and bootstrapped sysroot. r=darktrojan
The automatically bootstrapped sysroots are not compatible with system
libraries pulled in with pkg-config. Using system_lib_option rather than
option still throws an error, but it provides a reason that is hopefully
less baffling than the generic error from pkg-config stating that the library
in question cannot be found.

Differential Revision: https://phabricator.services.mozilla.com/D126740

--HG--
extra : amend_source : 20d7e85bfab6bb081d46da82ded8db3c7756714d
2021-09-29 12:31:40 +03:00
Petr Sumbera b8a3ea8aa6 Bug 1728951 - [solaris] Build librnp and dependencies with -fPIC. r=rjl
Differential Revision: https://phabricator.services.mozilla.com/D124441

--HG--
extra : histedit_source : 66ce6faf7564b71920aa733c0da12095534988e2
2021-09-06 08:06:11 +00:00
Rob Lemley 4bdbbe1af9 Bug 1727014 - Build librnp.so Linux against libstdc++ in CI. r=darktrojan
Recent build changes for Firefox permit Thunderbird to drop
the libc++ dependency for official builds and link librnp.so
(Linux) against libstdc++, like the rest of the application.

This will reduce complexity of the build.

Depends on D123381 in mozilla-central.

Differential Revision: https://phabricator.services.mozilla.com/D123305

--HG--
extra : moz-landing-system : lando
2021-08-25 19:51:49 +00:00
Rob Lemley 4645bfe034 Bug 1726433 - Fix Linux builds in CI. r=darktrojan
This is counter-intuitive and may be a problem later since librnp.so now links
to libc++ (statically) and to libstdc++ dynamically. In theory it's "ok"
since everything was compiled with libc++ headers via "-stdlib=libc++".
stdc++-compat.o gets linked in whether we want it or not when "MOZ_STDCXX_COMPAT"
is set, with no obvious way to override that behavior.

Differential Revision: https://phabricator.services.mozilla.com/D123297

--HG--
extra : moz-landing-system : lando
2021-08-22 22:54:09 +00:00
Geoff Lankow 6697b1b825 Backed out changeset 368233737dd1 (bug 1726433) to un-break the Windows build.
--HG--
extra : amend_source : 05af2324e29b33cccc31bcf1b7cc2fc7dd576726
extra : histedit_source : 973a58253e73e000b6e46ce6565591921d1667ab
2021-08-20 12:13:09 +12:00
Rob Lemley c61ff1df6a Bug 1726433 - Stop using config variables set for Firefox to determine how to build librnp. rs=bustage-fix
Differential Revision: https://phabricator.services.mozilla.com/D123164

--HG--
extra : amend_source : fc213010bd0ece9348c770aa5821a40efd4d5f80
2021-08-19 22:48:00 +00:00
Rob Lemley 296e836698 Bug 1724393 - Update RNP to 0.15.2. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D122209
2021-08-12 14:24:34 +00:00
Rob Lemley dc30a5c997 Bug 1725166 - Port bug 1724830 - Replace MOZ_LIBSTDCXX_TARGET_VERSION with MOZ_STDCXX_COMPAT. rs=bustage-fix
Differential Revision: https://phabricator.services.mozilla.com/D122352

--HG--
extra : amend_source : f46fb8edef079a258377f64de60128f046d295e2
2021-08-11 09:21:50 -04:00
Rob Lemley fa0b2ce540 Bug 1715019 - Update README.botan for version 2.17.3. r=kaie
Differential Revision: https://phabricator.services.mozilla.com/D117251

--HG--
extra : moz-landing-system : lando
2021-06-09 08:11:28 +00:00
Kai Engert be95b3954c Bug 1715019 - Update to Botan 2.17.3. r=rjl
Differential Revision: https://phabricator.services.mozilla.com/D117026

--HG--
rename : third_party/botan/src/lib/asn1/asn1_attribute.cpp => third_party/botan/src/lib/x509/x509_attribute.cpp
extra : moz-landing-system : lando
2021-06-09 08:11:27 +00:00
Rob Lemley fcbd1b96bf Bug 1713664 - Update README.rnp with recent changes to the build. r=kaie
Differential Revision: https://phabricator.services.mozilla.com/D116529

--HG--
extra : moz-landing-system : lando
2021-06-02 07:29:45 +00:00
Kai Engert 0f76b780be Bug 1713664 - Adjust build and patch for v0.15.1. r=rjl
Depends on D116426

Differential Revision: https://phabricator.services.mozilla.com/D116427

--HG--
extra : moz-landing-system : lando
2021-06-02 07:29:44 +00:00
Kai Engert 9c1a611b60 Bug 1713664 - Import RNP v0.15.1. r=rjl
Differential Revision: https://phabricator.services.mozilla.com/D116426

--HG--
extra : moz-landing-system : lando
2021-06-02 07:29:43 +00:00
Rob Lemley f06ca0a7b7 Bug 1712610 - Fix passing --with-system-bz2 ldflags. r=justdave
Patch borrowed from Arch Linux, anthraxx <levente@leventepolyak.net>.

Differential Revision: https://phabricator.services.mozilla.com/D115831
2021-05-24 17:38:39 +00:00
Rob Lemley 82ef0b31c2 Bug 1710257 - Back out changeset 61ebefcbdd36 (bug 1699386) due to compiler warnings on Windows. r=backout a=rjl
-fPIC is not a valid argument for clang-cl.

--HG--
extra : histedit_source : 56a597c015d3cdb35ee4e22f22970ff69352c498
2021-05-12 09:00:27 -04:00
Rob Lemley ba60f3928f Bug 1710257 - [linux] Build librnp and dependencies with -fPIC. r=justdave
Differential Revision: https://phabricator.services.mozilla.com/D114688

--HG--
extra : amend_source : 2b101864829621658eb6aef440403a0080bfbfb7
2021-05-11 13:27:35 +03:00
Rob Lemley fcbc6248d3 Bug 1700240 - Update packaging for correct name of libotr shared library. r=justdave
Windows is of course the outlier, there is no "lib" prefix usually on sharted
libraries, but that is how OTRLib.jsm wants the file to be named so it's
artificially added where needed.

Differential Revision: https://phabricator.services.mozilla.com/D109489

--HG--
extra : moz-landing-system : lando
2021-03-30 22:06:11 +00:00
Rob Lemley 0ad87273c0 Bug 1700240 - Compile libotr with generic SONAME and statically linked to deps on Windows. r=justdave
It's quite cumbersome to have the filename be versioned (eg. libotr.so.5) as
the way it's done is inconsistent between the supported platforms. Libtool
insists on using the full names, so bypass it with a link command that
sets the SONAME correctly as well.

Additionally, statically link the dependencies for Windows builds like the
other platforms.

Differential Revision: https://phabricator.services.mozilla.com/D109488

--HG--
rename : third_party/clang/aarch64-linux-gnu.cfg => third_party/clang/i686-linux-gnu.cfg
extra : moz-landing-system : lando
2021-03-30 22:06:11 +00:00
Rob Lemley 5ae33ac3d2 Bug 1700349 - Update libgcrypt to 1.9.2. r=kaie
--HG--
extra : rebase_source : 9f63e0bdbc3d2fde559085bd0c83416b73c53dde
2021-03-23 13:26:08 -04:00
Rob Lemley 7688f668df Bug 1700349 - Update libgpg-error to 1.42. r=kaie
The newer version catches the libotr macOS regression at compiletime, which
is always better than when a user tries to use a feature.

--HG--
extra : rebase_source : 32fd7ba197bcf110d83e16aa9bdb00cc743a0d29
2021-03-23 16:42:40 -04:00
Kai Engert 91ef09afba Bug 1699295 - Export new RNP APIs from v0.14.0. r=rjl DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D108862

--HG--
extra : amend_source : 8c15cbb215fe9b6b2001f6fae87dedc42e76d913
2021-03-17 20:40:17 +01:00
geoff@darktrojan.net d49ab08e11 Bug 1699386 - add -fPIC in places that still need it, r=justdave
--HG--
extra : histedit_source : 889db3ac96dec22bd52f1825a90fce16a652e59f
2021-03-18 05:31:50 -04:00
Rob Lemley a125e2247f Bug 1694845 - Follow-up: Fix formatting. rs=mozlint DONTBUILD
--HG--
extra : histedit_source : 07ec6cfa040322759a312658156ff58536b0f15f
2021-03-03 11:50:55 -05:00
Rob Lemley 334297c3c2 Bug 1694845 - Set path to libc++ static library for linux64 builds. r=justdave
With the switch to a build sysroot, the linker is not able to locate libc++.a
and libc++abi.a on Linux64 builds (official builds with MOZ_STDCXX_COMPAT=1 only).
Adjust the path when linking librnp.so accordingly similarly to the Linux32
build.
This is not necessary for the Linux64-aarch64 build as it does not use libstdc++
compatibility mode.

Differential Revision: https://phabricator.services.mozilla.com/D106968

--HG--
extra : moz-landing-system : lando
2021-03-03 07:25:53 +00:00
Rob Lemley ed42827593 Bug 1692909 - Follow-up: Fix building librnp on Windows. r=kaie
Add str-utils.cpp to files to build.

Differential Revision: https://phabricator.services.mozilla.com/D105340

--HG--
extra : amend_source : f8dc00cdb838324c21b69e4c21d2750bb2993bc3
2021-02-16 11:25:34 -05:00
Kai Engert cc1b895708 Bug 1692909 - Update RNP to v0.14.0. r=rjl 2021-02-15 21:10:14 +01:00
Kai Engert bcfb9eb9c2 Backed out changeset 7158d5b72c9e, bug 1692909 because for build failures on Windows. 2021-02-16 10:04:08 +01:00
Kai Engert 71873001c1 Bug 1692909 - Update RNP to v0.14.0. r=rjl
--HG--
extra : rebase_source : bfda12a4f20c1acf3e2c69ee8eaf74294de3566b
extra : amend_source : 82ae78224921b2444f910a485153e840f71db267
2021-02-15 21:10:14 +01:00
Rob Lemley 6a16ce1547 Bug 1689613 - Follow-up: Update README.libgcrypt for version 1.9.1. r=me,docs-only DONTBUILD
--HG--
extra : rebase_source : 12dfdbccb98e134129c058adf7906bc5a29320ae
2021-01-30 12:18:11 -05:00
Kai Engert 3699ee0f56 Bug 1689613, Update libgcrypt to 1.9.1. r=rjl
--HG--
extra : rebase_source : 25281abadd5779740ddfb600e1892c330b436c5e
2021-01-29 14:53:32 +01:00
Rob Lemley 3f5e761ee3 Bug 1678775 - build-libotr.sh support for macosx64-aarch64. r=justdave
Differential Revision: https://phabricator.services.mozilla.com/D103164

--HG--
rename : third_party/clang/x86_64-apple-darwin.cfg => third_party/clang/aarch64-apple-darwin.cfg
extra : rebase_source : a30a6187a331c58df77613fb1d74a1b5c616c637
2021-01-26 20:25:04 -05:00
Rob Lemley 99b03b1457 Bug 1674843 - Add support for linux-aarch64 to build-libotr.sh. r=justdave
Differential Revision: https://phabricator.services.mozilla.com/D103003

--HG--
extra : rebase_source : c2bf2f81c66195d1123608a2b12cbece1c47e873
2021-01-13 07:09:16 -05:00
Rob Lemley 3e4effdae6 Bug 1688795 - Update libgcrypt to 1.9.0. r=kaie
This version fixes a compile error when building for linux-aarch64.

Differential Revision: https://phabricator.services.mozilla.com/D103001

--HG--
extra : rebase_source : 3aebc2380d6d2ab86c1cf1929b94f65bf704bc46
2021-01-25 21:23:06 -05:00
Rob Lemley 8ddc970052 Bug 1682911 - Update libgcrypt to 1.8.7. r=kaie
Depends on D100289

Differential Revision: https://phabricator.services.mozilla.com/D100290

--HG--
extra : moz-landing-system : lando
2021-01-07 20:02:13 +00:00
Rob Lemley b5dc5494d5 Bug 1682911 - Update libgpg-error to 1.39. r=kaie
Differential Revision: https://phabricator.services.mozilla.com/D100289

--HG--
extra : moz-landing-system : lando
2021-01-08 04:10:44 +00:00
Rob Lemley 92e7fca398 Bug 1678441 - Add license headers to build related files. r=justdave
Differential Revision: https://phabricator.services.mozilla.com/D97675
2020-11-19 20:49:55 +00:00
Rob Lemley 6cd1c2a962 Bug 1675516 - Update openpgp.configure for RNP October 2020 update. r=kaie
Depends on D96563

Differential Revision: https://phabricator.services.mozilla.com/D96577

--HG--
extra : rebase_source : 25b8412ccb8f11ce1f4b1825f79de9dadce1b015
2020-11-10 13:17:34 +00:00
Kai Engert 1423a529e5 Bug 1675516 - RNP 2020-10-30. r=rjl
Differential Revision: https://phabricator.services.mozilla.com/D96563

--HG--
extra : rebase_source : 11f065a18d4f3bf1ff9b3a28beb66b91cb220f1c
2020-11-05 14:20:01 +00:00
Rob Lemley 21cfcfe8be Bug 1675516 - Remove RNP's CMakeSettings.json via update_rnp.sh. r=kaie
Differential Revision: https://phabricator.services.mozilla.com/D96576

--HG--
extra : rebase_source : d1a464d0a8081eed0912e2f5e17acb4343a90503
2020-11-10 13:14:39 +00:00
Rob Lemley 72249a4e2f Bug 1672798 - Follow-up: Reformat mozbuild files with black. rs=linting 2020-11-06 15:29:43 -05:00
Rob Lemley 4912dba9ee Bug 1672798 - Run black formatting on MZLA files in third_party. r=mkmelin
These will not be covered by CI for the moment because the global exclude does
not permit reincluding certain files. That deficiency in coverage can be addressed
in a follow-up bug.

Differential Revision: https://phabricator.services.mozilla.com/D95403

--HG--
extra : rebase_source : 984f3e236e2b0390ae9e374908d77fbf94603e5e
extra : histedit_source : b4e584a4c399820d36ba13eb44fe18c94d9252e0
2020-10-30 15:05:20 -04:00
Rob Lemley 74c6535302 Bug 1672798 - Run black formatting on mozbuild and mozconfigure files. r=mkmelin
Bringing some sanity to our Python scripts.

Differential Revision: https://phabricator.services.mozilla.com/D95402

--HG--
extra : rebase_source : 7eed46d79663fa1f261bd64d9bc1c83c4867bfc4
extra : histedit_source : b8b700c76ab2fee92eb426b5a5b69dc86376e60f
2020-10-30 14:28:33 -04:00