Re: Permission denied while %makeinstall

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Circa 2005-09-12 20:10 dixit Andreas Radke:

: Jim Knoble schrieb:
: 
: >Circa 2005-09-11 11:59 dixit Bob Proulx:
: >
: >: Tony Earnshaw wrote:
: >: > > Andreas Radke wrote:
: >: > > ln: Erzeugen der symbolischen Verknüpfung ,,doc" zu ,,../xfce4/doc":
: >: > > Permission denied
: >: > > [...]
: >: >
: >: > The commas don't look particularly healthy to me.
: >: 
: >: I agree.
: >
: >The commas are an attempt to use localized double quotes with the ASCII
: >character set.  [...]
: 
: I have tried that out. I set locale via draklocale to english and still
: get the same permission error.

Heh.  It was not my intent to imply that you should try that, but it's
good proof for those who don't understand ASCII-fizierte deutsche
Zitatzeichen.  My intent was to say: "Pay no attention to the commas;
they're most likely an artifact of the localized message from ln, not
a bug in ln's implementation.  Look elsewhere."

Looking at your original set of error messages, the problem is likely
something to do with the way the Makefile (or Makefile.in or
Makefile.am) is written:

--------------------
test -z "/usr/share/xfce4/doc/it" || mkdir -p -- "/home/andyrtr/daten/rpm-build/tmp/xffm-root/usr/share/xfce4/doc/it"
         ^^^^^^^^^^^^^^^^^^^^^^^
/usr/bin/install -c -m 644 'xffm.html' '/home/andyrtr/daten/rpm-build/tmp/xffm-root/usr/share/xfce4/doc/it/xffm.html'
[...]
( cd /usr/share/xffm; \
  ^^^^^^^^^^^^^^^^^^
  rm -f doc; ln -s ../xfce4/doc doc; \
 )
ln: Erzeugen der symbolischen Verknüpfung ,,doc" zu ,,../xfce4/doc": Permission denied
--------------------

Note the parts which i have underlined with carets ('^') above.  Those
directories are in your actual filesystem, not in the RPM package's
build root.  For example, '/usr/share/xffm' should probably be
'/home/andyrtr/daten/rpm-build/tmp/xffm/root/usr/share/xffm'.

Find the spot in the Makefile bzw. Makefile.in bzw. Makefile.am where
the "test -z ..." and "( cd ..." lines appear and change them to use the
proper directory.  Make a patch and apply it at the proper point in your
specfile.

Alternatively, you may be able to modify the '%makeinstall' line in your
specfile to set Makefile variables to the proper values.  For example,
if a line similar to the following appears in the Makefile:

    XFFM_DATA_DIR = /usr/share/xffm

then you make be able to do the following in your specfile:

    %makeinstall XFFM_DATA_DIR="${RPM_BUILD_ROOT}/usr/share/xffm"

That way, you won't have to modify a Makefile an generate a patch---or,
worse, modify a Makefile.am, generate a patch, and run the right
versions of automake, autoconf, etc. in the right order.  There are more
complex ways to do that, but it'll give a you a start in the right
direction.

Viel glück!

-- 
jim knoble  |  jmknoble@xxxxxxxxx  |  http://www.pobox.com/~jmknoble/
(GnuPG fingerprint: 809F:09B9:9686:D035:4AB0::9455:124B:0A62:DD6A:76D6)
 .....................................................................
 :"The methods now being used to merchandise the political candidate :
 : as though he were a deodorant positively guarantee the electorate :
 : against ever hearing the truth about anything."   --Aldous Huxley :
 :...................................................................:

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux