Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 923296 - app-editors/kakoune doesn't compile on Gentoo Prefix
Summary: app-editors/kakoune doesn't compile on Gentoo Prefix
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Ian Hixson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-29 22:10 UTC by Solene
Modified: 2024-01-29 22:16 UTC (History)
1 user (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 Solene 2024-01-29 22:10:07 UTC
I can't build app-editors/kakoune using Gentoo Prefix on debian 12

the following patch solves it, thanks to parona on IRC

--- kakoune-2023.08.05.ebuild.orig      2024-01-29 22:08:30.547475759 +0000
+++ kakoune-2023.08.05.ebuild   2024-01-29 21:57:53.599471533 +0000
@@ -33,7 +33,7 @@
 }
 
 src_install() {
-       emake PREFIX="${D}"/usr docdir="${ED}/usr/share/doc/${PF}" install
+       emake DESTDIR="${D}" PREFIX=${EPREFIX}/usr docdir="${ED}/usr/share/doc/${PF}" install
 
        rm "${ED}/usr/share/man/man1/kak.1.gz" || die
        doman doc/kak.1


the error message is the following, there is a path issue that includes $HOME twice in a path

>>> Install app-editors/kakoune-2023.08.05 into /home/user/gentoo/var/tmp/portage/app-editors/kakoune-2023.08.05/image
make -j4 PREFIX=/home/user/gentoo/var/tmp/portage/app-editors/kakoune-2023.08.05/image/usr docdir=/home/user/gentoo/var/tmp/portage/app-editors/kakoune-2023.08.05/image/home/user/gentoo/usr/share/doc/kakoune-2023.08.05 install 
make -C src Makefile
make[1]: Entering directory '/home/user/gentoo/var/tmp/portage/app-editors/kakoune-2023.08.05/work/kakoune-2023.08.05/src'
make[1]: Nothing to be done for 'Makefile'.
make[1]: Leaving directory '/home/user/gentoo/var/tmp/portage/app-editors/kakoune-2023.08.05/work/kakoune-2023.08.05/src'
make -C src install
make[1]: Entering directory '/home/user/gentoo/var/tmp/portage/app-editors/kakoune-2023.08.05/work/kakoune-2023.08.05/src'
gzip -n -9 -f < ../doc/kak.1 > ../doc/kak.1.gz
install -d /home/user/gentoo/var/tmp/portage/app-editors/kakoune-2023.08.05/image/usr/bin \
	/home/user/gentoo/var/tmp/portage/app-editors/kakoune-2023.08.05/image/usr/libexec/kak \
	/home/user/gentoo/var/tmp/portage/app-editors/kakoune-2023.08.05/image/usr/share/kak/rc \
	/home/user/gentoo/var/tmp/portage/app-editors/kakoune-2023.08.05/image/usr/share/kak/colors \
	/home/user/gentoo/var/tmp/portage/app-editors/kakoune-2023.08.05/image/usr/share/kak/doc \
	/home/user/gentoo/var/tmp/portage/app-editors/kakoune-2023.08.05/image/home/user/gentoo/usr/share/doc/kakoune-2023.08.05 \
	/home/user/gentoo/var/tmp/portage/app-editors/kakoune-2023.08.05/image/usr/share/man/man1
ln -sf kak.opt kak
install -m 0755 kak /home/user/gentoo/var/tmp/portage/app-editors/kakoune-2023.08.05/image/usr/bin
ln -sf ../../bin/kak /home/user/gentoo/var/tmp/portage/app-editors/kakoune-2023.08.05/image/usr/libexec/kak/kak
install -m 0644 ../share/kak/kakrc /home/user/gentoo/var/tmp/portage/app-editors/kakoune-2023.08.05/image/usr/share/kak
install -m 0644 ../doc/pages/*.asciidoc /home/user/gentoo/var/tmp/portage/app-editors/kakoune-2023.08.05/image/usr/share/kak/doc
cp -r ../rc/* /home/user/gentoo/var/tmp/portage/app-editors/kakoune-2023.08.05/image/usr/share/kak/rc
find /home/user/gentoo/var/tmp/portage/app-editors/kakoune-2023.08.05/image/usr/share/kak/rc -type f -exec chmod 0644 {} +
[ -e /home/user/gentoo/var/tmp/portage/app-editors/kakoune-2023.08.05/image/usr/share/kak/autoload ] || ln -s rc /home/user/gentoo/var/tmp/portage/app-editors/kakoune-2023.08.05/image/usr/share/kak/autoload
install -m 0644 ../colors/* /home/user/gentoo/var/tmp/portage/app-editors/kakoune-2023.08.05/image/usr/share/kak/colors
install -m 0644 ../README.asciidoc /home/user/gentoo/var/tmp/portage/app-editors/kakoune-2023.08.05/image/home/user/gentoo/usr/share/doc/kakoune-2023.08.05
install -m 0644 ../doc/kak.1.gz /home/user/gentoo/var/tmp/portage/app-editors/kakoune-2023.08.05/image/usr/share/man/man1
make[1]: Leaving directory '/home/user/gentoo/var/tmp/portage/app-editors/kakoune-2023.08.05/work/kakoune-2023.08.05/src'
rm: cannot remove '/home/user/gentoo/var/tmp/portage/app-editors/kakoune-2023.08.05/image/home/user/gentoo/usr/share/man/man1/kak.1.gz': No such file or directory
Comment 1 Mike Gilbert gentoo-dev 2024-01-29 22:16:28 UTC
${EPREFIX} needs quotes: "${EPREFIX}".