Gentoo Archives: gentoo-dev

From: Michael Orlitzky <mjo@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Re: Review: news item and script for CPU_FLAGS_X86
Date: Fri, 23 Jan 2015 21:16:34
Message-Id: 54C2BA29.7020801@gentoo.org
In Reply to: Re: [gentoo-dev] Re: Review: news item and script for CPU_FLAGS_X86 by "Michał Górny"
1 On 01/23/2015 03:22 PM, Michał Górny wrote:
2 > Dnia 2015-01-23, o godz. 14:26:48
3 > Michael Orlitzky <mjo@g.o> napisał(a):
4 >
5 >> On 01/23/2015 02:13 PM, Michał Górny wrote:
6 >>> To help you enable the correct USE flags, we are providing a Python
7 >>> script which generates the correct value from your /proc/cpuinfo [1].
8 >>> The Python script can be downloaded and executed using the following
9 >>> command:
10 >>>
11 >>> $ wget -O - dev.gentoo.org/~mgorny/cpuinfo2cpuflags-x86.py | python
12 >>
13 >> Can we not encourage people to pipe stuff from a plain-http website into
14 >> an interpreter?
15 >
16 > Find a better solution.
17 >
18
19 Is there an easy way for users to verify our signatures against the keys
20 in LDAP?
21
22 Even `wget --no-check-certificate` would be a big improvement. Or since
23 Firefox seems happy with the dev.gentoo.org certificate, we could just
24 ask them to download it with their browsers.
25
26 Longer term: can we make wget like our SSL certificate?
27
28
29 >> But that's not the biggest problem with the wget thing: the first time
30 >> someone runs this it's going to fail.
31 >>
32 >> $ wget -O - dev.gentoo.org/~mgorny/cpuinfo2cpuflags-x86.py | python
33 >> ...
34 >> Unable to determine PORTDIR, please set it before calling this script
35 >
36 > Don't you have Portage installed?
37
38 I do.
39
40 $ emerge --info | grep PORTDIR
41 PORTDIR="/var/cache/portage/repositories/gentoo"
42
43
44 >> Now they get to download it again. Perhaps a bigger problem:
45 >>
46 >> $ echo $PORTDIR
47 >> /var/cache/portage/repositories/gentoo
48 >> $ python cpuinfo2cpuflags-x86.py
49 >> Unable to determine PORTDIR, please set it before calling this script
50 >
51 > Did you export PORTDIR?
52 >
53
54 No, but the error says to set it, not export it =)

Replies