Bug 678654 - Change "compose*" scripts to use "bash | tee" rather than "script -c"
Summary: Change "compose*" scripts to use "bash | tee" rather than "script -c"
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Dogtag Certificate System
Classification: Retired
Component: Build
Version: 9.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Matthew Harmsen
QA Contact: Chandrasekar Kannan
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-02-18 19:38 UTC by Matthew Harmsen
Modified: 2015-01-04 23:46 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2011-02-22 00:04:10 UTC
Embargoed:


Attachments (Terms of Use)
compose diffs (TIP) (3.87 KB, patch)
2011-02-18 22:42 UTC, Matthew Harmsen
jmagne: review+
Details | Diff
compose diffs (IPA_v2_RHEL_6_1_ERRATA_BRANCH) (3.87 KB, patch)
2011-02-18 22:47 UTC, Matthew Harmsen
jmagne: review+
Details | Diff

Description Matthew Harmsen 2011-02-18 19:38:40 UTC
Description of problem:


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Matthew Harmsen 2011-02-18 19:41:00 UTC
kwright wrote the following email on February 18, 2011:

...

Also, I believe I might have solved the mystery of the src.rpms getting created for the pki-core, ipa-pki-theme/dogtag-ipa-theme, and osutil packages. At the end of the shell script, it calls the "script" command. If you could change that from:

script -c ./package_${OSUTIL} package_${OSUTIL}.log

bash  ./package_${OSUTIL} |tee package_${OSUTIL}.log 2>&1

I think that would solve the problem. At least it has for me in my tests.

Comment 2 Matthew Harmsen 2011-02-18 20:22:59 UTC
OSUTIL TIP:

# git commit -a
[master fb931ca] Bugzilla Bug #678654 - Change "compose*" scripts to use "bash | tee" rather than "script -c"
 Committer: Matthew Harmsen <mharmsen.redhat.com>
Your name and email address were configured automatically based
on your username and hostname. Please check that they are accurate.
You can suppress this message by setting them explicitly:

    git config --global user.name "Your Name"
    git config --global user.email you

If the identity used for this commit is wrong, you can fix it with:

    git commit --amend --author='Your Name <you>'

 1 files changed, 1 insertions(+), 1 deletions(-)

# git push
Counting objects: 5, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 401 bytes, done.
Total 3 (delta 2), reused 0 (delta 0)
To ssh://git.fedorahosted.org/git/osutil.git
   d6a69f2..fb931ca  master -> master

Comment 4 Matthew Harmsen 2011-02-18 22:42:00 UTC
Created attachment 479621 [details]
compose diffs (TIP)

Comment 6 Matthew Harmsen 2011-02-18 22:57:10 UTC
TIP:

# cd pki

# svn status | grep -v ^$ | grep -v ^P | grep -v ^X | grep -v ^?
M       scripts/compose_ipa_pki_theme_packages
M       scripts/compose_pki_kra_packages
M       scripts/compose_pki_tks_packages
M       scripts/compose_pki_console_packages
M       scripts/compose_pki_ra_packages
M       scripts/compose_pki_ocsp_packages
M       scripts/compose_pki_tps_packages
M       scripts/compose_dogtag_pki_theme_packages
M       scripts/compose_pki_core_packages
M       scripts/compose_pki_migrate_packages

# svn commit
Sending        scripts/compose_dogtag_pki_theme_packages
Sending        scripts/compose_ipa_pki_theme_packages
Sending        scripts/compose_pki_console_packages
Sending        scripts/compose_pki_core_packages
Sending        scripts/compose_pki_kra_packages
Sending        scripts/compose_pki_migrate_packages
Sending        scripts/compose_pki_ocsp_packages
Sending        scripts/compose_pki_ra_packages
Sending        scripts/compose_pki_tks_packages
Sending        scripts/compose_pki_tps_packages
Transmitting file data ..........
Committed revision 1856.


Note You need to log in before you can comment on or make changes to this bug.