Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 849770 - x11-misc/compose-tables still depends on x11 libraries
Summary: x11-misc/compose-tables still depends on x11 libraries
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-05 09:19 UTC by stshine
Modified: 2024-03-26 18:05 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description stshine 2022-06-05 09:19:41 UTC
x11-misc/compose-tables is part of libX11 and checks for x11-base/xorg-proto, x11-libs/libxcb-1.11.1, x11-libs/xtrans during configuration.

However, the compilation process seems only involve invocations of C preprocesser. Is it possible to remove dependencies on those X11 libraries?
Comment 1 Ionen Wolkens gentoo-dev 2022-06-05 13:27:18 UTC
Trying to rip out X11 from configure.ac seems rather convoluted from a quick look, and running commands from the Makefile.am without running configure seems not much better.

Not familiar with these files but looks like static text files, wonder if a pre-generated tarball would be simpler? Think at most may need to sed some paths with ${EPREFIX} in Compose files on install (or maybe they can take relative paths).
Comment 2 Matt Turner gentoo-dev 2022-06-12 19:04:15 UTC
Patches welcome—preferably upstream.
Comment 3 gentoo 2024-03-26 14:22:44 UTC
Will these changes do? This builds and installs without issue for me. 
I am on amd64. I do not know enough yet to tell if anything I did is fundamentally "bad" especially for other archs. 

Thanks. 


Change with-keysymdefdir to workdir and create empty keysymdef.h file to pass that check. 
Change all pkg_failed=yes to skip the dependency checks and complete configure without them.

This is based on compose-tables-1.8.8.ebuild. compose-tables-1.8.7 works as well.


Thanks. 







# Copyright 2020-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

XORG_MULTILIB=no
XORG_TARBALL_SUFFIX=xz
inherit xorg-3

# Note: please bump this with x11-libs/libX11
DESCRIPTION="X.Org Compose Key tables from libX11"
# xorg-3.eclass would attempt to fetch a tarball with a matching name to this package
SRC_URI="${XORG_BASE_INDIVIDUAL_URI}/lib/libX11-${PV}.tar.${XORG_TARBALL_SUFFIX}"
S="${WORKDIR}/libX11-${PV}/"

KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"

src_configure() {
	local XORG_CONFIGURE_OPTIONS=(
		--without-xmlto
		--without-fop
		--disable-specs
		--disable-xkb
		--with-keysymdefdir="${S}"
	)
	xorg-3_src_configure
}

src_prepare() {
default
touch keysymdef.h || die
sed -i -e 's/pkg_failed=yes/pkg_failed=no/g' configure || die
}

src_compile() {
	emake -C nls
}

src_test() {
	:;
}

src_install() {
	emake DESTDIR="${D}" -C nls install
}
Comment 4 Matt Turner gentoo-dev 2024-03-26 18:05:10 UTC
I would really prefer an upstream fix.