From 0f558761aa2dee1017b4751e4017205e015a9560 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 29 Jun 2022 12:04:12 +0100 Subject: gentoo resync : 29.12.2022 --- sys-libs/gpm/Manifest | 6 +- sys-libs/gpm/files/gpm-1.20.7-warnings.patch | 202 +++++++++++++++++++++++++++ sys-libs/gpm/files/gpm.service-r1 | 11 ++ sys-libs/gpm/gpm-1.20.7-r3.ebuild | 108 -------------- sys-libs/gpm/gpm-1.20.7-r4.ebuild | 2 +- sys-libs/gpm/gpm-1.20.7-r5.ebuild | 112 +++++++++++++++ 6 files changed, 330 insertions(+), 111 deletions(-) create mode 100644 sys-libs/gpm/files/gpm-1.20.7-warnings.patch create mode 100644 sys-libs/gpm/files/gpm.service-r1 delete mode 100644 sys-libs/gpm/gpm-1.20.7-r3.ebuild create mode 100644 sys-libs/gpm/gpm-1.20.7-r5.ebuild (limited to 'sys-libs/gpm') diff --git a/sys-libs/gpm/Manifest b/sys-libs/gpm/Manifest index 3a9781c82195..9fd0cac84d0d 100644 --- a/sys-libs/gpm/Manifest +++ b/sys-libs/gpm/Manifest @@ -4,11 +4,13 @@ AUX gpm-1.20.7-glibc-2.26.patch 425 BLAKE2B bb148784e2ef78cfd6fcb9ccd7e4d29739f6 AUX gpm-1.20.7-musl.patch 5275 BLAKE2B 87b02be1090271e7308b48a803e95755b6e0cb8a59c254585201b6eb126ec235d912eeed753be0f73f401045333f8804dd4b412b8b6dc7213e49eeaafc9e20ae SHA512 02b0721e1603d7cb4388cb6e2b025c1dc3192072de2f5ed4a56ba797db05635e775ba1a4426d70fe21f6901304932995a4d0c84a3700562eefc44f26bb4312e9 AUX gpm-1.20.7-signedness.patch 656 BLAKE2B 9707e0df20ff88e1b8bf27944ed4197f628ea376224ed5d424b5c1d94572bcf38bb04b33bf01d4e9896c86b3f7da4b999fefebee60ae746a2d1602ee2459eb80 SHA512 c6d2a1322e113cd3819704ab493a88dfe549a6a7ef00d99a88ae4194b0590e9583457b88c9d4b46052b1db442bcf0c7e59fe9909e50f7132d0be8b4704c83174 AUX gpm-1.20.7-sysmacros.patch 1011 BLAKE2B 01ccb2fc4f18c2f12af67f7fd03783ebf7c607c780417a51f25cb566a497163bc1e2606d89bd6406776a2133e25c39f150a8558a490f4845403cb346c4298e8a SHA512 05ff1649182eb5223f1835945df8590e83b92d3948461ac55424ade8711a45a1fef61ebacd9497ef0f2c98f8e008e0ba3995eaf02ea567841b77a5ffd5b1e2fe +AUX gpm-1.20.7-warnings.patch 6316 BLAKE2B 3026d09e614b2e9adf9fa643d55daeb6c4252cb4f8f9c4bbe8f2aa69866718b5ec4c8435bb25d48fc9dc46f52acd6658bf9eca5cfc5596fc32433f4516ced6cb SHA512 0b82296bf00d8c78bda29dff3ad2f5f2313bb99571324d4e22ffb9e4a7e1875fe918d485a9d7c40b39118dfb11c316bd7a58f8e8063d495e344e7f6b37f13a1b AUX gpm.conf.d 580 BLAKE2B cd5618d1ca362a2602d0b8a83c4a572e7a73f76fef4fb372297d978002306b0c4c837102e2ce7d08c6a3de8f73a01ae57b7691858d4852ed70433ccd0e100ccb SHA512 14a4306a7454d1a12fda29973b51aadd6d1a5cf4833b1be5298cfe0c1ebc63a479cc79490007ae92c6ae24368e19215dfc4bd50ef5b0cfa0fef88cf69db67065 AUX gpm.rc6-2 553 BLAKE2B 609a2fe28fc0539e50eed703e2ed6c5a37d98737add953fe4f7d7ad6d83651ee89bdc82c677ce55776fac1e8c722f08298b97652977598acb0dc675f90d8369d SHA512 19cfdab0e401ebc3571975acb6687891a33a176ba23fb04537c8724c2dab47617b67e144b4a89c933e6fdd7e2918857e8eadb2bc270e8ec96a84d855810e5934 AUX gpm.service 218 BLAKE2B 728726976390bb394d479e424d5c1fafb9bc17d00e23a90218991527326c3fe88eb8d37b84707febbf28017ecaf5ec3559534e9d0571bfd100beec8c60ac25c0 SHA512 b3b258a2b0ed42256b16ae05e9c13baa3bca0d6d9d5d1ef489e2f8fbfc2a6a4d8f570a595f50f79fba9ad94ad3acbf0dfe098887f0ce799006916a08101f5bc2 +AUX gpm.service-r1 196 BLAKE2B a1ec9c4d5bbd111ffe5e95cfb3fbd3a6c2d6181e794e1eb07938c1581ee72ffcec6ba80f28438371c474728a69e4d19183f8385e006db4bc44becd210b5a1bfc SHA512 2bb5a2faadaee9691b95191b67aef70f6dc7ef923db853abec8987d86e3d8239737ba2baf8ada4ae705a42f5cf59f34fdf1ce2accd642d8a0ff6718a89e81434 DIST gpm-1.20.7-docs.patch.xz 41668 BLAKE2B cab4649d0eda83c37474b68ac141fab84cbfaac4e18f0f42ad7c0a90d14bc39697b17c450e8a8dc8b1c960f6d9e7ff344ec15791df240f61a27ccfcd7d0a9171 SHA512 6cdcad70d0a77a56cb507330ff8409155de11255b5e61fb92ee439c1e117932c346df475f4187abb0e348ee4c28fa235a9693883b1c36913e91404662df272f4 DIST gpm-1.20.7.tar.lzma 789691 BLAKE2B 5dbceedaa330d5f1ead8b2267fb5844cfd284627e085edd784a72365830a700f9a6a97f96afb4aa00a44ddbae735ef23be7eafc97a65f6250d72e15b359486c7 SHA512 a502741e2f457b47e41c6d155b1f7ef7c95384fd394503f82ddacf80cde9cdc286c906c77be12b6af8565ef1c3ab24d226379c1dcebcfcd15d64bcf3e94b63b9 -EBUILD gpm-1.20.7-r3.ebuild 2384 BLAKE2B b54374cfe57825cac1cd3dbea8994b9087333316bcd858d6d0e94af55cdb7d840adb7884824a87b10b1e7714f43cdb61a41bc61af6136265f9de6cb7ab9c6083 SHA512 ff917fae60b9398a205ca3cefb477f4f872867192ca540abc69cf21d59b25af2b51b01d0255d73838a7ceb6630f885e2a6140a1d1ea72357fe82af248c1deb2e -EBUILD gpm-1.20.7-r4.ebuild 2528 BLAKE2B 677775a267c7844a38959843ee73d6a8a19a8c0086c791f30b1f3ec92400ae1dde6c1808d311f07141e04568a4fabfa43c145b34e61b574b7904dcc343a37f6f SHA512 1372cbcfdf6cd2ba29eba5fa61661f016341dc71caa25a97463c40362052687647a8e13c4c1856571973c5fa13210153ca1667cf6e033e6297f68c33fdabfadc +EBUILD gpm-1.20.7-r4.ebuild 2535 BLAKE2B 715b67881ea497c893c955217768a6398e22a8b91230a624a599d630e112ff98658018b8db8871d964fc7838e24d786c774ad20e8f757f039aefa02c0377f77e SHA512 aa0009fe65ab1eebc3c5332eb1714466d011bdd5f95dc4ca296aeeaa3b2353a5cbee2ea89b6b3f7efc750987b275c73f55f055ec3d9bc9549f65b8b3dee4de60 +EBUILD gpm-1.20.7-r5.ebuild 2610 BLAKE2B 2a24a981541451d7f9919c7efc01bf5950d1b84274fe772c022b8c8d877d6b2536ebd213ac6b5bc0d67e335bd3d054e80868feafcb127f8759fab3e51a3b8313 SHA512 19b09193ccfd219225df34765f0192ee8b172502a38a7a93dc09007ce3a357a98651d15a7b33a23698af920dd8ff80541a54f83c99ee06adab574d4ed19324f4 MISC metadata.xml 254 BLAKE2B f3a9f843cf94243d1129711770df727fcdc8808bca829ef784819cab6f5410dfa463cfed85182f8228c7de796a674dd602653ad3ef817a62c0c3e7198b23befe SHA512 b9fcd3084a7e197f6138e1ce8b0eff99c4c203c37a7d5c40de207040ba1501ef0e5b2f4e00216a567037bcd6d3394fdec6ff587484c9ba2fca9d04f431733b7c diff --git a/sys-libs/gpm/files/gpm-1.20.7-warnings.patch b/sys-libs/gpm/files/gpm-1.20.7-warnings.patch new file mode 100644 index 000000000000..21838ee24bf5 --- /dev/null +++ b/sys-libs/gpm/files/gpm-1.20.7-warnings.patch @@ -0,0 +1,202 @@ +https://github.com/telmich/gpm/commit/dbd2e04665da885805a2c3e7dc2ee4b733d3c7cd +https://github.com/telmich/gpm/pull/10 +https://bugs.gentoo.org/539320 + +From 7d21d7f469d90c2d55b23926c866bba635aa7e6f Mon Sep 17 00:00:00 2001 +From: Mike Frysinger +Date: Sun, 14 Feb 2016 18:05:49 -0500 +Subject: [PATCH 1/5] report/oops: constify format strings + +--- a/src/headers/gpm.h ++++ b/src/headers/gpm.h +@@ -280,10 +280,10 @@ int Gpm_GetSnapshot(Gpm_Event *ePtr); + char *Gpm_get_console( void ); + int Gpm_x_high_y(int base, int pot_y); + int Gpm_cnt_digits(int number); +-void gpm_oops(int line, char *file, char *text, ... ); ++void gpm_oops(int line, const char *file, const char *text, ... ); + + /* report.c / report-lib.c */ +-void gpm_report(int line, char *file, int stat, char *text, ... ); ++void gpm_report(int line, const char *file, int stat, const char *text, ... ); + + #ifdef __cplusplus + }; +--- a/src/headers/message.h ++++ b/src/headers/message.h +@@ -226,7 +226,7 @@ + /* #define GPM_MESS_ "" */ + + /* functions */ +-void gpm_report(int line, char *file, int stat, char *text, ... ); ++void gpm_report(int line, const char *file, int stat, const char *text, ... ); + + /* rest of wd.h */ + #ifdef HAVE_SYSLOG_H +--- a/src/lib/report-lib.c ++++ b/src/lib/report-lib.c +@@ -24,9 +24,9 @@ + + #include "headers/message.h" + +-void gpm_report(int line, char *file, int stat, char *text, ... ) ++void gpm_report(int line, const char *file, int stat, const char *text, ... ) + { +- char *string = NULL; ++ const char *string = NULL; + int log_level; + va_list ap; + +--- a/src/prog/mouse-test.c ++++ b/src/prog/mouse-test.c +@@ -182,7 +182,7 @@ Gpm_Type *(*I_serial)(int fd, unsigned short flags, struct Gpm_Type *type, + /*----------------------------------------------------------------------------- + Place the description here. + -----------------------------------------------------------------------------*/ +-int mousereopen(int oldfd, char *name, Gpm_Type *type) ++int mousereopen(int oldfd, const char *name, Gpm_Type *type) + { + int fd; + if (!type) type=mice+1; /* ms */ +--- a/src/report.c ++++ b/src/report.c +@@ -69,7 +69,7 @@ + * + */ + +-void gpm_report(int line, char *file, int stat, char *text, ... ) ++void gpm_report(int line, const char *file, int stat, const char *text, ...) + { + FILE *console = NULL; + va_list ap, ap3; + +From 7ba518ff8b5e5c06d0a74b1fecf3b682f14c631c Mon Sep 17 00:00:00 2001 +From: Mike Frysinger +Date: Sun, 14 Feb 2016 18:07:46 -0500 +Subject: [PATCH 2/5] report: avoid -Wformat-security warnings + +Some functions warn when you pass a string to a printf style function +that is a dynamic buffer as its contents cannot be verified. Since we +don't want to support that here, just use %s. +--- a/src/lib/report-lib.c ++++ b/src/lib/report-lib.c +@@ -47,7 +47,7 @@ void gpm_report(int line, const char *file, int stat, const char *text, ... ) + log_level = LOG_CRIT; break; + } + #ifdef HAVE_VSYSLOG +- syslog(log_level, string); ++ syslog(log_level, "%s", string); + vsyslog(log_level, text, ap); + #else + fprintf(stderr,"%s[%s(%d)]:\n",string,file,line); +--- a/src/prog/mouse-test.c ++++ b/src/prog/mouse-test.c +@@ -189,7 +189,7 @@ int mousereopen(int oldfd, const char *name, Gpm_Type *type) + close(oldfd); + usleep(100000); + fd=open(name,O_RDWR); +- if (fd < 0) gpm_report(GPM_PR_OOPS,name); ++ if (fd < 0) gpm_report(GPM_PR_OOPS, "%s", name); + (*I_serial)(fd,type->flags,type,1,&type->name); /* ms initialization */ + return fd; + } + +From c3717d54b67133fd14ce4f2166f61e529a1dcfe4 Mon Sep 17 00:00:00 2001 +From: Mike Frysinger +Date: Sun, 14 Feb 2016 18:08:54 -0500 +Subject: [PATCH 3/5] update ignored file list + +--- a/.gitignore ++++ b/.gitignore +@@ -11,6 +11,7 @@ Makefile + Makefile.include + /aclocal.m4 + /autom4te.cache ++/config.cache + /config.log + /config.status + /configure +@@ -29,7 +30,7 @@ Makefile.include + /src/gpm + /src/gpm2/tmp + /src/gpm2/out +-/src/lib/libgpm.so.* ++/src/lib/libgpm.so* + /src/prog/disable-paste + /src/prog/display-buttons + /src/prog/display-coords + +From 01265c7ac5f86a02a7cec323f34a3b54e5973872 Mon Sep 17 00:00:00 2001 +From: Mike Frysinger +Date: Sun, 14 Feb 2016 21:02:48 -0500 +Subject: [PATCH 4/5] report/oops: add attributes to mark as printf functions + +This allows gcc to do printf checking on calls to these funcs to make +sure they're being called correctly. +--- a/src/headers/gpm.h ++++ b/src/headers/gpm.h +@@ -280,9 +280,15 @@ int Gpm_GetSnapshot(Gpm_Event *ePtr); + char *Gpm_get_console( void ); + int Gpm_x_high_y(int base, int pot_y); + int Gpm_cnt_digits(int number); ++#ifdef __GNUC__ ++__attribute__((__format__(printf, 3, 4))) ++#endif + void gpm_oops(int line, const char *file, const char *text, ... ); + + /* report.c / report-lib.c */ ++#ifdef __GNUC__ ++__attribute__((__format__(printf, 4, 5))) ++#endif + void gpm_report(int line, const char *file, int stat, const char *text, ... ); + + #ifdef __cplusplus +--- a/src/headers/message.h ++++ b/src/headers/message.h +@@ -226,6 +226,9 @@ + /* #define GPM_MESS_ "" */ + + /* functions */ ++#ifdef __GNUC__ ++__attribute__((__format__(printf, 4, 5))) ++#endif + void gpm_report(int line, const char *file, int stat, const char *text, ... ); + + /* rest of wd.h */ + +From 85b451a188cfc8aa6233df55ec0c5dfcd203786f Mon Sep 17 00:00:00 2001 +From: Mike Frysinger +Date: Sun, 14 Feb 2016 21:08:28 -0500 +Subject: [PATCH 5/5] clean up a few unused funcs/vars + +--- a/src/prog/gpm-root.y ++++ b/src/prog/gpm-root.y +@@ -443,6 +443,7 @@ void f__fix(struct passwd *pass) + } + + /*---------------------------------------------------------------------*/ ++#if 0 + static int f_debug_one(FILE *f, Draw *draw) + { + DrawItem *ip; +@@ -465,6 +466,7 @@ static int f_debug_one(FILE *f, Draw *draw) + #undef LINE + return 0; + } ++#endif + + int f_debug(int mode, DrawItem *self, int uid) + { +@@ -960,10 +962,8 @@ static inline void scr_dump(int fd, FILE *f, unsigned char *buffer, int vc) + /*------------*/ + static inline void scr_restore(int fd, FILE *f, unsigned char *buffer, int vc) + { +- int x,y, dumpfd; ++ int dumpfd; + char dumpname[20]; +- +- x=buffer[2]; y=buffer[3]; + + /* WILL NOT WORK WITH DEVFS! FIXME! */ + sprintf(dumpname,"/dev/vcsa%i",vc); + diff --git a/sys-libs/gpm/files/gpm.service-r1 b/sys-libs/gpm/files/gpm.service-r1 new file mode 100644 index 000000000000..105649870aa0 --- /dev/null +++ b/sys-libs/gpm/files/gpm.service-r1 @@ -0,0 +1,11 @@ +[Unit] +Description=Console Mouse manager +After=syslog.target + +[Service] +ExecStart=/usr/sbin/gpm -m /dev/input/mice -t exps2 +Type=forking +PIDFile=/run/gpm.pid + +[Install] +WantedBy=multi-user.target diff --git a/sys-libs/gpm/gpm-1.20.7-r3.ebuild b/sys-libs/gpm/gpm-1.20.7-r3.ebuild deleted file mode 100644 index 7554d790cd56..000000000000 --- a/sys-libs/gpm/gpm-1.20.7-r3.ebuild +++ /dev/null @@ -1,108 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -# emacs support disabled due to #99533 #335900 - -EAPI=7 - -inherit autotools linux-info systemd usr-ldscript multilib-minimal - -DESCRIPTION="Console-based mouse driver" -HOMEPAGE="https://www.nico.schottelius.org/software/gpm/" -SRC_URI=" - https://www.nico.schottelius.org/software/${PN}/archives/${P}.tar.lzma - mirror://gentoo/${P}-docs.patch.xz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86" -IUSE="selinux" - -RDEPEND=" - sys-libs/ncurses:=[${MULTILIB_USEDEP}] - selinux? ( sec-policy/selinux-gpm )" -DEPEND="${RDEPEND}" -BDEPEND=" - app-arch/xz-utils - sys-apps/texinfo - virtual/yacc" - -CONFIG_CHECK="~INPUT_MOUSEDEV" -ERROR_INPUT_MOUSEDEV="CONFIG_INPUT_MOUSEDEV:\tis not set (required to expose mice for GPM)" - -pkg_pretend() { - check_extra_config -} - -src_prepare() { - eapply "${FILESDIR}"/${P}-sysmacros.patch - - # Hack up the docs until we get this sorted upstream. - # https://github.com/telmich/gpm/issues/8 - eapply "${WORKDIR}"/${P}-docs.patch - touch -r . doc/* || die - - # bug #629774 - eapply "${FILESDIR}"/${P}-glibc-2.26.patch - - # bug #705878 - eapply "${FILESDIR}"/${P}-gcc-10.patch - - eapply_user - - # fix ABI values - sed -i \ - -e '/^abi_lev=/s:=.*:=1:' \ - -e '/^abi_age=/s:=.*:=20:' \ - configure.ac.footer || die - # Rebuild autotools since release doesn't include them. - # Should be fixed with the next release though. - # https://github.com/telmich/gpm/pull/15 - sed -i -e '/ACLOCAL/,$d' autogen.sh || die - ./autogen.sh - eautoreconf - - # Out-of-tree builds are broken. - # https://github.com/telmich/gpm/issues/16 - multilib_copy_sources -} - -multilib_src_configure() { - econf \ - --disable-static \ - --sysconfdir="${EPREFIX}"/etc/gpm \ - emacs="${BROOT}"/bin/false -} - -_emake() { - emake \ - EMACS=: ELISP="" \ - $(multilib_is_native_abi || echo "PROG= ") \ - "$@" -} - -multilib_src_compile() { - _emake -} - -multilib_src_test() { - _emake check -} - -multilib_src_install() { - _emake DESTDIR="${D}" install - - dosym libgpm.so.1 /usr/$(get_libdir)/libgpm.so - gen_usr_ldscript -a gpm -} - -multilib_src_install_all() { - insinto /etc/gpm - doins conf/gpm-*.conf - - dodoc README TODO doc/Announce doc/FAQ doc/README* - - newinitd "${FILESDIR}"/gpm.rc6-2 gpm - newconfd "${FILESDIR}"/gpm.conf.d gpm - systemd_dounit "${FILESDIR}"/gpm.service -} diff --git a/sys-libs/gpm/gpm-1.20.7-r4.ebuild b/sys-libs/gpm/gpm-1.20.7-r4.ebuild index c658f09ef995..9ecf544e9cf2 100644 --- a/sys-libs/gpm/gpm-1.20.7-r4.ebuild +++ b/sys-libs/gpm/gpm-1.20.7-r4.ebuild @@ -15,7 +15,7 @@ SRC_URI=" LICENSE="GPL-2" SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86" +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86" IUSE="selinux" RDEPEND=" diff --git a/sys-libs/gpm/gpm-1.20.7-r5.ebuild b/sys-libs/gpm/gpm-1.20.7-r5.ebuild new file mode 100644 index 000000000000..63d7c8b10fec --- /dev/null +++ b/sys-libs/gpm/gpm-1.20.7-r5.ebuild @@ -0,0 +1,112 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools linux-info systemd usr-ldscript multilib-minimal + +DESCRIPTION="Console-based mouse driver" +HOMEPAGE="https://www.nico.schottelius.org/software/gpm/" +SRC_URI=" + https://www.nico.schottelius.org/software/${PN}/archives/${P}.tar.lzma + mirror://gentoo/${P}-docs.patch.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +IUSE="selinux" + +RDEPEND=" + sys-libs/ncurses:=[${MULTILIB_USEDEP}] + selinux? ( sec-policy/selinux-gpm )" +DEPEND="${RDEPEND}" +BDEPEND=" + app-arch/xz-utils + sys-apps/texinfo + virtual/yacc" + +CONFIG_CHECK="~INPUT_MOUSEDEV" +ERROR_INPUT_MOUSEDEV="CONFIG_INPUT_MOUSEDEV:\tis not set (required to expose mice for GPM)" + +pkg_pretend() { + check_extra_config +} + +src_prepare() { + eapply "${FILESDIR}"/${P}-sysmacros.patch + + # Hack up the docs until we get this sorted upstream. + # https://github.com/telmich/gpm/issues/8 + eapply "${WORKDIR}"/${P}-docs.patch + touch -r . doc/* || die + + # bug #629774 + eapply "${FILESDIR}"/${P}-glibc-2.26.patch + # bug #705878 + eapply "${FILESDIR}"/${P}-gcc-10.patch + # bug #829581 + eapply "${FILESDIR}"/${P}-musl.patch + # + eapply "${FILESDIR}"/${P}-gcc-include.patch + eapply "${FILESDIR}"/${P}-signedness.patch + eapply "${FILESDIR}"/${P}-warnings.patch + + eapply_user + + # Fix ABI values + sed -i \ + -e '/^abi_lev=/s:=.*:=1:' \ + -e '/^abi_age=/s:=.*:=20:' \ + configure.ac.footer || die + # Rebuild autotools since release doesn't include them. + # Should be fixed with the next release though. + # https://github.com/telmich/gpm/pull/15 + sed -i -e '/ACLOCAL/,$d' autogen.sh || die + ./autogen.sh + eautoreconf + + # Out-of-tree builds are broken. + # https://github.com/telmich/gpm/issues/16 + multilib_copy_sources +} + +multilib_src_configure() { + # emacs support disabled due to bug #99533, bug #335900 + econf \ + --disable-static \ + --sysconfdir="${EPREFIX}"/etc/gpm \ + emacs="${BROOT}"/bin/false +} + +_emake() { + emake \ + EMACS=: ELISP="" \ + $(multilib_is_native_abi || echo "PROG= ") \ + "$@" +} + +multilib_src_compile() { + _emake +} + +multilib_src_test() { + _emake check +} + +multilib_src_install() { + _emake DESTDIR="${D}" install + + dosym libgpm.so.1 /usr/$(get_libdir)/libgpm.so + gen_usr_ldscript -a gpm +} + +multilib_src_install_all() { + insinto /etc/gpm + doins conf/gpm-*.conf + + dodoc README TODO doc/Announce doc/FAQ doc/README* + + newinitd "${FILESDIR}"/gpm.rc6-2 gpm + newconfd "${FILESDIR}"/gpm.conf.d gpm + systemd_newunit "${FILESDIR}"/gpm.service-r1 gpm.service +} -- cgit v1.2.3