Mailinglist Archive: opensuse-buildservice (250 mails)

< Previous Next >
Re: [opensuse-buildservice] Re: Newbie question - simple
  • From: "Johannes Weberhofer, Weberhofer GmbH" <office@xxxxxxxxxxxxx>
  • Date: Sun, 05 Apr 2009 14:48:12 +0200
  • Message-id: <49D8A88C.7090107@xxxxxxxxxxxxx>
Try to set

prefix=$RPM_BUILD_ROOT/%{_prefix}

%{_bindir} will expand to /usr/bin and causes your binaries to be installed in
/usr/bin/bin

Good luck,
Johannes

Am 05.04.2009 14:18, schrieb Greg Freemyer:
On Sun, Apr 5, 2009 at 7:57 AM, Greg Freemyer<greg.freemyer@xxxxxxxxx> wrote:
Thanks greatly,

The install is now working much better, but it looks like the makefile
itself for the install has an issue. But I think I can take it from
here. I'm pretty good with makefiles.

Greg

Well I said that, but there is still build service interaction I don't
understand.

The spec file Matwey edited for me had:

%install
make prefix=$RPM_BUILD_ROOT%{_bindir}/ INSTALL='install -s' install

But the makefile had:
prefix = /usr/local
exec_prefix = ${prefix}
bindir = ${exec_prefix}/bin

So the bindir got set to /usr/bin/bin.

To force the bindir I changed the specfile to have

# %install
# make prefix=$RPM_BUILD_ROOT%{_bindir}/
bindir=$RPM_BUILD_ROOT%{_bindir}/ INSTALL='install -s' install

The build is getting further, but now the log ends with:
==
+ cd /usr/src/packages/BUILD
+ cd open2300-1.11.0
+ make prefix=/var/tmp/open2300-1.11.0-build/usr/bin/
bindir=/var/tmp/open2300-1.11.0-build/usr/bin/ 'INSTALL=install -s'
install
mkdir -p /var/tmp/open2300-1.11.0-build/usr/bin/
install -s open2300 /var/tmp/open2300-1.11.0-build/usr/bin/
install -s dump2300 /var/tmp/open2300-1.11.0-build/usr/bin/
install -s log2300 /var/tmp/open2300-1.11.0-build/usr/bin/
install -s fetch2300 /var/tmp/open2300-1.11.0-build/usr/bin/
install -s wu2300 /var/tmp/open2300-1.11.0-build/usr/bin/
install -s cw2300 /var/tmp/open2300-1.11.0-build/usr/bin/
install -s histlog2300 /var/tmp/open2300-1.11.0-build/usr/bin/
install -s xml2300 /var/tmp/open2300-1.11.0-build/usr/bin/
install -s light2300 /var/tmp/open2300-1.11.0-build/usr/bin/
install -s interval2300 /var/tmp/open2300-1.11.0-build/usr/bin/
install -s minmax2300 /var/tmp/open2300-1.11.0-build/usr/bin/
install -s mysql2300 /var/tmp/open2300-1.11.0-build/usr/bin/
install -s mysqlhistlog2300 /var/tmp/open2300-1.11.0-build/usr/bin/
+ RPM_BUILD_ROOT=/var/tmp/open2300-1.11.0-build
+ export RPM_BUILD_ROOT
+ test -x /usr/sbin/Check -a 399 = 0 -o -x /usr/sbin/Check -a '!' -z
/var/tmp/open2300-1.11.0-build
+ echo 'I call /usr/sbin/Check...'
I call /usr/sbin/Check...
+ /usr/sbin/Check
Checking permissions and ownerships - using the permissions files
/tmp/Check.perms.Zd1782
setting /var/tmp/open2300-1.11.0-build/ to root:root 0755. (wrong
owner/group abuild:abuild)
setting /var/tmp/open2300-1.11.0-build/usr to root:root 0755. (wrong
owner/group abuild:abuild)
+ /usr/lib/rpm/brp-compress
+ /usr/lib/rpm/brp-symlink
Processing files: open2300-1.11.0-12.1
Finding Provides: /usr/lib/rpm/find-provides open2300
Finding Requires: /usr/lib/rpm/find-requires open2300
Finding Supplements: /usr/lib/rpm/find-supplements open2300
Requires(rpmlib): rpmlib(PayloadFilesHavePrefix)<= 4.0-1
rpmlib(CompressedFileNames)<= 3.0.4-1
Requires: libc.so.6 libc.so.6(GLIBC_2.0) libc.so.6(GLIBC_2.1)
libm.so.6 libm.so.6(GLIBC_2.0) libmysqlclient.so.15
libmysqlclient.so.15(libmysqlclient_15)
Checking for unpackaged file(s): /usr/lib/rpm/check-files
/var/tmp/open2300-1.11.0-build
Wrote: /usr/src/packages/SRPMS/open2300-1.11.0-12.1.src.rpm
Wrote: /usr/src/packages/RPMS/i586/open2300-1.11.0-12.1.i586.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.70155
+ umask 022
+ cd /usr/src/packages/BUILD
+ cd open2300-1.11.0
+ make clean
rm -f *~ *.o open2300 dump2300 log2300 fetch2300 wu2300 cw2300
history2300 histlog2300 bin2300 xml2300 mysql2300 pgsql2300 light2300
interval2300 minmax2300 mysql2300 mysqlhistlog2300
+ exit 0
... checking for files with abuild user/group
... creating baselibs
... saving built packages
/usr/src/packages/SRPMS/open2300-1.11.0-12.1.src.rpm
/usr/src/packages/RPMS/i586/open2300-1.11.0-12.1.i586.rpm
... build is finished
mount: can't find / in /etc/fstab or /etc/mtab
System halted.
build: extracting built packages...
sr/bin/bin/minmax2300
/usr/bin/bin/mysql2300
/usr/bin/bin/mysqlhistlog2300
/usr/bin/bin/open2300
/usr/bin/bin/wu2300
/usr/bin/bin/xml2300


RPM build errors:
File not found: /var/tmp/open2300-1.11.0-build/usr/bin/open2300
File not found: /var/tmp/open2300-1.11.0-build/usr/bin/dump2300
File not found: /var/tmp/open2300-1.11.0-build/usr/bin/log2300
File not found: /var/tmp/open2300-1.11.0-build/usr/bin/fetch2300
File not found: /var/tmp/open2300-1.11.0-build/usr/bin/wu2300
File not found: /var/tmp/open2300-1.11.0-build/usr/bin/cw2300
File not found: /var/tmp/open2300-1.11.0-build/usr/bin/histlog2300
File not found: /var/tmp/open2300-1.11.0-build/usr/bin/xml2300
File not found: /var/tmp/open2300-1.11.0-build/usr/bin/light2300
File not found: /var/tmp/open2300-1.11.0-build/usr/bin/interval2300
File not found: /var/tmp/open2300-1.11.0-build/usr/bin/minmax2300
File not found: /var/tmp/open2300-1.11.0-build/usr/bin/mysql2300
File not found: /var/tmp/open2300-1.11.0-build/usr/bin/mysqlhistlog2300
Installed (but unpackaged) file(s) found:
/usr/bin/bin/cw2300
/usr/bin/bin/dump2300
/usr/bin/bin/fetch2300
/usr/bin/bin/histlog2300
/usr/bin/bin/interval2300
/usr/bin/bin/light2300
/usr/bin/bin/log2300
/usr/bin/bin/minmax2300
/usr/bin/bin/mysql2300
/usr/bin/bin/mysqlhistlog2300
/usr/bin/bin/open2300
/usr/bin/bin/wu2300
/usr/bin/bin/xml2300
mount: can't find / in /etc/fstab or /etc/mtab
System halted.
==

No idea what to try next.

Greg

--


|---------------------------------
| weberhofer GmbH | Johannes Weberhofer
| information technologies
| Austria, 1080 Wien, Blindengasse 52/3
|----------------------------------------------------------->>
--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >