Gentoo Overlay

April 15th, 2009

I have set up a portage overlay where I can easily share some of the ebuilds I discuss on this blog. Right now my overlay is fairly small and random, but I will continue to update it as the need arises. Below are instructions on how to access the overlay. Feel free to leave me any comments, suggestions or bugs on this page.

Subversion repository http://svn.bltweb.net/repos/public
Path gentoo_overlay
RSS ChangeLog (subversion commits) http://svn.bltweb.net/rss/public

Adding the overlay

The easiest way to add the overlay is to use layman. My overlay is not in the official layman list of overlays, however, so you will have to manually add my overlay to layman. To do this, edit the overlays section of your /etc/layman/layman.cfg file and add my overlay list:

Now you can add my overlay with layman:

# First we need to list the overlays – this reads the layman-list file
$ sudo layman -L
# Now we add the overlay
$ sudo layman -a bltweb.net

Using the overlay

All of the packages in my overlay use keywords ~x86 ~amd64 (unstable). Therefore, unless you accept ~x86 or ~amd64 keywords system-wide, you will need to add any packages you want to use to the /etc/portage/package.keywords file. See the gentoo manual for more information.

I try to submit my ebuilds to Gentoo whenever I think they are ready. As I’m not a Gentoo dev, it can take a while for a new ebuild to appear in the official portage tree, often years! I’ve been trying to submit ebuilds to the Gentoo Sunrise Overlay as well, however it is sometimes hard to get them reviewed. Thus I’ve set up this overlay as an easier way to access ebuilds between my various machine and share them with the world in the process.

Updating the overlay

Unfortunately, the overlay will not be updated when you perform an emerge --sync, however you can update all of your layman overlays with:

$ layman -S
  1. August 14th, 2009 at 00:55 | #1

    Thanks for the PHP 5.3 overlay!

  2. August 14th, 2009 at 07:00 | #2

    @Duo
    No problem. Let me know if you find any problems!

  3. Ren
    December 4th, 2009 at 19:44 | #3

    Tried your overlay, but had a little problem:

    Build complete.
    Don’t forget to run ‘make test’.

    >>> Source compiled.
    ————————— ACCESS VIOLATION SUMMARY —————————
    LOG FILE = “/var/log/sandbox/sandbox-11214.log”

    symlink: /usr/lib/libc-client.a (symlink to /usr/lib/c-client.a)
    symlink: /usr/lib/libc-client.a (symlink to /usr/lib/c-client.a)
    ——————————————————————————–

    >>> Failed to emerge dev-lang/php-5.3.0, Log file:

    >>> ‘/var/tmp/portage/dev-lang/php-5.3.0/temp/build.log’

    * Messages for package dev-lang/php-5.3.0:

    * There is no multilib-strict patch available for this PHP release yet!
    * Enabling ZTS for Apache2 MPM
    * Enabling ZTS for Apache2 MPM

    * IMPORTANT: 6 news items need reading for repository ‘gentoo’.
    * Use eselect news to read news items.

  4. Martin
    February 17th, 2010 at 07:48 | #4

    dev-db/phpmyadmin has a conflict with the dev-lang/php-5.3.1 ebuild. The problem appears to be the permanently disabled use flags pcre and spl in the php ebuild. These use flags are required for dev-db/phpmyadmin.

    Let me know if you want some more information or want me to do some more digging.

    Thanks.

  5. February 17th, 2010 at 09:39 | #5

    @Martin
    The pcre and spl use flags were removed because in PHP 5.3 they are always compiled. I added a phpmyadmin ebuild to my overlay that doesn’t check for these USE flags when PHP 5.3 is installed.

    I don’t use phpmyadmin however, so I have done very little testing. If you end up using the new phpmyadmin ebuild, let me know if it works.

  6. February 25th, 2010 at 03:06 | #6

    * There is no multilib-strict patch available for this PHP release yet!
    * Enabling ZTS for Apache2 MPM
    * Enabling ZTS for Apache2 MPM

    I’ve the same problem too.

  7. Pierre
    March 15th, 2010 at 03:52 | #7

    Same problem
    This is the log :
    >>> Source compiled.
    ————————— ACCESS VIOLATION SUMMARY —————————
    LOG FILE “/var/log/sandbox/sandbox-10808.log”

    VERSION 1.0
    FORMAT: F – Function called
    FORMAT: S – Access Status
    FORMAT: P – Path as passed to function
    FORMAT: A – Absolute Path (not canonical)
    FORMAT: R – Canonical Path
    FORMAT: C – Command Line

    F: symlink
    S: deny
    P: /usr/lib/libc-client.a
    A: /usr/lib/libc-client.a
    R: /usr/lib/c-client.a
    C: ln -s /usr/lib/c-client.a /usr/lib/libc-client.a

    F: symlink
    S: deny
    P: /usr/lib/libc-client.a
    A: /usr/lib/libc-client.a
    R: /usr/lib/c-client.a
    C: ln -s /usr/lib/c-client.a /usr/lib/libc-client.a

    F: symlink
    S: deny
    P: /usr/lib/libc-client.a
    A: /usr/lib/libc-client.a
    R: /usr/lib/c-client.a
    C: ln -s /usr/lib/c-client.a /usr/lib/libc-client.a
    ——————————————————————————–

    >>> Failed to emerge dev-lang/php-5.3.2, Log file:

    >>> ‘/var/tmp/portage/dev-lang/php-5.3.2/temp/build.log’

    * Messages for package dev-lang/php-5.3.2:

    * There is no multilib-strict patch available for this PHP release yet!
    * Enabling ZTS for Apache2 MPM
    * Enabling ZTS for Apache2 MPM
    * Enabling ZTS for Apache2 MPM

    And use flag :

    dev-lang/php-5.3.2 [5.2.12] USE=”apache2 berkdb bzip2 calendar cgi cli crypt ctype curl gd gdbm hash iconv imap ipv6 json ldap mysql nls readline session simplexml snmp soap sockets ssl threads truetype unicode xml zip zlib -adabas -bcmath -birdstep -cdb -cjk -concurrentmodphp -curlwrappers -db2 -dbmaker -debug -doc -empress -empress-bcs -enchant% -esoob -exif -fastbuild -fileinfo% -filter -firebird -flatfile -ftp -gd-external -gmp -inifile -interbase -intl% -iodbc (-java-external) -kerberos -kolab -ldap-sasl -libedit -mcve -mhash -mssql -mysqli -mysqlnd% -oci8 -oci8-instant-client -odbc -pcntl -pdo -phar% -pic -posix -postgres -qdbm -recode -sapdb -sharedext -sharedmem -solid -spell -sqlite -sqlite3% -suhosin -sybase-ct -sysvipc -tidy -tokenizer -wddx -xmlreader -xmlrpc -xmlwriter -xpm -xsl -yaz (-dbase%) (-discard-path%) (-fdftk%) (-force-cgi-redirect%) (-frontbase%) (-msql%) (-ncurses%*) (-pcre%*) (-reflection%*) (-spl%*) (-sybase%)” 0 kB [0=>1]

    Any solution?

    • March 15th, 2010 at 08:14 | #8

      Did you try emerging as root? The error message you posted indicated you couldn’t create a symbolic link in /usr/lib.

  8. Pierre
    March 17th, 2010 at 04:52 | #9

    yes I try as root,
    if I try : ln -s /usr/lib/c-client.a /usr/lib/libc-client.a
    it show that the file exist.
    I ‘m trying to del all symbolic link and emerge php again

  9. Pierre
    March 17th, 2010 at 08:41 | #10

    No same problem :s
    It’s a x86 system (~x86 keyword added for php in package.keywords)

  10. March 20th, 2010 at 11:03 | #11

    solution:

    # echo \FEATURES=userpriv\ >> /etc/make.conf
    # emerge -vD php

  11. Pierre
    March 29th, 2010 at 07:43 | #12

    Sorry, used a different overlay, work perfectly!

  1. March 5th, 2010 at 03:54 | #1