1 |
Hello, |
2 |
|
3 |
I am a newbie to Gentoo. |
4 |
As end user I am using package confluent-kafka from guru repository. |
5 |
To install it I have performed the following steps in command line: |
6 |
|
7 |
1. sudo emerge app-eselect/eselect-repository |
8 |
2. sudo mkdir /etc/portage/repos.conf |
9 |
3. sudo eselect repository enable guru |
10 |
4. sudo emaint sync -r guru; emerge --sync |
11 |
5. cat > /etc/portage/package.accept_keywords/confluent-kafka <<EOF |
12 |
dev-python/confluent-kafka ~amd64 |
13 |
dev-python/fastavro ~amd64 |
14 |
dev-python/favro ~amd64 |
15 |
dev-python/avro ~amd64 |
16 |
net-misc/kafka-bin ~amd64 |
17 |
EOF |
18 |
6. modify |
19 |
/var/db/repos/guru/dev-python/confluent-kafka/confluent-kafka-1.7.0.ebuild |
20 |
change PYTHON_COMPAT=( python3_8 ) -> PYTHON_COMPAT=( python3_9 ) |
21 |
sed -i 's/python3_8/python3_9/g' |
22 |
/var/db/repos/guru/dev-python/confluent-kafka/confluent-kafka-1.7.0.ebuild |
23 |
|
24 |
|
25 |
7. sudo emerge dev-python/confluent-kafka |
26 |
|
27 |
Everything is OK. The package dev-python/confluent-kafka is installed. |
28 |
|
29 |
emerge --search dev-python/confluent-kafka |
30 |
[ Results for search key : dev-python/confluent-kafka ] |
31 |
Searching... |
32 |
|
33 |
* dev-python/confluent-kafka |
34 |
Latest version available: 1.7.0 |
35 |
Latest version installed: 1.7.0 |
36 |
Size of files: 101 KiB |
37 |
Homepage: https://pypi.org/project/confluent-kafka |
38 |
https://github.com/confluentinc/confluent-kafka-python |
39 |
Description: Confluent's Kafka Python Client |
40 |
License: Apache-2.0 |
41 |
Then I have tried to install dev-python/confluent-kafka using SaltStack. |
42 |
Here is init.sls for installing dev-python/confluent-kafka: |
43 |
|
44 |
# install eselect-repository |
45 |
app-eselect/eselect-repository: |
46 |
pkg: |
47 |
- installed |
48 |
- names: |
49 |
- app-eselect/eselect-repository |
50 |
/etc/portage/repos.conf: |
51 |
file.directory: |
52 |
- name: /etc/portage/repos.conf |
53 |
- user: root |
54 |
- group: root |
55 |
- mode: 755 |
56 |
- require: |
57 |
- app-eselect/eselect-repository |
58 |
# add GURU repository |
59 |
add_guru: |
60 |
cmd.run: |
61 |
- name: eselect repository enable guru; emaint sync -r guru; emerge |
62 |
--sync |
63 |
- require: |
64 |
- /etc/portage/repos.conf |
65 |
|
66 |
dev-libs/librdkafka: |
67 |
pkg: |
68 |
- installed |
69 |
- name: |
70 |
- dev-libs/librdkafka |
71 |
|
72 |
/etc/portage/package.accept_keywords/confluent-kafka: |
73 |
file.managed: |
74 |
- create: True |
75 |
- contents: |
76 |
- dev-python/confluent-kafka ~amd64 |
77 |
- dev-python/fastavro ~amd64 |
78 |
- dev-python/favro ~amd64 |
79 |
- dev-python/avro ~amd64 |
80 |
- net-misc/kafka-bin ~amd64 |
81 |
|
82 |
|
83 |
# modify |
84 |
/var/db/repos/guru/dev-python/confluent-kafka/confluent-kafka-1.7.0.ebuild |
85 |
confluent-kafka-1.7.0.ebuild: |
86 |
cmd.run: |
87 |
- name: sed -i 's/python3_8/python3_9/g' |
88 |
/var/db/repos/guru/dev-python/confluent-kafka/confluent-kafka-1.7.0.ebuild |
89 |
- require: |
90 |
- add_guru |
91 |
- /etc/portage/package.accept_keywords/confluent-kafka |
92 |
|
93 |
|
94 |
dev-python/confluent-kafka: |
95 |
pkg: |
96 |
- installed |
97 |
- name: dev-python/confluent-kafka |
98 |
- require: |
99 |
- confluent-kafka-1.7.0.ebuild |
100 |
- dev-libs/librdkafka |
101 |
- add_guru |
102 |
|
103 |
|
104 |
I've received the error while installing dev-python/confluent-kafka: |
105 |
|
106 |
The following package(s) were not found, and no possible matches were found |
107 |
in the package db: dev-python/confluent-kafka. |
108 |
|
109 |
However guru repository is added to my gentoo installation and |
110 |
dev-python/confluent-kafka is available. |
111 |
So I can install dev-python/confluent-kafka in command line by command: |
112 |
|
113 |
sudo emerge dev-python/confluent-kafka |
114 |
|
115 |
or just once more rerunning SaltStack init.sls |
116 |
|
117 |
What may be the reason ? Any ideas, hints ? |
118 |
Thank you. |