Author Topic: Portage, emerge / addpkg  (Read 1020 times)

Offline tele

  • Full Member
  • ***
  • Posts: 196
Portage, emerge / addpkg
« on: November 30, 2012, 12:03:31 PM »
Portage is written in the Python programming language and bash,
so You can edit this.
Portage is characterized by its main function: compiling from source code the packages the user wishes to install. In doing so it allows customization of compiler and target-application options to fit the system's specifications and the user's own wishes.
Portage is in Gentoo, Sabayon and Toorox linux distros.
Example:
Sabayon Linux relies on two package managers. Portage is inherited from Gentoo, while Entropy was developed for Sabayon.

What do you think about this?

Links
http://devmanual.gentoo.org/index.html
http://forums.gentoo.org/viewtopic.php?t=125553
http://vprajan.blogspot.com/2008/06/installing-portage-on-other-distros.html
http://wiki.sabayon.org/index.php?title=En:HOWTO:_The_Complete_Portage_Guide
http://how-to.wikia.com/wiki/How_to_install_Gentoo_emerge_on_a_non-Gentoo_Distribution_of_Linux

16:12.2012 Edit:
AutoPackage is a similar idea.

http://en.wikipedia.org/wiki/Autopackage
http://www.osnews.com/story/2307
http://code.google.com/p/autopackage/downloads/list
« Last Edit: April 26, 2013, 12:08:50 AM by tele »
---
Sorry, if my language is wrong,
you please write notice where I do mistakes, I will try to learn.

Offline kjpetrie

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3990
Re: Pertage, emerge
« Reply #1 on: November 30, 2012, 01:23:44 PM »
If you want to go to all that trouble, why not use Gentoo or one of its offshoots? The gain is minimal unless you're into benchmarking and care about small gains and the pain is disproportionate because packages can take several hours to compile, all dependencies would need to be compiled first, and an upgrade which currently takes a few minutes to apply (once the packages are downloaded) could easily take days. I also doubt emerge could use the apt-get package lists to identify the correct source packages, so you'd need an entirely separate repo.

I'm not clear whether you're asking for help in packaging these, even though they'd probably be useless in the pclos repo, or trying to start a discussion on package managers, in which case this belongs in Software Discussion.

In a rolling release these would be more trouble than they're worth because upgrades are frequent and the compile time would reduce system availability to users, especially if the compile failed for some reason, as they sometimes do, and people started needing help.

That's what I think, anyway.
-----------
KJP
-----------------------------------------------------------
PClos64 RC1 on Intel D945GCLF2 motherboard (Atom 330), 2GB DDR2 RAM, Maxtor STM325031, HL-DT-ST DVDRAM GSA-H42N, Amilo LSL 3220T monitor. Also Acer 5810TG (with custom kernel) and Asus eeePC 2G surf

Offline tele

  • Full Member
  • ***
  • Posts: 196
Re: Pertage, emerge
« Reply #2 on: December 01, 2012, 12:52:27 AM »
I'm not expert and I reading but I don't know how to install for now.
I will try downoad tar.bz portage and although I see, how it looks.
Of these links, it appears that it is not easy, because distros are other.
Why I'm interested in portage?
Because this scripts can help build package faster, because automatically, only for this.
Pclinuxos has some scripts and macros, example "Install SRPM for build", "Instal Dependencies" from spec. file,
but we can create more, truth?
Next reason, I'm not afraid to spoil the system, I can always re-install.
I like to test the new software. but if build rpm is time-consuming, why not simplify?
I don't need all from portage. If will portage in pc-linux, this will take a little time.
« Last Edit: December 01, 2012, 12:59:49 AM by tele »
---
Sorry, if my language is wrong,
you please write notice where I do mistakes, I will try to learn.

Offline kjpetrie

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3990
Re: Pertage, emerge
« Reply #3 on: December 01, 2012, 08:11:57 AM »
Portage/emerge is not the packaging system used here and just wouldn't work with the current repo, so you couldn't use it on pclos.

Yes you could install it and you might be able to use it to install some applications from source, but it would almost certainly break the system and it wouldn't be able to keep your system up-to-date. It just wouldn't work as intended.

To use these package managers you need a distribution with a repo designed to work with them.
-----------
KJP
-----------------------------------------------------------
PClos64 RC1 on Intel D945GCLF2 motherboard (Atom 330), 2GB DDR2 RAM, Maxtor STM325031, HL-DT-ST DVDRAM GSA-H42N, Amilo LSL 3220T monitor. Also Acer 5810TG (with custom kernel) and Asus eeePC 2G surf

Offline daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3735
  • God knows, i'm not an Angel!
    • Tipps und Tricks
Re: Pertage, emerge
« Reply #4 on: December 01, 2012, 03:03:32 PM »
What is wrong with our package system, that you ask for this?

Offline tele

  • Full Member
  • ***
  • Posts: 196
Re: Pertage, emerge
« Reply #5 on: December 04, 2012, 06:19:27 AM »
 
Quote
What is wrong with our package system, that you ask for this?
For me ? I like everything   ;D
---
Sorry, if my language is wrong,
you please write notice where I do mistakes, I will try to learn.

Offline tele

  • Full Member
  • ***
  • Posts: 196
Re: Portage, emerge
« Reply #6 on: March 29, 2013, 02:50:15 PM »
I'm sorry  :-[
My mistake due to not understanding the text
I plunged more into the subject and read...

1.
Quote
Autopackage packages are totally unsuitable for Gentoo systems for a large number of reasons:

http://devmanual.gentoo.org/ebuild-writing/functions/src_prepare/autopackage/index.html

2. I found that, gentoo not build new package from source.
PCLinux, Mandriva, Fedora, Suse, Arch Linux, Gentoo uses a configuration file ( .spec , ebuild , PKGBUILD )
that is created by hand and on the basis of this file are created package.

3. autopackage is real, but it is not developed from 2010

4. I am also very interested Yaourt
https://wiki.archlinux.org/index.php/Yaourt

Yaourt is a script in arch linux
  PKGBUILD file which was built by an ordinary user
can use the link to the file
to download the source code, download the dependencies, compile and install.

 - I would like to form a similar script,
or to expand the current script pclinuxos.
The idea is that the script will recognize simple errors, and he suggested, for example, search for and install the dependencies and to save all the changes in the log.
 - I could use a script to rpm files.
To install the dependencies automatically

How can also build scripts  for command ...
Quote
rpmbuild -ba nameofthepackage.spec
 ???
---
Sorry, if my language is wrong,
you please write notice where I do mistakes, I will try to learn.

Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10647
  • MLUs Forever!
Re: Portage, emerge
« Reply #7 on: March 29, 2013, 02:56:58 PM »
Have a search for 'checkinstall' which appears to do what you are looking for ......
MLUs rule the roost!

Linux XPS 3.4.38-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline tele

  • Full Member
  • ***
  • Posts: 196
Re: Portage, emerge
« Reply #8 on: March 29, 2013, 03:16:42 PM »
Thanks, can come in handy.
Quote
Checkinstall created rpm:
    ./configure
    make
    checkinstall

I remember I was pclinuxos-command script that automatically installs dependencies
  from the spec file.
Can someone remind me how to do it?

Quote
An easy way to install dependencies needed for build is to right-click on the .spec file and select Install dependencies
Where can I find script for this ? Because I have Lxde and I don't have this option.

- my vestigial knowledge
/usr/lib/rpm/macros
« Last Edit: March 30, 2013, 02:55:46 AM by tele »
---
Sorry, if my language is wrong,
you please write notice where I do mistakes, I will try to learn.

Online TerryN

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 723
Re: Portage, emerge
« Reply #9 on: March 30, 2013, 05:42:18 AM »
Quote
An easy way to install dependencies needed for build is to right-click on the .spec file and select Install dependencies
Where can I find script for this ? Because I have Lxde and I don't have this option.

The program is addpkg which is part of pkgutils.

Terry.
« Last Edit: March 30, 2013, 05:46:43 AM by TerryN »
Dell E521 - AMD 64 X2 5000+, 4GB RAM, ATI X1300 graphics
PCLinuxOS 2013 (KDE)
|Twitter|

Offline tele

  • Full Member
  • ***
  • Posts: 196
Re: Portage, emerge
« Reply #10 on: March 30, 2013, 08:09:06 AM »
So,
Code: [Select]
addpkg name_of.specand it exist in /usr/bin
Thanks Terry.  ;D
---
Sorry, if my language is wrong,
you please write notice where I do mistakes, I will try to learn.

Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10647
  • MLUs Forever!
Re: Portage, emerge
« Reply #11 on: March 30, 2013, 08:33:37 AM »
So,
Code: [Select]
addpkg name_of.specand it exist in /usr/bin
Thanks Terry.  ;D

Quote
The program is addpkg which is part of pkgutils.
 

You won't have it unless you install it :-X
MLUs rule the roost!

Linux XPS 3.4.38-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline tele

  • Full Member
  • ***
  • Posts: 196
Re: Portage, emerge
« Reply #12 on: March 30, 2013, 09:33:51 AM »
Quote
Quote
The program is addpkg which is part of pkgutils.
 

You won't have it unless you install it Lips Sealed
I have pkgutils.

Quote
addpkg name_of.spec
I think I'm doing something wrong
Quote
# addpkg something-0.6.0.spec

   Usage: addpkg SPECFILE

Uses apt-get to install missing dependencies in SPECFILE

Please use this command as normal user, not root.
But this is not normal, because for install from apt-get I need root  ::)

« Last Edit: March 30, 2013, 09:35:35 AM by tele »
---
Sorry, if my language is wrong,
you please write notice where I do mistakes, I will try to learn.

Online TerryN

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 723
Re: Portage, emerge
« Reply #13 on: March 30, 2013, 09:35:57 AM »
Please use this command as normal user, not root
But this is not normal, because for install from apt-get I need root  ::)

PCLinuxOS packaging is done as a normal user.
addpkg prompts for root access to run the apt-get and then returns to normal user.

Terry
« Last Edit: March 30, 2013, 09:56:02 AM by TerryN »
Dell E521 - AMD 64 X2 5000+, 4GB RAM, ATI X1300 graphics
PCLinuxOS 2013 (KDE)
|Twitter|

Offline tele

  • Full Member
  • ***
  • Posts: 196
Re: Portage, emerge
« Reply #14 on: March 30, 2013, 10:14:17 AM »
So, something working wrong in my computer.
For normal user this script "Nothing to do for x.spec", but I have missing build dependencies.
So I can install hand , or build own script, I can also fix but I do not know bash , so I need learn bash.
But it seemed to me that it worked before with  thunar or dolphin in kde .
---
Sorry, if my language is wrong,
you please write notice where I do mistakes, I will try to learn.