<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>118015</bug_id>
          
          <creation_ts>2006-01-06 03:48 0000</creation_ts>
          <short_desc>Can&apos;t install app-text/acroread: &quot;chmod: missing operand after 755&quot; - Installation fails when INSTALLDIR is a symlink</short_desc>
          <delta_ts>2006-01-17 11:45:40 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>2005.1</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>askwar@digitalprojects.com</reporter>
          <assigned_to>printing@gentoo.org</assigned_to>
          <cc>printing@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>askwar@digitalprojects.com</who>
            <bug_when>2006-01-06 03:48:20 0000</bug_when>
            <thetext>Tried to install acroread 7.0.1.1 and it failed:

&gt;&gt;&gt; /opt/Acrobat7/Reader/HowTo/DEU/images -&gt; Images/
chmod: missing operand after </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>askwar@digitalprojects.com</who>
            <bug_when>2006-01-06 03:48:20 0000</bug_when>
            <thetext>Tried to install acroread 7.0.1.1 and it failed:

&gt;&gt;&gt; /opt/Acrobat7/Reader/HowTo/DEU/images -&gt; Images/
chmod: missing operand after 755
chmod --help gibt weitere Informationen.

!!! ERROR: app-text/acroread-7.0.1.1 failed.


I&apos;m using a locale of de_DE, thus AdobeReader_deu-7.0.1-1.i386.rpm is used. The error happens with USE=-nls and thus AdobeReader_enu-7.0.1-1.i386.rpm as well.



There are also some more benign errors reg. chmod shown at the start of the emerge:

&gt;&gt;&gt; Install acroread-7.0.1.1 into /Gentoo/portage/tmp/portage/acroread-7.0.1.1/image/ category app-text
chown: -R --dereference requires either -H or -L
chown: -R --dereference requires either -H or -L
man:

QA Notice: the following files contain runtime text relocations


[12:35:12 vz6tml@dewup-ww02:/opt] $ emerge -vpt acroread ; emerge info

These are the packages that I would merge, in reverse order:

Calculating dependencies ...done!
[ebuild   R   ] app-text/acroread-7.0.1.1  USE=&quot;ldap nls nsplugin&quot; 0 kB

Total size of downloads: 0 kB
Portage 2.1_pre3-r1 (default-linux/x86/2005.1, gcc-3.4.5, glibc-2.3.5-r3, 2.6.14-gentoo-r6.05 i686)
=================================================================
System uname: 2.6.14-gentoo-r6.05 i686 Intel(R) Xeon(TM) CPU 2.40GHz
Gentoo Base System version 1.12.0_pre13
distcc[18265] (dcc_set_trace_from_env) ERROR: failed to open logfile /var/log/distcc.log: Permission denied [disabled]
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5, 2.4.2
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS=&quot;x86 ~x86&quot;
AUTOCLEAN=&quot;yes&quot;
CBUILD=&quot;i686-pc-linux-gnu&quot;
CFLAGS=&quot;-O2 -march=pentium4 -pipe&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control&quot;
CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/terminfo /etc/env.d&quot;
CXXFLAGS=&quot;-O2 -march=pentium4 -pipe&quot;
DISTDIR=&quot;/Gentoo/portage/distfiles&quot;
FEATURES=&quot;autoconfig buildpkg ccache collision-protect distlocks sandbox sfperms strict&quot;
GENTOO_MIRRORS=&quot;        http://localhost/~vz6tml/gentoo-files http://dewup-ww02.dewup.europe.delphiauto.net/~vz6tml/gentoo-files     http://localhost/gentoo-files/ http://dewup-ww02.dewup.europe.delphiauto.net/gentoo-files/   http://localhost/~vz6tml/gentoo-files/ http://cifs-srvr1.europe.delphiauto.net/~vz6tml/Misc._Software/Gentoo/        ftp://pandemonium.tiscali.de/pub/gentoo/        http://localhost:60081/pub/Mirrors/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/      http://localhost:60080/pub/gentoo/ http://pandemonium.tiscali.de/pub/gentoo/         http://localhost:60082/mirror/rsync.gentoo.org/gentoo/ http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/  ftp://pandemonium.tiscali.de/pub/gentoo/     http://localhost:60083/pub/linux/distributions/gentoo/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/     http://localhost:60084/ http://distfiles.gentoo.org/ &quot;
LANG=&quot;de_DE.UTF-8&quot;
LINGUAS=&quot;de&quot;
MAKEOPTS=&quot;-j4&quot;
PKGDIR=&quot;/Gentoo/portage/packages&quot;
PORTAGE_TMPDIR=&quot;/Gentoo/portage/tmp&quot;
PORTDIR=&quot;/Gentoo/portage/tree&quot;
PORTDIR_OVERLAY=&quot;/Gentoo/portage/local-tree/misc&quot;
SYNC=&quot;rsync://localhost:10873/gentoo-portage&quot;
USE=&quot;x86 7zip GAPING_SECURITY_HOLE X acl apache apache2 artworkextra async audiofile avi bash-completion berkdb bitmap-fonts bzip2 ccache ck-server crypt css cups curl dbus dvd encode exif expat fam fat ffmpeg firefox font-server foomaticdb gd gdbm gif gmail gmailtimestamps gmp gnome gpm gs gtk gtk2 hal hfs hpn i8x0 iconv id3 idn imagemagick imlib imlib2 java javascript jfs jikes jpeg junit kde kdeenablefinal lame lcms ldap libedit libg++ libwww linuxthreads-tls lm_sensors lynxkeymap lzo lzw lzw-tiff mad mailbox maildir matroska mhash mmx mng motif mozilla mozsvg mp3 mpeg mpm-worker msdav mysql mysqli ncurses network nfs nis nls no-old-linux no-suexec nodrm nomusic nptl ntlm offensive ogg oggvorbis pam pcre pdflib perl php png posix postfix python qt quicktime rar rdesktop readline real recode reiserfs ruby samba sapdb screen sdl sendfile sftp slang smp sockets spell sse sse2 ssl stream subtitles symlink sysvipc tcpd tiff transcode truetype truetype-fonts udev unicode usb userlocales utf8 vim vim-pager vim-with-x vorbis webdav win32codecs xattr xfs xine xinetd xml2 xmms xv xvid yp zlib elibc_glibc kernel_linux linguas_de userland_GNU&quot;
Unset:  ASFLAGS, CTARGET, LC_ALL, LDFLAGS</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>metalgod@gentoo.org</who>
            <bug_when>2006-01-07 11:36:46 0000</bug_when>
            <thetext>please try the 7.0.5 that i commited in CVS.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>askwar@digitalprojects.com</who>
            <bug_when>2006-01-07 16:41:00 0000</bug_when>
            <thetext>Confirmed. 7.0.5 works.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>askwar@digitalprojects.com</who>
            <bug_when>2006-01-08 23:39:47 0000</bug_when>
            <thetext>Reopening.

The following warning still shows:

&gt;&gt;&gt; Install acroread-7.0.5 into /Gentoo/portage/tmp/portage/acroread-7.0.5/image/ category app-text
chown: -R --dereference requires either -H or -L
chown: -R --dereference requires either -H or -L

Further, there&apos;s now the following new warning:

dodoc: Browser/Browser_Plugin_HowTo.txt does not exist
man:
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>askwar@digitalprojects.com</who>
            <bug_when>2006-01-09 00:36:15 0000</bug_when>
            <thetext>Created an attachment (id=76597)
Patch against 7.0.5.ebuild, which allows it to be installed when INSTALLDIR is a symlink

Reopening for sure.

On a different machine, installation still is not possible:

&gt;&gt;&gt; /usr/lib/nsbrowser/plugins/nppdf.so -&gt; /opt/netscape/plugins/nppdf.so
chmod: missing operand after 755
chmod --help gibt weitere Informationen.

!!! ERROR: app-text/acroread-7.0.5 failed.

I suppose the error is because of the following lines in the ebuild:

pkg_postinst () {
    # fix wrong directory permissions (bug #25931)
    find ${INSTALLDIR} -type d | xargs chmod 755 || die

Seems that the find doesn&apos;t return anything.

Reason for this error:

[08:44:09 vz6tml@dewup-ww02:~] $ ls -la /opt/Acrobat7
lrwxrwxrwx  1 root root 16  6. Jan 12:25 /opt/Acrobat7 -&gt; /0d/opt/Acrobat7


To fix the issue, the following should be run:

    find ${INSTALLDIR}/. -type d | xargs chmod 755 || die

Or maybe:

    find ${INSTALLDIR} -type d -follow | xargs chmod 755 || die

Attaching a patch which fixes it in the first way (/.). It also fixes the other small error with chown.

There&apos;s still some other minor issue, though - the Browser_Plugin_HowTo.txt doesn&apos;t get installed anymore. Reason: it&apos;s now in a subdirectory which is named according to the nls version the user has set. Ie.: If the user is using AdobeReader_deu-7.0.5-1.i386.rpm, it will be in a DEU directory; if the user is using AdobeReader_fra-7.0.5-1.i386.rpm, it will be in a FRA directory etc.pp.. </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>askwar@digitalprojects.com</who>
            <bug_when>2006-01-12 10:19:36 0000</bug_when>
            <thetext>Why is that not bug not fixed in -r1 (according to the changelog, at least)?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>genstef@gentoo.org</who>
            <bug_when>2006-01-17 11:45:40 0000</bug_when>
            <thetext>sorry, I guess we have just forgotten this. I have now changed the ebuild. Thank you</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>76597</attachid>
            <date>2006-01-09 00:36 0000</date>
            <desc>Patch against 7.0.5.ebuild, which allows it to be installed when INSTALLDIR is a symlink</desc>
            <filename>acroread-7.0.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