Menu

#302 Missing $(DESTDIR) before ${bindir} in src/Makefile.am installcheck

closed-fixed
3
2018-04-29
2018-01-31
Jiri Kucera
No

Hi,

is src/Makefile.am, target installcheck, there should be $(DESTDIR)${bindir} instead of just ${bindir}.
Proposed patch:
~~~
From 9c0842680a4a46ef64990d6c40de05aa30286d54 Mon Sep 17 00:00:00 2001
From: Jiri Kucera jkucera@redhat.com
Date: Thu, 25 Jan 2018 21:53:30 +0100
Subject: [PATCH] Added $(DESTDIR) in front of ${bindir} so proper sox binary
is invoked during tests


src/Makefile.am | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/Makefile.am b/src/Makefile.am
index 7cceaaf..caf9864 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -194,6 +194,6 @@ loc:
# would run the test suite, but an uninstalled libltdl build cannot
# currently load its formats and effects, so the checks would fail.
installcheck:

  • $(srcdir)/tests.sh --bindir=${bindir} --builddir=${builddir} --srcdir=${srcdir}
  • $(srcdir)/testall.sh --bindir=${bindir} --srcdir=${srcdir}
  • $(srcdir)/tests.sh --bindir=$(DESTDIR)${bindir} --builddir=${builddir} --srcdir=${srcdir}
  • $(srcdir)/testall.sh --bindir=$(DESTDIR)${bindir} --srcdir=${srcdir}

~~~

Cheers,
Jirka

Discussion

  • Jiri Kucera

    Jiri Kucera - 2018-01-31

    Patch again:

    From 9c0842680a4a46ef64990d6c40de05aa30286d54 Mon Sep 17 00:00:00 2001
    From: Jiri Kucera <jkucera@redhat.com>
    Date: Thu, 25 Jan 2018 21:53:30 +0100
    Subject: [PATCH] Added $(DESTDIR) in front of ${bindir} so proper sox binary
     is invoked during tests
    
    ---
     src/Makefile.am | 4 ++--
     1 file changed, 2 insertions(+), 2 deletions(-)
    
    diff --git a/src/Makefile.am b/src/Makefile.am
    index 7cceaaf..caf9864 100644
    --- a/src/Makefile.am
    +++ b/src/Makefile.am
    @@ -194,6 +194,6 @@ loc:
     # would run the test suite, but an uninstalled libltdl build cannot
     # currently load its formats and effects, so the checks would fail.
     installcheck:
    
    -   $(srcdir)/tests.sh --bindir=${bindir} --builddir=${builddir} --srcdir=${srcdir}
    -   $(srcdir)/testall.sh --bindir=${bindir} --srcdir=${srcdir}
    +   $(srcdir)/tests.sh --bindir=$(DESTDIR)${bindir} --builddir=${builddir} --srcdir=${srcdir}
    +   $(srcdir)/testall.sh --bindir=$(DESTDIR)${bindir} --srcdir=${srcdir}
    
     
  • Mans Rullgard

    Mans Rullgard - 2018-04-26
    • labels: Makefile --> Makefile, patch
    • status: open --> pending-fixed
    • assigned_to: Mans Rullgard
     
  • Mans Rullgard

    Mans Rullgard - 2018-04-26

    Thanks. In future, please attach patches. The inline display mangles them.

     
  • Mans Rullgard

    Mans Rullgard - 2018-04-29
    • status: pending-fixed --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB