Closed
Bug 1143005
Opened 10 years ago
Closed 10 years ago
Add parameter to checksetup.pl that generates a cpanfile usable by utilities such as cpanm for installing Perl dependencies
Categories
(Bugzilla :: Installation & Upgrading, enhancement)
Tracking
()
RESOLVED
FIXED
Bugzilla 6.0
People
(Reporter: dkl, Assigned: dkl)
References
Details
Attachments
(1 file, 3 obsolete files)
8.29 KB,
patch
|
dylan
:
review+
|
Details | Diff | Splinter Review |
This could replace or the current Build.PL script that is used now. Useful for continuous integration testing as well such as Travis CI and TaskCluster.
Thoughts?
dkl
Assignee | ||
Comment 1•10 years ago
|
||
Attachment #8577266 -
Flags: review?(dylan)
![]() |
||
Comment 2•10 years ago
|
||
Comment on attachment 8577266 [details] [diff] [review]
1143005_1.patch
>+++ b/Bugzilla/Install/Requirements.pm
>+sub export_cpanfile {
>+ print $requires;
It looks weird to me to print the rules to STDOUT. IMO, nobody expects this behavior. You should print the output to some given (hardcoded) filename.
Moreover, is it intentional to omit all DBD:: modules?
Assignee | ||
Comment 3•10 years ago
|
||
(In reply to Frédéric Buclin from comment #2)
> Comment on attachment 8577266 [details] [diff] [review]
> 1143005_1.patch
>
> >+++ b/Bugzilla/Install/Requirements.pm
>
> >+sub export_cpanfile {
>
> >+ print $requires;
>
> It looks weird to me to print the rules to STDOUT. IMO, nobody expects this
> behavior. You should print the output to some given (hardcoded) filename.
My original intention was to have it where the admin could redirect it where needed if not the default location. As the majority of people will put it in the root directory of the code base, I will change the patch to just put it there and they can move it if desired.
> Moreover, is it intentional to omit all DBD:: modules?
I did think about that but since we support several DBs and I did not want cpanfile to include all by default, I assumed it would be better for them to install one manually once checksetup.pl is ran and complains.
Thoughts on best behavior for the last issue?
dkl
Assignee | ||
Comment 4•10 years ago
|
||
Changes:
1. Added cpanfile to .htaccess to disallow reading
2. Now writes out to the cpanfile file name in the document root by default.
dkl
Attachment #8577266 -
Attachment is obsolete: true
Attachment #8577266 -
Flags: review?(dylan)
Attachment #8578162 -
Flags: review?(dylan)
![]() |
||
Comment 5•10 years ago
|
||
(In reply to David Lawrence [:dkl] from comment #3)
> I did think about that but since we support several DBs and I did not want
> cpanfile to include all by default, I assumed it would be better for them to
> install one manually once checksetup.pl is ran and complains.
They should at least be recommended, IMO, except Oracle which is a pain to install.
About your patch, you forgot to update POD in checksetup.pl, see http://www.bugzilla.org/docs/tip/en/html/api/checksetup.html.
Assignee | ||
Comment 6•10 years ago
|
||
Thanks for the comments LpSolit. New patch with changes:
1. Updated POD for checksetup.pl
2. Added DBD modules as 'features' that can be enabled. For example the following command line will install all normal features but only the 'mysql'
database:
# cpanm --installdeps --with-recommends --with-all-features --without-feature oracle --without-feature sqlite --without-feature pg .
dkl
Attachment #8578162 -
Attachment is obsolete: true
Attachment #8578162 -
Flags: review?(dylan)
Attachment #8579641 -
Flags: review?(dylan)
Comment 7•10 years ago
|
||
Comment on attachment 8579641 [details] [diff] [review]
1143005_3.patch
Review of attachment 8579641 [details] [diff] [review]:
-----------------------------------------------------------------
r- patch doesn't cleanly apply.
Think this patch should remove the Build.PL?
Attachment #8579641 -
Flags: review?(dylan) → review-
Assignee | ||
Comment 8•10 years ago
|
||
Attachment #8579641 -
Attachment is obsolete: true
Attachment #8585508 -
Flags: review?(dylan)
Comment 9•10 years ago
|
||
Comment on attachment 8585508 [details] [diff] [review]
1143005_4.patch
Review of attachment 8585508 [details] [diff] [review]:
-----------------------------------------------------------------
r=dylan
I used this to install deps for testing the REST versioning patch, it seems pretty complete.
Attachment #8585508 -
Flags: review?(dylan) → review+
Updated•10 years ago
|
Flags: approval?
Assignee | ||
Comment 10•10 years ago
|
||
To ssh://gitolite3@git.mozilla.org/bugzilla/bugzilla.git
1fa1aa5..a29f798 master -> master
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
![]() |
||
Comment 11•10 years ago
|
||
I added cpanfile to .gitignore so that git leaves this file alone.
To ssh://gitolite3@git.mozilla.org/bugzilla/bugzilla.git
7adedfc..b37a1c6 master -> master
You need to log in
before you can comment on or make changes to this bug.
Description
•