Re: "Failed to compile regexp" trying to run Stow on Ubuntu

Sean Hammond <[email protected]> Sun, 3 Jan 2016 00:14:36 +0000
Newsgroups gmane.comp.gnu.stow.general
Message-ID <[email protected]>
On 02/01/16 10:59, Adam Spiers wrote:
> On Sat, Jan 02, 2016 at 02:02:44AM +0000, seanh wrote:
>> Can anyone get Stow working on Ubuntu 14.04?
>>
>> $ sudo apt-get install stow
>> $ stow -vd ~/stow my_package
>> Failed to compile regexp: Unmatched ) in regex; marked by <-- HERE in
>> m/^( <-- HERE $/ at /usr/share/perl5/Stow.pm line 1347, <REGEXPS> line
>> 1.
> Thanks for the report.  That's very weird, and I cannot reproduce it
> in a 14.04 docker container.  Please can you describe your tree
> structure, e.g. via the output of `tree ~/stow', and also could you
> replace `die' with `confess' on line 1350 and share the output after
> rerunning stow?

Thanks! I didn't want to reveal the contents of my tree, so I tried to
create a minimal example that would reproduce the problem. In the
process I discovered the cause: my package contained a
.stow-local-ignore file that had accidentally been encrypted. After
fixing this, Stow 2.2.0 from Ubuntu 14.04 seems to be working fine.

On Ubuntu 15.10 Stow 2.2.0 from the Ubuntu package is giving me the
warning "Possible precedence issue with control flow operator at
/usr/share/perl5/Stow.pm line 1736", but it appears to work fine despite
this warning.