Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 691032 - dev-python/ebuildtester - /var/db/repos/gentoo/profiles/profiles.desc: No such file or directory
Summary: dev-python/ebuildtester - /var/db/repos/gentoo/profiles/profiles.desc: No suc...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Nicolas Bock
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-07-29 20:33 UTC by Bernardo Meurer
Modified: 2019-08-02 12:31 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bernardo Meurer 2019-07-29 20:33:46 UTC
In trying to use ebuildtester I come, invariably, across the following error
```
$ sudo ebuildtester --portage-dir /var/db/repos/gentoo --overlay-dir /var/db/repos/bemeurer --use otf ttf --atom '=media-fonts/fontawesome-5.9.0'

2019-07-29 13:32:33,635 - creating container
Using default tag: latest
latest: Pulling from gentoo/stage3-amd64
Digest: sha256:ec84971c2ac6ff2bfbaee6f712748fb76fca7a8aaafd447de58917ce2ef61c14
Status: Image is up to date for gentoo/stage3-amd64:latest
2019-07-29 13:32:35,194 - creating docker container with: docker create --tty --cap-add SYS_ADMIN --device /dev/fuse --storage-opt size=50G --workdir /root --volume /var/db/repos/gentoo:/usr/portage --volume /usr/portage/distfiles:/usr/portage/distfiles --volume=/var/db/repos/bemeurer:/var/lib/overlays/bemeurer gentoo/stage3-amd64
2019-07-29 13:32:35,309 - container id 8a29da62c420bcd2f7e9370c1a62a4d0ad92ee98ac12cb062ed2a9d72135ccb3
2019-07-29 13:32:35,722 - setting Gentoo profile to default/linux/amd64/17.0
2019-07-29 13:32:35,722 - 8a29da eselect profile set default/linux/amd64/17.0
2019-07-29 13:32:36,291 - 8a29da (stderr): sed: can't read /var/db/repos/gentoo/profiles/profiles.desc: No such file or directory
2019-07-29 13:32:36,292 - 8a29da (stderr): !!! Error: default/linux/amd64/17.0 is not a valid profile for amd64
2019-07-29 13:32:36,292 - 8a29da (stderr): exiting
2019-07-29 13:32:36,333 - running in container 8a29da62c420bcd2f7e9370c1a62a4d0ad92ee98ac12cb062ed2a9d72135ccb3
Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.6/ebuildtester", line 11, in <module>
    load_entry_point('ebuildtester==0.1.14', 'console_scripts', 'ebuildtester')()
  File "/usr/lib64/python3.6/site-packages/ebuildtester/main.py", line 21, in main
    [os.path.abspath(p) for p in options.options.overlay_dir])
  File "/usr/lib64/python3.6/site-packages/ebuildtester/docker.py", line 25, in __init__
    self._set_profile()
  File "/usr/lib64/python3.6/site-packages/ebuildtester/docker.py", line 191, in _set_profile
    self.execute("eselect profile set %s" % options.options.profile)
  File "/usr/lib64/python3.6/site-packages/ebuildtester/docker.py", line 92, in execute
    raise ExecuteFailure("failed command \"%s\"" % (cmd))
ebuildtester.docker.ExecuteFailure: failed command "eselect profile set default/linux/amd64/17.0"
```

I suspect this is caused by the 17.0 profile having been yanked in favour of 17.1, but I am not certain.
Comment 1 Bernardo Meurer 2019-07-29 20:37:06 UTC
Actually scratch that. Manually editing the profile name in the sources to 17.1 does not solve the issue.
Comment 2 Bernardo Meurer 2019-07-29 20:39:55 UTC
The file definitely exists:
```
$ stat /var/db/repos/gentoo/profiles/profiles.desc
  File: /var/db/repos/gentoo/profiles/profiles.desc
  Size: 16204     	Blocks: 32         IO Block: 4096   regular file
Device: 2ch/44d	Inode: 58739246    Links: 1
Access: (0644/-rw-r--r--)  Uid: (  250/ portage)   Gid: (  250/ portage)
Access: 2019-07-29 09:45:22.875419022 -0700
Modify: 2019-07-29 09:45:22.875419022 -0700
Change: 2019-07-29 09:45:22.875419022 -0700
 Birth: 2019-07-29 09:45:22.875419022 -0700
```
Comment 3 Alexander Tsoy 2019-07-30 09:26:34 UTC
(In reply to Bernardo Meurer from comment #0)
> 2019-07-29 13:32:35,194 - creating docker container with: docker create
> --tty --cap-add SYS_ADMIN --device /dev/fuse --storage-opt size=50G
> --workdir /root --volume /var/db/repos/gentoo:/usr/portage --volume
> /usr/portage/distfiles:/usr/portage/distfiles
> --volume=/var/db/repos/bemeurer:/var/lib/overlays/bemeurer
> gentoo/stage3-amd64
It mounts repo into /usr/portage inside container.

https://github.com/nicolasbock/ebuildtester/blob/2f625a1e5ca288b73adb2d697a6ee13a0cf7af80/ebuildtester/docker.py#L157
Comment 4 Bernardo Meurer 2019-07-30 17:51:49 UTC
Ah, thanks Alexander! The package looks unmaintained, I will try to submit a PR to fix it. 

I assume the correct behaviour is to check PORTDIR.