<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>15475</bug_id>
          
          <creation_ts>2024-04-30 09:08:45 +0000</creation_ts>
          <short_desc>google-authenticator-libpam recipe does not install the library, only the executable.</short_desc>
          <delta_ts>2026-06-04 15:08:50 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>Other YP Layers</product>
          <component>meta-security</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>6.1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Martin Scheffler">martinscheffler</reporter>
          <assigned_to name="Scott Murray">scott.murray</assigned_to>
          <cc>randy.macleod</cc>
    
    <cc>rybczynska</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>98937</commentid>
    <comment_count>0</comment_count>
    <who name="Martin Scheffler">martinscheffler</who>
    <bug_when>2024-04-30 09:08:45 +0000</bug_when>
    <thetext>The recipe google-authenticator-libpam_1.09.bb does not actually install the file pam_google_authenticator.so to path /lib/security, in fact it is not installed at all. The binary /usr/bin/google-authenticator is installed, although it is not mentionend in the FILES list.

I think the problem is that the recipe defines a new package:
PACKAGES += &quot;pam-google-authenticator&quot;
but somehow the files of that package are not installed.

I managed to fix it, maybe someone with more knowledge can take a look at this.
Improvement idea: It would be nice if the installation of the binary was optional and non-default.
------------------

SUMMARY = &quot;Google Authenticator PAM module&quot;
HOME_PAGE = &quot;https://github.com/google/google-authenticator-libpam&quot;
LIC_FILES_CHKSUM = &quot;file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57&quot;
LICENSE = &quot;Apache-2.0&quot;

SRC_URI = &quot;git://github.com/google/google-authenticator-libpam.git;branch=master;protocol=https&quot;
SRCREV = &quot;962f353aac6cfc7b804547319db40f8b804f0b6c&quot;

DEPENDS = &quot;libpam&quot;

S = &quot;${WORKDIR}/git&quot;

inherit autotools features_check

REQUIRED_DISTRO_FEATURES = &quot;pam&quot;

# Use the same dir location as PAM
EXTRA_OECONF = &quot;--libdir=${base_libdir}&quot;
FILES:${PN} += &quot;${base_libdir}/security/pam_google_authenticator.so&quot;
FILES:${PN} += &quot;${bindir}/google-authenticator&quot;

RDEPENDS_${PN}  = &quot;libpam&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103210</commentid>
    <comment_count>1</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2025-11-06 15:36:24 +0000</bug_when>
    <thetext>meta-security - Scott, Marta,
 please take a look.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105713</commentid>
    <comment_count>2</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2026-06-04 15:08:50 +0000</bug_when>
    <thetext>Scott, Is this in your plan ? 
If not, unassign.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>