[needs-packaging] lenovo-wwan-unlock

Bug #2058622 reported by Dirk Su
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OEM Priority Project
Confirmed
Critical
Dirk Su
lenovo-wwan-unlock
New
Undecided
Unassigned
lenovo-wwan-unlock (Ubuntu)
Status tracked in Oracular
Jammy
Confirmed
Undecided
Unassigned
Noble
Confirmed
Undecided
Unassigned
Oracular
Confirmed
Wishlist
Unassigned

Bug Description

[Availability]
The package lenovo-wwan-unlock build for the architectures it is designed to work on.
It currently builds and works for architectures: amd64
Link to package https://launchpad.net/ubuntu/+source/lenovo-wwan-unlock

[Rationale]
 - The package lenovo-wwan-unlock is required in Ubuntu multiverse for WWAN hardware support
 - The package lenovo-wwan-unlock will generally be useful for a large part of
   our user base
 - There is no other/better way to solve this that is already in main or
   should go universe->main instead of this.
 - It would be great and useful to community/processes to have the
   package lenovo-fccunlock and lenovo-cfgservice in Ubuntu restricted, but there is no definitive deadline.

[Security]
 - No CVEs/security issues in this software in the past
 - no `suid` or `sgid` binaries
 - Binary configservice_lenovo and DPR_Fcc_unlock_service in /opt/fcc_lenovo/ is no problem because AppArmor constraints applied
 - Package does install services, timers or recurring jobs
   lenovo-fccunlock.service
   lenovo-cfgservice.service
 - Security has been kept in mind and common isolation/risk-mitigation
   patterns are in place utilizing the following features:
   AppArmor constraints had been included:
   - opt.fcc_lenovo.DPR_Fcc_unlock_service
   - opt.fcc_lenovo.configservice_lenovo
- Packages does not open privileged ports (ports < 1024).
- Packages does not expose any external endpoints
- Packages does not contain extensions to security-sensitive software
   (filters, scanners, plugins, UI skins, ...)

[Quality assurance - function/usage]
 - The package works well right after install

[Quality assurance - maintenance]
 - The package is maintained well in Debian/Ubuntu/Upstream and does
   not have too many, long-term & critical, open bugs
   - https://github.com/lenovo/lenovo-wwan-unlock/issues
 - The package does not deal with exotic hardware we cannot support

[Quality assurance - testing]
 - The package does not run a test at build time because it contains only binary files

 - The package can not be well tested at build or autopkgtest time
   because it will need real hardware for testing. To make up for that:
   - We have access to such hardware in the team
 - Based on that access outlined above, here are the details of the
   test plan
      execute service by systemd command
   sudo systemctl start lenovo-fccunlock
   sudo systemctl start lenovo-cfgservice
   and (if already possible) example output of a test run:
     - output of lenovo-fccunlock: https://pastebin.ubuntu.com/p/nsFBW3jXDk/
  - output ot lenovo-cfgservice: https://pastebin.ubuntu.com/p/8rCFqRHQ8V/
   We will execute that test plan
   on-uploads

[Quality assurance - packaging]
 - debian/watch is not present because it is a native package and need to add
   AppArmor configs
 - debian/control defines a correct Maintainer field

 - This package does not yield massive lintian Warnings, Errors
 - Please link to a recent build log of the package
   https://launchpadlibrarian.net/719472309/buildlog_ubuntu-noble-amd64.lenovo-wwan-unlock_1.2ubuntu3-0~202403150905~ubuntu24.04.1_BUILDING.txt.gz
 - Please attach the full output you have got from
   `lintian --pedantic` log: https://pastebin.ubuntu.com/p/Mm6CX7QgFc/
 - Lintian overrides are not present

 - This package does not rely on obsolete or about to be demoted packages.
 - This package has no python2 or GTK2 dependencies
 - The package will not be installed by default

 - Packaging and build is easy, link to debian/rules
   https://git.launchpad.net/lenovo-wwan-unlock/tree/debian/control

[UI standards]
 - Application is not end-user facing (does not need translation)

[Dependencies]
 - No further depends or recommends dependencies that are not yet in main

[Standards compliance]
 - This package correctly follows FHS and Debian Policy

[Maintenance/Owner]
 - The owning team will be canonical-mainstream and I have their acknowledgement for
   that commitment
 - The future owning team is already subscribed to the package

 - This does not use static builds
 - This does not use vendored code
 - This package is not rust based

- The package was test rebuilt in PPA or sbuild recently
  PPA: https://launchpad.net/~dirksu/+archive/ubuntu/fccunlock-test

[Background information]
 The Package description explains the package well
 Upstream Name is lenovo-wwan-unlock
 Link to upstream project https://github.com/lenovo/lenovo-wwan-unlock

Dirk Su (dirksu)
Changed in ubuntu:
importance: Undecided → Wishlist
Dirk Su (dirksu)
tags: added: oem-priority originate-from-1956804 sutton
Changed in oem-priority:
assignee: nobody → Dirk Su (dirksu)
status: New → Confirmed
Revision history for this message
Lucas Kanashiro (lucaskanashiro) wrote :

Hi Dirk Su,

If I understood correctly, what you want here is someone to sponsor the upload of lenovo-wwan-unlock, and this is the git repo with the source package:

https://launchpad.net/ubuntu/+source/lenovo-wwan-unlock

Did I get it right?

You added the MIR bug description template here and it seems a bit confusing.

Dirk Su (dirksu)
tags: added: needs-packaging
Revision history for this message
Dirk Su (dirksu) wrote :

Hi Lucas Kanashiro,

The source git repo is at https://git.launchpad.net/lenovo-wwan-unlock.
This package been requested to go through normal review & sponsorship into multiverse. Will you suggest to use different template in the description.

Revision history for this message
Lucas Kanashiro (lucaskanashiro) wrote :

Hi Dirk Su,

I cloned the git repo and for instance the debian/changelog is confusing, there are many entries which makes me think that this package is already maintained somewhere else, is this maintained in a PPA and now you are trying to put it in the Ubuntu archive? When the package is landing for the first time in the Ubuntu archive we usually have just a single changelog entry.

The version string you are using does not seem correct. Right now, I see version 1.2ubuntu3. This version string could be used for a native package (something Ubuntu specific), but I see this a project from Lenovo and it is maintained here:

https://github.com/lenovo/lenovo-wwan-unlock

I'd expect a version similar to 2.0.0-0ubuntu1 (version 2.0.0 was releases 2 weeks ago in the repo above). So before the '-' we have the upstream version. And after that, we have the Debian revision, since this package is not in Debian, just in Ubuntu, we use '0ubuntu1'.

I did not read the proprietary license of this software, but in debian/copyright you are using the GPL-3 license for the debian directory. Could you make sure this is OK?

I am also unsure how to generate the tarball for this version, due to that I was not able to build the package and run lintian for instance. However, I think you already have something to work on. I am unsubscribing ~ubuntu-sponsors for now. Once you address the issues presented above subscribe ~ubuntu-sponsors again.

Revision history for this message
Dirk Su (dirksu) wrote :

Hi,

I packed version v2.0.0 and upload to the git repo. The files under debian folder are all created by Canonical, I think it should be no problem using GPL-3 license.

Revision history for this message
Dirk Su (dirksu) wrote :
Revision history for this message
Dirk Su (dirksu) wrote :
Dirk Su (dirksu)
Changed in oem-priority:
importance: Undecided → Critical
Revision history for this message
Dave Jones (waveform) wrote :
Download full text (3.8 KiB)

> - This package does not yield massive lintian Warnings, Errors

Building locally against oracular presents the following:

E: lenovo-cfgservice: dir-or-file-in-opt [opt/fcc_lenovo/]
E: lenovo-cfgservice: dir-or-file-in-opt [opt/fcc_lenovo/configservice_lenovo]
E: lenovo-cfgservice: dir-or-file-in-opt [opt/fcc_lenovo/sar_config_files/1016__EM05CN__ThinkPad-X1-Carbon-Gen-12__Intel.bin]
E: lenovo-cfgservice: dir-or-file-in-opt [opt/fcc_lenovo/sar_config_files/Linux_0104__RM520NGL__X1CG12__Intel__29619.bin]
E: lenovo-cfgservice: dir-or-file-in-opt [opt/fcc_lenovo/sar_config_files/Linux_0104__RM520NGL__X1CG12__Intel__30007.bin]
E: lenovo-cfgservice: dir-or-file-in-opt [opt/fcc_lenovo/sar_config_files/Linux_1019__EM061KGL__ThinkPad_L13_2-in-1_Gen_5__Intel__48001.bin]
E: lenovo-cfgservice: dir-or-file-in-opt [opt/fcc_lenovo/sar_config_files/Linux_1019__EM061KGL__ThinkPad_L13_Gen_5__Intel__48001.bin]
E: lenovo-cfgservice: dir-or-file-in-opt [opt/fcc_lenovo/sar_config_files/Linux_1221__EM160RGL__ThinkPad_X1_Carbon_Gen_12__Intel__29619.bin]
E: lenovo-cfgservice: dir-or-file-in-opt [opt/fcc_lenovo/sar_config_files/Linux_1226__EM160RGL__ThinkPad_X1_2-in-1_Gen_9__Intel__29619.bin]
E: lenovo-cfgservice: dir-or-file-in-opt [opt/fcc_lenovo/sar_config_files/Linux__0105__RM520NGL__X12-in1G9__Intel__29619.bin]
E: lenovo-cfgservice: dir-or-file-in-opt [opt/fcc_lenovo/sar_config_files/Linux__0105__RM520NGL__X12-in1G9__Intel__30007.bin]
E: lenovo-cfgservice: dir-or-file-in-opt [opt/fcc_lenovo/sar_config_files/]
E: lenovo-fccunlock: dir-or-file-in-opt [opt/fcc_lenovo/DPR_Fcc_unlock_service]
E: lenovo-fccunlock: dir-or-file-in-opt [opt/fcc_lenovo/]
E: lenovo-fccunlock: file-in-root-and-usr already in: usr/lib/systemd/system/lenovo-fccunlock.service [lib/systemd/system/lenovo-fccunlock.service]
E: lenovo-cfgservice: lacks-ldconfig-trigger usr/lib/libconfigservice350.so usr/lib/libconfigserviceR+.so
E: lenovo-cfgservice: lacks-versioned-link-to-shared-library usr/lib/libconfigservice350_dummy.so [usr/lib/libconfigservice350.so]
E: lenovo-fccunlock: sharedobject-in-library-directory-missing-soname [usr/lib/libmodemauth.so]
E: lenovo-wwan-unlock source: source-is-missing [DPR_Fcc_unlock_service]
E: lenovo-wwan-unlock source: source-is-missing [configservice_lenovo]
E: lenovo-wwan-unlock source: source-is-missing [libconfigservice350.so]
E: lenovo-wwan-unlock source: source-is-missing [libconfigserviceR+.so]
E: lenovo-wwan-unlock source: source-is-missing [libmbimtools.so]
E: lenovo-wwan-unlock source: source-is-missing [libmodemauth.so]
W: lenovo-cfgservice-dbgsym: debug-file-with-no-debug-symbols [usr/lib/debug/.build-id/ab/9d4087aa7de358a14bb19f9038f2347e8c37b3.debug]
W: lenovo-cfgservice: package-name-doesnt-match-sonames libconfigservice350-dummy libconfigserviceR+
W: lenovo-cfgservice: shared-library-lacks-version usr/lib/libconfigservice350.so libconfigservice350_dummy.so
W: lenovo-cfgservice: shared-library-lacks-version usr/lib/libconfigserviceR+.so libconfigserviceR+.so
W: lenovo-cfgservice: unknown-field Modaliases
W: lenovo-cfgservice-dbgsym: unknown-field Modaliases
W: lenovo-fccunlock: unknown-field Modaliases
W: lenovo-fccunlock-dbgsym: unknown-field Mod...

Read more...

Revision history for this message
Nitin Joshi (nitin-joshi) wrote :

@Dave - Thank you for your comments.

Do you know what we need to do to fix "dir-or-file-in-opt" errors ? Do we only need justification for this as i am not sure what to modify for this?

libconfigserviceR+.so and libconfigservicw350.so was shared by Fibocom. So , do we need to ask them to modify something as i dont have their source code for this library .

Regarding your comment about "source-is-missing" as mentioned below - Do we need to do something ?
>> "source-is-missing" ones are simply down to the nature of the package)

As of now, i am trying to fix below by changing permission of this file :
>> lenovo-fccunlock: file-in-root-and-usr

Thanks

Dirk Su (dirksu)
affects: ubuntu → lenovo-wwan-unlock (Ubuntu)
Changed in lenovo-wwan-unlock (Ubuntu Oracular):
importance: Wishlist → Undecided
Revision history for this message
Brian Murray (brian-murray) wrote :

*** This is an automated message ***

This bug is tagged needs-packaging which identifies it as a request for a new package in Ubuntu. As a part of the managing needs-packaging bug reports specification, https://wiki.ubuntu.com/QATeam/Specs/NeedsPackagingBugs, all needs-packaging bug reports have Wishlist importance. Subsequently, I'm setting this bug's status to Wishlist.

Changed in lenovo-wwan-unlock (Ubuntu):
importance: Undecided → Wishlist
Revision history for this message
TZUFONG LIAO (phoenixliao) wrote :

Thanks to team's great help.
Packages uploaded in Oracular https://launchpad.net/ubuntu/+source/lenovo-wwan-unlock

Revision history for this message
Dirk Su (dirksu) wrote :

upload debdiff for jammy

Revision history for this message
Dirk Su (dirksu) wrote :

upload debdiff for noble

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in lenovo-wwan-unlock (Ubuntu Jammy):
status: New → Confirmed
Changed in lenovo-wwan-unlock (Ubuntu Noble):
status: New → Confirmed
Changed in lenovo-wwan-unlock (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.