Openembedded Devel Discussions
 help / color / mirror / Atom feed
From: Robert Yang <liezhi.yang@windriver.com>
To: Himanshu Pandey <pandey_himanshu80@rediffmail.com>
Cc: "openembedded-devel@lists.openembedded.org"
	<openembedded-devel@lists.openembedded.org>
Subject: Re: Regarding dhcp package
Date: Thu, 10 Jul 2014 16:38:49 +0800	[thread overview]
Message-ID: <53BE5119.1050109@windriver.com> (raw)
In-Reply-To: <1404294734.S.4360.22202.H.TlJvYmVydCBZYW5nAFJlOiBbYml0YmFrZS1kZXZlbF0gUmVnYXJkaW5nIHJwLXBwcG9lIHBhY2thZ2U_.RU.rfs209, rfs209, 241, 539.f4-235-92.old.replied.1404980271.29674@webmail.rediffmail.com>



On 07/10/2014 04:17 PM, Himanshu Pandey wrote:
> Hi Robert,
>
> I am getting an error while compiling my dhcp package. Please find the log as
> attachment.
>
> My dhcp bb file is as follows:
>
> SECTION = "base"
> SUMMARY = "Internet Software Consortium DHCP package"
> DESCRIPTION = "DHCP (Dynamic Host Configuration Protocol) is a protocol \
> which allows individual devices on an IP network to get their own \
> network configuration information from a server.  DHCP helps make it \
> easier to administer devices."
>
> HOMEPAGE = "http://www.isc.org/"
>
> LICENSE = "CLOSED"
>
> DEPENDS = "openssl bind"
>
> SRC_URI = "svn://192.43.23.436/home/repo/dhcp-4.2.4-P2;module=branch;user=;pswd="
> SRCREV = "${AUTOREV}"
> S= "${WORKDIR}/trunk"
> #inherit autotools
> do_compile() {
>          #cp -f ${WORKDIR}/trunk/include/site.h ${S}/includes
>          cd ../trunk
>          ./configure --prefix=${prefix} --host=${HOST_SYS}
>          make
> }
>

I think that these are wrong, you should not disable the "inherit autotools",
and should not use "./configure" or "make" directly, try to enable
the "inherit autotools", and remove the do_compile section to see what
would happen, maybe you need:

inherit autotools
S = "${WORKDIR}/trunk"

// Robert

>
> do_install_append () {
>          install -d ${D}${sysconfdir}/init.d
>          install -d ${D}${sysconfdir}/default
>          install -d ${D}${sysconfdir}/dhcp
>          install -d /etc/dhcp
>          install -d /sbin
>          install -d /var/db
>          install -d /var/lib
>          install -d /usr/local/sbin/
> install -m 0755 ${D}/sbin/dhcrelay
>          install -m 0755 ${D}/sbin/dhcpd
>          install -m 0755 ${D}/sbin/dhclient-script
>          install -m 0755 ${D}/var/db/dhcpd.leases
>          install -m 0755 ${D}/var/lib/dhcpd
>          install -m 0755 ${D}/usr/local/sbin/dhclient
>          sudo touch ${D}/usr/local/bin/dhcpd-pools
>          rm -f ${D}${sysconfdir}/dhclient.conf*
>          rm -f ${D}${sysconfdir}/dhcpd.conf*
>          rm -f /etc/dhcpd.conf*
>          install -m 0644 ${WORKDIR}/dhcpd.conf ${D}/etc/dhcpd.conf
>          install -m 0644 ${WORKDIR}/dhclient.conf ${D}/etc/dhcp/dhclient.conf
>
>          install -d ${D}${base_sbindir}/
>          if [ "${sbindir}" != "${base_sbindir}" ]; then
>                  mv ${D}${sbindir}/dhclient ${D}${base_sbindir}/
>          fi
>          install -m 0755 ${S}/client/scripts/linux
> ${D}${base_sbindir}/dhclient-script
> }
>
> PACKAGES += "dhcp-server dhcp-server-config dhcp-client dhcp-relay dhcp-omshell"
>
> FILES_${PN} = ""
> RDEPENDS_${PN}-dev = ""
> RDEPENDS_${PN}-staticdev = ""
>
> FILES_dhcp-server = "${sbindir}/dhcpd ${sysconfdir}/init.d/dhcp-server"
> RRECOMMENDS_dhcp-server = "dhcp-server-config"
>
> FILES_dhcp-server-config = "${sysconfdir}/default/dhcp-server
> ${sysconfdir}/dhcp/dhcpd.conf"
>
> FILES_dhcp-relay = "${sbindir}/dhcrelay ${sysconfdir}/init.d/dhcp-relay
> ${sysconfdir}/default/dhcp-relay"
>
> FILES_dhcp-client = "${base_sbindir}/dhclient ${base_sbindir}/dhclient-script
> ${sysconfdir}/dhcp/dhclient.conf"
> RDEPENDS_dhcp-client = "bash"
>
> FILES_dhcp-omshell = "${bindir}/omshell"
>
> pkg_postinst_dhcp-server() {
>      mkdir -p $D/${localstatedir}/lib/dhcp
>      touch $D/${localstatedir}/lib/dhcp/dhcpd.leases
>      touch $D/${localstatedir}/lib/dhcp/dhcpd6.leases
> }
>
> pkg_postinst_dhcp-client() {
>      mkdir -p $D/${localstatedir}/lib/dhcp
> }
>
> pkg_postrm_dhcp-server() {
>      rm -f $D/${localstatedir}/lib/dhcp/dhcpd.leases
>      rm -f $D/${localstatedir}/lib/dhcp/dhcpd6.leases
>
>      if ! rmdir $D/${localstatedir}/lib/dhcp 2>/dev/null; then
>          echo "Not removing ${localstatedir}/lib/dhcp as it is non-empty."
>      fi
> }
>
> pkg_postrm_dhcp-client() {
>      rm -f $D/${localstatedir}/lib/dhcp/dhclient.leases
>      rm -f $D/${localstatedir}/lib/dhcp/dhclient6.leases
>
>      if ! rmdir $D/${localstatedir}/lib/dhcp 2>/dev/null; then
>          echo "Not removing ${localstatedir}/lib/dhcp as it is non-empty."
>      fi
> }
>
> Please help.
>
> Regards,
> Himanshu
>
> From: Robert Yang <liezhi.yang@windriver.com>
> Sent: Wed, 02 Jul 2014 15:22:14
> To: Himanshu Pandey <pandey_himanshu80@rediffmail.com>,
> "openembedded-devel@lists.openembedded.org"
> <openembedded-devel@lists.openembedded.org>
> Subject: Re: [bitbake-devel] Regarding rp-pppoe package
>
>
> On 07/02/2014 05:49 PM, Himanshu Pandey wrote:
>  > Hi,
>  >
>  > I am getting following error when I tried to add and compile rp-pppoe pacakage:
>  >
>
> Please add the full error log, thanks.
>
> Btw, I will go to have dinner now, may reply tomorrow.
>
> // Robert
>
>  > ERROR: oe_runconf failed
>  >
>  > Please help.
>  >
>  > Regards,
>  > Himanshu
>  >
>  >
>  >
>  >
>  > From: Robert Yang <liezhi.yang@windriver.com>
>  > Sent: Wed, 02 Jul 2014 13:16:17
>  > To: Himanshu Pandey <pandey_himanshu80@rediffmail.com>
>  > Cc: openembedded-devel <openembedded-devel@lists.openembedded.org>
>  > Subject: Re: [bitbake-devel] Regarding Net-Snmp package
>  >
>  > I think that this email should go into oe-devel (see the cc) since
>  > the net-snmp is from the meta-networking layer, please see:
>  >
>  > meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.2.bb
>  >
>  > PACKAGES = "${PN}-dbg ${PN}-doc ${PN}-dev ${PN}-staticdev ${PN}-static
> ${PN}-libs \
>  >              ${PN}-mibs ${PN}-server ${PN}-client ${PN}-server-snmpd
>  > ${PN}-server-snmptrapd"
>  >
>  > There is no net-snmp in the PACKAGES, I think that you need use
>  > net-snmp-client or net-snmp-server.
>  >
>  > // Robert
>  >
>  >
>  >
>  >
>  > On 07/02/2014 03:36 PM, Himanshu Pandey wrote:
>  >  > Hi,
>  >  >
>  >  > I am getting following errors:
>  >  >
>  >  > Error: net-snmp not found in the base feeds (genericx86_64 x86_64 noarch any
>  > all).
>  >  >
>  >  > sed: can't read
>  >  >
>  >
> /home/yocto/poky-dora-10.0.0/build/tmp/work/x86_64-poky-linux/net-snmp/5.7.2-r1/image/usr/bin/net-snmp-config:
>  >  > No such file or directory
>  >  >
>  >  > Please help.
>  >  >
>  >  > Regards,
>  >  > Himanshu
>  >  >
>  >  >
>  >  >
>  >
> <http://sigads.rediff.com/RealMedia/ads/click_nx.ads/www.rediffmail.com/signatureline.htm@Middle?>
>  >  > Get your own *FREE* website, *FREE* domain & *FREE* mobile app with Company
>  > email.
>  >  >    *Know More >*
>  >  >
>  >
> <http://track.rediff.com/click?url=___http://businessemail.rediff.com/email-ids-for-companies-with-less-than-50-employees?sc_cid=sign-1-10-13___&cmp=host&lnk=sign-1-10-13&nsrv1=host>
>  >  >
>  >  >
>  >  >
>  >
>  >
> <http://sigads.rediff.com/RealMedia/ads/click_nx.ads/www.rediffmail.com/signatureline.htm@Middle?>
>  > Get your own *FREE* website, *FREE* domain & *FREE* mobile app with Company
> email.
>  >    *Know More >*
>  >
> <http://track.rediff.com/click?url=___http://businessemail.rediff.com/email-ids-for-companies-with-less-than-50-employees?sc_cid=sign-1-10-13___&cmp=host&lnk=sign-1-10-13&nsrv1=host>
>  >
>
> <http://sigads.rediff.com/RealMedia/ads/click_nx.ads/www.rediffmail.com/signatureline.htm@Middle?>
> Get your own *FREE* website, *FREE* domain & *FREE* mobile app with Company email.
> 	*Know More >*
> <http://track.rediff.com/click?url=___http://businessemail.rediff.com/email-ids-for-companies-with-less-than-50-employees?sc_cid=sign-1-10-13___&cmp=host&lnk=sign-1-10-13&nsrv1=host>
>


       reply	other threads:[~2014-07-10  8:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1404294734.S.4360.22202.H.TlJvYmVydCBZYW5nAFJlOiBbYml0YmFrZS1kZXZlbF0gUmVnYXJkaW5nIHJwLXBwcG9lIHBhY2thZ2U_.RU.rfs209, rfs209, 241, 539.f4-235-92.old.replied.1404980271.29674@webmail.rediffmail.com>
2014-07-10  8:38 ` Robert Yang [this message]
     [not found] <1404981539.S.9382.6688.H.TlJvYmVydCBZYW5nAFJlOiBSZWdhcmRpbmcgZGhjcCBwYWNrYWdl.RU.rfs209, rfs209, 44, 425.f4-235-142.old.1404985811.15071@webmail.rediffmail.com>
2014-07-10 10:54 ` Regarding dhcp package Robert Yang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=53BE5119.1050109@windriver.com \
    --to=liezhi.yang@windriver.com \
    --cc=openembedded-devel@lists.openembedded.org \
    --cc=pandey_himanshu80@rediffmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox