* building rpm distro
@ 2012-10-04 9:35 Alexander Khryukin
2012-10-04 10:24 ` Richard Purdie
0 siblings, 1 reply; 6+ messages in thread
From: Alexander Khryukin @ 2012-10-04 9:35 UTC (permalink / raw)
To: poky
Hello.
I'm trying to build mandriva distro for arm cortex-a8 device
I succesfully built image via "bitbake core-image-sato" and i can chroot
into.
Next step it's i want to build some packages on my arm board
via rpmbuild tool
rpmbuild --rebuild ed-1.6-5.src.rpm
Installing ed-1.6-5.src.rpm
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.20532
+ umask 022
+ cd /usr/src/rpm/BUILD
+ cd /usr/src/rpm/BUILD
+ rm -rf ed-1.6
+ /bin/gzip -dc /usr/src/rpm/SOURCES/ed-1.6.tar.gz
+ /bin/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd ed-1.6
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.20532
+ umask 022
+ cd /usr/src/rpm/BUILD
+ cd ed-1.6
+ %configure2_5x --bindir=/bin --exec-prefix=/ CFLAGS=-O2 CXXFLAGS=-O2
LDFLAGS=
/var/tmp/rpm-tmp.20532: line 22: fg: no job control
error: Bad exit status from /var/tmp/rpm-tmp.20532 (%build)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.20532 (%build)
It's not happens because gcc, make, and other buid-essential packages
not installed and poky not generates gcc.rpm package.
Might someone have any solution?
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: building rpm distro
2012-10-04 9:35 building rpm distro Alexander Khryukin
@ 2012-10-04 10:24 ` Richard Purdie
2012-10-04 10:26 ` Alexander Khryukin
0 siblings, 1 reply; 6+ messages in thread
From: Richard Purdie @ 2012-10-04 10:24 UTC (permalink / raw)
To: alexander; +Cc: poky
On Thu, 2012-10-04 at 13:35 +0400, Alexander Khryukin wrote:
> Hello.
> I'm trying to build mandriva distro for arm cortex-a8 device
> I succesfully built image via "bitbake core-image-sato" and i can chroot
> into.
> Next step it's i want to build some packages on my arm board
> via rpmbuild tool
>
>
> rpmbuild --rebuild ed-1.6-5.src.rpm
> Installing ed-1.6-5.src.rpm
> Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.20532
> + umask 022
> + cd /usr/src/rpm/BUILD
> + cd /usr/src/rpm/BUILD
> + rm -rf ed-1.6
> + /bin/gzip -dc /usr/src/rpm/SOURCES/ed-1.6.tar.gz
> + /bin/tar -xf -
> + STATUS=0
> + '[' 0 -ne 0 ']'
> + cd ed-1.6
> + exit 0
> Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.20532
> + umask 022
> + cd /usr/src/rpm/BUILD
> + cd ed-1.6
> + %configure2_5x --bindir=/bin --exec-prefix=/ CFLAGS=-O2 CXXFLAGS=-O2
> LDFLAGS=
> /var/tmp/rpm-tmp.20532: line 22: fg: no job control
> error: Bad exit status from /var/tmp/rpm-tmp.20532 (%build)
>
>
> RPM build errors:
> Bad exit status from /var/tmp/rpm-tmp.20532 (%build)
>
>
> It's not happens because gcc, make, and other buid-essential packages
> not installed and poky not generates gcc.rpm package.
>
> Might someone have any solution?
Build an image that includes gcc and other tools such as
core-image-sato-sdk?
Cheers,
Richard
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: building rpm distro
2012-10-04 10:24 ` Richard Purdie
@ 2012-10-04 10:26 ` Alexander Khryukin
2012-10-04 10:33 ` Alexander Khryukin
2012-10-04 10:39 ` Richard Purdie
0 siblings, 2 replies; 6+ messages in thread
From: Alexander Khryukin @ 2012-10-04 10:26 UTC (permalink / raw)
Cc: poky
В Чт., 04/10/2012 в 11:24 +0100, Richard Purdie пишет:
> On Thu, 2012-10-04 at 13:35 +0400, Alexander Khryukin wrote:
> > Hello.
> > I'm trying to build mandriva distro for arm cortex-a8 device
> > I succesfully built image via "bitbake core-image-sato" and i can chroot
> > into.
> > Next step it's i want to build some packages on my arm board
> > via rpmbuild tool
> >
> >
> > rpmbuild --rebuild ed-1.6-5.src.rpm
> > Installing ed-1.6-5.src.rpm
> > Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.20532
> > + umask 022
> > + cd /usr/src/rpm/BUILD
> > + cd /usr/src/rpm/BUILD
> > + rm -rf ed-1.6
> > + /bin/gzip -dc /usr/src/rpm/SOURCES/ed-1.6.tar.gz
> > + /bin/tar -xf -
> > + STATUS=0
> > + '[' 0 -ne 0 ']'
> > + cd ed-1.6
> > + exit 0
> > Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.20532
> > + umask 022
> > + cd /usr/src/rpm/BUILD
> > + cd ed-1.6
> > + %configure2_5x --bindir=/bin --exec-prefix=/ CFLAGS=-O2 CXXFLAGS=-O2
> > LDFLAGS=
> > /var/tmp/rpm-tmp.20532: line 22: fg: no job control
> > error: Bad exit status from /var/tmp/rpm-tmp.20532 (%build)
> >
> >
> > RPM build errors:
> > Bad exit status from /var/tmp/rpm-tmp.20532 (%build)
> >
> >
> > It's not happens because gcc, make, and other buid-essential packages
> > not installed and poky not generates gcc.rpm package.
> >
> > Might someone have any solution?
>
> Build an image that includes gcc and other tools such as
> core-image-sato-sdk?
>
> Cheers,
>
> Richard
>
>
>
Nope just "bitbake core-image-sato"
. oe-init-build-env
### Shell environment set up for builds. ###
You can now run 'bitbake <target>'
Common targets are:
core-image-minimal
core-image-sato
meta-toolchain
meta-toolchain-sdk
adt-installer
meta-ide-support
You mean meta-toolchain-sdk ?
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: building rpm distro
2012-10-04 10:26 ` Alexander Khryukin
@ 2012-10-04 10:33 ` Alexander Khryukin
2012-10-04 10:40 ` Richard Purdie
2012-10-04 10:39 ` Richard Purdie
1 sibling, 1 reply; 6+ messages in thread
From: Alexander Khryukin @ 2012-10-04 10:33 UTC (permalink / raw)
To: poky
В Чт., 04/10/2012 в 14:26 +0400, Alexander Khryukin пишет:
> В Чт., 04/10/2012 в 11:24 +0100, Richard Purdie пишет:
> > On Thu, 2012-10-04 at 13:35 +0400, Alexander Khryukin wrote:
> > > Hello.
> > > I'm trying to build mandriva distro for arm cortex-a8 device
> > > I succesfully built image via "bitbake core-image-sato" and i can chroot
> > > into.
> > > Next step it's i want to build some packages on my arm board
> > > via rpmbuild tool
> > >
> > >
> > > rpmbuild --rebuild ed-1.6-5.src.rpm
> > > Installing ed-1.6-5.src.rpm
> > > Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.20532
> > > + umask 022
> > > + cd /usr/src/rpm/BUILD
> > > + cd /usr/src/rpm/BUILD
> > > + rm -rf ed-1.6
> > > + /bin/gzip -dc /usr/src/rpm/SOURCES/ed-1.6.tar.gz
> > > + /bin/tar -xf -
> > > + STATUS=0
> > > + '[' 0 -ne 0 ']'
> > > + cd ed-1.6
> > > + exit 0
> > > Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.20532
> > > + umask 022
> > > + cd /usr/src/rpm/BUILD
> > > + cd ed-1.6
> > > + %configure2_5x --bindir=/bin --exec-prefix=/ CFLAGS=-O2 CXXFLAGS=-O2
> > > LDFLAGS=
> > > /var/tmp/rpm-tmp.20532: line 22: fg: no job control
> > > error: Bad exit status from /var/tmp/rpm-tmp.20532 (%build)
> > >
> > >
> > > RPM build errors:
> > > Bad exit status from /var/tmp/rpm-tmp.20532 (%build)
> > >
> > >
> > > It's not happens because gcc, make, and other buid-essential packages
> > > not installed and poky not generates gcc.rpm package.
> > >
> > > Might someone have any solution?
> >
> > Build an image that includes gcc and other tools such as
> > core-image-sato-sdk?
> >
> > Cheers,
> >
> > Richard
> >
> >
> >
>
> Nope just "bitbake core-image-sato"
>
>
> . oe-init-build-env
>
> ### Shell environment set up for builds. ###
>
> You can now run 'bitbake <target>'
>
> Common targets are:
> core-image-minimal
> core-image-sato
> meta-toolchain
> meta-toolchain-sdk
> adt-installer
> meta-ide-support
>
>
> You mean meta-toolchain-sdk ?
>
>
> _______________________________________________
> poky mailing list
> poky@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/poky
Also in meta/lib/oe/distro_check.py
i see function
def get_latest_released_mandriva_source_package_list():
"Returns list of all the name os packages in the latest mandriva
distro"
latest =
find_latest_numeric_release("http://distrib-coffee.ipsl.jussieu.fr/pub/linux/MandrivaLinux/devel/")
package_names =
get_source_package_list_from_url("http://distrib-coffee.ipsl.jussieu.fr/pub/linux/MandrivaLinux/devel/%s/SRPMS/main/release/" % latest, "main")
# package_names +=
get_source_package_list_from_url("http://distrib-coffee.ipsl.jussieu.fr/pub/linux/MandrivaLinux/official/%s/SRPMS/contrib/release/" % latest, "contrib")
package_names +=
get_source_package_list_from_url("http://distrib-coffee.ipsl.jussieu.fr/pub/linux/MandrivaLinux/devel/%s/SRPMS/main/updates/" % latest, "updates")
package_list=clean_package_list(package_names)
return latest, package_list
It will downloads SRPMs from repo and build them, right?
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: building rpm distro
2012-10-04 10:33 ` Alexander Khryukin
@ 2012-10-04 10:40 ` Richard Purdie
0 siblings, 0 replies; 6+ messages in thread
From: Richard Purdie @ 2012-10-04 10:40 UTC (permalink / raw)
To: alexander; +Cc: poky
On Thu, 2012-10-04 at 14:33 +0400, Alexander Khryukin wrote:
> Also in meta/lib/oe/distro_check.py
> i see function
>
>
> def get_latest_released_mandriva_source_package_list():
> "Returns list of all the name os packages in the latest mandriva
> distro"
> latest =
> find_latest_numeric_release("http://distrib-coffee.ipsl.jussieu.fr/pub/linux/MandrivaLinux/devel/")
> package_names =
> get_source_package_list_from_url("http://distrib-coffee.ipsl.jussieu.fr/pub/linux/MandrivaLinux/devel/%s/SRPMS/main/release/" % latest, "main")
> # package_names +=
> get_source_package_list_from_url("http://distrib-coffee.ipsl.jussieu.fr/pub/linux/MandrivaLinux/official/%s/SRPMS/contrib/release/" % latest, "contrib")
> package_names +=
> get_source_package_list_from_url("http://distrib-coffee.ipsl.jussieu.fr/pub/linux/MandrivaLinux/devel/%s/SRPMS/main/updates/" % latest, "updates")
>
> package_list=clean_package_list(package_names)
> return latest, package_list
>
>
> It will downloads SRPMs from repo and build them, right?
No, this is part of the license checking code where we check which other
distributions contain a given piece of software for various reasons.
We do not download and build SRPMs directly.
Cheers,
Richard
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: building rpm distro
2012-10-04 10:26 ` Alexander Khryukin
2012-10-04 10:33 ` Alexander Khryukin
@ 2012-10-04 10:39 ` Richard Purdie
1 sibling, 0 replies; 6+ messages in thread
From: Richard Purdie @ 2012-10-04 10:39 UTC (permalink / raw)
To: alexander; +Cc: poky
On Thu, 2012-10-04 at 14:26 +0400, Alexander Khryukin wrote:
> В Чт., 04/10/2012 в 11:24 +0100, Richard Purdie пишет:
> > Build an image that includes gcc and other tools such as
> > core-image-sato-sdk?
>
> Nope just "bitbake core-image-sato"
>
>
> . oe-init-build-env
>
> ### Shell environment set up for builds. ###
>
> You can now run 'bitbake <target>'
>
> Common targets are:
> core-image-minimal
> core-image-sato
> meta-toolchain
> meta-toolchain-sdk
> adt-installer
> meta-ide-support
>
>
> You mean meta-toolchain-sdk ?
No, those are common examples. "bitbake core-image-sato-sdk" will work
and give you an image with development tools.
Cheers,
Richard
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2012-10-04 10:41 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-04 9:35 building rpm distro Alexander Khryukin
2012-10-04 10:24 ` Richard Purdie
2012-10-04 10:26 ` Alexander Khryukin
2012-10-04 10:33 ` Alexander Khryukin
2012-10-04 10:40 ` Richard Purdie
2012-10-04 10:39 ` Richard Purdie
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.