<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p><br>
    </p>
    <pre class="moz-signature" cols="72">regards
Aravinda</pre>
    <div class="moz-cite-prefix">On 05/12/2016 02:33 PM, Niels de Vos
      wrote:<br>
    </div>
    <blockquote
      cite="mid:20160512090335.GO21137@ndevos-x240.usersys.redhat.com"
      type="cite">
      <pre wrap="">On Thu, May 12, 2016 at 02:01:43PM +0530, Aravinda wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">I checked the Makefile.am and configure.ac of glupy, looks good to me. I
don't think we have issue in glupy.

If we run make install with DESTDIR empty then
`${DESTDIR}/usr/lib/python2.6/site-packages/gluster` will become
/usr/lib/python2.6/site-packages/gluster. So we will get that error.

For example,
    DESTDIR= make install
    or
    make install DESTDIR=

Can we check how we are executing smoke test?
</pre>
      </blockquote>
      <pre wrap="">
I think it is this script, no DESTDIR in there:

  <a class="moz-txt-link-freetext" href="https://github.com/gluster/glusterfs-patch-acceptance-tests/blob/master/build.sh">https://github.com/gluster/glusterfs-patch-acceptance-tests/blob/master/build.sh</a>

My guess is that the --prefix ./configure option is not honoured?</pre>
    </blockquote>
    DESTDIR will not get substitute during ./configure, it is used
    during make install. Once we run ./autogen.sh and ./configure(with
    whatever prefix), generated Makefile for glupy is<br>
    <br>
    <br>
    install-pyglupyPYTHON: $(pyglupy_PYTHON)<br>
        @$(NORMAL_INSTALL)<br>
        @list='$(pyglupy_PYTHON)'; dlist=; list2=; test -n
    "$(pyglupydir)" || list=; \<br>
        if test -n "$$list"; then \<br>
          echo " $(MKDIR_P) '$(DESTDIR)$(pyglupydir)'"; \<br>
          $(MKDIR_P) "$(DESTDIR)$(pyglupydir)" || exit 1; \<br>
        fi; \<br>
        for p in $$list; do \<br>
          if test -f "$$p"; then b=; else b="$(srcdir)/"; fi; \<br>
          if test -f $$b$$p; then \<br>
            $(am__strip_dir) \<br>
            dlist="$$dlist $$f"; \<br>
            list2="$$list2 $$b$$p"; \<br>
          else :; fi; \<br>
        done; \<br>
        for file in $$list2; do echo $$file; done | $(am__base_list) | \<br>
        while read files; do \<br>
          echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pyglupydir)'"; \<br>
          $(INSTALL_DATA) $$files "$(DESTDIR)$(pyglupydir)" || exit $$?;
    \<br>
        done || exit $$?; \<br>
        if test -n "$$dlist"; then \<br>
          $(am__py_compile) --destdir "$(DESTDIR)" \<br>
                            --basedir "$(pyglupydir)" $$dlist; \<br>
        else :; fi<br>
    <br>
    If you run `make install` without destdir then it will install to
    machine's global path depending on prefix.(If this is the case then
    their is genuine "permission denied" error in the machine I think.<br>
    <br>
    If we are packaging or installing to custom target, we should pass
    DESTDIR. <br>
    <br>
    DESTDIR=/build/install make install<br>
    <br>
    <blockquote
      cite="mid:20160512090335.GO21137@ndevos-x240.usersys.redhat.com"
      type="cite">
      <pre wrap="">

Niels


</pre>
      <blockquote type="cite">
        <pre wrap="">
regards
Aravinda

On 05/12/2016 12:29 PM, Niels de Vos wrote:
</pre>
        <blockquote type="cite">
          <pre wrap="">On Thu, May 12, 2016 at 01:14:07AM -0400, Raghavendra Gowdappa wrote:
</pre>
          <blockquote type="cite">
            <pre wrap=""><a class="moz-txt-link-freetext" href="https://build.gluster.org/job/smoke/27674/console">https://build.gluster.org/job/smoke/27674/console</a>

06:09:06 /bin/mkdir: cannot create directory `/usr/lib/python2.6/site-packages/gluster': Permission denied
06:09:06 make[6]: *** [install-pyglupyPYTHON] Error 1
</pre>
          </blockquote>
          <pre wrap="">This definitely is a bug in the installation of glupy. Nothing should
get installed under /usr, teh installation process is instructed to do
its install under /build/install.

Did someone file a bug for this yet?

Thanks,
Niels

</pre>
          <blockquote type="cite">
            <pre wrap="">06:09:06 make[5]: *** [install-am] Error 2
06:09:06 make[4]: *** [install-recursive] Error 1
06:09:06 make[3]: *** [install-recursive] Error 1
06:09:06 make[2]: *** [install-recursive] Error 1
06:09:06 make[1]: *** [install-recursive] Error 1
06:09:06 make: *** [install-recursive] Error 1
06:09:06 Build step 'Execute shell' marked build as failure
06:09:06 Finished: FAILURE

regards,
Raghavendra
_______________________________________________
Gluster-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Gluster-devel@gluster.org">Gluster-devel@gluster.org</a>
<a class="moz-txt-link-freetext" href="http://www.gluster.org/mailman/listinfo/gluster-devel">http://www.gluster.org/mailman/listinfo/gluster-devel</a>


_______________________________________________
Gluster-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Gluster-devel@gluster.org">Gluster-devel@gluster.org</a>
<a class="moz-txt-link-freetext" href="http://www.gluster.org/mailman/listinfo/gluster-devel">http://www.gluster.org/mailman/listinfo/gluster-devel</a>
</pre>
          </blockquote>
        </blockquote>
        <pre wrap="">
</pre>
      </blockquote>
    </blockquote>
    <br>
  </body>
</html>