This is actually a distribution problem and not an AMD64 problem, but it is an AMD64 distribution, ... Anyhow, my source rpms for Icarus Verilog cause lots of warnings when I use "rpm --rebuild iverilog-0.7.20030815-0.src.rpm" to rebuild the package. Warnings like: I call /usr/sbin/Check... + /usr/sbin/Check rm: cannot remove `/usr/share/info/dir.bak.gz': Permission denied gzip: /usr/share/info/dir.bak.gz: Permission denied -rw-r--r-- 1 root root 503 2003-07-17 07:06 /usr/share/info/dir.bak.gz rm: cannot remove `/usr/share/man/man1/gimp-1.2.1.gz': Permission denied gzip: /usr/share/man/man1/gimp-1.2.1.gz: Permission denied -rw-r--r-- 1 root root 5318 2003-07-09 06:53 /usr/share/man/man1/gimp-1.2.1.gz In fact, it appears that the subcommands are not using the BUILD_ROOT that is there to allow for non-root rebuilds of packages. It may be that an old version of rpm is being used. The srpms in question is here: <ftp://ftp.icarus.com/pub/eda/verilog/snapshots/precompiled/verilog-0.7.20030815-0.src.rpm> -- Steve Williams "The woods are lovely, dark and deep. steve at icarus.com But I have promises to keep, http://www.icarus.com and lines to code before I sleep, http://www.picturel.com And lines to code before I sleep."
"Stephen Williams" <1mc9i5i02@sneakemail.com> writes:
This is actually a distribution problem and not an AMD64 problem, but it is an AMD64 distribution, ...
Anyhow, my source rpms for Icarus Verilog cause lots of warnings when I use "rpm --rebuild iverilog-0.7.20030815-0.src.rpm" to rebuild the package. Warnings like:
That package seems not to use BUILD_ROOT. Without BUILD_ROOT set, a normal user might not be able to build the package. So, I would call it a bug in the source RPM.
I call /usr/sbin/Check... + /usr/sbin/Check rm: cannot remove `/usr/share/info/dir.bak.gz': Permission denied gzip: /usr/share/info/dir.bak.gz: Permission denied -rw-r--r-- 1 root root 503 2003-07-17 07:06 /usr/share/info/dir.bak.gz rm: cannot remove `/usr/share/man/man1/gimp-1.2.1.gz': Permission denied gzip: /usr/share/man/man1/gimp-1.2.1.gz: Permission denied -rw-r--r-- 1 root root 5318 2003-07-09 06:53 /usr/share/man/man1/gimp-1.2.1.gz
In fact, it appears that the subcommands are not using the BUILD_ROOT that is there to allow for non-root rebuilds of packages. It may be that an old version of rpm is being used.
No, this is not a generic RPM problem.
The srpms in question is here:
<ftp://ftp.icarus.com/pub/eda/verilog/snapshots/precompiled/verilog-0.7.20030815-0.src.rpm>
Andreas -- Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj SuSE Linux AG, Deutschherrnstr. 15-19, 90429 Nürnberg, Germany GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126
Andreas Jaeger aj-at-suse.de |suse-amd64| wrote:
"Stephen Williams" <1mc9i5i02@sneakemail.com> writes:
This is actually a distribution problem and not an AMD64 problem, but it is an AMD64 distribution, ...
Anyhow, my source rpms for Icarus Verilog cause lots of warnings when I use "rpm --rebuild iverilog-0.7.20030815-0.src.rpm" to rebuild the package. Warnings like:
That package seems not to use BUILD_ROOT. Without BUILD_ROOT set, a normal user might not be able to build the package.
So, I would call it a bug in the source RPM.
First of all, the verilog.spec most certainly *does* use the RPM_BUILD_ROOT variable. For example: %install %ifarch x86_64 make prefix=$RPM_BUILD_ROOT/usr libdir=$RPM_BUILD_ROOT/usr/lib64 install %else make prefix=$RPM_BUILD_ROOT/usr install %endif (BTW is this how the lib64 directory is intended to be used on x86_64 systems?) Second, those commands that are generating the warnings are things like the brp-compress and the Check programs, which are not paying attention to the RPM_BUILD_ROOT variable. Third, this exact same package rebuilds with rpm --rebuild on on my RedHat 7.2/alpha system just fine. -- Steve Williams "The woods are lovely, dark and deep. steve at icarus.com But I have promises to keep, http://www.icarus.com and lines to code before I sleep, http://www.picturel.com And lines to code before I sleep."
"Stephen Williams" <1mc9i5i02@sneakemail.com> writes:
Andreas Jaeger aj-at-suse.de |suse-amd64| wrote:
"Stephen Williams" <1mc9i5i02@sneakemail.com> writes:
This is actually a distribution problem and not an AMD64 problem, but it is an AMD64 distribution, ...
Anyhow, my source rpms for Icarus Verilog cause lots of warnings when I use "rpm --rebuild iverilog-0.7.20030815-0.src.rpm" to rebuild the package. Warnings like: That package seems not to use BUILD_ROOT. Without BUILD_ROOT set, a normal user might not be able to build the package. So, I would call it a bug in the source RPM.
First of all, the verilog.spec most certainly *does* use the RPM_BUILD_ROOT variable. For example:
%install %ifarch x86_64 make prefix=$RPM_BUILD_ROOT/usr libdir=$RPM_BUILD_ROOT/usr/lib64 install %else make prefix=$RPM_BUILD_ROOT/usr install %endif
Does it also set it? E.g. is there something like this: BuildRoot: %{_tmppath}/%{name}-%{version}-build
(BTW is this how the lib64 directory is intended to be used on x86_64 systems?)
No, use: libdir=%{_libdir} This will be either /usr/lib or /usr/lib64
Second, those commands that are generating the warnings are things like the brp-compress and the Check programs, which are not paying attention to the RPM_BUILD_ROOT variable.
Those are paying attention. But I guess that variable is not set.
Third, this exact same package rebuilds with rpm --rebuild on on my RedHat 7.2/alpha system just fine.
Interesting... Andreas -- Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj SuSE Linux AG, Deutschherrnstr. 15-19, 90429 Nürnberg, Germany GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126
"Stephen Williams" <1mc9i5i02@sneakemail.com> writes:
[...] Third, this exact same package rebuilds with rpm --rebuild on on my RedHat 7.2/alpha system just fine.
Red Hat does not use /usr/sbin/Check, Andreas -- Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj SuSE Linux AG, Deutschherrnstr. 15-19, 90429 Nürnberg, Germany GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126
"Stephen Williams" <1mc9i5i02@sneakemail.com> writes:
This is actually a distribution problem and not an AMD64 problem, but it is an AMD64 distribution, ...
Anyhow, my source rpms for Icarus Verilog cause lots of warnings when I use "rpm --rebuild iverilog-0.7.20030815-0.src.rpm" to rebuild the package. Warnings like:
I call /usr/sbin/Check... + /usr/sbin/Check rm: cannot remove `/usr/share/info/dir.bak.gz': Permission denied gzip: /usr/share/info/dir.bak.gz: Permission denied -rw-r--r-- 1 root root 503 2003-07-17 07:06 /usr/share/info/dir.bak.gz rm: cannot remove `/usr/share/man/man1/gimp-1.2.1.gz': Permission denied gzip: /usr/share/man/man1/gimp-1.2.1.gz: Permission denied -rw-r--r-- 1 root root 5318 2003-07-09 06:53 /usr/share/man/man1/gimp-1.2.1.gz
In fact, it appears that the subcommands are not using the BUILD_ROOT that is there to allow for non-root rebuilds of packages. It may be that an old version of rpm is being used.
The srpms in question is here:
<ftp://ftp.icarus.com/pub/eda/verilog/snapshots/precompiled/verilog-0.7.20030815-0.src.rpm>
I just tried to build this as normal user and had no problems: + RPM_BUILD_ROOT=/tmp/ivl + export RPM_BUILD_ROOT + test -x /usr/sbin/Check -a 659 = 0 -o -x /usr/sbin/Check -a '!' -z /tmp/ivl + echo 'I call /usr/sbin/Check...' I call /usr/sbin/Check... + /usr/sbin/Check + /usr/lib/rpm/brp-compress It could be a bug in an older RPM than the one you used but for me it worked fine here (on 8.2beta), Andreas -- Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj SuSE Linux AG, Deutschherrnstr. 15-19, 90429 Nürnberg, Germany GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126
Andreas Jaeger aj-at-suse.de |suse-amd64| wrote:
I just tried to build this as normal user and had no problems: + RPM_BUILD_ROOT=/tmp/ivl + export RPM_BUILD_ROOT + test -x /usr/sbin/Check -a 659 = 0 -o -x /usr/sbin/Check -a '!' -z /tmp/ivl + echo 'I call /usr/sbin/Check...' I call /usr/sbin/Check... + /usr/sbin/Check + /usr/lib/rpm/brp-compress
It could be a bug in an older RPM than the one you used but for me it worked fine here (on 8.2beta),
Andreas
Hmm, wing % rpm -q rpm rpm-3.0.6-484 As you noticed, I do have a BuildRoot: line in the SRPM, and it seems to be working properly on your 8.2Beta. On my RedHat systems, I have rpm-4.0.4, so it did occur to me that the rpm on SLES8 is obsolete. Guess that's the answer. -- Steve Williams "The woods are lovely, dark and deep. steve at icarus.com But I have promises to keep, http://www.icarus.com and lines to code before I sleep, http://www.picturel.com And lines to code before I sleep."
participants (2)
-
Andreas Jaeger
-
Stephen Williams