nbd-2.7.1 contains some important bugfixes. I have started with nbd-2.6.0.ebuild as a base to create a new nbd-2.7.1.ebuild file. The primary changes are that the current kernel header nbd.h must be copied over--not current kernel header version--as discussed in an email with the author and maintainer for nbd; email to be attached with patch. Additionally, a change was required to support transforming the new sgml documentation to man pages. However, I'm having a small problem with permissions. I'm not sure if it has something to do with the fact I just made a new file in my portage directory, I didn't use a CVS'd copy. I'm looking into CVS, but any help would be appreciated. I can do a manual "make install" after it dies and it completed the installation just fine. Reproducible: Always Steps to Reproduce: 1. 2. 3. Actual Results: docbook2man -v nbd-server.1.sgml > nbd-server.1 docbook2man -v nbd-client.8.sgml > nbd-client.8 gcc -O2 -pipe -fomit-frame-pointer -o nbd-server nbd-server.o gcc -O2 -pipe -fomit-frame-pointer -o nbd-client nbd-client.o make[1]: Leaving directory `/var/tmp/portage/nbd-2.7.1/work/nbd-2.7.1' make: Entering directory `/var/tmp/portage/nbd-2.7.1/work/nbd-2.7.1/gznbd' gcc -s -Wall -O2 -pipe -fomit-frame-pointer -DTRACE gznbd.c -o gznbd -lz make: Leaving directory `/var/tmp/portage/nbd-2.7.1/work/nbd-2.7.1/gznbd' >>> Install nbd-2.7.1 into /var/tmp/portage/nbd-2.7.1/image/ category sys-apps make[1]: Entering directory `/var/tmp/portage/nbd-2.7.1/work/nbd-2.7.1' /bin/sh ./mkinstalldirs /var/tmp/portage/nbd-2.7.1/image//usr/bin /bin/install -c nbd-server /var/tmp/portage/nbd-2.7.1/image//usr/bin/nbd-server /bin/sh ./mkinstalldirs /var/tmp/portage/nbd-2.7.1/image//usr/sbin mkdir -p -- /var/tmp/portage/nbd-2.7.1/image//usr/sbin /bin/install -c nbd-client /var/tmp/portage/nbd-2.7.1/image//usr/sbin/nbd-client /bin/sh ./mkinstalldirs /usr/share/man/man1 /bin/install -c -m 644 ./nbd-server.1 /usr/share/man/man1/nbd-server.1 ACCESS DENIED open_wr: /usr/share/man/man1/nbd-server.1 /bin/install: cannot create regular file `/usr/share/man/man1/nbd-server.1': Permission denied make[1]: *** [install-man1] Error 1 make[1]: Leaving directory `/var/tmp/portage/nbd-2.7.1/work/nbd-2.7.1' make: *** [install-am] Error 2 emerge info Portage 2.0.50-r8 (default-amd64-2004.0, gcc-3.3.3, glibc-2.3.3_pre20040529-r0, 2.6.5-gentoo-r1) ================================================================= System uname: 2.6.5-gentoo-r1 x86_64 4 Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.59-r3 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CFLAGS="-O2 -pipe -fomit-frame-pointer" CHOST="x86_64-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="acl acpi amd64 apache2 apm arts avi crypt dedicated divx4linux dvb encode foomaticdb gdbm gif gpm imap imlib jpeg kde ldap libwww maildir mailwrapper mikmod motif mpeg mysql ncurses nls nogcj oggvorbis oss pam pdflib perl png python quicktime readline samba sasl sdl slang snmp speex spell ssl tcpd truetype vda vhosts xml2 xv zlib"
Created attachment 33606 [details] email with nbd maintainer
Created attachment 33607 [details] updated ebuild
Created attachment 33608 [details] Working nbd-2.7.1.ebuild
Created attachment 33609 [details] slightly updated working nbd-2.7.1.ebuild I took the "-v" off of "docbook2man" that I was using for debugging. I forgot to remove that in the previous attachment, oops!
Created attachment 33610 [details] last .ebuild I hope, noticed a weird tab
OK, the problem with the manpage installation was that both "make install" and "dobin" were trying to install the same manpages twice. I worked around this by just using the dobin portage feature.
Created attachment 33612 [details] nbd-2.7.1 with two more minor corrections
version bumped in cvs you didnt say what kernel headers you're using so i didnt add that bit ... i'm using kernel headers from 2.6.6 and didnt get the error you did
I'm using the latest stable linux-headers package: * sys-kernel/linux-headers Latest version available: 2.4.21-r1 Latest version installed: 2.4.21-r1 Size of downloaded files: 27,864 kB Homepage: http://www.kernel.org/ http://www.gentoo.org/ Description: Linux 2.4.21 headers from kernel.org License: GPL-2 I tried to upgrade to a new version once, and it didn't work: http://bugs.gentoo.org/show_bug.cgi?id=50036 At minimum, it should require a linux-kernel package below a certain level. I assume the 2.6.5+ is sufficient, I'm not sure where in the 2.4.x line you need to be. I just rsync'd and it guess it hasn't been mirror out yet for me to look at to comment further. However, I see that linux-header-2.6.6 is now marked "stable" so perhaps that would be a good minimum level.