Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 644954 - app-portage/flaggie-0.2.1 error when /etc/portage/make.conf is a directory (Calculate Linux)
Summary: app-portage/flaggie-0.2.1 error when /etc/portage/make.conf is a directory (C...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Michał Górny
Keywords: PMASKED
Depends on:
Reported: 2018-01-18 15:13 UTC by Bogdan
Modified: 2022-12-25 14:05 UTC (History)
1 user (show)

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

emerge --info flaggie (emerge-info.flaggie-0.2.1.txt,7.44 KB, text/plain)
2018-01-18 15:15 UTC, Bogdan

Note You need to log in before you can comment on or make changes to this bug.
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>
  File "/usr/lib64/python3.5/site-packages/flaggie/", line 195, in main
    porttree, cache)
  File "/usr/lib64/python3.5/site-packages/flaggie/", line 535, in __init__
    mf = self.MakeConfFile(path)
  File "/usr/lib64/python3.5/site-packages/flaggie/", line 455, in __init__
    f =, 'r', 'utf8')
  File "/usr/lib64/python3.5/", line 895, in open
    file =, 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!