Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 644954

Summary: app-portage/flaggie-0.2.1 error when /etc/portage/make.conf is a directory (Calculate Linux)
Product: Gentoo Linux Reporter: Bogdan <bogdan.pylypenko107>
Component: Current packagesAssignee: Michał Górny <mgorny>
Status: UNCONFIRMED ---    
Severity: normal CC: gentoo.org
Priority: Normal Keywords: PMASKED
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info flaggie

Description Bogdan 2018-01-18 15:13:24 UTC
Calculate Linux use /etc/portage/make.conf as directory by default.

flaggie crashes with error:
"IsADirectoryError: [Errno 21] Is a directory: '/etc/portage/make.conf'"


Reproducible: Always

Steps to Reproduce:
1. Operating System - Calculate Linux.
2. flaggie app-misc/mc +sftp
Actual Results:  
LANG=en_US.UTF-8 flaggie calculate-sources +build
Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.5/flaggie", line 25, in <module>
    sys.exit(main(sys.argv))
  File "/usr/lib64/python3.5/site-packages/flaggie/cli.py", line 195, in main
    porttree, cache)
  File "/usr/lib64/python3.5/site-packages/flaggie/makeconf.py", line 535, in __init__
    mf = self.MakeConfFile(path)
  File "/usr/lib64/python3.5/site-packages/flaggie/makeconf.py", line 455, in __init__
    f = codecs.open(path, 'r', 'utf8')
  File "/usr/lib64/python3.5/codecs.py", line 895, in open
    file = builtins.open(filename, mode, buffering)
IsADirectoryError: [Errno 21] Is a directory: '/etc/portage/make.conf'


> cat make.conf
cat: make.conf: Is a directory

> ls -l /etc/portage/make.conf
total 12
-rw-r--r-- 1 root root  653 Jan 11 11:35 0-base
-rw-r--r-- 1 root root  451 Jan 18 12:51 binhost
-rw-r--r-- 1 root root 1090 Dec  2 01:52 custom

> uname -a
Linux calculate 4.9.34-calculate #1 SMP PREEMPT Thu Jun 29 11:17:11 UTC 2017 x86_64 Intel(R) Core(TM)2 Duo CPU P8400 @ 2.26GHz GenuineIntel GNU/Linux
Comment 1 Bogdan 2018-01-18 15:15:38 UTC
Created attachment 515242 [details]
emerge --info flaggie
Comment 2 Terra 2020-02-28 16:21:08 UTC
I have also encountered this on Calculate Linux CCS/20 (lxd container).

Can the Status be updated to 'CONFIRMED'?

Thank you!