reproduce-devel
[Top][All Lists]
Advanced

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

[sr #110738] configure gets confused with a build dir with the same base


From: Victor R. Ruiz
Subject: [sr #110738] configure gets confused with a build dir with the same base name as the current project
Date: Wed, 5 Oct 2022 21:01:23 -0400 (EDT)

URL:
  <https://savannah.nongnu.org/support/?110738>

                 Summary: configure gets confused with a build dir with the
same base name as the current project
                 Project: Maneage
               Submitter: rvr
               Submitted: jue 06 oct 2022 01:01:20
                Category: None
                Priority: 5 - Normal
                Severity: 3 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
        Operating System: GNU/Linux


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: jue 06 oct 2022 01:01:20       By: Victor R. Ruiz <rvr>
Steps to reproduce


$ git clone https://git.maneage.org/project.git
$ cd project
$ ./project configure
...
Please enter the top build directory: ../project-build/


Expected result:
The directory is accepted, as it is not under the source-directory.

Current result:

 ** The build-directory cannot be under the source-directory.


The problem lies in comparison done in lines
939-940:reproduce/software/shell/configure.sh


 936         # If it is given, make sure it isn't a subdirectory of the
source
 937         # directory.
 938         if ! [ x"$bdir" = x ]; then
 939             if echo "$bdir/" \
 940                     | grep '^'"$currentdir" 2> /dev/null > /dev/null;
then


Using «grep '^'"$currentdir/"» fixes the problem (at least here).







    _______________________________________________________

Reply to this item at:

  <https://savannah.nongnu.org/support/?110738>

_______________________________________________
Mensaje enviado vía Savannah
https://savannah.nongnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]