I am very glad to have Leafnode 2 in the portage tree, but only very recently got the chance to test it. I am very confused about the location of the spool directory, however. The leafnode2 makefile seems to make it clear that the default spool directory is /var/ spool/news - I can see nothing in the ebuild (/usr/portage/net-news/leafnode/leafnode- 2.0.0_alpha20030621.ebuild) to suggest that there is any attempt to over-write this. Yet when I emerge this ebuild, it seems to be setup to use /var/lib/spool/news/ Note also the pkg_postinst() stage of the ebuild, which appears to explicitly refer to the / var/spool/news/ directory hierarchy. I have also checked the Leafnode mailing list & can find no mention of this issue - I don't believe it to be upstream. I regret that my poor understanding of Bash & ebuilding does not enable me to debug this further. Since I'm opening a bug on this one, can I mention that a version bump might be in order..? Current snapshot is 2.0.0.alpha20030728a The attached output from the emerge seems to illustrate the behaviour I encountered. I note that fetchnews *does* look in /var/lib/spool/news/interesting.groups when run, so it isn't just the case that that's an "extra" directory. I don't mind if /var/lib/spool/news/ *is* the correct direcory, but I'd just like to know that that's the case, and that changes won't be made to the ebuild in the future, before mounting a new hard-drive in my server. Thanks, Stroller. Reproducible: Always Steps to Reproduce: 1. 2. 3. stroller@gentoo stroller $ emerge info Portage 2.0.48-r1 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r4) ================================================================= System uname: 2.4.20-Stroller i686 Pentium III (Katmai) GENTOO_MIRRORS="http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/ http://ftp.gentoo.skynet.be/pub/gentoo/ ftp://ftp.gentoo.skynet.be/pub/gentoo/ rsync://rsync.gentoo.skynet.be/gentoo/ http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ rsync://ftp.belnet.be/gentoo/ http://ftp.easynet.nl/mirror/gentoo/ ftp://ftp.easynet.nl/mirror/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo rsync://ftp.snt.utwente.nl/gentoo http://gentoo.linux.no/ ftp://gentoo.linux.no/pub/gentoo/ http://trumpetti.atm.tut.fi/gentoo/ ftp://trumpetti.atm.tut.fi/gentoo/ rsync://trumpetti.atm.tut.fi/gentoo/ http://sunsite.cnlab-switch.ch/ftp/mirror/gentoo/ ftp://sunsite.cnlab-switch.ch/mirror/gentoo/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://www.fhh.opensource-mirror.de/gentoo.org/ ftp://ftp.fhh.opensource-mirror.de/pub/gentoo.org/ rsync://rsync.fhh.opensource-mirror.de/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ rsync://linux.rz.ruhr-uni-bochum.de/gentoo/ http://darkstar.ist.utl.pt/gentoo/ ftp://darkstar.ist.utl.pt/pub/gentoo/ http://ftp.caliu.info/pub/gentoo/ ftp://ftp.caliu.info/pub/gentoo/ http://www.ibiblio.org/gentoo ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo http://csociety-ftp.ecn.purdue.edu/pub/gentoo/ ftp://csociety-ftp.ecn.purdue.edu/pub/gentoo/ rsync://csociety-ftp.ecn.purdue.edu/pub/gentoo/ ftp://mirror.iawnet.sandia.gov/pub/gentoo/ ftp://ftp.ussg.iu.edu/pub/linux/gentoo" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config / usr/kde/3/share/config /var/bind" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="" USE="x86 apm crypt foomaticdb gif jpeg libg++ mad mmx ncurses nls pdflib png spell truetype xml2 zlib slang readline svga java gpm tcpd pam libwww ssl perl python 3dfx aalib apache2 imap kerberos krb4 maildir md5sum samba usb -oss -3dnow -arts -avi - cups -encode -gtk -imlib -kde -gnome -mikmod -motif -mpeg -oggvorbis -opengl -qt - quicktime -sdl -X -xmms -xv -gdbm -berkdb" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-mcpu=pentium3 -O3 -pipe" CXXFLAGS="-O2 -mcpu=i686 -pipe" ACCEPT_KEYWORDS="x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" FEATURES="sandbox ccache" stroller@gentoo stroller $
Created attachment 15323 [details] Full output from emerge emerge -uv /usr/portage/net-news/leafnode/leafnode-2.0.0_alpha20030621.ebuild
Created attachment 15407 [details] leafnode-2.0.0_alpha20030621.ebuild - Proposed Revision? Well, seems like I can get this to install where I want it just by changing the one line. I still don't know if this is compatible with Gentoo's intended directory structure, however. Sorry to enclose the whole ebuild - I don't know how to do diffs & it's 3:57am - too late to learn.
Oh! And I'm still requesting a version bump to http://www-dt.e-technik.uni-dortmund.de/~ma/leafnode/beta/leafnode- 2.0.0.alpha20030731a.tar.bz2 Ta, Stroller.
I've adapted the changes in your ebuild with Spider's suggestions in -dev and bumped the version to the current latest (20031028). Please give 'er a whirl and lemme know if anything's off.
$ sudo emerge /usr/portage/net-news/leafnode/leafnode-2.0.0_alpha20031028.ebuild Password: Calculating dependencies ...done! >>> emerge (1 of 1) net-news/leafnode-2.0.0_alpha20031028 to / !!! No message digest entry found for file "leafnode-2.0.0.alpha20031028a.tar.bz2." !!! Most likely a temporary problem. Try 'emerge rsync' again later. !!! If you are certain of the authenticity of the file then you may type !!! the following to generate a new digest: !!! ebuild /usr/portage/category/package/package-version.ebuild digest $ Created digest & emerging now.
OK... won't install here. compaq root # emerge /usr/portage/net-news/leafnode/leafnode-2.0.0_alpha20031028.ebuild Calculating dependencies ...done! >>> emerge (1 of 1) net-news/leafnode-2.0.0_alpha20031028 to / >>> md5 src_uri ;-) leafnode-2.0.0.alpha20031028a.tar.bz2 >>> Unpacking source... >>> Unpacking leafnode-2.0.0.alpha20031028a.tar.bz2 to /var/tmp/portage/leafnode-2.0.0_alpha20031028/work >>> Source unpacked. !!! ERROR: net-news/leafnode-2.0.0_alpha20031028 failed. !!! Function econf, Line 340, Exitcode 1 !!! no configure script found compaq root # If I diff 'em I can see that this line from the previous version has been removed: S="${WORKDIR}/leafnode-2.0.0.alpha20030621b" I also find that: compaq root # ls /var/tmp/portage/leafnode-2.0.0_alpha20031028/ build-info temp work compaq root # ls /var/tmp/portage/leafnode-2.0.0_alpha20031028/work/ leafnode-2.0.0.alpha20031028a compaq root # ls /var/tmp/portage/leafnode-2.0.0_alpha20031028/work/leafnode-2.0.0.alpha20031028a/ AUTHORS fetchnews_check_date.c mastrncpy.c COPYING filterfile.5.in mergesort.3 COPYING.LGPL... My best guess is that the tarball from upstream has changed for this version, and unpacks into a different subdirectory, but I'm not quite sure how to proceed. I'm guessing that `man 5 ebuild` should tell me how to handle this, but I'm too clueless. Let me know if you want access to my box in order to sort it. I'm also a little concerned about the new slotting. Leafnode2 probably should NOT exist - well, maybe should not be run - on the same system as a Leafnode1 installation. See 3. UPDATE FROM PREVIOUS VERSIONS at <http://www-dt.e-technik.uni-dortmund.de/~ma/leafnode/beta/leafnode-readme.txt>. The formats of some files have changed - I think sections 3.1 & sections 3.2 are most relevant here, as they're the only ones that apply to the version of Leafnode1 in the Portage tree. I think that maybe Leafnode2 should have the same slotting but an "ewarn" message to tell users to run `texpire -r`
Please change the ebuild to: [...] IUSE="ipv6" S="${WORKDIR}/leafnode-2.0.0.alpha20031028a" src_compile() { econf \ `use_enable ipv6 IPv6` \ --enable-runas-user=news \ --enable-spooldir=/var/spool/news || die "econf failed" emake || die "emake failed" } Have a lot of fun
And some more: pkg_postinst() { mkdir -p /var/spool/news/{leaf.node,failed.postings,interesting.groups,out.going} mkdir -p /var/spool/news/message.id/{0,1,2,3,4,5,6,7,8,9}{0,1,2,3,4,5,6,7,8,9}{0,1,2,3,4,5,6,7,8, 9} chown -R news:news /var/spool/news zcat /usr/share/doc/${P}/README_FIRST.gz | while read line ; do einfo $line done einfo einfo "DO MAKE SURE THAT YOU RUN texpire -r IF YOU HAVE ARTICLES IN THE SPOOL" }
More precise: pkg_postinst() { mkdir -p ${ROOT}/var/spool/news/{leaf.node,failed.postings,interesting.groups,out.going} mkdir -p ${ROOT}/var/spool/news/message.id/{0,1,2,3,4,5,6,7,8,9}{0,1,2,3,4,5,6,7,8,9}{0,1,2,3,4,5,6,7,8,9} chown -R news:news ${ROOT}/var/spool/news zcat ${ROOT}/usr/share/doc/${P}/README_FIRST.gz | while read line ; do einfo $line done einfo einfo "DO MAKE SURE THAT YOU RUN texpire -r IF YOU HAVE ARTICLES IN THE SPOOL" } *OR* the another maybe better solution (but ${D} doesn't work inside pkg_*inst): inside the src_install something like: keepdir ${D}/var/spool/news/{leaf.node,failed.postings,interesting.groups,out.going} keepdir ${D}/var/spool/news/message.id/{0,1,2,3,4,5,6,7,8,9}{0,1,2,3,4,5,6,7,8,9}{0,1,2,3,4,5,6,7,8,9}
Of course it is: keepdir /var/spool/news/{leaf.node,failed.postings,interesting.groups,out.going} keepdir /var/spool/news/message.id/{0,1,2,3,4,5,6,7,8,9}{0,1,2,3,4,5,6,7,8,9}{0,1,2,3,4,5,6,7,8,9} Have a nice day. If i post here again, i will send a complete ebuild.
An ebuild for a new version in http://bugs.gentoo.org/show_bug.cgi?id=36361
*** Bug 36361 has been marked as a duplicate of this bug. ***
Changes merged.