View previous topic :: View next topic |
Author |
Message |
y351 Apprentice
Joined: 21 May 2017 Posts: 200
|
Posted: Thu Nov 29, 2018 11:39 am Post subject: [Repo local] - Sa mise en place et erreur d'install [résolu] |
|
|
Bonjour,
J'essaie de mettre en place un repo local pour une installation spécifique d'un package.
Je décris ci-dessous ce que j'ai fait et ce que j'obtiens comme erreur lorsque j'essaie d'installer ce package.
NB : Hors ce repo local, l'installation du package marche très bien par le Overlay Sabayan
Code: |
emerge app-portage/repoman
mkdir -p /usr/local/portage/{metadata,profiles}
chown -R portage:portage /usr/local/portage
echo 'localrepo' > /usr/local/portage/profiles/localrepo
cat /usr/local/portage/metadata/layout.conf |
Quote: |
masters = gentoo
thin-manifests = true
auto-sync = false
|
Code: | cat /etc/portage/repos.conf/localrepo.conf |
Quote: |
[localrepo]
location = /usr/local/portage
priority = 10
masters = gentoo
auto-sync = no |
Code: |
mkdir -p /usr/local/portage/sys-auth/realmd
chown -R portage:portage /usr/local/portage
ls -l /usr/local/portage/sys-auth/realmd/realmd-0.16.3.ebuild |
Quote: |
-rwx------. 1 portage portage 951 28 nov. 16:49 /usr/local/portage/sys-auth/realmd/realmd-0.16.3.ebuild |
Code: |
pushd /usr/local/portage/sys-auth/realmd
repoman manifest
popd
ls -l /usr/local/portage/sys-auth/realmd/ |
Quote: |
total 8
-rw-r--r--. 1 portage portage 306 28 nov. 16:56 Manifest
-rwx------. 1 portage portage 951 28 nov. 16:49 realmd-0.16.3.ebuild
|
Code: |
cat /usr/local/portage/sys-auth/realmd/realmd-0.16.3.ebuild |
Quote: |
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
AUTOTOOLS_AUTORECONF=1
inherit autotools-utils systemd
DESCRIPTION="DBus service for configuring kerberos and other online identities"
HOMEPAGE="http://cgit.freedesktop.org/realmd/realmd/"
SRC_URI="http://www.freedesktop.org/software/realmd/releases/${P}.tar.gz"
LICENSE="LGPL-2+"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="systemd"
DEPEND="app-admin/packagekit-base
sys-auth/polkit[introspection]
sys-devel/gettext
dev-libs/glib:2
virtual/krb5
systemd? ( sys-apps/systemd )"
RDEPEND="${DEPEND}"
src_prepare() {
sed -e '/gentoo-release/s/dnl/ /g' -i configure.ac
# Copy the gentoo config file
cp "${FILESDIR}/realmd-gentoo.conf" "${S}/service/" || die
autotools-utils_src_prepare
}
src_configure() {
autotools-utils_src_configure \
$(use_with systemd systemd-journal) \
--with-systemd-unit-dir=$(systemd_get_unitdir)
}
|
Quote: |
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild N ~] sys-auth/realmd-0.16.3::localrepo USE="(-systemd)" 0 KiB
Total: 1 package (1 new), Size of downloads: 0 KiB
>>> Verifying ebuild manifests
>>> Emerging (1 of 1) sys-auth/realmd-0.16.3::localrepo
>>> Failed to emerge sys-auth/realmd-0.16.3, Log file:
>>> '/var/tmp/portage/sys-auth/realmd-0.16.3/temp/build.log'
>>> Jobs: 0 of 1 complete, 1 failed Load avg: 0.08, 0.03, 0.01
* Package: sys-auth/realmd-0.16.3
* Repository: localrepo
* USE: abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU
* FEATURES: preserve-libs sandbox selinux sesandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking realmd-0.16.3.tar.gz to /var/tmp/portage/sys-auth/realmd-0.16.3/work
>>> Source unpacked in /var/tmp/portage/sys-auth/realmd-0.16.3/work
>>> Preparing source in /var/tmp/portage/sys-auth/realmd-0.16.3/work/realmd-0.16.3 ...
cp: cannot stat '/var/tmp/portage/sys-auth/realmd-0.16.3/files/realmd-gentoo.conf': No such file or directory
* ERROR: sys-auth/realmd-0.16.3::localrepo failed (prepare phase):
* (no error message)
*
* Call stack:
* ebuild.sh, line 124: Called src_prepare
* environment, line 2365: Called die
* The specific snippet of code:
* cp "${FILESDIR}/realmd-gentoo.conf" "${S}/service/" || die;
*
* If you need support, post the output of `emerge --info '=sys-auth/realmd-0.16.3::localrepo'`,
* the complete build log and the output of `emerge -pqv '=sys-auth/realmd-0.16.3::localrepo'`.
* The complete build log is located at '/var/tmp/portage/sys-auth/realmd-0.16.3/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/sys-auth/realmd-0.16.3/temp/environment'.
* Working directory: '/var/tmp/portage/sys-auth/realmd-0.16.3/work/realmd-0.16.3'
* S: '/var/tmp/portage/sys-auth/realmd-0.16.3/work/realmd-0.16.3'
* Messages for package sys-auth/realmd-0.16.3:
* ERROR: sys-auth/realmd-0.16.3::localrepo failed (prepare phase):
* (no error message)
*
* Call stack:
* ebuild.sh, line 124: Called src_prepare
* environment, line 2365: Called die
* The specific snippet of code:
* cp "${FILESDIR}/realmd-gentoo.conf" "${S}/service/" || die;
*
* If you need support, post the output of `emerge --info '=sys-auth/realmd-0.16.3::localrepo'`,
* the complete build log and the output of `emerge -pqv '=sys-auth/realmd-0.16.3::localrepo'`.
* The complete build log is located at '/var/tmp/portage/sys-auth/realmd-0.16.3/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/sys-auth/realmd-0.16.3/temp/environment'.
* Working directory: '/var/tmp/portage/sys-auth/realmd-0.16.3/work/realmd-0.16.3'
* S: '/var/tmp/portage/sys-auth/realmd-0.16.3/work/realmd-0.16.3'
*
* The following package has failed to build, install, or execute postinst:
*
* (sys-auth/realmd-0.16.3:0/0::localrepo, ebuild scheduled for merge), Log file:
* '/var/tmp/portage/sys-auth/realmd-0.16.3/temp/build.log'
*
|
Code: |
ls -lr /var/tmp/portage/sys-auth/realmd-0.16.3/ |
Quote: |
total 4
drwx------. 1 portage portage 26 29 nov. 11:58 work
drwxr-xr-x. 1 portage portage 86 29 nov. 11:58 temp
drwxr-xr-x. 1 portage portage 0 29 nov. 11:58 homedir
lrwxrwxrwx. 1 root root 40 29 nov. 11:58 files -> /usr/local/portage/sys-auth/realmd/files
drwxr-xr-x. 1 root portage 40 29 nov. 11:58 distdir
|
Code: |
ls -lr /var/tmp/portage/sys-auth/realmd-0.16.3/files |
Quote: |
lrwxrwxrwx. 1 root root 40 29 nov. 11:58 /var/tmp/portage/sys-auth/realmd-0.16.3/files -> /usr/local/portage/sys-auth/realmd/files
|
Code: |
ls -lr /var/tmp/portage/sys-auth/realmd-0.16.3/files/ |
Quote: |
ls: impossible d'accéder à '/var/tmp/portage/sys-auth/realmd-0.16.3/files/': Aucun fichier ou dossier de ce type
|
Code: |
ls -lr /usr/local/portage/sys-auth/realmd/ |
Quote: |
total 8
-rwx------. 1 portage portage 951 28 nov. 16:49 realmd-0.16.3.ebuild
-rw-r--r--. 1 portage portage 306 28 nov. 16:56 Manifest |
Ai-je manqué quelque chose ?
Merci d'avance pour vos retours.
Last edited by y351 on Thu Nov 29, 2018 4:04 pm; edited 1 time in total |
|
Back to top |
|
|
xaviermiller Bodhisattva
Joined: 23 Jul 2004 Posts: 8723 Location: ~Brussels - Belgique
|
Posted: Thu Nov 29, 2018 12:48 pm Post subject: |
|
|
Salut,
[EDIT]
As-tu bien un sous-répertoire "files" dans le répertoire de ton ebuild, et le fichier mentionné (realmd-gentoo.conf)? _________________ Kind regards,
Xavier Miller |
|
Back to top |
|
|
y351 Apprentice
Joined: 21 May 2017 Posts: 200
|
Posted: Thu Nov 29, 2018 1:50 pm Post subject: |
|
|
Bonjour,
Ni l'un ni l'autre.
A quel moment, sont-ils censés être généré ? |
|
Back to top |
|
|
xaviermiller Bodhisattva
Joined: 23 Jul 2004 Posts: 8723 Location: ~Brussels - Belgique
|
Posted: Thu Nov 29, 2018 2:06 pm Post subject: |
|
|
Ils ne sont pas générés, c'est à toi à l'y déposer dans le répertoire "files", en reprenant le contenu de "files" de l'ebuild dont tu t'es inspiré.
Ce répertoire contient des patches, fichiers de config et autres petits fichiers, nécessaires à la bonne compilation et configuration de l'ebuild.
EDIT: ici https://data.gpo.zugaina.org/sabayon/sys-auth/realmd/ _________________ Kind regards,
Xavier Miller |
|
Back to top |
|
|
y351 Apprentice
Joined: 21 May 2017 Posts: 200
|
Posted: Thu Nov 29, 2018 4:04 pm Post subject: |
|
|
En effet, c'est mieux.
Merci ! |
|
Back to top |
|
|
darkducobu n00b
Joined: 27 Dec 2018 Posts: 3 Location: Nantes
|
Posted: Thu Dec 27, 2018 6:10 pm Post subject: |
|
|
Bonjour,
A la lecture des problèmes et de la complexité des messages postés, je m'interroge à propos de mes capacités à installer une version de linux.
Comme rédiger sur ce post je n'ai aucune expérience d'installation d'une distribution linux.
Qu'en pensez-vous ?
Comment avez-vous fait pour démarrer ? |
|
Back to top |
|
|
y351 Apprentice
Joined: 21 May 2017 Posts: 200
|
Posted: Fri Dec 28, 2018 10:01 am Post subject: |
|
|
@darkducobu
Bonjour,
Ce fil de discussion est clos.
Il faut créer un autre ticket pour poser tes questions en rapport avec tes besoins.
|
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|