From: Terry K. <kl...@kl...> - 2008-05-08 06:55:28
|
not quite... instead of 'files' folder should be (another) squid folder [tmk@digital packages]$ tree squid squid |-- squid | |-- fix_epoll_check.patch | `-- squid.init |-- squid-native_2.6.STABLE14.bb |-- squid_2.6.STABLE14.bb the squid native recipe was attached as well. just put both recipes in the top level squid directory as above. squid_2.6.STABLE14.bb calls squid-native_2.6.STABLE14.bb solely to create the correct (native) cf_gen file. you may want to check epoll is being handled properly (set to no in ac_cv_epoll_works=${ac_cv_epoll_works=no} I enabled it in the Angstrom build kernel on the Connex I was using. history here... http://www.mail-archive.com/ope...@li.../msg00079.html Terry On Wed, 2008-05-07 at 23:04 -0700, ta0001at wrote: > I followed your instructions.. so this is my directory structure > > user.collection > - packages/ > - squid/ > - squid.bb > - files/ > - squid.init > - fix_epoll_check.patch > > Is my structure right? I notice that the recipe file has this line DEPENDS = > "squid-native-${PV}". So wat do i need to do about the squid-native > dependency? > > Thanks. > > > > Terry Kemp-2 wrote: > > > > The squid recipe in gumstix collection doesn't work. > > Attached is the .dev branch recipe... > > > > mkdir in user.collection/packages/squid > > put bbs in there then make squid folder under this and put patch file > > and init file there > > > > > > you also need to add... > > > > # squid > > ac_cv_af_unix_large_dgram=${ac_cv_af_unix_large_dgram=yes} > > ac_cv_func_setresuid=${ac_cv_func_setresuid=yes} > > ac_cv_func_va_copy=${ac_cv_func_va_copy=yes} > > ac_cv_func___va_copy=${ac_cv_func___va_copy=yes} > > ac_cv_epoll_works=${ac_cv_epoll_works=yes} > > > > to gumstix-oe/org.openembedded.snapshot/site/common-glibc > > > > Terry > > > > On Wed, 2008-05-07 at 02:54 -0700, ta0001at wrote: > >> Hi, > >> > >> I tried the command "bitbake squid" to generate the squid ipk file to be > >> installed on my gumstix. However, the errors below appeared. > >> > >> NOTE: Resolving any missing task queue dependencies > >> ERROR: Required build target 'squid' has no buildable providers. > >> Missing or unbuildable dependency chain was: ['squid', 'aio'] > >> > >> The content of the bb file is as below : > >> > >> DESCRIPTION = "Squid is a caching proxy for the Web supporting HTTP, > >> HTTPS, > >> FTP, and more" > >> LICENSE = "GPLv2" > >> > >> DEPENDS = "aio" > >> > >> SRC_URI = > >> "http://www.squid-cache.org/Versions/v2/2.6/squid-2.6.STABLE14.tar.bz2" > >> > >> inherit autotools > >> > >> So how do i resolve the dependency issue? Thanks. > > > > --- squid-2.6.STABLE14.orig/configure.in 2007-07-15 16:21:59.000000000 > > +0200 > > +++ squid-2.6.STABLE14/configure.in 2008-03-25 17:15:53.000000000 +0100 > > @@ -2416,7 +2416,7 @@ > > > > if test -n "$SELECT_TYPE"; then > > : # Nothing to do > > -elif test "$ac_cv_epoll_works" = "yes" ; then > > +elif test "$ac_cv_func_epoll_ctl" = "yes" && "$ac_cv_epoll_works" = "yes" > > ; then > > SELECT_TYPE="epoll" > > elif test "$ac_cv_func_kqueue" = "yes" ; then > > SELECT_TYPE="kqueue" > > > > > > DESCRIPTION = "Squid is a caching proxy for the Web supporting HTTP, > > HTTPS, FTP, and more" > > LICENSE = "GPLv2" > > PR = "r1" > > DEPENDS = "squid-native-${PV}" > > > > SRC_URI = "http://www.squid-cache.org/Versions/v2/2.6/squid-${PV}.tar.bz2 > > \ > > file://fix_epoll_check.patch;patch=1 \ > > file://squid.init" > > > > inherit autotools update-rc.d > > > > EXTRA_OECONF = "--disable-epoll --disable-nls" > > > > logdir = ${localstatedir}/log/squid > > EXTRA_OEMAKE = "\ > > DEFAULT_CACHE_LOG=${logdir}/cache.log \ > > DEFAULT_ACCESS_LOG=${logdir}/access.log \ > > DEFAULT_STORE_LOG=${logdir}/store.log \ > > DEFAULT_PID_FILE=${localstatedir}/run/squid.pid \ > > DEFAULT_SWAP_DIR=${localstatedir}/spool/squid \ > > " > > > > INITSCRIPT_NAME = "squid" > > > > do_configure_append() { > > sed -i -e 's|./cf_gen |${STAGING_BINDIR_NATIVE}/cf_gen |g' src/Makefile > > } > > > > do_install_append() { > > install -d ${D}${sysconfdir}/init.d > > install -m 755 ${WORKDIR}/squid.init ${D}${sysconfdir}/init.d/squid > > } > > > > # this packages the languages better and saves some space, installs > > # English as errors default and the others in locale package > > > > FILES_${PN} += " ${datadir}/errors/English/* \ > > ${datadir}/icons/* \ > > ${datadir}/mib.txt" > > > > FILES_${PN}-locale += " ${datadir}/errors/* " > > > > inherit native autotools > > > > SRC_URI = "http://www.squid-cache.org/Versions/v2/2.6/squid-${PV}.tar.bz2" > > S = "${WORKDIR}/squid-${PV}" > > > > inherit native autotools > > > > do_stage() { > > install -d ${STAGING_BINDIR_NATIVE} > > install -m 0755 src/cf_gen ${STAGING_BINDIR_NATIVE}/cf_gen > > } > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > > Don't miss this year's exciting event. There's still time to save $100. > > Use priority code J8TL2D2. > > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > > _______________________________________________ > > gumstix-users mailing list > > gum...@li... > > https://lists.sourceforge.net/lists/listinfo/gumstix-users > > > > > |