CPANPLUS::Hacking



CPANPLUS::Hacking

NAME
DESCRIPTION
OBTAINING CPANPLUS
INSTALLING CPANPLUS
CONFIGURING CPANPLUS
RUNNING CPANPLUS FROM DEVELOPMENT ENVIRONMENT
RUNNING CPANPLUS TESTS
FINDING BUGS
SUPPLYING PATCHES

NAME

CPANPLUS::Hacking

DESCRIPTION

This document attempts to describe how to develop with the CPANPLUS environment most easily, how certain things work and why.

This is basically a quick-start guide to people who want to add features or patches to CPANPLUS .

OBTAINING CPANPLUS

Checkout CPANPLUS from its Subversion repository at http://oss.dwim.org/cpanplus−devel <http://oss.dwim.org/cpanplus-devel> .

INSTALLING CPANPLUS

CPANPLUS follows the standard perl module installation process:

    perl Makefile.PL
    make
    make test
    make install

CONFIGURING CPANPLUS

When running "perl Makefile.PL" you will be prompted to configure. If you have already done so, and merely wish to update the "Makefile", simply run:

    perl Makefile.PL JFDI=1

This will keep your configuration intact. Note however, if there are changes to the default configuration file "Config.pm−orig", you should either delete your current config file and reconfigure, or patch your config file from the new entries in "Config.pm−orig".

RUNNING CPANPLUS FROM DEVELOPMENT ENVIRONMENT

If you’d rather not install the development version to your "site_perl" directory, that’s no problem. You can set your "PERL5LIB" environment variable to CPANPLUS ’ "lib" directory, and you can run it from there.

RUNNING CPANPLUS TESTS

Tests are what tells us if CPANPLUS is working. If a test is not working, try to run it explicitly like this:

    perl −I/path/to/cpanplus/lib t/XX_name_of_test.t 1

The extra ’1’ makes sure that all the messages and errors (they might be errors we’re testing for!) are being printed rather than kept quiet. This is a great way to find out the context of any failures that may occur.

If you believe this test failure proves a bug in CPANPLUS , the long output of the test file is something we’d like to see alongside your bug report.

FINDING BUGS

Sometimes you might find bugs in CPANPLUS ’ behaviour. If you encounter these in a development snapshot, we’d appreciate a complete patch (as described below in the " SENDING PATCHES " section.

If it’s way over your head, then of course reporting the bug is always better than not reporting it at all. Before you do so though, make sure you have the latest development snapshot, and the bug still persists there. If so, report the bug to this address:

    cpanplus−devel@lists.sourceforge.net

A good "patch" would have the following characteristics:
Problem description

Describe clearly what the bug is you found, and what it should have done instead.

Program demonstrating the bug

Show us how to reproduce the bug, in a simple of a program as possible

[ OPTIONAL ] A patch to the test suite to test for the bug

Amend our test suite by making sure this bug will be found in this, and future versions of CPANPLUS (see " SUPPLYING PATCHES ")

[ OPTIONAL ] A patch to the code + tests + documentation

Fix the bug, update the docs & tests. That way your bug will be gone forever :)

SUPPLYING PATCHES

Patches are a good thing, and they are welcome. Especially if they fix bugs you’ve found along the way, or that others have reported.

We prefer patches in the following format:

In "diff −u" or "diff −c" format

From the root of the snapshot

Including patches for code + tests + docs

Sent per mail to cpanplus−devel@lists.sourceforge.net

With subject containing "[PATCH]" + description of the patch

You will always be informed if a patch is applied or rejected, and in case of rejection why that is (perhaps you can tweak the patch to have it accepted after all).



More Linux Commands

manpages/monop.1.html
monop(1) - Mono Class Outline Viewer - Linux manual page....
Monop is a tool that allows you to view the outline of a class. You can see the signature of each member of the class. Use monop to explore 1.0 assemblies, use

manpages/gnutls_x509_crl_get_raw_issuer_dn.3.html
gnutls_x509_crl_get_raw_issuer_dn(3) - API function.........
This function will return a pointer to the DER encoded DN structure and the length. RETURNS a negative error code on error, and (0) on success. SINCE 2.12.0 REP

manpages/gnutls_dh_set_prime_bits.3.html
gnutls_dh_set_prime_bits(3) - API function - Linux man page
This function sets the number of bits, for use in an Diffie-Hellman key exchange. This is used both in DH ephemeral and DH anonymous cipher suites. This will se

manpages/mvwvline_set.3ncurses.html
mvwvline_set(3ncurses) - create curses borders or lines usin
The border_set and wborder_set functions draw a border around the edges of the current or specified window. These functions do not change the cursor position, a

manpages/avahi.hosts.5.html
avahi.hosts(5) - avahi-daemon static host name file.........
/etc/avahi/hosts is a file which may be used to define static host name to IP address mappings for multicast DNS. This is especially useful when publishing DNS-

manpages/set_item_init.3menu.html
set_item_init(3menu) - set hooks for automatic invocation by
These functions make it possible to set hook functions to be called at various points in the automatic processing of input event codes by menu_driver. The funct

manpages/aclocal-1.13.1.html
aclocal-1.13(1) manual page for aclocal 1.13.4 (Man Page)...
Generate aclocal.m4 by scanning configure.ac or configure.in OPTIONS --automake-acdir=DIR directory holding automake-provided m4 files --system-acdir=DIR direct

manpages/audit_request_status.3.html
audit_request_status(3) - Request status of the audit system
audit_request_status requests that the kernel send status structure describing various settings. The audit_status structure is as follows: struct audit_status {

manpages/systemd-readahead.8.html
systemd-readahead(8) Disk read ahead logic - Linux man page
systemd-readahead-collect.service is a service that collects disk usage patterns at boot time. systemd-readahead-replay.service is a service that replays this a

manpages/curl_easy_strerror.3.html
curl_easy_strerror(3) - return string describing error code
The curl_easy_strerror() function returns a string describing the CURLcode error code passed in the argument errornum. AVAILABILITY This function was added in l

manpages/yaz-url.1.html
yaz-url(1) - YAZ URL fetch utility - Linux manual page......
yaz-url is utility to get web content. It is very limited in functionality compared to programs such as curl, wget. The options must be precede the URL given on

manpages/pam_get_user.3.html
pam_get_user(3) - get user name (Library - Linux man page)
The pam_get_user function returns the name of the user specified by pam_start(3). If no user was specified it what pam_get_item (pamh, PAM_USER, ... ); would ha





We can't live, work or learn in freedom unless the software we use is free.