Bug 394941

Summary: Review Request: tpm-tools - TPM management utilities
Product: [Fedora] Fedora Reporter: Kent Yoder <yoder1>
Component: Package ReviewAssignee: Mamoru TASAKA <mtasaka>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: ejratl, fedora-package-review, key, mtasaka, notting
Target Milestone: ---Flags: mtasaka: fedora-review+
kevin: fedora-cvs+
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-01-02 16:25:56 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 323441, 426152    
Bug Blocks:    

Description Kent Yoder 2007-11-21 20:53:09 UTC
Spec URL: http://trousers.sourceforge.net/fedora_tools_submit1/tpm-tools.spec

SRPM URL: http://trousers.sourceforge.net/fedora_tools_submit1/tpm-tools-1.3.1-1.src.rpm

Description: tpm-tools provides a command-line interface to TPM administration, with utilities to take ownership, enable and disable and view properties of your TPM. tpm-tools requires the trousers package, submitted for review here: https://bugzilla.redhat.com/show_bug.cgi?id=323441.

Comment 1 Mamoru TASAKA 2007-12-13 07:03:00 UTC
Would you update your spec file with referring to
http://fedoraproject.org/wiki/Packaging/Guidelines
and my comments in bug 323441?

Comment 2 Kent Yoder 2007-12-13 19:45:51 UTC
Latest version up for review is available here:

http://trousers.sourceforge.net/fedora_tools_submit2/

Thanks,
Kent

Comment 3 Mamoru TASAKA 2007-12-14 15:23:01 UTC
For 1.3.1-2:

* SourceURL
  - Perhaps the correct one is
    http://downloads.sourceforge.net/trousers/%{name}-%{version}.tar.gz

* Redundant Requires
  A. "Requires: trousers" is not needed
     - rpmbuild checks the dependency for libraries. For this package
       tpm-tools binary rpm requires libtspi.so.1 and this dependency
       should pull trousers automatically.
  B. Requires(post/postun):   /sbin/ldconfig
     For this package this is not needed because
-------------------------------------------------------------
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
-------------------------------------------------------------
     automatically adds these dependencies.

? configure option
  - (This is a question)
    Would you explain why you want "--disable-pkcs11-support"?

* Directory ownership issue
--------------------------------------------------------------
%files devel
%{_includedir}/tpm_tools/*.h
--------------------------------------------------------------
  - This causes
--------------------------------------------------------------
[tasaka1@localhost ~]$ LANG=C rpm -qf /usr/include/tpm_tools/
file /usr/include/tpm_tools is not owned by any package
--------------------------------------------------------------

Comment 4 Kent Yoder 2007-12-14 19:01:05 UTC
(In reply to comment #3)
> For 1.3.1-2:
> 
> * SourceURL
>   - Perhaps the correct one is
>     http://downloads.sourceforge.net/trousers/%{name}-%{version}.tar.gz

  Yep, I'll fix.
 
> * Redundant Requires
>   A. "Requires: trousers" is not needed
>      - rpmbuild checks the dependency for libraries. For this package
>        tpm-tools binary rpm requires libtspi.so.1 and this dependency
>        should pull trousers automatically.

 ok

>   B. Requires(post/postun):   /sbin/ldconfig
>      For this package this is not needed because
> -------------------------------------------------------------
> %post -p /sbin/ldconfig
> %postun -p /sbin/ldconfig
> -------------------------------------------------------------
>      automatically adds these dependencies.

ok
 
> ? configure option
>   - (This is a question)
>     Would you explain why you want "--disable-pkcs11-support"?

  pkcs11 support requires the opencryptoki package, which hasn't been submitted.
If at some future time we submit that, we could enable this support.
 
> * Directory ownership issue
> --------------------------------------------------------------
> %files devel
> %{_includedir}/tpm_tools/*.h
> --------------------------------------------------------------
>   - This causes
> --------------------------------------------------------------
> [tasaka1@localhost ~]$ LANG=C rpm -qf /usr/include/tpm_tools/
> file /usr/include/tpm_tools is not owned by any package
> --------------------------------------------------------------

  Ok, I'll add /usr/include/tpm_tools as I did in the trousers spec file.

Kent


Comment 5 Kent Yoder 2007-12-14 19:13:54 UTC
Latest re-spin is here:

http://trousers.sourceforge.net/fedora_tools_submit3/

Thanks,
Kent

Comment 6 Mamoru TASAKA 2007-12-18 16:46:46 UTC
For 1.3.1-3:

* mixed-use-of-spaces-and-tabs rpmlint
------------------------------------------------------
$ rpmlint -I mixed-use-of-spaces-and-tabs
mixed-use-of-spaces-and-tabs :
The specfile mixes use of spaces and tabs for indentation, which is a
cosmetic annoyance.  Use either spaces or tabs for indentation, not both.
------------------------------------------------------

* Unneeded BuildRequires
  - "BuildRequires: autoconf automake libtool" are not needed
     as this spec file acutally does not use any autotools

* Macros in %changelog
  - When to write macros in %changelog, please use %% to stop
    macros from being expanded.
-------------------------------------------------------
[tasaka1@localhost tpm-tools]$ rpmlint *-3*src*rpm
tpm-tools.src:79: W: macro-in-%changelog build
tpm-tools.src: W: mixed-use-of-spaces-and-tabs (spaces: line 2, tab: line 12)
tpm-tools.src:79: W: macro-in-%changelog build
tpm-tools.src: W: mixed-use-of-spaces-and-tabs (spaces: line 2, tab: line 12)
-------------------------------------------------------

? library linking
  - tpm-tools contains the library libtpm_unseal.so.0, however
    no binaries in tpm-tools are using this library??
-------------------------------------------------------
$ rpm -ql tpm-tools | grep '/usr/s*bin' | xargs ldd -r | grep -v '^/usr' | sort
| uniq | grep tpm_unseal
(no returns)
-------------------------------------------------------


Comment 7 Kent Yoder 2007-12-18 17:29:05 UTC
Thanks Mamoru, latest re-spin is here:

http://trousers.sourceforge.net/fedora_tools_submit4/

Kent

Comment 8 Kent Yoder 2007-12-18 17:32:27 UTC
Also - no apps use the library because its provided for developers...

Kent

Comment 9 Mamoru TASAKA 2007-12-18 18:05:49 UTC
Okay.

---------------------------------------------------------
   This package (tpm-tools) is APPROVED by me
---------------------------------------------------------

! Note
  To rebuild this package on koji, you have to rebuild trousers
  first. On dist-f9 koji tag, it takes ~2 hours to get the rebuilt
  rpms imported into new buildroot (what I mean is that
  you will probably have to wait about 2 hours after trousers is
  rebuilt to rebuild this package).

  Or you can use "chain build" method.

Comment 10 Kent Yoder 2007-12-18 20:00:27 UTC
Hi Mamoru,

  It looks like I need to go open a review request for openCryptoki, then modify
the tpm-tools specfile to build the pkcs11 stuff.  RHIT#184786 is for submission
of openCryptoki, so it should be going through this process too.  I'll add a
dependency here when the new openCryptoki review request is opened.

Kent

Comment 11 Kent Yoder 2007-12-18 20:48:13 UTC
Hmm, looks like entering a new dependency wipes out the old one. Is there a way
to make this bug depend on openCryptoki and trousers?

Thanks,
Kent

Comment 12 Jason Tibbitts 2007-12-18 20:58:15 UTC
Just enter more than one bug number to depend on.  Comma separated works fine;
space separated probably works as well.

Comment 13 Mamoru TASAKA 2007-12-19 02:52:05 UTC
Is supporting openCryptoki _definitely_ needed before importing
this package into Fedora? If not, please import this package
as it is and when openCryptoki review request (if you submit it) is passed
modify tpm-tools package.

Comment 14 Kent Yoder 2007-12-19 15:50:46 UTC
Hi Mamoru,

  As long as openCryptoki gets in at some point, I'm ok.  I'll go ahead and
import tpm-tools while the openCryptoki request is in progress...

Kent

Comment 15 Kent Yoder 2007-12-19 15:54:23 UTC
New Package CVS Request
=======================
Package Name: tpm-tools
Short Description: TPM management utilities
Owners: key
Branches: F-7 F-8 EL-5
InitialCC: 
Cvsextras Commits: yes


Comment 16 Tom "spot" Callaway 2007-12-19 20:42:18 UTC
cvs done

Comment 17 Mamoru TASAKA 2007-12-21 07:05:54 UTC
Please close this bug when rebuild and request on bodhi is done.

Comment 18 Mamoru TASAKA 2008-01-02 16:25:56 UTC
Closing for now as this is already in devel.

Comment 19 Emily Ratliff 2008-05-05 17:23:10 UTC
Package Change Request
======================
Package Name: tpm-tools
Updated Fedora Owners: key,ejratl



Comment 20 Kent Yoder 2008-05-05 17:24:27 UTC
Ack'd co-maintainership by ejratl.

Comment 21 Kevin Fenzi 2008-05-06 16:17:53 UTC
cvs done.