bugGforth - Bugs: bug #64444, Building from git should NOT...


bug #64444: Building from git should NOT install swig in /usr/local!

Submitter:  None
Submitted:  Tue 18 Jul 2023 06:16:42 PM UTC
Category:  None Severity:  3 - Normal
Item Group:  None Status:  In Progress
Privacy:  Public Assigned to:  paysan
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup

Tue 01 Aug 2023 04:46:04 PM UTC, comment #2: 

That works, but it leaves a bunch of files owned by root in ./local/share/swig/3.0.9. 

Since you are installing it into a subdirectory, you don't actually need the sudo in install-swig.sh:

diff --git a/install-swig.sh b/install-swig.sh
index 07852f1c..0f9e0559 100755
--- a/install-swig.sh
+++ b/install-swig.sh
@@ -3,4 +3,4 @@ which sudo || alias sudo=eval
 which nproc || alias nproc="echo 1"

 git clone https://github.com/GeraldWodni/swig.git
-(cd swig && ./autogen.sh && ./configure "$@" && make -j`nproc` && sudo make install)
+(cd swig && ./autogen.sh && ./configure "$@" && make -j`nproc` &&  make install)

T. Kurt Bond <tkurtbond>
Wed 19 Jul 2023 11:52:06 PM UTC, comment #1: 

I added code in git head so that install-dep.sh installs swig locally to the Gforth directory and adds that bin directory to $PATH.  Give it a try, I agree that this should be fixed.

Bernd Paysan <paysan>
Group administrator
Tue 18 Jul 2023 06:16:42 PM UTC, original submission:  

The script install-dep.sh installs swig in /usr/local, overwriting whatever is there.

Some packaging systems, notably brew at least, install all their files in /usr/local, and it's a common place for locally built packages to be installed.  Overwriting something installed by the user is a bad idea.

It should instead be installed as a subdirectory of the build directory, and either PATH should be modified, or explicit paths to executables should be used.



(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by tkurtbond (Posted a comment)
  • -email is unavailable- added by paysan (Posted a comment)

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.


    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-07-19 paysan StatusNone In Progress
        Assigned toNone paysan

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code