Hi, and Happy New Year,

After successfully building my 1st RPM package, a Python module, I went
on to build a package for a GUI application under openSuse 10.2.
Everything seems to work fine up to the point when the installation
process happens and I am getting first an error about wrong permissions
and then it looks to me that some mix up with folders is happening.

For more details I added the respective part of the build output below,
followed by the spec file I am using.

What is strange with the make ... install command below is, that the
files are getting installed in /var/tmp/build-root/usr/bin. The DESTDIR
option does not seem to be used. Only later this path is exported as
RPM_BUILD_ROOT, but then the files cannot be found there, because the
install happened to the different directory before?

I am calling the build process as super user from the folder where the
source and the spec files are located with the command:

# build --rpms=$BUILD_RPMS/10_2

With $BUILD_RPMS/10_2 pointing to my 10.2 rpms.

What am I doing wrong in the spec file that the binaries are getting
installed into the wrong folder?

Thanks for any help.

Cheers,

Guenter



== part of build output =============================================

Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.32811
+ umask 022
+ cd /usr/src/packages/BUILD
+ cd gtkwave-3.0.18
+ make DESTDIR=/var/tmp/gtkwave-3.0.18 install
cd bin;\
        install -d /usr/bin;\
        install -m 0755 gtkwave  /usr/bin/gtkwave;\
        install -m 0755 twinwave  /usr/bin/twinwave;\
[...]
        cd ../man;\
        install -d /usr/share/man/man1;\
        install -m 0644 gtkwave.1 /usr/share/man/man1/gtkwave.1;\
        install -m 0644 twinwave.1 /usr/share/man/man1/twinwave.1;\
[...]
+ /bin/mv .gtkwaverc gtkwaverc.sample
+ /usr/lib/rpm/brp-lib64-linux
[EMAIL PROTECTED]: if you find problems with this script, drop me a note
+ RPM_BUILD_ROOT=/var/tmp/gtkwave-3.0.18
+ export RPM_BUILD_ROOT
+ test -x /usr/sbin/Check -a 0 = 0 -o -x /usr/sbin/Check -a '!' -z
/var/tmp/gtkwave-3.0.18
+ echo 'I call /usr/sbin/Check...'
I call /usr/sbin/Check...
+ /usr/sbin/Check
-rw-r--r-- 1 root root 786 Jan  1 22:56 /usr/share/man/man1/vztminer.1.gz
-rw-r--r-- 1 root root 315 Jan  1 22:56 /usr/share/man/man1/mvl2lxt.1.gz
-rw-r--r-- 1 root root 786 Jan  1 22:56 /usr/share/man/man1/lxt2miner.1.gz
-rw-r--r-- 1 root root 971 Jan  1 22:56 /usr/share/man/man1/vcd2lxt.1.gz
-rw-r--r-- 1 root root 394 Jan  1 22:56 /usr/share/man/man1/vzt2vcd.1.gz
-rw-r--r-- 1 root root 677 Jan  1 22:56 /usr/share/man/man1/shmidcat.1.gz
-rw-r--r-- 1 root root 334 Jan  1 22:56 /usr/share/man/man1/ghwdump.1.gz
-rw-r--r-- 1 root root 935 Jan  1 22:56 /usr/share/man/man1/vcd2lxt2.1.gz
-rw-r--r-- 1 root root 317 Jan  1 22:56 /usr/share/man/man1/mvl2vcd.1.gz
-rw-r--r-- 1 root root 469 Jan  1 22:56 /usr/share/man/man1/tla2vcd.1.gz
-rw-r--r-- 1 root root 857 Jan  1 22:56 /usr/share/man/man1/vertex.1.gz
-rw-r--r-- 1 root root 540 Jan  1 22:56 /usr/share/man/man1/lxt2vcd.1.gz
-rw-r--r-- 1 root root 316 Jan  1 22:56 /usr/share/man/man1/tex2vcd.1.gz
-rw-r--r-- 1 root root 1136 Jan  1 22:56 /usr/share/man/man1/vcd2vzt.1.gz
-rw-r--r-- 1 root root 669 Jan  1 22:56 /usr/share/man/man1/twinwave.1.gz
-rw-r--r-- 1 root root 830 Jan  1 22:56 /usr/share/man/man1/rtlbrowse.1.gz
-rw-r--r-- 1 root root 3245 Jan  1 22:56 /usr/share/man/man1/gtkwave.1.gz
-rw-r--r-- 1 root root 4719 Jan  1 22:56 /usr/share/man/man5/gtkwaverc.5.gz
Checking permissions and ownerships - using the permissions files
        /tmp/Check.perms.B20974
setting /usr/src/packages/SOURCES/ to root:root 1777. (wrong permissions
0755)
setting /usr/src/packages/BUILD/ to root:root 1777. (wrong permissions 0755)
setting /usr/src/packages/RPMS/ to root:root 1777. (wrong permissions 0755)
setting /usr/src/packages/RPMS/i386/ to root:root 1777. (wrong
permissions 0755)
setting /usr/src/packages/RPMS/x86_64/ to root:root 1777. (wrong
permissions 0755)
setting /usr/src/packages/RPMS/noarch/ to root:root 1777. (wrong
permissions 0755)
setting /usr/src/packages/SPECS/ to root:root 1777. (wrong permissions 0755)
setting /usr/src/packages/SRPMS/ to root:root 1777. (wrong permissions 0755)
+ /usr/lib/rpm/brp-compress
+ /usr/lib/rpm/brp-symlink
Processing files: gtkwave-3.0.18-1
error: File not found: /var/tmp/gtkwave-3.0.18/usr/bin/gtkwave
error: File not found: /var/tmp/gtkwave-3.0.18/usr/bin/twinwave


==== spec file =====================================================
Below is the spec file I am using:

%define name    gtkwave
%define version 3.0.18
%define release 1
%define Summary GTKWave Electronic Waveform Viewer

Name:                   %{name}
Version:              %{version}
Release:              %{release}
Summary:              %{Summary}
License:              GPL+MIT
Group:                Productivity/Scientific/Electronics
Source:         %{name}-current.tar.gz
URL:                    http://home.nc.rr.com/gtkwave/index.html
Autoreqprov:      on
BuildRequires:  gtk2-devel
BuildRequires:  libxml2-devel
BuildRequires:  flex zlib-devel bzip2 gperf
BuildRoot:          %{_tmppath}/%{name}-%{version}
Packager:       Guenter Dannoritzer <[EMAIL PROTECTED]>

%description
GTKWave is a fully featured GTK+ based wave viewer for Unix and Win32
which reads LXT, LXT2, VZT, and GHW files as well as standard Verilog
VCD/EVCD files and allows their viewing.

%prep
%setup -q

%build
%configure <<EOF
2
EOF

%{__make} libdir=%libdir all

%install
%makeinstall
%{__mv} .gtkwaverc gtkwaverc.sample

%clean
%{__rm} -rf %{buildroot}

%post

%postun

%files
%defattr(-, root, root)
%doc *.TXT doc examples gtkwaverc.sample
%{_bindir}/gtkwave
%{_bindir}/twinwave
[...]
%{_mandir}/man1/gtkwave.1*
%{_mandir}/man1/twinwave.1*


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to