Skip to content

Alien::Build::MM: clean_install not called for system installs #417

Description

@shawnlaffan

Possibly not a big issue, but it seems the clean_install option is not run when doing a system install.

I assume it should?

Example below uses Alien::libtiff given it can be installed as a system dep.

Tested using Ubuntu 20.04.6 LTS with the libtiff-dev package installed.

ALIEN="Alien::libtiff"
ALIEN_DIR="Alien-libtiff"

eval "$(perl -I$HOME/foo/lib/perl5 -Mlocal::lib=$HOME/foo)"

ALIEN_INSTALL_TYPE=share perl Makefile.PL && make install

touch ~/foo/lib/perl5/x86_64-linux/auto/share/dist/${ALIEN_DIR}/unclean.txt
ls ~/foo/lib/perl5/x86_64-linux/auto/share/dist/${ALIEN_DIR}/unclean.txt

make clean 
ALIEN_INSTALL_TYPE=share perl Makefile.PL && make install
ls ~/foo/lib/perl5/x86_64-linux/auto/share/dist/${ALIEN_DIR}/unclean.txt
#  is gone

touch ~/foo/lib/perl5/x86_64-linux/auto/share/dist/${ALIEN_DIR}/unclean.txt
ls ~/foo/lib/perl5/x86_64-linux/auto/share/dist/${ALIEN_DIR}/unclean.txt

make clean
ALIEN_INSTALL_TYPE=system perl Makefile.PL && make install
ls ~/foo/lib/perl5/x86_64-linux/auto/share/dist/${ALIEN_DIR}/unclean.txt
#  still there, as are the bin, lib etc dirs

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions