bugGNU Stow - Bugs: bug #56727, 'dot-' preprocessing fails for...

 
 

bug #56727: 'dot-' preprocessing fails for dot-directories

Submitter:  None
Submitted:  Wed 07 Aug 2019 04:15:26 PM UTC
Votes: 150
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  aspiers
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 07 Apr 2024 09:54:03 PM UTC, comment #4: 

v2.4.0 is released with this fix!  See https://ftp.gnu.org/gnu/stow/

I'm just updating the website and preparing an announcement email.

Adam Spiers <aspiers>
Group administrator
Fri 05 Apr 2024 01:03:44 PM UTC, comment #3: 

This bug is fixed in the `dev` branch, and I will do my utmost to cut a release this weekend.

For more details, see here: https://github.com/aspiers/stow/pull/70#issuecomment-2035884421

Adam Spiers <aspiers>
Group administrator
Sat 07 Mar 2020 03:25:35 PM UTC, comment #2: 

Hope this issue will be fixed soon

nb5p
Thu 08 Aug 2019 05:49:35 PM UTC, comment #1: 

This is a reported issue in the GitHub mirror here.

Anonymous
Wed 07 Aug 2019 04:15:26 PM UTC, original submission:  

Stow version: stow (GNU Stow) version 2.3.1
Perl version: This is perl 5, version 30, subversion 0 (v5.30.0) built for x86_64-linux-thread-multi
System info: Linux archlinux 5.2.6-arch1-1-ARCH #1 SMP PREEMPT Sun Aug 4 14:58:49 UTC 2019 x86_64 GNU/Linux

Description: stow fails to link files within dot-directories when using the 'dot-' prefix with the --dotfile option if the dot-directory already exists in the target directory

Steps to reproduce:
```
# GNU bash, version 5.0.7(1)-release (x86_64-pc-linux-gnu)
$ cd $HOME
$ mkdir .foo/
$ mkdir dotfiles/
$ cd dotfiles/
$ mkdir -p foobar/dot-foo/
$ touch foobar/dot-foo/bar
$ stow --dotfiles --verbose=3 foobar/  # exit code 2
stow dir is $HOME/dotfiles
stow dir path relative to target $HOME is dotfiles
cwd now $HOME
cwd restored to $HOME/dotfiles
cwd now $HOME
Planning stow of package foobar...
Stowing contents of dotfiles/foobar (cwd=$HOME)
Stowing dotfiles / foobar / .foo
Stowing contents of dotfiles/foobar/.foo (cwd=$HOME)
stow: ERROR: stow_contents() called with non-directory path: dotfiles/foobar/.foo
$ mv foobar/{dot-foo,.foo}/
$ stow --verbose=3 foobar/  # works when not using 'dot-' preprocessing
stow dir is $HOME/dotfiles
stow dir path relative to target $HOME is dotfiles
cwd now $HOME
cwd restored to $HOME/dotfiles
cwd now $HOME
Planning stow of package foobar...
Stowing contents of dotfiles/foobar (cwd=$HOME)
Stowing dotfiles / foobar / .foo
Stowing contents of dotfiles/foobar/.foo (cwd=$HOME)
Stowing dotfiles / foobar / .foo/bar
LINK: .foo/bar => ../dotfiles/foobar/.foo/bar
Planning stow of package foobar... done
cwd restored to $HOME/dotfiles
Processing tasks...
cwd now $HOME
cwd restored to $HOME/dotfiles
Processing tasks... done
$ stat -c %F $HOME/.foo/
directory
$ stat -d '%F %N' $HOME/.foo/bar
symbolic link '$HOME/.foo/bar' -> '../dotfiles/foobar/.bar'
```

Anonymous

 

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

Attach Files:
   
   
Comment:
   

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 aspiers (Posted a comment)
  • -email is unavailable- added by samuelhnrq (Voted in favor of this item)
  • -email is unavailable- added by nb5p (Posted a comment)
  • -email is unavailable- added by nb5p (Voted in favor of this item)
  •  

    There are 150 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 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2024-04-07 aspiers StatusNone Fixed
        Assigned toNone aspiers
        Open/ClosedOpen Closed
    2021-10-26 samuelhnrq Carbon-Copy- Added samuelhnrq
    2020-03-07 nb5p Carbon-Copy- Added nb5p

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code