This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author aixtools@gmail.com
Recipients Michael.Felt, aixtools@gmail.com, martin.panter
Date 2016-10-04.20:54:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <0f718d28-6d26-f942-200f-a65178661222@gmail.com>
In-reply-to <1475294235.93.0.688224641816.issue28276@psf.upfronthosting.co.za>
Content
On 01-Oct-16 05:57, Martin Panter wrote:
> Martin Panter added the comment:
>
> Other tests in this file skip the test if libc_name is None. So I think it would make more sense to skip the test rather than fail in test_find(). I.e.
>
> if not found:
>      self.skipTest("Could not find c and m libraries")
>
> If you are confident that find_library() will always find libc on AIX, perhaps you can suggest an extra test (or add to an existing test), to first check for the AIX platform, and only then fail if find_library() returned None.
Yes, I am confident - it is part of the core run-time environment:
  # lslpp -w | grep libc.a
   /usr/ccs/lib/libc.a                         bos.rte.libc File
   /usr/lib/libc.a                             bos.rte.libc Symlink
   /usr/lib/threads/libc.a                     bos.rte.libc Symlink

And, bos.rte.libc cannot be uninstalled:

   SELECTED FILESETS:  The following is a list of filesets that you asked to
   remove.  They cannot be removed until all of their dependent filesets
   are also removed.  See subsequent lists for details of dependents.

     bos.rte.libc 5.3.7.0                      # Base Level Fileset

   NON-DEINSTALLABLE DEPENDENTS:  The following filesets depend upon one or
   more of the selected filesets listed above.  These dependents should
   be removed before the selected filesets.  Deinstallability checks 
indicate
   that these dependents should not be removed from the system; 
therefore, the
   selected filesets cannot be removed.

     bos.mp64 5.3.7.0                          # Base Operating System 
64-bit...
     bos.rte 5.3.7.0                           # Base Level Fileset
     devices.chrp.IBM.lhea.rte 5.3.7.0         # Host Ethernet Adapter 
(HEA) ...
     devices.chrp.base.rte 5.3.7.0             # RISC PC Base System 
Device S...
     devices.chrp.vdevice.rte 5.3.7.0          # Virtual I/O Bus Support
     devices.vdevice.IBM.v-scsi.rte 5.3.7.0    # Virtual SCSI Client Support
     ifor_ls.base.cli 5.3.7.0                  # License Use Management 
Runti...

I gave up counting the number of dependents that "officially" are 
dependents on bos.rte.libc after the count went above 200 - on a vanilla 
system install.

I'll make a different test (skip if not aix) that find_library("c") must 
succeed. The load has already been tested - with libc_name already 
hard-coded.

>
> ----------
>
> _______________________________________
> Python tracker <report@bugs.python.org>
> <http://bugs.python.org/issue28276>
> _______________________________________
History
Date User Action Args
2016-10-04 20:54:22aixtools@gmail.comsetrecipients: + aixtools@gmail.com, martin.panter, Michael.Felt
2016-10-04 20:54:22aixtools@gmail.comlinkissue28276 messages
2016-10-04 20:54:21aixtools@gmail.comcreate