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

 
 

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

Submitted by:  None
Submitted on:  Wed 07 Aug 2019 04:15:26 PM UTC  
Votes:  100  
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open

Add a New Comment (Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 100 encouragements so far.

    Only logged-in users can vote.

     

     

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-03-07 nb5p Carbon-Copy- => Added nb5p

    Back to the top


    Powered by Savane 3.5