How can find the package name for certain source code?

32 views
Skip to first unread message

Seongbin BAK

unread,
Nov 19, 2021, 2:01:42 PM11/19/21
to Chromium OS Development
I have modified below 2 files in cros_sdk.
~/chromiumos/src/platform/tauto/server/cros/tradefed/tradefed_test.py
~/chromiumos/src/third_party/labpack/files/server/cros/tradefed/tradefed_test.py 
And I want to do cros_workon start ${PACKAGE_NAME}.

But I cannot find the PACKAGE_NAME.
And cros_workon --all info 
 $ cros_workon --board=amd64-generic --all info
cros_workon: Unhandled exception:
Traceback (most recent call last):
  File "/mnt/host/source/chromite/bin/cros_workon", line 208, in <module>
    DoMain()
  File "/mnt/host/source/chromite/bin/cros_workon", line 204, in DoMain
    commandline.ScriptWrapperMain(FindTarget)
  File "/mnt/host/source/chromite/lib/commandline.py", line 1037, in ScriptWrapperMain
    ret = target(argv[1:])
  File "/mnt/host/source/chromite/scripts/cros_workon.py", line 90, in main
    use_workon_only=options.workon_only)
  File "/mnt/host/source/chromite/lib/workon_helper.py", line 675, in GetPackageInfo
    src_paths = ebuild_obj.GetSourceInfo(src_root, manifest).srcdirs
  File "/mnt/host/source/chromite/lib/portage_util.py", line 868, in GetSourceInfo
    self.pkgname))
chromite.lib.portage_util.Error: Source repository /mnt/host/source/src/aosp/external/perfetto for project perfetto-protos does not exist.

Also couldn't find any significant info in ebuild files.
$ grep -rn "labpack" /mnt/host/source/src/third_party/chromiumos-overlay

So how can find the package name for certain source code?
Thank you in advance for advice/idea.

Bob Moragues

unread,
Nov 19, 2021, 4:18:44 PM11/19/21
to Seongbin BAK, Chromium OS Development
(cr) (factory-strongbad-13963.B/(69e2e8894c...)) moragues@moragues-cloud ~/trunk/src/overlays $ equery-trogdor b tradefed_test.py
 * Searching for tradefed_test.py ...
chromeos-base/autotest-0.0.2-r14045 (/usr/local/build/autotest/server/cros/tradefed/tradefed_test.py)

--
--
Chromium OS Developers mailing list: chromiu...@chromium.org
View archives, change email options, or unsubscribe:
https://groups.google.com/a/chromium.org/group/chromium-os-dev
---
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-os-d...@chromium.org.
Reply all
Reply to author
Forward
0 new messages