View previous topic :: View next topic |
Author |
Message |
balfa n00b
Joined: 23 Jun 2011 Posts: 12
|
Posted: Mon Feb 24, 2014 11:25 am Post subject: Man Pages Will Not Install |
|
|
Having some issues updating man pages. I get the following errors regardless of version.
Code: | install: will not overwrite just-created '/var/tmp/portage/sys-apps/man-pages-3.57/image//usr/share/man/man3/NAN.3' with 'man3/NAN.3' |
I thought it might of been a parrallel issue so tried -j1 with no luck. Its also installing over nfs so I wondered if the system times were out of sync but they seem to be updating fine from the ntp server. Any ideas?
Code: | cat /var/tmp/portage/sys-apps/man-pages-3.57/temp/build.log
* Package: sys-apps/man-pages-3.57
* Repository: gentoo
* Maintainer: base-system@gentoo.org
* USE: abi_x86_64 amd64 elibc_glibc kernel_linux multilib nls userland_GNU
* FEATURES: preserve-libs sandbox usersandbox
>>> Unpacking source...
>>> Unpacking man-pages-3.57.tar.xz to /var/tmp/portage/sys-apps/man-pages-3.57/work
>>> Unpacking man-pages-gentoo-2.tar.bz2 to /var/tmp/portage/sys-apps/man-pages-3.57/work
>>> Source unpacked in /var/tmp/portage/sys-apps/man-pages-3.57/work
>>> Preparing source in /var/tmp/portage/sys-apps/man-pages-3.57/work/man-pages-3.57 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/sys-apps/man-pages-3.57/work/man-pages-3.57 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/sys-apps/man-pages-3.57/work/man-pages-3.57 ...
>>> Source compiled.
>>> Test phase [not enabled]: sys-apps/man-pages-3.57
>>> Install man-pages-3.57 into /var/tmp/portage/sys-apps/man-pages-3.57/image/ category sys-apps
make -j8 install prefix=/usr DESTDIR=/var/tmp/portage/sys-apps/man-pages-3.57/image/
for i in man?; do \
install -d -m 755 /var/tmp/portage/sys-apps/man-pages-3.57/image//usr/share/man/"$i" || exit $?; \
install -m 644 "$i"/* /var/tmp/portage/sys-apps/man-pages-3.57/image//usr/share/man/"$i" || exit $?; \
done; \
install: will not overwrite just-created '/var/tmp/portage/sys-apps/man-pages-3.57/image//usr/share/man/man3/NAN.3' with 'man3/NAN.3'
make: *** [install] Error 1
emake failed
* ERROR: sys-apps/man-pages-3.57::gentoo failed (install phase):
* (no error message)
*
* Call stack:
* ebuild.sh, line 93: Called src_install
* environment, line 172: Called die
* The specific snippet of code:
* emake install prefix="${EPREFIX}/usr" DESTDIR="${D}" || die;
* * ERROR: sys-apps/man-pages-3.57::gentoo failed (install phase):
* (no error message)
*
* Call stack:
* ebuild.sh, line 93: Called src_install
* environment, line 172: Called die
* The specific snippet of code:
* emake install prefix="${EPREFIX}/usr" DESTDIR="${D}" || die;
*
* If you need support, post the output of `emerge --info '=sys-apps/man-pages-3.57::gentoo'`,
* the complete build log and the output of `emerge -pqv '=sys-apps/man-pages-3.57::gentoo'`.
* The complete build log is located at '/var/tmp/portage/sys-apps/man-pages-3.57/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/sys-apps/man-pages-3.57/temp/environment'.
* Working directory: '/var/tmp/portage/sys-apps/man-pages-3.57/work/man-pages-3.57'
* S: '/var/tmp/portage/sys-apps/man-pages-3.57/work/man-pages-3.57'
|
Code: | emerge --info
Portage 2.2.7 (default/linux/amd64/13.0, gcc-4.7.3, glibc-2.17, 3.10.7-gentoo-r1 x86_64)
=================================================================
System uname: Linux-3.10.7-gentoo-r1-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q6600_@_2.40GHz-with-gentoo-2.2
KiB Mem: 16413844 total, 3865120 free
KiB Swap: 0 total, 0 free
Timestamp of tree: Mon, 24 Feb 2014 08:15:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash: 4.2_p45
dev-java/java-config: 2.1.12-r1
dev-lang/python: 2.7.5-r3, 3.2.5-r3
dev-util/cmake: 2.8.11.2
dev-util/pkgconfig: 0.28
sys-apps/baselayout: 2.2
sys-apps/openrc: 0.12.4
sys-apps/sandbox: 2.6-r1
sys-devel/autoconf: 2.13, 2.69
sys-devel/automake: 1.10.3, 1.11.6, 1.12.6, 1.13.4
sys-devel/binutils: 2.23.1
sys-devel/gcc: 4.6.3, 4.7.3-r1
sys-devel/gcc-config: 1.7.3
sys-devel/libtool: 2.4.2
sys-devel/make: 3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc: 2.17
Repositories: gentoo science gentoo-zh x-portage
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=k8 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/re vdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=k8 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://www.gtlib.gatech.edu/pub/gentoo"
LANG="en_GB.ISO-8859-1"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete -- stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/science /var/lib/layman/gentoo-zh /usr/local/portage"
SYNC="rsync://rsync.uk.gentoo.org/gentoo-portage"
USE="3dnow X acpi amd64 audacious berkdb bzip2 cdparanoia cdr cli cracklib crypt cxx dbus divx dri dvd dvdr exif ffmpeg flac font config fortran gd gdbm gimp gnome gtk hal iconv imagemagick infiniband java javascript jpeg jpeg2k kde mmx modules motif mpi mult ilib multiuser ncurses nls nptl nsplugin nvidia ogg openmp pam pcre pdf png posix qt3support qt4 readline real realmedia romio sa mba session shorten smp sox sse sse2 ssl tcpd theora threads tiff unicode userlocales vorbis win32codecs wmp xine xmms xpm xvid z lib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm80 1 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core so cache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default auth z_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext _filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling st atus unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtc m104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz 633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en_GB en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2 " RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ip set ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS _FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
|
|
|
Back to top |
|
|
balfa n00b
Joined: 23 Jun 2011 Posts: 12
|
Posted: Mon Feb 24, 2014 2:15 pm Post subject: |
|
|
It seems there are two almost identical files NAN.3 files. Seems very strange.
Code: |
cd /var/tmp/portage/sys-apps/man-pages-3.57/work/man-pages-3.57/man3
ls -l NAN.3*
-rw-r--r-- 1 root root 20 Jan 24 11:06 NAN.3
-rw-r--r-- 1 root root 20 Jan 24 11:06 NAN.3
|
However, without the wildcard ls only lists one file.
Code: |
cd /var/tmp/portage/sys-apps/man-pages-3.57/work/man-pages-3.57/man3
ls -l NAN.3
-rw-r--r-- 1 root root 20 Jan 24 11:06 NAN.3
|
|
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21490
|
Posted: Mon Feb 24, 2014 11:17 pm Post subject: |
|
|
What is the output of ls -lb NAN.3* in that directory? |
|
Back to top |
|
|
balfa n00b
Joined: 23 Jun 2011 Posts: 12
|
Posted: Tue Feb 25, 2014 8:52 am Post subject: |
|
|
Hu wrote: | What is the output of ls -lb NAN.3* in that directory? |
Code: |
ls -lb NAN.3*
-rw-r--r-- 1 root root 20 Jan 24 11:06 NAN.3
-rw-r--r-- 1 root root 20 Jan 24 11:06 NAN.3
|
So no funny characters. I can fix the issue by modifying the Makefile and changing the install section to install one file at a time. I'm trying to turn this modification into ebuild in my local repository so I can update the rest of the system again. I also tried creating a patch but I don't think its possible for this.
Changes to Make file from
Code: |
install:
for i in man?; do \
install -d -m 755 $(DESTDIR)$(MANDIR)/"$$i" || exit $$?; \
install -m 644 "$$i"/* $(DESTDIR)$(MANDIR)/"$$i" || exit $$?; \
done; \
|
Changed to
Code: |
install:
for i in man?; do \
install -d -m 755 $(DESTDIR)$(MANDIR)/"$$i" || exit $$?; \
for f in "$$i"/*; do \
install -m 644 "$$f" $(DESTDIR)$(MANDIR)/"$$i" || exit $$?; \
done; \
done; \
|
Not sure why this should work? Any ideas? |
|
Back to top |
|
|
cwr Veteran
Joined: 17 Dec 2005 Posts: 1969
|
Posted: Tue Feb 25, 2014 6:09 pm Post subject: |
|
|
It shouldn't be possible to create two files in the same directory with the same name.
If there are two such files, the directory is corrupt and needs rebuilding (easier to
remove and replace it).
If there are two NAN.3 files in the tar archive then it's a weird tar problem; the 3.45
archive looks ok. If not, it is as you say a weird ebuild problem; is it worth trying to
unpack tar with the keep (-k) flag to prevent overwriting? I don't know if the install
flags can be set to do that.
Will |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21490
|
Posted: Thu Feb 27, 2014 12:12 am Post subject: |
|
|
balfa wrote: | Hu wrote: | What is the output of ls -lb NAN.3* in that directory? |
Code: |
ls -lb NAN.3*
-rw-r--r-- 1 root root 20 Jan 24 11:06 NAN.3
-rw-r--r-- 1 root root 20 Jan 24 11:06 NAN.3
|
So no funny characters. | I concur with cwr. The situation shown is impossible, barring filesystem corruption or some subtlety that creates non-unique names that falsely look unique. We know that however they appear, shell processing makes them identical. What is the output of ls -li NAN.3* ; ls -la | od -tx1z?
balfa wrote: | I can fix the issue by modifying the Makefile and changing the install section to install one file at a time. I'm trying to turn this modification into ebuild in my local repository so I can update the rest of the system again. I also tried creating a patch but I don't think its possible for this. | Fixing the problem is better than serializing the install to work around it.
balfa wrote: | Not sure why this should work? Any ideas? | Install only detects duplicates when you pass them all at once. Your modified version probably overwrites the first version with the second. |
|
Back to top |
|
|
balfa n00b
Joined: 23 Jun 2011 Posts: 12
|
Posted: Thu Feb 27, 2014 3:56 pm Post subject: |
|
|
Thanks HU and cwr. I'm still none the wiser to the cause of this. I've at least been able to update the system around this for now but I would still like to get to the bottom of it.
ls -li NAN.3* ; ls -la | od -tx1z
http://pastebin.com/39LHKfjV |
|
Back to top |
|
|
666threesixes666 Veteran
Joined: 31 May 2011 Posts: 1248 Location: 42.68n 85.41w
|
Posted: Thu Feb 27, 2014 4:28 pm Post subject: |
|
|
i vaguely remember the package man-db requiring updatedb to install new man pages. idk... maybe next time you state what man solution you're running. |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21490
|
Posted: Fri Feb 28, 2014 3:13 am Post subject: |
|
|
Your ls -li appears to be missing. The ls -la seems to indicate you do not have any files named NAN.3.
666threesixes666 wrote: | i vaguely remember the package man-db requiring updatedb to install new man pages. idk... maybe next time you state what man solution you're running. |
How is his choice of man relevant when the failure comes from install and all available output indicates a seemingly impossible directory structure? |
|
Back to top |
|
|
666threesixes666 Veteran
Joined: 31 May 2011 Posts: 1248 Location: 42.68n 85.41w
|
Posted: Fri Feb 28, 2014 4:20 am Post subject: |
|
|
most packages ship their own man pages. "sys-apps/man-pages" lead me to believe that it is a man-db package. looking further, LFS ships with man pages & man db. man vs man db are just viewers as your saying hu. so man-pages are a section of stage3?
my final comments are /var could be completely full and then not completely unpack, resulting in missing files, and breaking compiles. idk dont take my forum posts as gospel.
choice of man would make a difference if 1 requres man-pages and if the other did not. though i guess both man and man-db require man-pages |
|
Back to top |
|
|
TomWij Retired Dev
Joined: 04 Jul 2012 Posts: 1553
|
Posted: Fri Feb 28, 2014 8:37 am Post subject: |
|
|
Remove both files, install again; if it still happens, can you then please show us the contents of /var/db/pkg/sys-apps/man-pages-3.57/CONTENTS? |
|
Back to top |
|
|
cwr Veteran
Joined: 17 Dec 2005 Posts: 1969
|
Posted: Fri Feb 28, 2014 9:59 am Post subject: |
|
|
Both man-1.6 and man-db are man page _readers_; they don't install the man pages
themselves. I can't recall which program man-1.6 uses to index man pages, but man-db
uses updatedb, configured by /etc/updatedb.conf
Generally each program installs its own man pages, but there are also collections of pages
for eg: Linux system calls.
See 'man man'
Will |
|
Back to top |
|
|
666threesixes666 Veteran
Joined: 31 May 2011 Posts: 1248 Location: 42.68n 85.41w
|
Posted: Fri Feb 28, 2014 10:35 am Post subject: |
|
|
http://man7.org/linux/man-pages/
personally ive just seen too many online man pages to concern myself with having them installed locally. i let them lurk and do not actively destroy them on my systems. if that var is not a full partition id be curious as to why it wont install for them.... |
|
Back to top |
|
|
balfa n00b
Joined: 23 Jun 2011 Posts: 12
|
Posted: Fri Feb 28, 2014 10:49 am Post subject: |
|
|
Quote: | Your ls -li appears to be missing. The ls -la seems to indicate you do not have any files named NAN.3. |
Apologies ls -li NAN.3*
Code: | 557725814 -rw-r--r-- 1 root root 20 Feb 28 10:11 NAN.3
|
Quote: | my final comments are /var could be completely full and then not completely unpack, resulting in missing files, and breaking compiles. idk dont take my forum posts as gospel. |
Quote: | if that var is not a full partition id be curious as to why it wont install for them.... |
/var is definitely not full. I am updating a diskless system. Var is normally mounted as tmpfs but for updates I have to chroot and mount /var etc over nfs. The filesystem and /var has over 12TB free.
Quote: | Remove both files, install again; if it still happens, can you then please show us the contents of /var/db/pkg/sys-apps/man-pages-3.57/CONTENTS? |
Still happens despite removing files/directories/unmerging etc.
http://pastebin.com/hxw7bkT0
Only one entry for the NAN.3 file!
Quote: | state what man solution you're running. |
man-db is used man-1.6 is not. |
|
Back to top |
|
|
TomWij Retired Dev
Joined: 04 Jul 2012 Posts: 1553
|
Posted: Fri Feb 28, 2014 12:18 pm Post subject: |
|
|
Upon a closer look, this is the ebuild trying to install it twice; I think the second occurrence gets a different name with a non-displayed character, as it might write to that first before moving it in place.
Can you file this bug at Gentoo Bugzilla? Read here how to write a bug report, for more in-depth details and troubleshooting steps you can read our Bugzilla HOWTO. |
|
Back to top |
|
|
balfa n00b
Joined: 23 Jun 2011 Posts: 12
|
|
Back to top |
|
|
|