Coder Social home page Coder Social logo

Comments (12)

pali avatar pali commented on August 24, 2024

Hello! In pull request #148 is a fix for this problem. README.pod will be now installed as lib/DBD/MariaDB/README.pod file. Similarly autogenerated manpage.

README.pod in top level directory on github is a starting point and provides details about project. Bugs in ExtUtils::MakeMakers should not be reason to stop providing useful files.

from dbd-mariadb.

pali avatar pali commented on August 24, 2024

Could you please check that pull request if it fixes that problem?

from dbd-mariadb.

Grinnz avatar Grinnz commented on August 24, 2024

I thought that the README.pod was intended for the github repo, not as documentation. If you want to make it a documentation readme, it should include:

=head1 NAME

DBD::MariaDB::README - ...

from dbd-mariadb.

Grinnz avatar Grinnz commented on August 24, 2024

And also it should be stored in lib/DBD/MariaDB/README.pod, thus not needing this workaround.

from dbd-mariadb.

Grinnz avatar Grinnz commented on August 24, 2024

My suggestion was simply to not include it in the CPAN distribution, leaving it for github, using e.g. MANIFEST.SKIP.

from dbd-mariadb.

pali avatar pali commented on August 24, 2024

Is there any problem to have README file also in distribution on CPAN? I guess that downstream packagers for different Linux distribution would like to see some simple README file in released tarball.

Storing README file in different directory (like lib/DBD/MariaDB as you suggested) would not work. All software store README file in released tarball in top level directory. Nobody would be trying to find main README file deeply in some third level subdirectory.

from dbd-mariadb.

michal-josef-spacek avatar michal-josef-spacek commented on August 24, 2024

@pali Note: There is README file in my distributions. But in form of text, not POD. I think you can add creating of README from README.pod and README.pod skip in distribution.

from dbd-mariadb.

Grinnz avatar Grinnz commented on August 24, 2024

Is there any problem to have README file also in distribution on CPAN? I guess that downstream packagers for different Linux distribution would like to see some simple README file in released tarball.

Yes, README.pod specifically is subject to the ExtUtils::MakeMaker bug and cannot be included at the top level.

Storing README file in different directory (like lib/DBD/MariaDB as you suggested) would not work. All software store README file in released tarball in top level directory. Nobody would be trying to find main README file deeply in some third level subdirectory.

You are proposing to install it to DBD::MariaDB::README, so it should be stored at that location in the release, and also have the appropriate NAME section so metacpan displays it as documentation.

from dbd-mariadb.

pali avatar pali commented on August 24, 2024

Yes, README.pod specifically is subject to the ExtUtils::MakeMaker bug and cannot be included at the top level.

It should not be affected after applying #148 change.

from dbd-mariadb.

Grinnz avatar Grinnz commented on August 24, 2024

I guess my question is: what is the purpose of this readme? If it is for github, as I originally thought, then it only needs to be added to MANIFEST.SKIP. If it is documentation, then it should be moved to the correct location in lib/ and allowed to be shown on metacpan. If it is for github and the released tarball, but not as documentation, then it should not be installed.

from dbd-mariadb.

pali avatar pali commented on August 24, 2024

It is top level README file like in any other software distributed in tarball and visible by as main page on github. Therefore it cannot be in subdirectory and cannot be in MANIFEST.SKIP (as it would not be included in release tarball).

from dbd-mariadb.

choroba avatar choroba commented on August 24, 2024

I think the proposed solution is acceptable, if maybe not standard. It's unfortunate that we can't specify "use the general rules, but handle these particular files differently" - currently, one either uses the general rules, or has to specify the install location for each file manually.

from dbd-mariadb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.