[lsb-discuss] Build error from lsb-test-printing-3.2.0-1.src.rpm
Stew Benedict
stewb at linux-foundation.org
Fri Aug 29 04:06:13 PDT 2008
On Thu, 28 Aug 2008, Hao Liu wrote:
> Stew Benedict wrote:
> > On Tue, 26 Aug 2008, Hao Liu wrote:
> >
> >
> >> Hi, guys,
> >> Running lsb-test-printing test on my machine gives out 2 errors:
> >>
> >> /testfoomaticrip/testfoomaticrip 3 FAIL
> >> /testfoomaticrip/testfoomaticrip 11 FAIL
> >>
> >>
> >> I tried to analyse the source of lsb-test-printing to find out what's
> >> going wrong here,
> >> as root,
> >>
> >> rpm -i lsb-test-printing-3.2.0-1.src.rpm
> >> cd /usr/src/redhat/SPECS
> >> rpmbuild -bc lsb-test-printing.spec
> >>
> >> it gives out error msg:
> >>
> >> error: File /usr/src/redhat/SOURCES/lsb-test-printing-%{ver}.tar.gz:
> >> No such file or directory
> >> Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.e4CTpk
> >> + umask 022
> >> + cd /usr/src/redhat/BUILD
> >> + LANG=C
> >> + export LANG
> >> + unset DISPLAY
> >> + cd /usr/src/redhat/BUILD
> >> + rm -rf printing-test
> >> + exit 0
> >> Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.5tlQWj
> >> + umask 022
> >> + cd /usr/src/redhat/BUILD
> >> + cd printing-test
> >> /var/tmp/rpm-tmp.5tlQWj: line 24: cd: printing-test: No such file or
> >> directory
> >> error: Bad exit status from /var/tmp/rpm-tmp.5tlQWj (%build)
> >>
> >> Look at the red lines, it first remove the dir, then it tried to enter
> >> the dir, I'm really confused, would someone like to enlight me?
> >>
> >>
> >
> > The rm -rf is just normal rpm activity I believe. What's biting you in
> > this build and mybe some others is the way we pass rpm variables from our
> > Makefiles to autobuild.
> >
> > I don't have the source for this particular test handy, but it's basically
> > something like:
> >
> > rpmbuild -bb lsb-test-printing.spec --define "ver 3.2.0" --define "rel 1"
> >
> Hi, Stew,
> I added those 2 defs, another error msg given out:
>
> + /bin/cat /usr/src/redhat/SOURCES/cups-1.2.9-lsb-no-getpass.patch
> + /usr/bin/patch -s -p0 -b --suffix .lsbcc --fuzz=0
> 1 out of 1 hunk FAILED -- saving rejects to file cups/usersys.c.rej
> error: Bad exit status from /var/tmp/rpm-tmp.blqatr (%prep)
>
>
> RPM build errors:
> Bad exit status from /var/tmp/rpm-tmp.blqatr (%prep)
>
> I looked into the patch
> /usr/src/redhat/SOURCES/cups-1.2.9-lsb-no-getpass.patch,
>
> --- cups/usersys.c.orig 2007-03-17 19:15:15.000000000 +0000
> +++ cups/usersys.c 2007-03-17 19:16:28.000000000 +0000
> @@ -455,7 +455,7 @@
> const char * /* O - Password */
> _cupsGetPassword(const char *prompt) /* I - Prompt string */
> {
> - return (getpass(prompt));
> + return (NULL);
> }
> #endif /* WIN32 */
>
> which tries to modify line 455, but from the file cups/usersys.c it
> tries to patch, there's no line 455. Seems there's some problem with the
> patch.
Not sure what's going on there. Obviously we built the tests (daily builds
in fact before 3.2 was released). I'm on vacation this week but will give
it a look in detail next week.
--
Stew Benedict
The Linux Foundation
More information about the lsb-discuss
mailing list