Mailinglist Archive: opensuse-packaging (206 mails)
| < Previous | Next > |
Re: [opensuse-packaging] Could not install the file
- From: oc2pus@xxxxxxxx
- Date: Wed, 19 Jan 2011 13:17:32 +0100
- Message-id: <201101191317.33077.oc2pus@arcor.de>
Am Mittwoch, 19. Januar 2011 schrieb Kyle Gordon:
e.g.
%build
./waf configure \
--prefix=%{_prefix} \
--cxxflags="%{optflags}"
./waf build %{?jobs:-j%{jobs}}
%install
./waf install \
--destdir="%{buildroot}"
the --destdir should do the trick :)
--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-packaging+help@xxxxxxxxxxxx
|Hi folks,you need to call waf with the correct parameters.
I have a small project that just requires the command 'python ./waf
install' to install the files. However, on both my RPM and DEB builds
it's coming back with 'Could not install the file' at the end. Can
anyone explain why?
This excerpt is from the RPM build -
+ python waf install
Waf: Entering directory `/usr/src/packages/BUILD/lysdr-1295045688/build'
* installing build/default/lysdr as /usr/bin/lysdr
Waf: Leaving directory `/usr/src/packages/BUILD/lysdr-1295045688/build'
Could not install the file '/usr/bin/lysdr'
|| error: Bad exit status from /var/tmp/rpm-tmp.p8ZTto (%install)
And this is from the DEB build -
||* installing build/default/lysdr as /usr/bin/lysdr
Waf: Leaving directory `/usr/src/packages/BUILD/build'
Could not install the file '/usr/bin/lysdr'
make: *** [install] Error 1
dpkg-buildpackage: error: fakeroot-tcp debian/rules binary gave error
exit status 2
Any thoughts?
e.g.
%build
./waf configure \
--prefix=%{_prefix} \
--cxxflags="%{optflags}"
./waf build %{?jobs:-j%{jobs}}
%install
./waf install \
--destdir="%{buildroot}"
the --destdir should do the trick :)
Cheers
Kyle
--
Kyle Gordon - 2M1DIQ
Web: http://lodge.glasgownet.com
Jabber/Email/SIP: kyle@xxxxxxxxxxxxxxxxxxxx
--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-packaging+help@xxxxxxxxxxxx
| < Previous | Next > |