Gentoo Archives: gentoo-dev

From: Mikael Hallendal <hallski@g.o>
To: gentoo-dev@g.o
Subject: Re: [gentoo-dev] environment variable GZIP cause pilot-link-0.9.6.ebuild (kde) to fail ?
Date: Tue, 15 Jan 2002 16:44:36
Message-Id: 1011134737.996.0.camel@fluffy
In Reply to: [gentoo-dev] environment variable GZIP cause pilot-link-0.9.6.ebuild (kde) to fail ? by Michael Tartsch
1 tis 2002-01-15 klockan 22.48 skrev Michael Tartsch:
2 > Hi
3 >
4 > I had some trouble with kde dependance pilot-link.
5 > The environment variable GZIP=-9 cause the ebuild to fail.
6
7 Hi!
8
9 Can you please add this to the bugzilla?
10
11 Regards,
12 Mikael Hallendal
13
14
15 > ---original problem----------------------------------------------
16 > While building kde the dependency pilot-link-0.9.6 failed.
17 > Without sandbox the following output was generated:
18 >
19 > ...
20 > mkdir /var/tmp/portage/pilot-link-0.9.6-r3/image/usr/share/man/man1
21 > mkdir /var/tmp/portage/pilot-link-0.9.6-r3/image/usr/share/man/man7
22 > for m in ./man/*.1; do \
23 > /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`; \
24 > /bin/cat $m | /bin/gzip > /var/tmp/portage/pilot-link-0.9.6-r3/image//usr/share/man/man1/`basename $m`.gz; \
25 > done
26 > /bin/install -c -m 644 ./man/dlpsh.1 /var/tmp/portage/pilot-link-0.9.6-r3/image//usr/share/man/man1/dlpsh.1
27 > /bin/install -c -m 644 ./man/ietf2datebook.1 /var/tmp/portage/pilot-link-0.9.6-r3/image//usr/share/man/man1/ietf2datebook.1
28 > /bin/sh: /bin/gzip: No such file or directory
29 > ...
30 >
31 > After ebuild the /bin/gzip was missing and a file /bin/gzip.gz exists.
32 > ---analyze----------------------------------------------
33 > After a lot of testing and reading I found out what has happened.
34 >
35 > - I have an environment variable for GZIP with defailt options:
36 > GZIP=-9
37 > - the Makefile of pilot-link contains the following segments:
38 > ...
39 > GZIP = /bin/gzip
40 > ...
41 > for m in ${srcdir}/man/*.1; do \
42 > $(INSTALL_DATA) $$m $(mandir1)/`basename $$m`; \
43 > $(CAT) $$m | $(GZIP) > $(mandir1)/`basename $$m`.gz; \
44 > done
45 > If no environment variable is missing then the make variable seems
46 > to be treated as local.
47 > If an evironment variable GZIP exists then it is overwritten
48 > and forewarded to the sub-shell.
49 >
50 > - The following command was called with
51 > environment GZIP=/bin/gzip
52 > cat somefile.1 | /bin/gzip > somedir/somefile.1.gz
53 > gzip internally merges the $GZIP with the commandline and executes
54 > "/bin/gzip /bin/gzip"
55 > uups
56 >
57 > ---Question-------------------------------------------------------------
58 >
59 > What's wrong with my GZIP="-9" ?
60 >
61 >
62 >
63 >
64 > bye
65 > Michael Tartsch <mt@×××××.de>
66 >
67 >
68 > _______________________________________________
69 > gentoo-dev mailing list
70 > gentoo-dev@g.o
71 > http://lists.gentoo.org/mailman/listinfo/gentoo-dev
72 --
73 Mikael Hallendal
74 Gentoo Linux Developer, Desktop Team Leader
75 CodeFactory AB, Stockholm, Sweden

Attachments

File name MIME type
signature.asc application/pgp-signature