* Trouble creating new package
@ 2012-01-10 11:08 Jack Mitchell
2012-01-10 11:16 ` Martin Jansa
0 siblings, 1 reply; 11+ messages in thread
From: Jack Mitchell @ 2012-01-10 11:08 UTC (permalink / raw)
To: yocto@yoctoproject.org
Good morning everyone,
I am currently having issues creating a (very!) simple package. I have
looked at the latest reference manual and studied other .bb files to no
avail.
I am trying to build a simple web server called Hiawatha. To install
(http://www.hiawatha-webserver.org/howto/compilation_and_installation)
it consists of a simple:
./configure
make
make install
Now, for the life in me I cannot replicate this behaviour in a .bb file.
This is what I have so far:
DESCRIPTION = "Lightweight secure web server"
HOMEPAGE = "http://www.hiawatha-webserver.org"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=a9b0a0eb7c54c87ec6ac05f5f603df6a"
SECTION = "custom"
PR = "r0"
SRC_URI = "http://www.hiawatha-webserver.org/files/hiawatha-7.8.2.tar.gz"
SRC_URI[md5sum] = "8aff3f8c759871ea1d1ff22e98030332"
do_configure () {
./configure --disable-ipv6 \
--disable-ssl \
--disable-toolkit \
--disable-xslt \
--disable-largefile \
oe_runmake
}
do_install () {
oe_runmake install DESTDIR=${D} SBINDIR=${sbindir} MANDIR=${mandir} \
INCLUDEDIR=${includedir}
}
Could someone point me in the right direction, I feel this should be an
extremely easy piece of software to build - I think I'm just not
understanding the build system correctly....
The error I receive when trying to build this package is:
ERROR: Function 'do_install' failed (see
/home/jack/yocto/poky-git/beagleInitial/tmp/work/armv5te-poky-linux-gnueabi/hiawatha-7.8.2-r0/temp/log.do_install.6289
for further information)
| NOTE: make -j 9 -e MAKEFLAGS= -e install
DESTDIR=/home/jack/yocto/poky-git/beagleInitial/tmp/work/armv5te-poky-linux-gnueabi/hiawatha-7.8.2-r0/image
SBINDIR=/usr/sbin MANDIR=/usr/share/man INCLUDEDIR=/usr/include
| make: *** No rule to make target `install'. Stop.
| ERROR: oe_runmake failed
Thanks in advance,
Jack.
^ permalink raw reply [flat|nested] 11+ messages in thread* Re: Trouble creating new package 2012-01-10 11:08 Trouble creating new package Jack Mitchell @ 2012-01-10 11:16 ` Martin Jansa 2012-01-10 11:21 ` Jack Mitchell 0 siblings, 1 reply; 11+ messages in thread From: Martin Jansa @ 2012-01-10 11:16 UTC (permalink / raw) To: Jack Mitchell; +Cc: yocto@yoctoproject.org [-- Attachment #1: Type: text/plain, Size: 2446 bytes --] On Tue, Jan 10, 2012 at 11:08:22AM +0000, Jack Mitchell wrote: > Good morning everyone, > > I am currently having issues creating a (very!) simple package. I have > looked at the latest reference manual and studied other .bb files to no > avail. > > I am trying to build a simple web server called Hiawatha. To install > (http://www.hiawatha-webserver.org/howto/compilation_and_installation) > it consists of a simple: > > ./configure > > make > > make install > > Now, for the life in me I cannot replicate this behaviour in a .bb file. > This is what I have so far: > > DESCRIPTION = "Lightweight secure web server" > HOMEPAGE = "http://www.hiawatha-webserver.org" > > LICENSE = "GPLv2" > LIC_FILES_CHKSUM = "file://COPYING;md5=a9b0a0eb7c54c87ec6ac05f5f603df6a" > > SECTION = "custom" > > PR = "r0" > > SRC_URI = "http://www.hiawatha-webserver.org/files/hiawatha-7.8.2.tar.gz" > > SRC_URI[md5sum] = "8aff3f8c759871ea1d1ff22e98030332" > > do_configure () { > > ./configure --disable-ipv6 \ > --disable-ssl \ > --disable-toolkit \ > --disable-xslt \ > --disable-largefile \ > > oe_runmake > > } > > do_install () { > > oe_runmake install DESTDIR=${D} SBINDIR=${sbindir} MANDIR=${mandir} \ > INCLUDEDIR=${includedir} > > } > > Could someone point me in the right direction, I feel this should be an > extremely easy piece of software to build - I think I'm just not > understanding the build system correctly.... > > The error I receive when trying to build this package is: > > ERROR: Function 'do_install' failed (see > /home/jack/yocto/poky-git/beagleInitial/tmp/work/armv5te-poky-linux-gnueabi/hiawatha-7.8.2-r0/temp/log.do_install.6289 > for further information) > | NOTE: make -j 9 -e MAKEFLAGS= -e install > DESTDIR=/home/jack/yocto/poky-git/beagleInitial/tmp/work/armv5te-poky-linux-gnueabi/hiawatha-7.8.2-r0/image > SBINDIR=/usr/sbin MANDIR=/usr/share/man INCLUDEDIR=/usr/include > | make: *** No rule to make target `install'. Stop. > | ERROR: oe_runmake failed try to start with inherit autotools Cheers,, > > Thanks in advance, > Jack. > > _______________________________________________ > yocto mailing list > yocto@yoctoproject.org > https://lists.yoctoproject.org/listinfo/yocto -- Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 205 bytes --] ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Trouble creating new package 2012-01-10 11:16 ` Martin Jansa @ 2012-01-10 11:21 ` Jack Mitchell 2012-01-10 13:20 ` Jack Mitchell ` (2 more replies) 0 siblings, 3 replies; 11+ messages in thread From: Jack Mitchell @ 2012-01-10 11:21 UTC (permalink / raw) To: yocto@yoctoproject.org On 10/01/12 11:16, Martin Jansa wrote: > On Tue, Jan 10, 2012 at 11:08:22AM +0000, Jack Mitchell wrote: >> Good morning everyone, >> >> I am currently having issues creating a (very!) simple package. I have >> looked at the latest reference manual and studied other .bb files to no >> avail. >> >> I am trying to build a simple web server called Hiawatha. To install >> (http://www.hiawatha-webserver.org/howto/compilation_and_installation) >> it consists of a simple: >> >> ./configure >> >> make >> >> make install >> >> Now, for the life in me I cannot replicate this behaviour in a .bb file. >> This is what I have so far: >> >> DESCRIPTION = "Lightweight secure web server" >> HOMEPAGE = "http://www.hiawatha-webserver.org" >> >> LICENSE = "GPLv2" >> LIC_FILES_CHKSUM = "file://COPYING;md5=a9b0a0eb7c54c87ec6ac05f5f603df6a" >> >> SECTION = "custom" >> >> PR = "r0" >> >> SRC_URI = "http://www.hiawatha-webserver.org/files/hiawatha-7.8.2.tar.gz" >> >> SRC_URI[md5sum] = "8aff3f8c759871ea1d1ff22e98030332" >> >> do_configure () { >> >> ./configure --disable-ipv6 \ >> --disable-ssl \ >> --disable-toolkit \ >> --disable-xslt \ >> --disable-largefile \ >> >> oe_runmake >> >> } >> >> do_install () { >> >> oe_runmake install DESTDIR=${D} SBINDIR=${sbindir} MANDIR=${mandir} \ >> INCLUDEDIR=${includedir} >> >> } >> >> Could someone point me in the right direction, I feel this should be an >> extremely easy piece of software to build - I think I'm just not >> understanding the build system correctly.... >> >> The error I receive when trying to build this package is: >> >> ERROR: Function 'do_install' failed (see >> /home/jack/yocto/poky-git/beagleInitial/tmp/work/armv5te-poky-linux-gnueabi/hiawatha-7.8.2-r0/temp/log.do_install.6289 >> for further information) >> | NOTE: make -j 9 -e MAKEFLAGS= -e install >> DESTDIR=/home/jack/yocto/poky-git/beagleInitial/tmp/work/armv5te-poky-linux-gnueabi/hiawatha-7.8.2-r0/image >> SBINDIR=/usr/sbin MANDIR=/usr/share/man INCLUDEDIR=/usr/include >> | make: *** No rule to make target `install'. Stop. >> | ERROR: oe_runmake failed > try to start with > inherit autotools > > Cheers,, > >> Thanks in advance, >> Jack. >> >> _______________________________________________ >> yocto mailing list >> yocto@yoctoproject.org >> https://lists.yoctoproject.org/listinfo/yocto Hi Martin, Inheriting autotools makes no difference, I also don't understand why autotools should be inherited if it is only a make/configure combination being used? Best Regards ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Trouble creating new package 2012-01-10 11:21 ` Jack Mitchell @ 2012-01-10 13:20 ` Jack Mitchell 2012-01-10 13:38 ` James Abernathy 2012-01-10 15:12 ` Chris Larson 2012-01-10 15:47 ` Saul Wold 2 siblings, 1 reply; 11+ messages in thread From: Jack Mitchell @ 2012-01-10 13:20 UTC (permalink / raw) To: yocto@yoctoproject.org On 10/01/12 11:21, Jack Mitchell wrote: > On 10/01/12 11:16, Martin Jansa wrote: >> On Tue, Jan 10, 2012 at 11:08:22AM +0000, Jack Mitchell wrote: >>> Good morning everyone, >>> >>> I am currently having issues creating a (very!) simple package. I have >>> looked at the latest reference manual and studied other .bb files to no >>> avail. >>> >>> I am trying to build a simple web server called Hiawatha. To install >>> (http://www.hiawatha-webserver.org/howto/compilation_and_installation) >>> it consists of a simple: >>> >>> ./configure >>> >>> make >>> >>> make install >>> >>> Now, for the life in me I cannot replicate this behaviour in a .bb >>> file. >>> This is what I have so far: >>> >>> DESCRIPTION = "Lightweight secure web server" >>> HOMEPAGE = "http://www.hiawatha-webserver.org" >>> >>> LICENSE = "GPLv2" >>> LIC_FILES_CHKSUM = >>> "file://COPYING;md5=a9b0a0eb7c54c87ec6ac05f5f603df6a" >>> >>> SECTION = "custom" >>> >>> PR = "r0" >>> >>> SRC_URI = >>> "http://www.hiawatha-webserver.org/files/hiawatha-7.8.2.tar.gz" >>> >>> SRC_URI[md5sum] = "8aff3f8c759871ea1d1ff22e98030332" >>> >>> do_configure () { >>> >>> ./configure --disable-ipv6 \ >>> --disable-ssl \ >>> --disable-toolkit \ >>> --disable-xslt \ >>> --disable-largefile \ >>> >>> oe_runmake >>> >>> } >>> >>> do_install () { >>> >>> oe_runmake install DESTDIR=${D} SBINDIR=${sbindir} >>> MANDIR=${mandir} \ >>> INCLUDEDIR=${includedir} >>> >>> } >>> >>> Could someone point me in the right direction, I feel this should be an >>> extremely easy piece of software to build - I think I'm just not >>> understanding the build system correctly.... >>> >>> The error I receive when trying to build this package is: >>> >>> ERROR: Function 'do_install' failed (see >>> /home/jack/yocto/poky-git/beagleInitial/tmp/work/armv5te-poky-linux-gnueabi/hiawatha-7.8.2-r0/temp/log.do_install.6289 >>> >>> for further information) >>> | NOTE: make -j 9 -e MAKEFLAGS= -e install >>> DESTDIR=/home/jack/yocto/poky-git/beagleInitial/tmp/work/armv5te-poky-linux-gnueabi/hiawatha-7.8.2-r0/image >>> >>> SBINDIR=/usr/sbin MANDIR=/usr/share/man INCLUDEDIR=/usr/include >>> | make: *** No rule to make target `install'. Stop. >>> | ERROR: oe_runmake failed >> try to start with >> inherit autotools >> >> Cheers,, >> >>> Thanks in advance, >>> Jack. >>> >>> _______________________________________________ >>> yocto mailing list >>> yocto@yoctoproject.org >>> https://lists.yoctoproject.org/listinfo/yocto > > Hi Martin, > > Inheriting autotools makes no difference, I also don't understand why > autotools should be inherited if it is only a make/configure > combination being used? > > Best Regards > _______________________________________________ > yocto mailing list > yocto@yoctoproject.org > https://lists.yoctoproject.org/listinfo/yocto Ok, I have managed to get a bit further on this. I didn't realise that I had to do bitbake -c clean hiawatha Everytime I had changed the package to ensure that it was building with the new configuration. My new .bb looks like this: DESCRIPTION = "Lightweight secure web server" HOMEPAGE = "http://www.hiawatha-webserver.org" LICENSE = "GPLv2" LIC_FILES_CHKSUM = "file://COPYING;md5=a9b0a0eb7c54c87ec6ac05f5f603df6a" DEPENDS = "openssl libxml2 libxslt" SECTION = "custom" PR = "r0" SRC_URI = "http://www.hiawatha-webserver.org/files/hiawatha-7.8.2.tar.gz" SRC_URI[md5sum] = "8aff3f8c759871ea1d1ff22e98030332" inherit autotools EXTRA_OEMAKE = "'CC=${CC}' 'CFLAGS=${CFLAGS} -I${S}/include -DWITHOUT_XATTR' \ 'BUILDDIR=${S}'" EXTRA_OECONF = " --disable-ipv6 \ --disable-ssl \ --disable-toolkit \ --disable-xslt \ --disable-largefile \ --mandir=${mandir}" do_configure() { oe_runconf } do_compile() { oe_runmake } do_install() { oe_runmake install DESTDIR=${D} SBINDIR=${sbindir} INCLUDEDIR=${includedir} Now, this is building and installing however the Hiawatha binary doesn't get included in the build. The configuration files make it in so I know it's running the make install phase however I don't know how to find out what is going on during the build and why the binary isn't making it in the rootfs. ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Trouble creating new package 2012-01-10 13:20 ` Jack Mitchell @ 2012-01-10 13:38 ` James Abernathy 2012-01-10 13:39 ` Jack Mitchell 0 siblings, 1 reply; 11+ messages in thread From: James Abernathy @ 2012-01-10 13:38 UTC (permalink / raw) To: Jack Mitchell; +Cc: yocto@yoctoproject.org [-- Attachment #1: Type: text/plain, Size: 5488 bytes --] On Tue, Jan 10, 2012 at 8:20 AM, Jack Mitchell <ml@communistcode.co.uk>wrote: > On 10/01/12 11:21, Jack Mitchell wrote: > >> On 10/01/12 11:16, Martin Jansa wrote: >> >>> On Tue, Jan 10, 2012 at 11:08:22AM +0000, Jack Mitchell wrote: >>> >>>> Good morning everyone, >>>> >>>> I am currently having issues creating a (very!) simple package. I have >>>> looked at the latest reference manual and studied other .bb files to no >>>> avail. >>>> >>>> I am trying to build a simple web server called Hiawatha. To install >>>> (http://www.hiawatha-**webserver.org/howto/** >>>> compilation_and_installation<http://www.hiawatha-webserver.org/howto/compilation_and_installation> >>>> ) >>>> it consists of a simple: >>>> >>>> ./configure >>>> >>>> make >>>> >>>> make install >>>> >>>> Now, for the life in me I cannot replicate this behaviour in a .bb file. >>>> This is what I have so far: >>>> >>>> DESCRIPTION = "Lightweight secure web server" >>>> HOMEPAGE = "http://www.hiawatha-**webserver.org<http://www.hiawatha-webserver.org/> >>>> " >>>> >>>> LICENSE = "GPLv2" >>>> LIC_FILES_CHKSUM = "file://COPYING;md5=**a9b0a0eb7c54c87ec6ac05f5f603df >>>> **6a" >>>> >>>> SECTION = "custom" >>>> >>>> PR = "r0" >>>> >>>> SRC_URI = "http://www.hiawatha-**webserver.org/files/hiawatha-** >>>> 7.8.2.tar.gz<http://www.hiawatha-webserver.org/files/hiawatha-7.8.2.tar.gz> >>>> " >>>> >>>> SRC_URI[md5sum] = "**8aff3f8c759871ea1d1ff22e980303**32" >>>> >>>> do_configure () { >>>> >>>> ./configure --disable-ipv6 \ >>>> --disable-ssl \ >>>> --disable-toolkit \ >>>> --disable-xslt \ >>>> --disable-largefile \ >>>> >>>> oe_runmake >>>> >>>> } >>>> >>>> do_install () { >>>> >>>> oe_runmake install DESTDIR=${D} SBINDIR=${sbindir} MANDIR=${mandir} \ >>>> INCLUDEDIR=${includedir} >>>> >>>> } >>>> >>>> Could someone point me in the right direction, I feel this should be an >>>> extremely easy piece of software to build - I think I'm just not >>>> understanding the build system correctly.... >>>> >>>> The error I receive when trying to build this package is: >>>> >>>> ERROR: Function 'do_install' failed (see >>>> /home/jack/yocto/poky-git/**beagleInitial/tmp/work/** >>>> armv5te-poky-linux-gnueabi/**hiawatha-7.8.2-r0/temp/log.do_**install.6289 >>>> >>>> for further information) >>>> | NOTE: make -j 9 -e MAKEFLAGS= -e install >>>> DESTDIR=/home/jack/yocto/poky-**git/beagleInitial/tmp/work/** >>>> armv5te-poky-linux-gnueabi/**hiawatha-7.8.2-r0/image >>>> SBINDIR=/usr/sbin MANDIR=/usr/share/man INCLUDEDIR=/usr/include >>>> | make: *** No rule to make target `install'. Stop. >>>> | ERROR: oe_runmake failed >>>> >>> try to start with >>> inherit autotools >>> >>> Cheers,, >>> >>> Thanks in advance, >>>> Jack. >>>> >>>> ______________________________**_________________ >>>> yocto mailing list >>>> yocto@yoctoproject.org >>>> https://lists.yoctoproject.**org/listinfo/yocto<https://lists.yoctoproject.org/listinfo/yocto> >>>> >>> >> Hi Martin, >> >> Inheriting autotools makes no difference, I also don't understand why >> autotools should be inherited if it is only a make/configure combination >> being used? >> >> Best Regards >> ______________________________**_________________ >> yocto mailing list >> yocto@yoctoproject.org >> https://lists.yoctoproject.**org/listinfo/yocto<https://lists.yoctoproject.org/listinfo/yocto> >> > > Ok, I have managed to get a bit further on this. I didn't realise that I > had to do > > bitbake -c clean hiawatha > > Everytime I had changed the package to ensure that it was building with > the new configuration. My new .bb looks like this: > > > DESCRIPTION = "Lightweight secure web server" > HOMEPAGE = "http://www.hiawatha-**webserver.org<http://www.hiawatha-webserver.org/> > " > LICENSE = "GPLv2" > LIC_FILES_CHKSUM = "file://COPYING;md5=**a9b0a0eb7c54c87ec6ac05f5f603df** > 6a" > DEPENDS = "openssl libxml2 libxslt" > > SECTION = "custom" > > PR = "r0" > > SRC_URI = "http://www.hiawatha-**webserver.org/files/hiawatha-** > 7.8.2.tar.gz<http://www.hiawatha-webserver.org/files/hiawatha-7.8.2.tar.gz> > " > SRC_URI[md5sum] = "**8aff3f8c759871ea1d1ff22e980303**32" > > inherit autotools > > EXTRA_OEMAKE = "'CC=${CC}' 'CFLAGS=${CFLAGS} -I${S}/include > -DWITHOUT_XATTR' \ > 'BUILDDIR=${S}'" > > EXTRA_OECONF = " --disable-ipv6 \ > --disable-ssl \ > --disable-toolkit \ > --disable-xslt \ > --disable-largefile \ > --mandir=${mandir}" > > do_configure() { > > oe_runconf > > } > > do_compile() { > > oe_runmake > > } > > do_install() { > > oe_runmake install DESTDIR=${D} SBINDIR=${sbindir} > INCLUDEDIR=${includedir} > > > Now, this is building and installing however the Hiawatha binary doesn't > get included in the build. The configuration files make it in so I know > it's running the make install phase however I don't know how to find out > what is going on during the build and why the binary isn't making it in the > rootfs. > > Maybe you need an IMAGE_INSTALL += "hiawatha" in you local.conf???? Jim A > ______________________________**_________________ > yocto mailing list > yocto@yoctoproject.org > https://lists.yoctoproject.**org/listinfo/yocto<https://lists.yoctoproject.org/listinfo/yocto> > [-- Attachment #2: Type: text/html, Size: 7113 bytes --] ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Trouble creating new package 2012-01-10 13:38 ` James Abernathy @ 2012-01-10 13:39 ` Jack Mitchell 2012-01-10 13:50 ` Gary Thomas 0 siblings, 1 reply; 11+ messages in thread From: Jack Mitchell @ 2012-01-10 13:39 UTC (permalink / raw) To: yocto@yoctoproject.org [-- Attachment #1: Type: text/plain, Size: 6527 bytes --] On 10/01/12 13:38, James Abernathy wrote: > > On Tue, Jan 10, 2012 at 8:20 AM, Jack Mitchell <ml@communistcode.co.uk > <mailto:ml@communistcode.co.uk>> wrote: > > On 10/01/12 11:21, Jack Mitchell wrote: > > On 10/01/12 11:16, Martin Jansa wrote: > > On Tue, Jan 10, 2012 at 11:08:22AM +0000, Jack Mitchell wrote: > > Good morning everyone, > > I am currently having issues creating a (very!) simple > package. I have > looked at the latest reference manual and studied > other .bb files to no > avail. > > I am trying to build a simple web server called > Hiawatha. To install > (http://www.hiawatha-webserver.org/howto/compilation_and_installation) > it consists of a simple: > > ./configure > > make > > make install > > Now, for the life in me I cannot replicate this > behaviour in a .bb file. > This is what I have so far: > > DESCRIPTION = "Lightweight secure web server" > HOMEPAGE = "http://www.hiawatha-webserver.org > <http://www.hiawatha-webserver.org/>" > > LICENSE = "GPLv2" > LIC_FILES_CHKSUM = > "file://COPYING;md5=a9b0a0eb7c54c87ec6ac05f5f603df6a" > > SECTION = "custom" > > PR = "r0" > > SRC_URI = > "http://www.hiawatha-webserver.org/files/hiawatha-7.8.2.tar.gz" > > SRC_URI[md5sum] = " 8aff3f8c759871ea1d1ff22e98030332" > > do_configure () { > > ./configure --disable-ipv6 \ > --disable-ssl \ > --disable-toolkit \ > --disable-xslt \ > --disable-largefile \ > > oe_runmake > > } > > do_install () { > > oe_runmake install DESTDIR=${D} SBINDIR=${sbindir} > MANDIR=${mandir} \ > INCLUDEDIR=${includedir} > > } > > Could someone point me in the right direction, I feel > this should be an > extremely easy piece of software to build - I think > I'm just not > understanding the build system correctly.... > > The error I receive when trying to build this package is: > > ERROR: Function 'do_install' failed (see > /home/jack/yocto/poky-git/beagleInitial/tmp/work/armv5te-poky-linux-gnueabi/hiawatha-7.8.2-r0/temp/log.do_install.6289 > > for further information) > | NOTE: make -j 9 -e MAKEFLAGS= -e install > DESTDIR=/home/jack/yocto/poky-git/beagleInitial/tmp/work/armv5te-poky-linux-gnueabi/hiawatha-7.8.2-r0/image > > SBINDIR=/usr/sbin MANDIR=/usr/share/man > INCLUDEDIR=/usr/include > | make: *** No rule to make target `install'. Stop. > | ERROR: oe_runmake failed > > try to start with > inherit autotools > > Cheers,, > > Thanks in advance, > Jack. > > _______________________________________________ > yocto mailing list > yocto@yoctoproject.org <mailto:yocto@yoctoproject.org> > https://lists.yoctoproject.org/listinfo/yocto > > > Hi Martin, > > Inheriting autotools makes no difference, I also don't > understand why autotools should be inherited if it is only a > make/configure combination being used? > > Best Regards > _______________________________________________ > yocto mailing list > yocto@yoctoproject.org <mailto:yocto@yoctoproject.org> > https://lists.yoctoproject.org/listinfo/yocto > > > Ok, I have managed to get a bit further on this. I didn't realise > that I had to do > > bitbake -c clean hiawatha > > Everytime I had changed the package to ensure that it was building > with the new configuration. My new .bb looks like this: > > > DESCRIPTION = "Lightweight secure web server" > HOMEPAGE = "http://www.hiawatha-webserver.org > <http://www.hiawatha-webserver.org/>" > LICENSE = "GPLv2" > LIC_FILES_CHKSUM = > "file://COPYING;md5=a9b0a0eb7c54c87ec6ac05f5f603df6a" > DEPENDS = "openssl libxml2 libxslt" > > SECTION = "custom" > > PR = "r0" > > SRC_URI = > "http://www.hiawatha-webserver.org/files/hiawatha-7.8.2.tar.gz" > SRC_URI[md5sum] = "8aff3f8c759871ea1d1ff22e98030332" > > inherit autotools > > EXTRA_OEMAKE = "'CC=${CC}' 'CFLAGS=${CFLAGS} -I${S}/include > -DWITHOUT_XATTR' \ > 'BUILDDIR=${S}'" > > EXTRA_OECONF = " --disable-ipv6 \ > --disable-ssl \ > --disable-toolkit \ > --disable-xslt \ > --disable-largefile \ > --mandir=${mandir}" > > do_configure() { > > oe_runconf > > } > > do_compile() { > > oe_runmake > > } > > do_install() { > > oe_runmake install DESTDIR=${D} SBINDIR=${sbindir} > INCLUDEDIR=${includedir} > > > Now, this is building and installing however the Hiawatha binary > doesn't get included in the build. The configuration files make it > in so I know it's running the make install phase however I don't > know how to find out what is going on during the build and why the > binary isn't making it in the rootfs. > > Maybe you need an IMAGE_INSTALL += "hiawatha" in you local.conf???? I already have this in my custom image .bb file. As noted above it seems to install everything apart from the binary so all the config files go in, just not the especially important bit! Thank you for you help though! Regards, > Jim A > > _______________________________________________ > yocto mailing list > yocto@yoctoproject.org <mailto:yocto@yoctoproject.org> > https://lists.yoctoproject.org/listinfo/yocto > > [-- Attachment #2: Type: text/html, Size: 13196 bytes --] ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Trouble creating new package 2012-01-10 13:39 ` Jack Mitchell @ 2012-01-10 13:50 ` Gary Thomas 2012-01-10 13:56 ` Jack Mitchell 0 siblings, 1 reply; 11+ messages in thread From: Gary Thomas @ 2012-01-10 13:50 UTC (permalink / raw) To: Jack Mitchell; +Cc: yocto@yoctoproject.org On 2012-01-10 06:39, Jack Mitchell wrote: > On 10/01/12 13:38, James Abernathy wrote: >> >> On Tue, Jan 10, 2012 at 8:20 AM, Jack Mitchell <ml@communistcode.co.uk <mailto:ml@communistcode.co.uk>> wrote: >> >> On 10/01/12 11:21, Jack Mitchell wrote: >> >> On 10/01/12 11:16, Martin Jansa wrote: >> >> On Tue, Jan 10, 2012 at 11:08:22AM +0000, Jack Mitchell wrote: >> >> Good morning everyone, >> >> I am currently having issues creating a (very!) simple package. I have >> looked at the latest reference manual and studied other .bb files to no >> avail. >> >> I am trying to build a simple web server called Hiawatha. To install >> (http://www.hiawatha-webserver.org/howto/compilation_and_installation) >> it consists of a simple: >> >> ./configure >> >> make >> >> make install >> >> Now, for the life in me I cannot replicate this behaviour in a .bb file. >> This is what I have so far: >> >> DESCRIPTION = "Lightweight secure web server" >> HOMEPAGE = "http://www.hiawatha-webserver.org <http://www.hiawatha-webserver.org/>" >> >> LICENSE = "GPLv2" >> LIC_FILES_CHKSUM = "file://COPYING;md5=a9b0a0eb7c54c87ec6ac05f5f603df6a" >> >> SECTION = "custom" >> >> PR = "r0" >> >> SRC_URI = "http://www.hiawatha-webserver.org/files/hiawatha-7.8.2.tar.gz" >> >> SRC_URI[md5sum] = " 8aff3f8c759871ea1d1ff22e98030332" >> >> do_configure () { >> >> ./configure --disable-ipv6 \ >> --disable-ssl \ >> --disable-toolkit \ >> --disable-xslt \ >> --disable-largefile \ >> >> oe_runmake >> >> } >> >> do_install () { >> >> oe_runmake install DESTDIR=${D} SBINDIR=${sbindir} MANDIR=${mandir} \ >> INCLUDEDIR=${includedir} >> >> } >> >> Could someone point me in the right direction, I feel this should be an >> extremely easy piece of software to build - I think I'm just not >> understanding the build system correctly.... >> >> The error I receive when trying to build this package is: >> >> ERROR: Function 'do_install' failed (see >> /home/jack/yocto/poky-git/beagleInitial/tmp/work/armv5te-poky-linux-gnueabi/hiawatha-7.8.2-r0/temp/log.do_install.6289 >> for further information) >> | NOTE: make -j 9 -e MAKEFLAGS= -e install >> DESTDIR=/home/jack/yocto/poky-git/beagleInitial/tmp/work/armv5te-poky-linux-gnueabi/hiawatha-7.8.2-r0/image >> SBINDIR=/usr/sbin MANDIR=/usr/share/man INCLUDEDIR=/usr/include >> | make: *** No rule to make target `install'. Stop. >> | ERROR: oe_runmake failed >> >> try to start with >> inherit autotools >> >> Cheers,, >> >> Thanks in advance, >> Jack. >> >> _______________________________________________ >> yocto mailing list >> yocto@yoctoproject.org <mailto:yocto@yoctoproject.org> >> https://lists.yoctoproject.org/listinfo/yocto >> >> >> Hi Martin, >> >> Inheriting autotools makes no difference, I also don't understand why autotools should be inherited if it is only a make/configure combination being used? >> >> Best Regards >> _______________________________________________ >> yocto mailing list >> yocto@yoctoproject.org <mailto:yocto@yoctoproject.org> >> https://lists.yoctoproject.org/listinfo/yocto >> >> >> Ok, I have managed to get a bit further on this. I didn't realise that I had to do >> >> bitbake -c clean hiawatha >> >> Everytime I had changed the package to ensure that it was building with the new configuration. My new .bb looks like this: >> >> >> DESCRIPTION = "Lightweight secure web server" >> HOMEPAGE = "http://www.hiawatha-webserver.org <http://www.hiawatha-webserver.org/>" >> LICENSE = "GPLv2" >> LIC_FILES_CHKSUM = "file://COPYING;md5=a9b0a0eb7c54c87ec6ac05f5f603df6a" >> DEPENDS = "openssl libxml2 libxslt" >> >> SECTION = "custom" >> >> PR = "r0" >> >> SRC_URI = "http://www.hiawatha-webserver.org/files/hiawatha-7.8.2.tar.gz" >> SRC_URI[md5sum] = "8aff3f8c759871ea1d1ff22e98030332" >> >> inherit autotools >> >> EXTRA_OEMAKE = "'CC=${CC}' 'CFLAGS=${CFLAGS} -I${S}/include -DWITHOUT_XATTR' \ >> 'BUILDDIR=${S}'" >> >> EXTRA_OECONF = " --disable-ipv6 \ >> --disable-ssl \ >> --disable-toolkit \ >> --disable-xslt \ >> --disable-largefile \ >> --mandir=${mandir}" >> >> do_configure() { >> >> oe_runconf >> >> } >> >> do_compile() { >> >> oe_runmake >> >> } >> >> do_install() { >> >> oe_runmake install DESTDIR=${D} SBINDIR=${sbindir} INCLUDEDIR=${includedir} >> >> >> Now, this is building and installing however the Hiawatha binary doesn't get included in the build. The configuration files make it in so I know it's running the make install >> phase however I don't know how to find out what is going on during the build and why the binary isn't making it in the rootfs. >> >> Maybe you need an IMAGE_INSTALL += "hiawatha" in you local.conf???? > > I already have this in my custom image .bb file. As noted above it seems to install everything apart from the binary so all the config files go in, just not the especially > important bit! Did you look at the log file created during the install step? It will be in a file named something like this: tmp/work/arm*/hiawatha*/temp/log.do_install assuming that your target architecture is ARM If you don't see any problems or can't figure out what's going wrong, try putting some print statements in the install step and check the log file. -- ------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------ ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Trouble creating new package 2012-01-10 13:50 ` Gary Thomas @ 2012-01-10 13:56 ` Jack Mitchell 2012-01-10 15:09 ` Jack Mitchell 0 siblings, 1 reply; 11+ messages in thread From: Jack Mitchell @ 2012-01-10 13:56 UTC (permalink / raw) To: yocto@yoctoproject.org On 10/01/12 13:50, Gary Thomas wrote: > On 2012-01-10 06:39, Jack Mitchell wrote: >> On 10/01/12 13:38, James Abernathy wrote: >>> >>> On Tue, Jan 10, 2012 at 8:20 AM, Jack Mitchell >>> <ml@communistcode.co.uk <mailto:ml@communistcode.co.uk>> wrote: >>> >>> On 10/01/12 11:21, Jack Mitchell wrote: >>> >>> On 10/01/12 11:16, Martin Jansa wrote: >>> >>> On Tue, Jan 10, 2012 at 11:08:22AM +0000, Jack Mitchell >>> wrote: >>> >>> Good morning everyone, >>> >>> I am currently having issues creating a (very!) >>> simple package. I have >>> looked at the latest reference manual and studied >>> other .bb files to no >>> avail. >>> >>> I am trying to build a simple web server called >>> Hiawatha. To install >>> >>> (http://www.hiawatha-webserver.org/howto/compilation_and_installation) >>> it consists of a simple: >>> >>> ./configure >>> >>> make >>> >>> make install >>> >>> Now, for the life in me I cannot replicate this >>> behaviour in a .bb file. >>> This is what I have so far: >>> >>> DESCRIPTION = "Lightweight secure web server" >>> HOMEPAGE = "http://www.hiawatha-webserver.org >>> <http://www.hiawatha-webserver.org/>" >>> >>> LICENSE = "GPLv2" >>> LIC_FILES_CHKSUM = >>> "file://COPYING;md5=a9b0a0eb7c54c87ec6ac05f5f603df6a" >>> >>> SECTION = "custom" >>> >>> PR = "r0" >>> >>> SRC_URI = >>> "http://www.hiawatha-webserver.org/files/hiawatha-7.8.2.tar.gz" >>> >>> SRC_URI[md5sum] = " 8aff3f8c759871ea1d1ff22e98030332" >>> >>> do_configure () { >>> >>> ./configure --disable-ipv6 \ >>> --disable-ssl \ >>> --disable-toolkit \ >>> --disable-xslt \ >>> --disable-largefile \ >>> >>> oe_runmake >>> >>> } >>> >>> do_install () { >>> >>> oe_runmake install DESTDIR=${D} SBINDIR=${sbindir} >>> MANDIR=${mandir} \ >>> INCLUDEDIR=${includedir} >>> >>> } >>> >>> Could someone point me in the right direction, I >>> feel this should be an >>> extremely easy piece of software to build - I think >>> I'm just not >>> understanding the build system correctly.... >>> >>> The error I receive when trying to build this >>> package is: >>> >>> ERROR: Function 'do_install' failed (see >>> >>> /home/jack/yocto/poky-git/beagleInitial/tmp/work/armv5te-poky-linux-gnueabi/hiawatha-7.8.2-r0/temp/log.do_install.6289 >>> for further information) >>> | NOTE: make -j 9 -e MAKEFLAGS= -e install >>> >>> DESTDIR=/home/jack/yocto/poky-git/beagleInitial/tmp/work/armv5te-poky-linux-gnueabi/hiawatha-7.8.2-r0/image >>> SBINDIR=/usr/sbin MANDIR=/usr/share/man >>> INCLUDEDIR=/usr/include >>> | make: *** No rule to make target `install'. Stop. >>> | ERROR: oe_runmake failed >>> >>> try to start with >>> inherit autotools >>> >>> Cheers,, >>> >>> Thanks in advance, >>> Jack. >>> >>> _______________________________________________ >>> yocto mailing list >>> yocto@yoctoproject.org <mailto:yocto@yoctoproject.org> >>> https://lists.yoctoproject.org/listinfo/yocto >>> >>> >>> Hi Martin, >>> >>> Inheriting autotools makes no difference, I also don't >>> understand why autotools should be inherited if it is only a >>> make/configure combination being used? >>> >>> Best Regards >>> _______________________________________________ >>> yocto mailing list >>> yocto@yoctoproject.org <mailto:yocto@yoctoproject.org> >>> https://lists.yoctoproject.org/listinfo/yocto >>> >>> >>> Ok, I have managed to get a bit further on this. I didn't >>> realise that I had to do >>> >>> bitbake -c clean hiawatha >>> >>> Everytime I had changed the package to ensure that it was >>> building with the new configuration. My new .bb looks like this: >>> >>> >>> DESCRIPTION = "Lightweight secure web server" >>> HOMEPAGE = "http://www.hiawatha-webserver.org >>> <http://www.hiawatha-webserver.org/>" >>> LICENSE = "GPLv2" >>> LIC_FILES_CHKSUM = >>> "file://COPYING;md5=a9b0a0eb7c54c87ec6ac05f5f603df6a" >>> DEPENDS = "openssl libxml2 libxslt" >>> >>> SECTION = "custom" >>> >>> PR = "r0" >>> >>> SRC_URI = >>> "http://www.hiawatha-webserver.org/files/hiawatha-7.8.2.tar.gz" >>> SRC_URI[md5sum] = "8aff3f8c759871ea1d1ff22e98030332" >>> >>> inherit autotools >>> >>> EXTRA_OEMAKE = "'CC=${CC}' 'CFLAGS=${CFLAGS} -I${S}/include >>> -DWITHOUT_XATTR' \ >>> 'BUILDDIR=${S}'" >>> >>> EXTRA_OECONF = " --disable-ipv6 \ >>> --disable-ssl \ >>> --disable-toolkit \ >>> --disable-xslt \ >>> --disable-largefile \ >>> --mandir=${mandir}" >>> >>> do_configure() { >>> >>> oe_runconf >>> >>> } >>> >>> do_compile() { >>> >>> oe_runmake >>> >>> } >>> >>> do_install() { >>> >>> oe_runmake install DESTDIR=${D} SBINDIR=${sbindir} >>> INCLUDEDIR=${includedir} >>> >>> >>> Now, this is building and installing however the Hiawatha binary >>> doesn't get included in the build. The configuration files make it >>> in so I know it's running the make install >>> phase however I don't know how to find out what is going on >>> during the build and why the binary isn't making it in the rootfs. >>> >>> Maybe you need an IMAGE_INSTALL += "hiawatha" in you local.conf???? >> >> I already have this in my custom image .bb file. As noted above it >> seems to install everything apart from the binary so all the config >> files go in, just not the especially >> important bit! > > Did you look at the log file created during the install step? > It will be in a file named something like this: > tmp/work/arm*/hiawatha*/temp/log.do_install > assuming that your target architecture is ARM > > If you don't see any problems or can't figure out what's going wrong, > try putting some print statements in the install step and check the > log file. > > Ah hah, thank you Gary, I found a wealth of information in that folder. The do_install log didn't exist but after a quick browse, I found that the binaries are actually present on the system, but pre-fixed with arm-poky-linux-gnueabi-'binary-name'. e.g. arm-poky-linux-gnueabi-cgi-wrapper arm-poky-linux-gnueabi-newroot arm-poky-linux-gnueabi-wigwam arm-poky-linux-gnueabi-hiawatha arm-poky-linux-gnueabi-php-fcgi What could be happening here? ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Trouble creating new package 2012-01-10 13:56 ` Jack Mitchell @ 2012-01-10 15:09 ` Jack Mitchell 0 siblings, 0 replies; 11+ messages in thread From: Jack Mitchell @ 2012-01-10 15:09 UTC (permalink / raw) To: yocto@yoctoproject.org On 10/01/12 13:56, Jack Mitchell wrote: > On 10/01/12 13:50, Gary Thomas wrote: >> On 2012-01-10 06:39, Jack Mitchell wrote: >>> On 10/01/12 13:38, James Abernathy wrote: >>>> >>>> On Tue, Jan 10, 2012 at 8:20 AM, Jack Mitchell >>>> <ml@communistcode.co.uk <mailto:ml@communistcode.co.uk>> wrote: >>>> >>>> On 10/01/12 11:21, Jack Mitchell wrote: >>>> >>>> On 10/01/12 11:16, Martin Jansa wrote: >>>> >>>> On Tue, Jan 10, 2012 at 11:08:22AM +0000, Jack Mitchell >>>> wrote: >>>> >>>> Good morning everyone, >>>> >>>> I am currently having issues creating a (very!) >>>> simple package. I have >>>> looked at the latest reference manual and studied >>>> other .bb files to no >>>> avail. >>>> >>>> I am trying to build a simple web server called >>>> Hiawatha. To install >>>> >>>> (http://www.hiawatha-webserver.org/howto/compilation_and_installation) >>>> it consists of a simple: >>>> >>>> ./configure >>>> >>>> make >>>> >>>> make install >>>> >>>> Now, for the life in me I cannot replicate this >>>> behaviour in a .bb file. >>>> This is what I have so far: >>>> >>>> DESCRIPTION = "Lightweight secure web server" >>>> HOMEPAGE = "http://www.hiawatha-webserver.org >>>> <http://www.hiawatha-webserver.org/>" >>>> >>>> LICENSE = "GPLv2" >>>> LIC_FILES_CHKSUM = >>>> "file://COPYING;md5=a9b0a0eb7c54c87ec6ac05f5f603df6a" >>>> >>>> SECTION = "custom" >>>> >>>> PR = "r0" >>>> >>>> SRC_URI = >>>> "http://www.hiawatha-webserver.org/files/hiawatha-7.8.2.tar.gz" >>>> >>>> SRC_URI[md5sum] = " 8aff3f8c759871ea1d1ff22e98030332" >>>> >>>> do_configure () { >>>> >>>> ./configure --disable-ipv6 \ >>>> --disable-ssl \ >>>> --disable-toolkit \ >>>> --disable-xslt \ >>>> --disable-largefile \ >>>> >>>> oe_runmake >>>> >>>> } >>>> >>>> do_install () { >>>> >>>> oe_runmake install DESTDIR=${D} SBINDIR=${sbindir} >>>> MANDIR=${mandir} \ >>>> INCLUDEDIR=${includedir} >>>> >>>> } >>>> >>>> Could someone point me in the right direction, I >>>> feel this should be an >>>> extremely easy piece of software to build - I think >>>> I'm just not >>>> understanding the build system correctly.... >>>> >>>> The error I receive when trying to build this >>>> package is: >>>> >>>> ERROR: Function 'do_install' failed (see >>>> >>>> /home/jack/yocto/poky-git/beagleInitial/tmp/work/armv5te-poky-linux-gnueabi/hiawatha-7.8.2-r0/temp/log.do_install.6289 >>>> for further information) >>>> | NOTE: make -j 9 -e MAKEFLAGS= -e install >>>> >>>> DESTDIR=/home/jack/yocto/poky-git/beagleInitial/tmp/work/armv5te-poky-linux-gnueabi/hiawatha-7.8.2-r0/image >>>> SBINDIR=/usr/sbin MANDIR=/usr/share/man >>>> INCLUDEDIR=/usr/include >>>> | make: *** No rule to make target `install'. Stop. >>>> | ERROR: oe_runmake failed >>>> >>>> try to start with >>>> inherit autotools >>>> >>>> Cheers,, >>>> >>>> Thanks in advance, >>>> Jack. >>>> >>>> _______________________________________________ >>>> yocto mailing list >>>> yocto@yoctoproject.org <mailto:yocto@yoctoproject.org> >>>> https://lists.yoctoproject.org/listinfo/yocto >>>> >>>> >>>> Hi Martin, >>>> >>>> Inheriting autotools makes no difference, I also don't >>>> understand why autotools should be inherited if it is only a >>>> make/configure combination being used? >>>> >>>> Best Regards >>>> _______________________________________________ >>>> yocto mailing list >>>> yocto@yoctoproject.org <mailto:yocto@yoctoproject.org> >>>> https://lists.yoctoproject.org/listinfo/yocto >>>> >>>> >>>> Ok, I have managed to get a bit further on this. I didn't >>>> realise that I had to do >>>> >>>> bitbake -c clean hiawatha >>>> >>>> Everytime I had changed the package to ensure that it was >>>> building with the new configuration. My new .bb looks like this: >>>> >>>> >>>> DESCRIPTION = "Lightweight secure web server" >>>> HOMEPAGE = "http://www.hiawatha-webserver.org >>>> <http://www.hiawatha-webserver.org/>" >>>> LICENSE = "GPLv2" >>>> LIC_FILES_CHKSUM = >>>> "file://COPYING;md5=a9b0a0eb7c54c87ec6ac05f5f603df6a" >>>> DEPENDS = "openssl libxml2 libxslt" >>>> >>>> SECTION = "custom" >>>> >>>> PR = "r0" >>>> >>>> SRC_URI = >>>> "http://www.hiawatha-webserver.org/files/hiawatha-7.8.2.tar.gz" >>>> SRC_URI[md5sum] = "8aff3f8c759871ea1d1ff22e98030332" >>>> >>>> inherit autotools >>>> >>>> EXTRA_OEMAKE = "'CC=${CC}' 'CFLAGS=${CFLAGS} -I${S}/include >>>> -DWITHOUT_XATTR' \ >>>> 'BUILDDIR=${S}'" >>>> >>>> EXTRA_OECONF = " --disable-ipv6 \ >>>> --disable-ssl \ >>>> --disable-toolkit \ >>>> --disable-xslt \ >>>> --disable-largefile \ >>>> --mandir=${mandir}" >>>> >>>> do_configure() { >>>> >>>> oe_runconf >>>> >>>> } >>>> >>>> do_compile() { >>>> >>>> oe_runmake >>>> >>>> } >>>> >>>> do_install() { >>>> >>>> oe_runmake install DESTDIR=${D} SBINDIR=${sbindir} >>>> INCLUDEDIR=${includedir} >>>> >>>> >>>> Now, this is building and installing however the Hiawatha >>>> binary doesn't get included in the build. The configuration files >>>> make it in so I know it's running the make install >>>> phase however I don't know how to find out what is going on >>>> during the build and why the binary isn't making it in the rootfs. >>>> >>>> Maybe you need an IMAGE_INSTALL += "hiawatha" in you local.conf???? >>> >>> I already have this in my custom image .bb file. As noted above it >>> seems to install everything apart from the binary so all the config >>> files go in, just not the especially >>> important bit! >> >> Did you look at the log file created during the install step? >> It will be in a file named something like this: >> tmp/work/arm*/hiawatha*/temp/log.do_install >> assuming that your target architecture is ARM >> >> If you don't see any problems or can't figure out what's going wrong, >> try putting some print statements in the install step and check the >> log file. >> >> > Ah hah, thank you Gary, I found a wealth of information in that > folder. The do_install log didn't exist but after a quick browse, I > found that the binaries are actually present on the system, but > pre-fixed with arm-poky-linux-gnueabi-'binary-name'. e.g. > > arm-poky-linux-gnueabi-cgi-wrapper arm-poky-linux-gnueabi-newroot > arm-poky-linux-gnueabi-wigwam > arm-poky-linux-gnueabi-hiawatha arm-poky-linux-gnueabi-php-fcgi > > What could be happening here? > > _______________________________________________ > yocto mailing list > yocto@yoctoproject.org > https://lists.yoctoproject.org/listinfo/yocto Right i've gotten further. I added --program-prefix= to the OE_EXTRACONF and that ditched the elf prefix. My last hurdle now is that I get errors that /var/log/hiawatha/system.log cannot be created, now this is due to the /var/log/hiawatha folder not being present. I have tried making it during install in the .bb file but it gets deleted when I run qemu, do I need some sort of system logging utility? DESCRIPTION = "Lightweight secure web server" HOMEPAGE = "http://www.hiawatha-webserver.org" LICENSE = "GPLv2" LIC_FILES_CHKSUM = "file://COPYING;md5=a9b0a0eb7c54c87ec6ac05f5f603df6a" DEPENDS = "openssl libxml2 libxslt" SECTION = "custom" PR = "r0" SRC_URI = "http://www.hiawatha-webserver.org/files/hiawatha-7.8.2.tar.gz \ file://hiawatha-init" SRC_URI[md5sum] = "8aff3f8c759871ea1d1ff22e98030332" inherit autotools update-rc.d INITSCRIPT_NAME = "hiawatha" INITSCRIPT_PARAMS = "defaults 70" EXTRA_OEMAKE = "'CC=${CC}' 'CFLAGS=${CFLAGS} -I${S}/include -DWITHOUT_XATTR' \ 'BUILDDIR=${S}'" EXTRA_OECONF = " --disable-ipv6 \ --disable-ssl \ --disable-toolkit \ --disable-xslt \ --disable-largefile \ --mandir=${mandir} \ --program-prefix=" do_configure() { oe_runconf } do_compile() { oe_runmake } do_install() { oe_runmake install DESTDIR=${D} SBINDIR=${sbindir} INCLUDEDIR=${includedir} #create directories install -d ${D}${sysconfdir}/init.d ${D}var/log/hiawatha # Copy over init script install -m 0755 ${WORKDIR}/hiawatha-init ${D}${sysconfdir}/init.d/hiawatha } ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Trouble creating new package 2012-01-10 11:21 ` Jack Mitchell 2012-01-10 13:20 ` Jack Mitchell @ 2012-01-10 15:12 ` Chris Larson 2012-01-10 15:47 ` Saul Wold 2 siblings, 0 replies; 11+ messages in thread From: Chris Larson @ 2012-01-10 15:12 UTC (permalink / raw) To: Jack Mitchell; +Cc: yocto@yoctoproject.org On Tue, Jan 10, 2012 at 4:21 AM, Jack Mitchell <ml@communistcode.co.uk> wrote: > Inheriting autotools makes no difference, I also don't understand why > autotools should be inherited if it is only a make/configure combination > being used? That's what autotools *is*. ./configure is almost always a script generated by autoconf, which is one of the tools referred to by autotools (autoconf, automake, libtool). -- Christopher Larson ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Trouble creating new package 2012-01-10 11:21 ` Jack Mitchell 2012-01-10 13:20 ` Jack Mitchell 2012-01-10 15:12 ` Chris Larson @ 2012-01-10 15:47 ` Saul Wold 2 siblings, 0 replies; 11+ messages in thread From: Saul Wold @ 2012-01-10 15:47 UTC (permalink / raw) To: Jack Mitchell; +Cc: yocto@yoctoproject.org On 01/10/2012 03:21 AM, Jack Mitchell wrote: > On 10/01/12 11:16, Martin Jansa wrote: >> On Tue, Jan 10, 2012 at 11:08:22AM +0000, Jack Mitchell wrote: >>> Good morning everyone, >>> >>> I am currently having issues creating a (very!) simple package. I have >>> looked at the latest reference manual and studied other .bb files to no >>> avail. >>> >>> I am trying to build a simple web server called Hiawatha. To install >>> (http://www.hiawatha-webserver.org/howto/compilation_and_installation) >>> it consists of a simple: >>> >>> ./configure >>> >>> make >>> >>> make install >>> >>> Now, for the life in me I cannot replicate this behaviour in a .bb file. >>> This is what I have so far: >>> >>> DESCRIPTION = "Lightweight secure web server" >>> HOMEPAGE = "http://www.hiawatha-webserver.org" >>> >>> LICENSE = "GPLv2" >>> LIC_FILES_CHKSUM = "file://COPYING;md5=a9b0a0eb7c54c87ec6ac05f5f603df6a" >>> >>> SECTION = "custom" >>> >>> PR = "r0" >>> >>> SRC_URI = >>> "http://www.hiawatha-webserver.org/files/hiawatha-7.8.2.tar.gz" >>> >>> SRC_URI[md5sum] = "8aff3f8c759871ea1d1ff22e98030332" >>> >>> do_configure () { >>> >>> ./configure --disable-ipv6 \ >>> --disable-ssl \ >>> --disable-toolkit \ >>> --disable-xslt \ >>> --disable-largefile \ >>> >>> oe_runmake >>> >>> } >>> By using inherit autotools, you can remove this step and let bitbake handle the configure and compile / make steps. You can reduce the above to EXTRA_OECONF = "--disable-ipv6 --disable-ssl --disable-toolkit --disable-xslt --disable-largefile" >>> do_install () { >>> >>> oe_runmake install DESTDIR=${D} SBINDIR=${sbindir} MANDIR=${mandir} \ >>> INCLUDEDIR=${includedir} >>> >>> } >>> This generally looks correct, but I would move the install to the end, not sure why but it might make a difference. Another test you can do since it gets to the install point is to use devshell (bitbake hiawatha -c devshell) The will give you a shell with all the variables set and you can run the make install directly on the command line and verify if there is a problem there. You can also review the run scripts in the temp/run.do_install.<pid> file for the hiawatha package. Hope that helps you. Sau! >>> Could someone point me in the right direction, I feel this should be an >>> extremely easy piece of software to build - I think I'm just not >>> understanding the build system correctly.... >>> >>> The error I receive when trying to build this package is: >>> >>> ERROR: Function 'do_install' failed (see >>> /home/jack/yocto/poky-git/beagleInitial/tmp/work/armv5te-poky-linux-gnueabi/hiawatha-7.8.2-r0/temp/log.do_install.6289 >>> >>> for further information) >>> | NOTE: make -j 9 -e MAKEFLAGS= -e install >>> DESTDIR=/home/jack/yocto/poky-git/beagleInitial/tmp/work/armv5te-poky-linux-gnueabi/hiawatha-7.8.2-r0/image >>> >>> SBINDIR=/usr/sbin MANDIR=/usr/share/man INCLUDEDIR=/usr/include >>> | make: *** No rule to make target `install'. Stop. >>> | ERROR: oe_runmake failed >> try to start with >> inherit autotools >> >> Cheers,, >> >>> Thanks in advance, >>> Jack. >>> >>> _______________________________________________ >>> yocto mailing list >>> yocto@yoctoproject.org >>> https://lists.yoctoproject.org/listinfo/yocto > > Hi Martin, > > Inheriting autotools makes no difference, I also don't understand why > autotools should be inherited if it is only a make/configure combination > being used? > > Best Regards > _______________________________________________ > yocto mailing list > yocto@yoctoproject.org > https://lists.yoctoproject.org/listinfo/yocto > ^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2012-01-10 15:47 UTC | newest] Thread overview: 11+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2012-01-10 11:08 Trouble creating new package Jack Mitchell 2012-01-10 11:16 ` Martin Jansa 2012-01-10 11:21 ` Jack Mitchell 2012-01-10 13:20 ` Jack Mitchell 2012-01-10 13:38 ` James Abernathy 2012-01-10 13:39 ` Jack Mitchell 2012-01-10 13:50 ` Gary Thomas 2012-01-10 13:56 ` Jack Mitchell 2012-01-10 15:09 ` Jack Mitchell 2012-01-10 15:12 ` Chris Larson 2012-01-10 15:47 ` Saul Wold
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.