Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 54483 - updated ebuild for nbd-2.7.1
Summary: updated ebuild for nbd-2.7.1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL: https://www.hardcore-gaming.net/gentoo/
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2004-06-19 19:34 UTC by Ryan Earl
Modified: 2004-06-19 22:41 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
email with nbd maintainer ([Nbd] Problems getting nbd-2.7.x to compile.eml,3.40 KB, message/rfc822)
2004-06-19 19:35 UTC, Ryan Earl
Details
updated ebuild (nbd-2.7.1.ebuild,914 bytes, text/plain)
2004-06-19 19:37 UTC, Ryan Earl
Details
Working nbd-2.7.1.ebuild (nbd-2.7.1.ebuild,1.06 KB, text/plain)
2004-06-19 20:11 UTC, Ryan Earl
Details
slightly updated working nbd-2.7.1.ebuild (nbd-2.7.1.ebuild,1.06 KB, text/plain)
2004-06-19 20:23 UTC, Ryan Earl
Details
last .ebuild I hope, noticed a weird tab (nbd-2.7.1.ebuild,1.06 KB, text/plain)
2004-06-19 20:26 UTC, Ryan Earl
Details
nbd-2.7.1 with two more minor corrections (nbd-2.7.1.ebuild,1.06 KB, text/plain)
2004-06-19 21:11 UTC, Ryan Earl
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ryan Earl 2004-06-19 19:34:48 UTC
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"
Comment 1 Ryan Earl 2004-06-19 19:35:59 UTC
Created attachment 33606 [details]
email with nbd maintainer
Comment 2 Ryan Earl 2004-06-19 19:37:50 UTC
Created attachment 33607 [details]
updated ebuild
Comment 3 Ryan Earl 2004-06-19 20:11:52 UTC
Created attachment 33608 [details]
Working nbd-2.7.1.ebuild
Comment 4 Ryan Earl 2004-06-19 20:23:50 UTC
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!
Comment 5 Ryan Earl 2004-06-19 20:26:23 UTC
Created attachment 33610 [details]
last .ebuild I hope, noticed a weird tab
Comment 6 Ryan Earl 2004-06-19 20:31:24 UTC
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.
Comment 7 Ryan Earl 2004-06-19 21:11:16 UTC
Created attachment 33612 [details]
nbd-2.7.1 with two more minor corrections
Comment 8 SpanKY gentoo-dev 2004-06-19 22:15:31 UTC
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
Comment 9 Ryan Earl 2004-06-19 22:41:52 UTC
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.