From: "Ulrich Müller" <ulm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-libs/motif/
Date: Wed, 17 Jul 2024 05:39:50 +0000 (UTC) [thread overview]
Message-ID: <1721194701.fa118a9c6e00e026170807f7b67415e6ba68967f.ulm@gentoo> (raw)
commit: fa118a9c6e00e026170807f7b67415e6ba68967f
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Wed Jul 17 05:36:54 2024 +0000
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Wed Jul 17 05:38:21 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fa118a9c
x11-libs/motif: Try to make linking with libfl.a less brittle
Bug: https://bugs.gentoo.org/936172
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>
x11-libs/motif/motif-2.3.8-r6.ebuild | 124 +++++++++++++++++++++++++++++++++++
1 file changed, 124 insertions(+)
diff --git a/x11-libs/motif/motif-2.3.8-r6.ebuild b/x11-libs/motif/motif-2.3.8-r6.ebuild
new file mode 100644
index 000000000000..c4fb0c84c9af
--- /dev/null
+++ b/x11-libs/motif/motif-2.3.8-r6.ebuild
@@ -0,0 +1,124 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools flag-o-matic toolchain-funcs multilib-minimal
+
+DESCRIPTION="The Motif user interface component toolkit"
+HOMEPAGE="https://sourceforge.net/projects/motif/
+ https://motif.ics.com/"
+SRC_URI="https://downloads.sourceforge.net/project/motif/Motif%20${PV}%20Source%20Code/${P}.tar.gz
+ https://dev.gentoo.org/~ulm/distfiles/${P}-patches-5.tar.xz"
+
+LICENSE="LGPL-2.1+ MIT"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
+IUSE="examples jpeg +motif22-compatibility png static-libs unicode xft"
+
+RDEPEND=">=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}]
+ >=x11-libs/libXext-1.3.2[${MULTILIB_USEDEP}]
+ >=x11-libs/libXmu-1.1.1-r1[${MULTILIB_USEDEP}]
+ >=x11-libs/libXt-1.1.4[${MULTILIB_USEDEP}]
+ jpeg? ( >=media-libs/libjpeg-turbo-1.5.3-r2:0=[${MULTILIB_USEDEP}] )
+ png? ( >=media-libs/libpng-1.6.10:0=[${MULTILIB_USEDEP}] )
+ unicode? ( >=virtual/libiconv-0-r1[${MULTILIB_USEDEP}] )
+ xft? (
+ >=media-libs/fontconfig-2.10.92[${MULTILIB_USEDEP}]
+ >=x11-libs/libXft-2.3.1-r1[${MULTILIB_USEDEP}]
+ )"
+
+DEPEND="${RDEPEND}
+ x11-base/xorg-proto
+ x11-misc/xbitmaps"
+
+BDEPEND="sys-devel/flex
+ dev-util/byacc"
+
+src_prepare() {
+ eapply ../patch
+ eapply_user
+
+ # remove files generated by flex #864533
+ rm tools/wml/{wmllex,wmluiltok}.c || die
+
+ AT_M4DIR=. eautoreconf
+
+ # get around some LANG problems in make (#15119)
+ LANG=C
+
+ # bug #80421
+ filter-flags -ftracer
+
+ # feel free to fix properly if you care
+ append-flags -fno-strict-aliasing
+
+ # for Solaris Xos_r.h :(
+ [[ ${CHOST} == *-solaris2.11 ]] \
+ && append-cppflags -DNEED_XOS_R_H -DHAVE_READDIR_R_3
+
+ if use !elibc_glibc && use !elibc_musl && use unicode; then
+ # libiconv detection in configure script doesn't always work
+ # http://bugs.motifzone.net/show_bug.cgi?id=1423
+ export LIBS="${LIBS} -liconv"
+ fi
+
+ # avoid mismatch of lex variants #936172
+ export LEX=flex
+ # "bison -y" causes runtime crashes #355795
+ export YACC=byacc
+
+ # remember the name of the C compiler for the native ABI
+ MY_NATIVE_CC=$(tc-getCC)
+
+ # -Werror=lto-type-mismatch
+ #
+ # Helpfully, the motif bugtracker is entirely down. They are also
+ # on sourceforge but only for merge requests? The project is a
+ # fascinating kind of ghostly haunting. Punting on reporting... for now.
+ filter-lto
+}
+
+multilib_src_configure() {
+ ECONF_SOURCE="${S}" econf \
+ --with-x \
+ --disable-printing \
+ $(use_enable static-libs static) \
+ $(use_enable motif22-compatibility) \
+ $(use_enable unicode utf8) \
+ $(use_enable xft) \
+ $(use_enable jpeg) \
+ $(use_enable png)
+}
+
+multilib_src_compile() {
+ if ! multilib_is_native_abi; then
+ # The wmluiltok build tool is linked with libfl.a, so always
+ # compile it for the native ABI
+ emake -C tools/wml CC="${MY_NATIVE_CC}" \
+ wmluiltok_LDADD="-lfl" wmluiltok
+ fi
+ emake
+}
+
+multilib_src_install() {
+ emake DESTDIR="${D}" install
+
+ if multilib_is_native_abi && use examples; then
+ emake -C demos DESTDIR="${D}" install-data
+ dodir /usr/share/doc/${PF}/demos
+ mv "${ED}"/usr/share/Xm/* "${ED}"/usr/share/doc/${PF}/demos || die
+ fi
+}
+
+multilib_src_install_all() {
+ # mwm default configs
+ insinto /usr/share/X11/app-defaults
+ newins "${FILESDIR}"/Mwm.defaults Mwm
+
+ # cleanup
+ rm -rf "${ED}"/usr/share/Xm || die
+ find "${D}" -type f -name "*.la" -delete || die
+
+ dodoc BUGREPORT ChangeLog README RELEASE RELNOTES TODO
+}
next reply other threads:[~2024-07-17 5:39 UTC|newest]
Thread overview: 97+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-17 5:39 Ulrich Müller [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-11-10 23:00 [gentoo-commits] repo/gentoo:master commit in: x11-libs/motif/ Sam James
2024-11-10 15:30 Sam James
2024-11-10 9:17 Sam James
2024-11-10 6:40 Arthur Zamarin
2024-11-09 16:55 Sam James
2024-11-09 16:55 Sam James
2024-11-09 16:55 Sam James
2024-07-19 8:55 Ulrich Müller
2024-03-07 11:51 Sam James
2023-03-24 16:06 Ulrich Müller
2023-03-24 15:23 Arthur Zamarin
2023-03-24 14:26 Arthur Zamarin
2023-03-24 11:18 Arthur Zamarin
2023-03-23 9:32 Sam James
2023-03-23 9:09 Sam James
2023-03-23 9:09 Sam James
2023-03-23 9:00 Sam James
2023-03-11 9:13 Ulrich Müller
2022-11-26 13:41 Ulrich Müller
2022-11-23 9:24 Ulrich Müller
2022-08-28 5:06 WANG Xuerui
2022-06-17 13:14 Ulrich Müller
2022-06-16 23:05 Jakov Smolić
2022-06-16 8:59 Jakov Smolić
2022-06-16 8:59 Jakov Smolić
2022-06-16 7:39 Agostino Sarubbo
2022-06-16 6:10 Agostino Sarubbo
2022-06-16 6:09 Agostino Sarubbo
2022-06-16 6:08 Agostino Sarubbo
2022-06-15 17:47 Ulrich Müller
2022-03-30 17:09 Ulrich Müller
2022-01-24 6:37 Ulrich Müller
2022-01-01 20:08 David Seifert
2021-08-17 23:48 Marek Szuba
2021-05-15 20:15 Ulrich Müller
2021-01-06 12:01 Fabian Groffen
2020-12-27 18:28 Fabian Groffen
2020-05-06 17:25 Michał Górny
2019-12-28 15:19 Ulrich Müller
2019-07-26 13:18 Aaron Bauman
2019-02-07 18:45 Ulrich Müller
2019-02-07 18:45 Ulrich Müller
2019-02-06 22:38 Patrice Clement
2018-04-24 6:58 Ulrich Müller
2018-04-21 9:15 Ulrich Müller
2018-04-21 8:58 Mikle Kolyada
2018-04-02 0:52 Matt Turner
2018-04-01 23:56 Matt Turner
2018-04-01 23:56 Matt Turner
2018-04-01 10:00 Tobias Klausmann
2018-03-18 12:16 Mikle Kolyada
2018-03-18 11:15 Sergei Trofimovich
2018-03-18 0:40 Thomas Deutschmann
2018-03-16 23:39 Sergei Trofimovich
2018-03-01 9:00 Ulrich Müller
2018-01-22 20:10 Ulrich Müller
2018-01-22 18:24 Markus Meier
2017-12-30 5:03 Ulrich Müller
2017-12-16 17:24 Tobias Klausmann
2017-12-13 19:48 Sergei Trofimovich
2017-11-30 20:44 Thomas Deutschmann
2017-11-30 20:19 Tobias Klausmann
2017-11-27 21:12 Sergei Trofimovich
2017-11-27 7:27 Sergei Trofimovich
2017-11-26 20:07 Sergei Trofimovich
2017-11-26 19:30 Ulrich Müller
2017-09-06 21:00 Michał Górny
2017-08-25 8:42 Ulrich Müller
2017-08-25 8:37 Ulrich Müller
2017-06-17 11:11 Alexis Ballier
2017-06-10 17:22 Ulrich Müller
2017-04-27 11:23 Agostino Sarubbo
2017-04-08 11:33 Ulrich Müller
2017-04-07 9:43 Jeroen Roovers
2017-04-04 19:28 Tobias Klausmann
2017-03-28 11:33 Michael Weber
2017-03-28 10:31 Michael Weber
2017-03-22 19:49 Markus Meier
2017-03-20 12:28 Agostino Sarubbo
2017-03-18 10:27 Ulrich Müller
2017-01-03 10:19 Ulrich Müller
2017-01-03 10:19 Ulrich Müller
2016-12-29 10:45 Agostino Sarubbo
2016-10-17 19:15 Ulrich Müller
2016-09-26 12:36 Agostino Sarubbo
2016-09-10 6:37 Jeroen Roovers
2016-09-04 13:17 Tobias Klausmann
2016-09-01 11:36 Markus Meier
2016-07-13 4:31 Jeroen Roovers
2016-06-25 20:14 Agostino Sarubbo
2016-06-22 21:19 Ulrich Müller
2016-06-10 13:53 Agostino Sarubbo
2016-06-01 10:12 Tobias Klausmann
2016-05-28 11:11 Markus Meier
2016-03-24 15:06 Ulrich Müller
2016-03-23 16:18 Ulrich Müller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1721194701.fa118a9c6e00e026170807f7b67415e6ba68967f.ulm@gentoo \
--to=ulm@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox