[alfs-log] [ALFS Trac] #1694: Measured times and sizes include packaging, when package management is in effect

ALFS Trac trac at linuxfromscratch.org
Mon Jul 3 03:25:32 PDT 2017


#1694: Measured times and sizes include packaging, when package management is in
effect
--------------------+-----------------------
 Reporter:  pierre  |       Owner:  pierre
     Type:  defect  |      Status:  assigned
 Priority:  normal  |   Milestone:  3.0
Component:  jhalfs  |     Version:  SVN
 Severity:  normal  |  Resolution:
 Keywords:          |
--------------------+-----------------------

Comment (by pierre):

 4 months later, had some time to think a little more:

 - for SBUs: From '''man bash''' about the '' SECONDS'' variable:
 {{{
 Each time this parameter is referenced, the  number  of  seconds
 since  shell  invocation is returned.  If a value is assigned to
 SECONDS, the value returned upon subsequent  references  is  the
 number  of seconds since the assignment plus the value assigned.
 }}}
   so it is possible to have something like:
 {{{
 PREV_SEC=$SECONDS
 PackInstall
 SECONDS=$PREV_SEC
 }}}
   and the packing time is not counted.

 - for Sizes: just exclude '' /var/lib'' from '''du''' commands

--
Ticket URL: <http://wiki.linuxfromscratch.org/alfs/ticket/1694#comment:12>
ALFS Trac <http://wiki.linuxfromscratch.org/alfs/>
Automated Linux From Scratch


More information about the alfs-log mailing list