Skip to content

CMAKE ZM_PERL_SUBPREFIX Slash Issue #677

Closed
@cspenceiv

Description

@cspenceiv

Applicable version: 1.28.0
Build environment: Arch Linux x86_64 ABS

The current INSTALL file states:
"ZM_PERL_SUBPREFIX Use a different directory for the zm perl modules. NOTE: This is a subprefix, e.g. lib will be turned into /lib, default: /perl5"

This explanation is either ambiguous/wrong or the scripts are broken behind the scenes. Consider the following examples generated on an Arch ABS x86_64 setup. Keep in mind that pkg/zoneminder is essentially a build directory.

ZM_PERL_SUBPREFIX=lib/perl5
Places the files that should be at pkg/zoneminder/usr/lib/perl5/ into pkg/zoneminder/usr/tmp/zoneminder/src/ZoneMinder-1.28.0/lib/perl5/. This is way off.

ZM_PERL_SUBPREFIX=/usr/lib/perl5/
Places the files at pkg/zoneminder/usr/usr/lib/perl5/.

ZM_PERL_SUBPREFIX=/lib/perl5
Places the files at pkg/zoneminder/usr/lib/perl5/ as originally desired.

Without code changes, you would want to amend the INSTALL file to say:
"ZM_PERL_SUBPREFIX Use a different directory for the zm perl modules. NOTE: This is a subprefix, e.g. /lib will be turned into <prefix>/lib, default: <prefix>/lib/perl5"

Otherwise, it appears that there is an interesting directory slash bug somewhere.

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