Author Topic: how to use makepkg with fakeroot  (Read 1209 times)

0 Members and 1 Guest are viewing this topic.

Offline mark001

  • Sr. Mitglied
  • ****
  • Posts: 263
  • Branch: stable
  • Desktop: xfce4
  • GPU Card: Intel HD Graphics
  • GPU driver: i915
  • Skill: Novice
how to use makepkg with fakeroot
« on: 25. August 2015, 15:05:53 »
Hi

I don't get it how to use makepkg in case of kernel build? There should be used fakeroot but I am not sure how to combine utils :(

Is it :

Code: [Select]
$fakeroot makepkg
...or?

So my question is how to use makepkg with fakeroot?

Thanks

Offline mark001

  • Sr. Mitglied
  • ****
  • Posts: 263
  • Branch: stable
  • Desktop: xfce4
  • GPU Card: Intel HD Graphics
  • GPU driver: i915
  • Skill: Novice
Re: how to use makepkg with fakeroot
« Reply #1 on: 26. August 2015, 16:16:21 »
As a test, today I just tried to run makepkg as it is like a:

Code: [Select]
$makepkg
at the end of generation report I found :

Code: [Select]
...
Generating .PKGINFO file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Leaving fakeroot environment. #<---?
...

does this mean makepkg uses fakeroot by default? Please share your experience concerning using makepkg util

p.s. makepkg version is 4.2.1
« Last Edit: 26. August 2015, 16:18:54 by mark001 »

Offline Strit

  • Maintainer
  • ***
  • Posts: 746
  • Manjaro Torrent Maintainer
    • Strits.dk
  • Branch: Stable
  • Desktop: XFCE
  • GPU Card: GTX 760 OC
  • GPU driver: Non-free nvidia 361
  • Kernel: 4.4.8-1-MANJARO
  • Skill: Intermediate
Re: how to use makepkg with fakeroot
« Reply #2 on: 31. August 2015, 10:45:22 »
Yes. I believe that makepkg uses a fakeroot environment, which is also why you can't use sudo or root to use makepkg.
Desktop PC: Manjaro XFCE 15.12 (stable, kernel 4.4)
Private Laptop: Manjaro Strit 16.03 (unstable, kernel 4.6)
Work Laptop: Manjaro Strit 16.03 (stable, kernel 4.4)
Netbook: Arch Linux XFCE/LXqt (i686, kernel 4.0)

Offline Esclapion

  • Support Team
  • ****
  • Posts: 5523
    • manjaro
  • Branch: stable
  • Desktop: Lxqt
  • GPU Card: GTX 970
  • GPU driver: nonfree
  • Kernel: 4.4.6
  • Skill: Advanced
Re: how to use makepkg with fakeroot
« Reply #3 on: 31. August 2015, 10:57:51 »
I think makepkg prepares an image on what will be the root environment (in $pkgdir) but doesn't use the command fakeroot.
Venez nous rejoindre sur l'IRC francophone
Patrice - Violence is the last refuge of the incompetent (Asimov)

Offline mark001

  • Sr. Mitglied
  • ****
  • Posts: 263
  • Branch: stable
  • Desktop: xfce4
  • GPU Card: Intel HD Graphics
  • GPU driver: i915
  • Skill: Novice
Re: how to use makepkg with fakeroot
« Reply #4 on: 22. March 2016, 19:40:24 »
I think makepkg prepares an image on what will be the root environment (in $pkgdir) but doesn't use the command fakeroot.

Are you sure it doesn't use fakeroot? But should I use fakeroot then to use makepkg to avoid some security problems?

Offline whoknows

  • Vollwertiges Mitglied
  • ***
  • Posts: 118
  • Branch: Unstable
  • Desktop: KDE
  • GPU Card: Intel
  • GPU driver: Free
  • Kernel: Linux318-64
  • Skill: Novice
Re: how to use makepkg with fakeroot
« Reply #5 on: 22. March 2016, 20:20:55 »
There seems to some confusion. So hopefully this will clear things up for you https://wiki.archlinux.org/index.php/Arch_Build_System#fakeroot

Offline mark001

  • Sr. Mitglied
  • ****
  • Posts: 263
  • Branch: stable
  • Desktop: xfce4
  • GPU Card: Intel HD Graphics
  • GPU driver: i915
  • Skill: Novice
Re: how to use makepkg with fakeroot
« Reply #6 on: 22. March 2016, 21:01:26 »
There seems to some confusion. So hopefully this will clear things up for you https://wiki.archlinux.org/index.php/Arch_Build_System#fakeroot

The quote from https://wiki.archlinux.org/index.php/Arch_Build_System#fakeroot clears up my doubts as :

Quote
In conjunction with the fakeroot program, makepkg creates a fake root directory, and installs the compiled binaries and associated files into it, with root as owner.)

so seems like no need to use fakeroot in combination with makepkg cause makepkg uses fakeroot  ;D

Thank you all for your replies  ^-^