Jump to content
funtoo forums
  • 0
cptnemo

/etc/make.profile missing

Question

Well, I don't know how this happened but my /etc/make.profile is now missing. When I try and use emerge I get this warning:

!!! Unable to parse profile: '/etc/portage/make.profile'

!!! ParseError: Parent '/usr/portage/profiles/funtoo/1.0/linux-gnu/arch/x86-64bit' not found: '/etc/portage/make.profile/parent'

!!! Your current profile is invalid. If you have just changed your profile

!!! configuration, you should revert back to the previous configuration.

!!! Allowed actions are limited to --help, --info, --search, --sync, and

!!! --version.

Any idea how to fix this?

 

Thanks

 

Share this post


Link to post
Share on other sites

9 answers to this question

Recommended Posts

  • 0

/etc/portage/make.profile/parent is a simple text file that stores your profile settings

rj@funtoo ~ $ cat /etc/portage/make.profile/parent
gentoo:funtoo/1.0/linux-gnu/arch/pure64
gentoo:funtoo/1.0/linux-gnu/build/current
gentoo:funtoo/1.0/linux-gnu/arch/pure64/subarch/native_64-pure64
gentoo:funtoo/1.0/linux-gnu/flavor/desktop
gentoo:funtoo/1.0/linux-gnu/mix-ins/lxde

rj@funtoo ~ $ sudo epro show

=== Enabled Profiles: ===

        arch: pure64
       build: current
     subarch: native_64-pure64
      flavor: desktop
     mix-ins: lxde


=== All inherited flavors from desktop flavor: ===

                     workstation (from desktop flavor)
                            core (from workstation flavor)
                         minimal (from core flavor)

=== All inherited mix-ins from desktop flavor: ===

                               X (from workstation flavor)
                           audio (from workstation flavor)
                             dvd (from workstation flavor)
                           media (from workstation flavor)
      mediadevice-audio-consumer (from media mix-in)
                mediadevice-base (from mediadevice-audio-consumer mix-in)
      mediadevice-video-consumer (from media mix-in)
                mediadevice-base (from mediadevice-video-consumer mix-in)
        mediaformat-audio-common (from media mix-in)
          mediaformat-gfx-common (from media mix-in)
        mediaformat-video-common (from media mix-in)
                  console-extras (from workstation flavor)
                           print (from desktop flavor)

Rename the old /etc/portage/make.profile/parent if it exists.

Create a new blank parent file with touch.

Use epro to write the blank parent file in the correct format.

http://www.funtoo.org/Funtoo_Profiles

 

Share this post


Link to post
Share on other sites
  • 0

Here is the result from that command:

 

 

epro show
!!! Unable to parse profile: '/etc/portage/make.profile'
!!! ParseError: Parent '/usr/portage/profiles/funtoo/1.0/linux-gnu/arch/x86-64bit' not found: '/etc/portage/make.profile/parent'

=== Enabled Profiles: ===

        arch: x86-64bit
       build: current
     subarch: core2_64
      flavor: desktop
     mix-ins: kde
     mix-ins: kde-plasma-5

Share this post


Link to post
Share on other sites
  • 0

/etc/portage/make.profile/parent is a simple text file that stores your profile settings

rj@funtoo ~ $ cat /etc/portage/make.profile/parent

gentoo:funtoo/1.0/linux-gnu/arch/pure64

gentoo:funtoo/1.0/linux-gnu/build/current

gentoo:funtoo/1.0/linux-gnu/arch/pure64/subarch/native_64-pure64

gentoo:funtoo/1.0/linux-gnu/flavor/desktop

gentoo:funtoo/1.0/linux-gnu/mix-ins/lxde

rj@funtoo ~ $ sudo epro show

=== Enabled Profiles: ===

        arch: pure64
       build: current
     subarch: native_64-pure64
      flavor: desktop
     mix-ins: lxde


=== All inherited flavors from desktop flavor: ===

                     workstation (from desktop flavor)
                            core (from workstation flavor)
                         minimal (from core flavor)

=== All inherited mix-ins from desktop flavor: ===

                               X (from workstation flavor)
                           audio (from workstation flavor)
                             dvd (from workstation flavor)
                           media (from workstation flavor)
      mediadevice-audio-consumer (from media mix-in)
                mediadevice-base (from mediadevice-audio-consumer mix-in)
      mediadevice-video-consumer (from media mix-in)
                mediadevice-base (from mediadevice-video-consumer mix-in)
        mediaformat-audio-common (from media mix-in)
          mediaformat-gfx-common (from media mix-in)
        mediaformat-video-common (from media mix-in)
                  console-extras (from workstation flavor)
                           print (from desktop flavor)

Rename the old /etc/portage/make.profile/parent if it exists.

Create a new blank parent file with touch.

Use epro to write the blank parent file in the correct format.

http://www.funtoo.org/Funtoo_Profiles

 

 

Okay,  I just realized that I misunderstood your post. I did what you said and I have the parent file under /etc/portage/make.profile. Here is the contents of that file.

cat /etc/portage/make.profile/parent
gentoo:funtoo/1.0/linux-gnu/arch/x86-64bit
gentoo:funtoo/1.0/linux-gnu/build/current
gentoo:funtoo/1.0/linux-gnu/subarch/core2_64
gentoo:funtoo/1.0/linux-gnu/flavor/desktop
gentoo:funtoo/1.0/linux-gnu/mix-ins/kde
gentoo:funtoo/1.0/linux-gnu/mix-ins/kde-plasma-5

This is what I get when I run epro show:

epro show
!!! Unable to parse profile: '/etc/portage/make.profile'
!!! ParseError: Parent '/usr/portage/profiles/funtoo/1.0/linux-gnu/arch/x86-64bit' not found: '/etc/portage/make.profile/parent'

=== Enabled Profiles: ===

        arch: x86-64bit
       build: current
     subarch: core2_64
      flavor: desktop
     mix-ins: kde
     mix-ins: kde-plasma-5

However, something is still wrong. When I try and add a mix-in like dvd I get this:

 

 

epro mix-ins dvd
!!! Unable to parse profile: '/etc/portage/make.profile'
!!! ParseError: Parent '/usr/portage/profiles/funtoo/1.0/linux-gnu/arch/x86-64bit' not found: '/etc/portage/make.profile/parent'
WARNING: Error: dvd is not a valid mix-in.

 

 

Also, if I try and install a program I get this:

emerge -av kate
!!! Unable to parse profile: '/etc/portage/make.profile'
!!! ParseError: Parent '/usr/portage/profiles/funtoo/1.0/linux-gnu/arch/x86-64bit' not found: '/etc/portage/make.profile/parent'
!!! Your current profile is invalid. If you have just changed your profile
!!! configuration, you should revert back to the previous configuration.
!!! Allowed actions are limited to --help, --info, --search, --sync, and
!!! --version.

Why does this error keep coming up and why does it say that "/usr/portage/profiles/funtoo/1.0/linux-gnu/arch/x86-64bit" is not found?

Share this post


Link to post
Share on other sites
  • 0

Okay, I did that and it did not work. This is what shows up at the end of the --sync:

Number of files: 208,344 (reg: 180,865, dir: 27,479)
Number of created files: 208,343 (reg: 180,865, dir: 27,478)
Number of deleted files: 0
Number of regular files transferred: 180,865
Total file size: 416.47M bytes
Total transferred file size: 416.47M bytes
Literal data: 416.47M bytes
Matched data: 0 bytes
File list size: 5.31M
File list generation time: 0.001 seconds
File list transfer time: 0.000 seconds
Total bytes sent: 3.68M
Total bytes received: 429.58M

sent 3.68M bytes  received 429.58M bytes  803.08K bytes/sec
total size is 416.47M  speedup is 0.96
=== Sync completed for gentoo
q: Updating ebuild cache in /usr/portage ...
q: Finished 39712 entries in 0.922385 seconds
!!! Unable to parse profile: '/etc/portage/make.profile'
!!! ParseError: Parent '/usr/portage/profiles/funtoo/1.0/linux-gnu/arch/x86-64bit' not found: '/etc/portage/make.profile/parent'

 * IMPORTANT: 1 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.

If I try and emerge a program like kate, I get this:

# emerge kate        
!!! Unable to parse profile: '/etc/portage/make.profile'
!!! ParseError: Parent '/usr/portage/profiles/funtoo/1.0/linux-gnu/arch/x86-64bit' not found: '/etc/portage/make.profile/parent'
!!! Your current profile is invalid. If you have just changed your profile
!!! configuration, you should revert back to the previous configuration.
!!! Allowed actions are limited to --help, --info, --search, --sync, and
!!! --version.

I went ahead and created all the folders in the /usr/portage/profiles/funtoo directory and then tried to install kate. This is what I got:

emerge kate       

 * IMPORTANT: 1 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.

Calculating dependencies /================================================================================================
======== Traceback for invalid call to portage.package.ebuild.config.config.__getitem__ ========
  File "/usr/lib/python-exec/python2.7/emerge", line 50, in <module>
    retval = emerge_main()
  File "/usr/lib64/python2.7/site-packages/_emerge/main.py", line 1224, in emerge_main
    return run_action(emerge_config)
  File "/usr/lib64/python2.7/site-packages/_emerge/actions.py", line 3261, in run_action
    retval = action_build(emerge_config, spinner=spinner)
  File "/usr/lib64/python2.7/site-packages/_emerge/actions.py", line 338, in action_build
    settings, trees, myopts, myparams, myaction, myfiles, spinner)
  File "/usr/lib64/python2.7/site-packages/_emerge/depgraph.py", line 9247, in backtrack_depgraph
    myaction, myfiles, spinner)
  File "/usr/lib64/python2.7/site-packages/_emerge/depgraph.py", line 9284, in _backtrack_depgraph
    success, favorites = mydepgraph.select_files(myfiles)
  File "/usr/lib64/python2.7/site-packages/_emerge/depgraph.py", line 3606, in select_files
    return self._select_files(args)
  File "/usr/lib64/python2.7/site-packages/_emerge/depgraph.py", line 3949, in _select_files
    return self._resolve(myfavorites)
  File "/usr/lib64/python2.7/site-packages/_emerge/depgraph.py", line 4013, in _resolve
    myroot, atom, onlydeps=onlydeps)
  File "/usr/lib64/python2.7/site-packages/_emerge/depgraph.py", line 5364, in _select_pkg_highest_available
    ret = self._select_pkg_highest_available_imp(root, atom, onlydeps=onlydeps, parent=parent)
  File "/usr/lib64/python2.7/site-packages/_emerge/depgraph.py", line 5598, in _select_pkg_highest_available_imp
    autounmask_level=autounmask_level, parent=parent)
  File "/usr/lib64/python2.7/site-packages/_emerge/depgraph.py", line 5939, in _wrapped_select_pkg_highest_available_imp
    if not self._pkg_visibility_check(pkg, autounmask_level):
  File "/usr/lib64/python2.7/site-packages/_emerge/depgraph.py", line 5636, in _pkg_visibility_check
    mreasons = _get_masking_status(pkg, pkgsettings, root_config, use=self._pkg_use_enabled(pkg))
  File "/usr/lib64/python2.7/site-packages/_emerge/depgraph.py", line 9530, in _get_masking_status
    portdb=root_config.trees["porttree"].dbapi, myrepo=myrepo)
  File "/usr/lib64/python2.7/site-packages/portage/package/ebuild/getmaskingstatus.py", line 100, in _getmaskingstatus
    myarch = settings["ARCH"]
  File "/usr/lib64/python2.7/site-packages/portage/package/ebuild/config.py", line 2585, in __getitem__
    return self._getitem(key)
  File "/usr/lib64/python2.7/site-packages/portage/package/ebuild/config.py", line 2638, in _getitem
    raise KeyError(mykey)
KeyError: u'ARCH'
================================================================================================


!!! Problem in 'kde-apps/kate' dependencies.
!!! u'ARCH' None
... done!
Traceback (most recent call last):
  File "/usr/lib/python-exec/python2.7/emerge", line 50, in <module>
    retval = emerge_main()
  File "/usr/lib64/python2.7/site-packages/_emerge/main.py", line 1224, in emerge_main
    return run_action(emerge_config)
  File "/usr/lib64/python2.7/site-packages/_emerge/actions.py", line 3261, in run_action
    retval = action_build(emerge_config, spinner=spinner)
  File "/usr/lib64/python2.7/site-packages/_emerge/actions.py", line 338, in action_build
    settings, trees, myopts, myparams, myaction, myfiles, spinner)
  File "/usr/lib64/python2.7/site-packages/_emerge/depgraph.py", line 9247, in backtrack_depgraph
    myaction, myfiles, spinner)
  File "/usr/lib64/python2.7/site-packages/_emerge/depgraph.py", line 9284, in _backtrack_depgraph
    success, favorites = mydepgraph.select_files(myfiles)
  File "/usr/lib64/python2.7/site-packages/_emerge/depgraph.py", line 3606, in select_files
    return self._select_files(args)
  File "/usr/lib64/python2.7/site-packages/_emerge/depgraph.py", line 3949, in _select_files
    return self._resolve(myfavorites)
  File "/usr/lib64/python2.7/site-packages/_emerge/depgraph.py", line 4013, in _resolve
    myroot, atom, onlydeps=onlydeps)
  File "/usr/lib64/python2.7/site-packages/_emerge/depgraph.py", line 5364, in _select_pkg_highest_available
    ret = self._select_pkg_highest_available_imp(root, atom, onlydeps=onlydeps, parent=parent)
  File "/usr/lib64/python2.7/site-packages/_emerge/depgraph.py", line 5598, in _select_pkg_highest_available_imp
    autounmask_level=autounmask_level, parent=parent)
  File "/usr/lib64/python2.7/site-packages/_emerge/depgraph.py", line 5939, in _wrapped_select_pkg_highest_available_imp
    if not self._pkg_visibility_check(pkg, autounmask_level):
  File "/usr/lib64/python2.7/site-packages/_emerge/depgraph.py", line 5636, in _pkg_visibility_check
    mreasons = _get_masking_status(pkg, pkgsettings, root_config, use=self._pkg_use_enabled(pkg))
  File "/usr/lib64/python2.7/site-packages/_emerge/depgraph.py", line 9530, in _get_masking_status
    portdb=root_config.trees["porttree"].dbapi, myrepo=myrepo)
  File "/usr/lib64/python2.7/site-packages/portage/package/ebuild/getmaskingstatus.py", line 100, in _getmaskingstatus
    myarch = settings["ARCH"]
  File "/usr/lib64/python2.7/site-packages/portage/package/ebuild/config.py", line 2585, in __getitem__
    return self._getitem(key)
  File "/usr/lib64/python2.7/site-packages/portage/package/ebuild/config.py", line 2638, in _getitem
    raise KeyError(mykey)
KeyError: u'ARCH'

It seems like all the packages that I try and install are all masked. Also, when I restart my computer the /usr/portage/profiles/funtoo directory is gone. So, any idea what is going on?

Share this post


Link to post
Share on other sites
  • 0

The path in your /etc/portage/make.profile/parent to subarch/core2_64 is wrong:

 

gentoo:funtoo/1.0/linux-gnu/arch/x86-64bit
gentoo:funtoo/1.0/linux-gnu/build/current
gentoo
:funtoo/1.0/linux-gnu/subarch/core2_64
gentoo
:funtoo/1.0/linux-gnu/flavor/desktop
gentoo
:funtoo/1.0/linux-gnu/mix-ins/kde
gentoo
:funtoo/1.0/linux-gnu/mix-ins/kde-plasma-5

 

Path to subarch should be:

gentoo:funtoo/1.0/linux-gnu/arch/x86-64bit/subarch/core2_64

 

Use a text editor to correct it.

Share this post


Link to post
Share on other sites
  • 0

The path in your /etc/portage/make.profile/parent to subarch/core2_64 is wrong:

 

gentoo:funtoo/1.0/linux-gnu/arch/x86-64bit

gentoo:funtoo/1.0/linux-gnu/build/current

gentoo:funtoo/1.0/linux-gnu/subarch/core2_64

gentoo:funtoo/1.0/linux-gnu/flavor/desktop

gentoo:funtoo/1.0/linux-gnu/mix-ins/kde

gentoo:funtoo/1.0/linux-gnu/mix-ins/kde-plasma-5

 

Path to subarch should be:

gentoo:funtoo/1.0/linux-gnu/arch/x86-64bit/subarch/core2_64

 

Use a text editor to correct it.

 

 

Okay, I did what you said. However I am still having the same problem. I still get this when I try and emerge anything:

 

 

emerge kate
!!! Unable to parse profile: '/etc/portage/make.profile'
!!! ParseError: Parent '/usr/portage/profiles/funtoo/1.0/linux-gnu/arch/x86-64bit' not found: '/etc/portage/make.profile/parent'
!!! Your current profile is invalid. If you have just changed your profile
!!! configuration, you should revert back to the previous configuration.
!!! Allowed actions are limited to --help, --info, --search, --sync, and
!!! --version.

 

I also removed /usr/portage and did another --sync but still no luck.

 

What else can I do?

 

Do I just need to reinstall funtoo?

Share this post


Link to post
Share on other sites
  • 0

lo

I have the same problem , after emerge --sync.  my /usr/portage/profiles/funtoo is out ?

in /usr/portage/profiles/ there is not package.* in directory

my /usr/portage/profiles/  is not ok for funtoo. after

git --reset hard

emerge --sync

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...