Co mám špatně s ebuildem

Co mám špatně s ebuildem
« kdy: 22. 09. 2023, 13:11:17 »
Ahojte,
už roky používám tento e-build na aktualizaci flexibee:
Kód: [Vybrat]
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=6

inherit eutils java-pkg-2

DESCRIPTION="Czech Economic System."
SRC_URI="http://download.flexibee.eu/download/$(ver_cut 1-2)/$(ver_cut 1-4)/${P}.tar.gz"
HOMEPAGE="http://www.winstrom.cz/"
#LICENSE="WinStorm"
SLOT="0"
KEYWORDS="x86 amd64"
IUSE="logrotate server"
RESTRICT="nomirror"

DEPEND="|| (
>=virtual/jre-1.6
>=virtual/jdk-1.6
)"
RDEPEND="server? ( >=dev-db/postgresql-server-8.3[tcl] )
logrotate? ( app-admin/logrotate )
!app-office/winstrom"
S="${WORKDIR}/${P}"
LANGS="cs de en sk"

FONT_PATH=/usr/share/fonts
FONT_SUFFIX="ttf"
FONT_S=${S}${FONT_PATH}/truetype
FONT_PN=${PN}

pkg_setup() {
# user under which the winstrom server is running
enewuser flexibee 120 -1 /tmp nobody
}

src_unpack() {
# convert deb to tar.gz and unpack it
unpack ${A}

# change the postgres port
sed -i 's/5435/5432/' ${S}/etc/${PN}/${PN}-server.xml || die

# move winstrom jars into the temp dir, delete the rest and move it back
# link all system libraries
}

src_compile() {
:;
}

src_install() {
if use server; then
# configuration
insinto /etc/${PN}
doins etc/${PN}/${PN}-server.xml
fowners ${PN}:root /etc/${PN}/${PN}-server.xml
fperms 600 /etc/${PN}/${PN}-server.xml

# config script
newconfd ${FILESDIR}/${PN}-server.conf ${PN}-server

# init script
newinitd ${FILESDIR}/${PN}-server.init ${PN}-server
fi

# logrotate script
if use logrotate ; then
insinto /etc/logrotate.d
doins etc/logrotate.d/${PN}
fi

# splash screen
insinto /usr/share/${PN}
doins usr/share/${PN}/${PN}-logo-small.png
doins usr/share/${PN}/${PN}-splash.png

# libraries
java-pkg_dojar usr/share/${PN}/lib/*.jar

# launcher, server, client and VERSION
insinto /usr/share/${PN}/lib
doins usr/share/${PN}/lib/*.txt

# fonts
insinto ${FONT_PATH}/${FONT_PN}
doins ${FONT_S}/*.${FONT_SUFFIX}
# I don't know how to use the following command with the EAPI="7"
#font_src_install

# icon
doicon usr/share/pixmaps/${PN}.png

# doc
dodoc usr/share/doc/${PN}/* || die

# create wrapper script for the server
java-pkg_dolauncher ${PN}-server --main cz.winstrom.net.server.WinStromServer --pkg_args "-c /etc/${PN}/${PN}-server.xml --daemon" --java_args "-Xmx200m -server -XX:MinHeapFreeRatio=10 -XX:MaxHeapFreeRatio=10 -Djava.awt.headless=true -XX:CompileThreshold=16384 -XX:-OmitStackTraceInFastThrow"
dodir /usr/sbin
mv ${D}/usr/bin/${PN}-server ${D}/usr/sbin || die

# install mime types
insinto /usr/share/mimelnk/application/
doins usr/share/mimelnk/application/*
insinto /usr/share/mime/packages/
doins usr/share/mime/packages/*

# default file
dodir /etc/default
head -n6 etc/default/${PN} | tail -n2 > ${D}/etc/default/${PN}

# create wrapper script for the client
java-pkg_dolauncher ${PN} --main org.codehaus.classworlds.Launcher --java_args "-cp /usr/share/flexibee/lib/classworlds-1.1.jar -splash:/usr/share/${PN}/${PN}.png -Xmx512m -client -XX:MaxPermSize=128m -XX:MinHeapFreeRatio=10 -XX:MaxHeapFreeRatio=20 -XX:-OmitStackTraceInFastThrow -Dwinstromdir=/usr/share/${PN}/lib -Dclassworlds.conf=/usr/share/${PN}/lib/launcher.txt"
# desktop entry
make_desktop_entry ${PN} "FlexiBee" /usr/share/pixmaps/${PN}.png "Office"
}


pkg_postinst() {
elog
if use server ;then
elog "To make FlexiBee working, you have to start up the PostgreSQL server first."
elog "Then, you have to create FlexiBee DB admin (with password '7971'):"
elog "$ createuser -a -d -P -E -U postgres -W dba"
elog
elog "Use the /etc/init.d/${PN}-server script to start up the FlexiBee server."
elog
fi
elog "You can start up the FlexiBee application by /usr/bin/${PN}."
elog
elog "Fist time you start the FlexiBee application, go into the 'Advanced settings',"
elog "click on 'Data source management' button and 'Add' new 'Data source' with"
elog "'Server address' 127.0.0.1 and 'Server port' 5434."
elog
}
teď když jsem si chtěl aktualizovat ebuild, tak dostávám hlášku:
Kód: [Vybrat]
localhost /usr/local/portage/app-office/flexibee # ebuild flexibee-2023.4.4.ebuild digest
!!! getFetchMap(): 'app-office/flexibee-2023.4.4' has unsupported EAPI: '9'
Co se
změnilo v ebuildech?

Předem děkuji za odpověď.


Re:Co mám špatně s ebuildem
« Odpověď #1 kdy: 22. 09. 2023, 13:20:18 »
Tady něco nehraje. Chyba si stěžuje na nepodporované EAPI 9, zatímco ebuild specifikuje EAPI=6. EAPI 6 by stále mělo být podporované.

Re:Co mám špatně s ebuildem
« Odpověď #2 kdy: 22. 09. 2023, 15:22:31 »
Je to ještě podporované? Prakticky všude mám 7 nebo 8

RDa

  • *****
  • 2 764
    • Zobrazit profil
    • E-mail
Re:Co mám špatně s ebuildem
« Odpověď #3 kdy: 22. 09. 2023, 15:42:31 »
Je to ještě podporované? Prakticky všude mám 7 nebo 8

0-5 se nepodporuje, 6 je deprecated, 7-8 jsou idealni.. a ta 9 zatim neexistuje

RDa

  • *****
  • 2 764
    • Zobrazit profil
    • E-mail
Re:Co mám špatně s ebuildem
« Odpověď #4 kdy: 22. 09. 2023, 15:49:15 »
Me to funguje (narychlo jsem to vytvoril v gentoo repos, zmizne mi to pri pristim rsyncu)

desktop /var/db/repos/gentoo/app-office/flexibee # ebuild flexibee-2023.4.4.ebuild digest
Kód: [Vybrat]
>>> Downloading 'http://download.flexibee.eu/download/2023.4/2023.4.4/flexibee-2023.4.4.tar.gz'
--2023-09-22 15:44:17--  http://download.flexibee.eu/download/2023.4/2023.4.4/flexibee-2023.4.4.tar.gz
Resolving download.flexibee.eu (download.flexibee.eu)... 54.93.106.107
Connecting to download.flexibee.eu (download.flexibee.eu)|54.93.106.107|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://download.flexibee.eu.s3-website.eu-central-1.amazonaws.com/download/2023.4/2023.4.4/flexibee-2023.4.4.tar.gz [following]
--2023-09-22 15:44:17--  http://download.flexibee.eu.s3-website.eu-central-1.amazonaws.com/download/2023.4/2023.4.4/flexibee-2023.4.4.tar.gz
Resolving download.flexibee.eu.s3-website.eu-central-1.amazonaws.com (download.flexibee.eu.s3-website.eu-central-1.amazonaws.com)... 52.219.140.132, 52.219.46.88, 52.219.171.112, ...
Connecting to download.flexibee.eu.s3-website.eu-central-1.amazonaws.com (download.flexibee.eu.s3-website.eu-central-1.amazonaws.com)|52.219.140.132|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 190171323 (181M) [application/x-gzip]
Saving to: ‘/var/cache/distfiles/flexibee-2023.4.4.tar.gz.__download__’

/var/cache/distfiles/flexibee-2023.4.4.tar.gz.__downl 100%[=======================================================================================================================>] 181.36M  27.9MB/s    in 6.4s

2023-09-22 15:44:24 (28.1 MB/s) - ‘/var/cache/distfiles/flexibee-2023.4.4.tar.gz.__download__’ saved [190171323/190171323]

>>> Creating Manifest for /var/db/repos/gentoo/app-office/flexibee

# cat Manifest
Kód: [Vybrat]
DIST flexibee-2023.4.4.tar.gz 190171323 BLAKE2B a7c46b68b79badb2d979646836a3665954c6bdaeaee938b44e3e2a0d5d32debe9b342b221ea2cca51fcbe31acc59d94ba3338e817055bff9b4a652526a29183d SHA512 0a57ec351b5a0331c0744f2cc847c762d2eb9f7ff03c727c84c17871aa43e6bffd4246878adfbd4d22dd45db69aecc807e4b32eb01c2d75dfa4c9dbb5c647788
EBUILD flexibee-2023.4.4.ebuild 3960 BLAKE2B c01b8f6f1de50d712074697c8eb64bbe9429fbea5a6d7bb4b6c9ee0af28fde94b303935974124748dbbf7288ba611d9772dcbf0736e23d81467d002cf1026e6d SHA512 b8c4a7ea29c0ba3bf45a5cafc944de65da71d6e25e98a35352abd0529afce0314f33fc51bb7c0c551e0e53c4c86f4697ee7a91f54fdb5eceb6fc260d5d79cb92


Re:Co mám špatně s ebuildem
« Odpověď #5 kdy: 22. 09. 2023, 19:43:14 »
Co je to za software? Protože ten výstup není z Portage. Když tam vepíšu EAPI 9, tak `ebuild flexibee*ebuild digest` vypíše

Kód: [Vybrat]
!!! Unable to do any operations on 'app-office/flexibee-2023.4.4', since
!!! its EAPI is higher than this portage version's. Please upgrade to a
!!! portage version that supports EAPI '9'.

to tvoje @filbarcz vypadá jinak

Re:Co mám špatně s ebuildem
« Odpověď #6 kdy: 28. 09. 2023, 02:27:38 »
U mě to funguje taky. Zkusil jsi to pustit s ebuild --debug? Třeba ti řekne víc. Co máš za verzi portage? emerge --info