1 |
Hi |
2 |
|
3 |
I had some trouble with kde dependance pilot-link. |
4 |
The environment variable GZIP=-9 cause the ebuild to fail. |
5 |
|
6 |
---original problem---------------------------------------------- |
7 |
While building kde the dependency pilot-link-0.9.6 failed. |
8 |
Without sandbox the following output was generated: |
9 |
|
10 |
... |
11 |
mkdir /var/tmp/portage/pilot-link-0.9.6-r3/image/usr/share/man/man1 |
12 |
mkdir /var/tmp/portage/pilot-link-0.9.6-r3/image/usr/share/man/man7 |
13 |
for m in ./man/*.1; do \ |
14 |
/bin/sh ./libtool /bin/install -c -m 644 $m /var/tmp/portage/pilot-link-0.9.6-r3/image//usr/share/man/man1/`basename $m`; \ |
15 |
/bin/cat $m | /bin/gzip > /var/tmp/portage/pilot-link-0.9.6-r3/image//usr/share/man/man1/`basename $m`.gz; \ |
16 |
done |
17 |
/bin/install -c -m 644 ./man/dlpsh.1 /var/tmp/portage/pilot-link-0.9.6-r3/image//usr/share/man/man1/dlpsh.1 |
18 |
/bin/install -c -m 644 ./man/ietf2datebook.1 /var/tmp/portage/pilot-link-0.9.6-r3/image//usr/share/man/man1/ietf2datebook.1 |
19 |
/bin/sh: /bin/gzip: No such file or directory |
20 |
... |
21 |
|
22 |
After ebuild the /bin/gzip was missing and a file /bin/gzip.gz exists. |
23 |
---analyze---------------------------------------------- |
24 |
After a lot of testing and reading I found out what has happened. |
25 |
|
26 |
- I have an environment variable for GZIP with defailt options: |
27 |
GZIP=-9 |
28 |
- the Makefile of pilot-link contains the following segments: |
29 |
... |
30 |
GZIP = /bin/gzip |
31 |
... |
32 |
for m in ${srcdir}/man/*.1; do \ |
33 |
$(INSTALL_DATA) $$m $(mandir1)/`basename $$m`; \ |
34 |
$(CAT) $$m | $(GZIP) > $(mandir1)/`basename $$m`.gz; \ |
35 |
done |
36 |
If no environment variable is missing then the make variable seems |
37 |
to be treated as local. |
38 |
If an evironment variable GZIP exists then it is overwritten |
39 |
and forewarded to the sub-shell. |
40 |
|
41 |
- The following command was called with |
42 |
environment GZIP=/bin/gzip |
43 |
cat somefile.1 | /bin/gzip > somedir/somefile.1.gz |
44 |
gzip internally merges the $GZIP with the commandline and executes |
45 |
"/bin/gzip /bin/gzip" |
46 |
uups |
47 |
|
48 |
---Question------------------------------------------------------------- |
49 |
|
50 |
What's wrong with my GZIP="-9" ? |
51 |
|
52 |
|
53 |
|
54 |
|
55 |
bye |
56 |
Michael Tartsch <mt@×××××.de> |