Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

Ebuild and Use Flags

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
6 posts • Page 1 of 1
Author
Message
PostChache
n00b
n00b
Posts: 42
Joined: Mon Nov 30, 2009 4:20 pm

Ebuild and Use Flags

  • Quote

Post by PostChache » Mon May 28, 2012 7:41 pm

/etc/make.conf

Code: Select all

# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
CFLAGS="-march=native -O2 -pipe"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j1"

VIDEO_CARDS="intel"
INPUT_DEVICES="evdev synaptics"

# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="x86_64-pc-linux-gnu"
# These are the USE flags that were used in addition to what is provided by the
# profile used for building.
PORTDIR_OVERLAY=/usr/local/portage/
USE="$GUI $SOUND $GRAPHICS $MISC"

GUI="-qt3support -qt4 -ncurses gtk X font-styles"
SOUND="alsa mp3 mp4 flac"
GRAPHICS="iconv tiff opengl apng glib gif jpeg"
MISC="policykit ssl unicode sasl threads bzip2 e2fsprogs lzma zlib css vim-syntax acl gpm perl cairo acpi dvd dbus session nls xcb libnotify svg xml xulrunner startup-notification mmx sse sse2"
GENTOO_MIRRORS="http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ http://mirror.lug.udel.edu/pub/gentoo/"

SYNC="rsync://rsync6.us.gentoo.org/gentoo-portage"
I have an ebuild in /usr/local/portage and I've ran emerge --sync yet whenever I try to emerge it it says it cannot be found.

Also, did I do my USE flags right with $GUI $SOUND ect.?
Top
popsUlfr
Tux's lil' helper
Tux's lil' helper
Posts: 80
Joined: Sun Feb 27, 2011 5:59 pm

Re: Ebuild and Use Flags

  • Quote

Post by popsUlfr » Mon May 28, 2012 7:58 pm

PostChache wrote:

Code: Select all

USE="$GUI $SOUND $GRAPHICS $MISC"

GUI="-qt3support -qt4 -ncurses gtk X font-styles"
SOUND="alsa mp3 mp4 flac"
GRAPHICS="iconv tiff opengl apng glib gif jpeg"
MISC="policykit ssl unicode sasl threads bzip2 e2fsprogs lzma zlib css vim-syntax acl gpm perl cairo acpi dvd dbus session nls xcb libnotify svg xml xulrunner startup-notification mmx sse sse2"
Your 'USE' variable as it is will be EMPTY (well only the useflags in your profile will be on) if you only define your 'GUI','SOUND', 'GRAPHICS', 'MISC' variables after the fact! Define your 'USE' variable AFTER you defined the variables you want to be included.

You don't need to do 'emerge --sync' to pick up changes in your overlays, please explain how you added your ebuild to your local portage tree :)
Top
Hu
Administrator
Administrator
Posts: 24403
Joined: Tue Mar 06, 2007 5:38 am

Re: Ebuild and Use Flags

  • Quote

Post by Hu » Mon May 28, 2012 10:00 pm

PostChache wrote:Also, did I do my USE flags right with $GUI $SOUND ect.?
No. You are passing those temporaries as environment variables to the packages you build. In some cases, this can confuse the package into doing something strange. You should use only the standard names in /etc/make.conf. Please post the output of find /usr/local/portage -ls.
Top
PostChache
n00b
n00b
Posts: 42
Joined: Mon Nov 30, 2009 4:20 pm

  • Quote

Post by PostChache » Tue May 29, 2012 5:36 pm

Code: Select all

# find /usr/local/portage/ -ls
17213129    4 drwxr-xr-x   4 root     root         4096 May 29 12:17 /usr/local/portage/
17213236    4 drwxr-xr-x   2 root     root         4096 May 29 12:20 /usr/local/portage/x11-misc
16828669    4 -rw-r--r--   1 che      che           534 May 29 12:20 /usr/local/portage/x11-misc/cairo-compmgr-0.3.0.ebuild
17213234    4 drwxr-xr-x   2 root     root         4096 May 29 12:15 /usr/local/portage/profiles
17213235    4 -rw-r--r--   1 root     root           14 May 29 12:15 /usr/local/portage/profiles/repo_name
ebuild

Code: Select all

# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="2"

inherit gnome2

DESCRIPTION="A versatile and extensible compositing manager which uses cairo for rendering"
HOMEPAGE="http://cairo-compmgr.tuxfamily.org/"
SRC_URI="http://download.tuxfamily.org/ccm/${PN}/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE=""

RDEPEND="x11-libs/gtk+:2
	x11-libs/cairo
	dev-lang/vala:0
	x11-libs/pixman"
DEPEND="${RDEPEND}
	>=x11-proto/glproto-1.4.9"
Which I got from: http://gpo.zugaina.org/x11-wm/cairo-compmgr/euscan

I've never used an ebuild before, but whenever I do ebuild <.ebuild> digest I get

Code: Select all

# ebuild cairo-compmgr-0.3.0.ebuild digest
Appending /usr/local to PORTDIR_OVERLAY...
!!! /usr/local/portage/x11-misc/cairo-compmgr-0.3.0.ebuild does not seem to have a valid PORTDIR structure.
Thanks for y'alls help.
Top
popsUlfr
Tux's lil' helper
Tux's lil' helper
Posts: 80
Joined: Sun Feb 27, 2011 5:59 pm

  • Quote

Post by popsUlfr » Tue May 29, 2012 6:36 pm

PostChache wrote:

Code: Select all

# find /usr/local/portage/ -ls
17213129    4 drwxr-xr-x   4 root     root         4096 May 29 12:17 /usr/local/portage/
17213236    4 drwxr-xr-x   2 root     root         4096 May 29 12:20 /usr/local/portage/x11-misc
16828669    4 -rw-r--r--   1 che      che           534 May 29 12:20 /usr/local/portage/x11-misc/cairo-compmgr-0.3.0.ebuild
17213234    4 drwxr-xr-x   2 root     root         4096 May 29 12:15 /usr/local/portage/profiles
17213235    4 -rw-r--r--   1 root     root           14 May 29 12:15 /usr/local/portage/profiles/repo_name
Look at the official portage tree, it goes like this
[PORTAGE_OVERLAY]/[PACKAGE_CATEGORY]/[PACKAGE_NAME]/[PACKAGE_NAME]-[VERSION].ebuild
in your case this would be
/usr/local/portage/x11-misc/cairo-compmgr/cairo-compmgr-0.3.0.ebuild
the place where you need to put your ebuild.

You still need to create a manifest though before being able to emerge it, like this:

Code: Select all

ebuild /usr/local/portage/x11-misc/cairo-compmgr/cairo-compmgr-0.3.0.ebuild digest
Also note that your ebuild is ~arch keyworded, so unless you have

Code: Select all

ACCEPT_KEYWORDS="~[YOUR_ARCH]"
in your /etc/make.conf, you will need to add 'x11-misc/cairo-compmgr' to your '/etc/portage/package.keywords'

EDIT: One thing I noticed. Why do you want it in the 'x11-misc' category instead of the 'x11-wm' as seen in the source overlay? Not that it would make a difference when trying to install it, but is it just changing it for the sake of changing it? :)
Top
PostChache
n00b
n00b
Posts: 42
Joined: Mon Nov 30, 2009 4:20 pm

  • Quote

Post by PostChache » Tue May 29, 2012 6:50 pm

Thanks that solved that!

Now I'm getting this error

Code: Select all

 # ACCEPT_KEYWORDS="~amd64" emerge -av cairo-compmgr

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


These are the packages that would be merged, in order:

Calculating dependencies... done!

emerge: there are no ebuilds to satisfy "dev-lang/vala:0".
(dependency required by "x11-misc/cairo-compmgr-0.3.0" [ebuild])
(dependency required by "cairo-compmgr" [argument])

 * IMPORTANT: 4 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.
Do you know how I should go about this? I have vala already so I went and changed the ebuild from vala:0 to just vala, but I still ended up getting an error so I don't know if that was the right thing to do.


Edit:

I saw that the ebuild has a label for bgo-overlay so I found this one on the forum

Code: Select all


# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=2

inherit autotools eutils git gnome2

EGIT_REPO_URI="git://git.tuxfamily.org/gitroot/ccm/cairocompmgr.git"

DESCRIPTION="Cairo Composite Manager is a versatile and extensible composite manager which use cairo for rendering."
HOMEPAGE="http://cairo-compmgr.tuxfamily.org/"
SRC_URI=""

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~ppc"
IUSE="glitz gnome nls"

RDEPEND=">=x11-libs/gtk+-2.10
   glitz? (
   >=media-libs/glitz-0.5.7
   x11-libs/cairo[glitz]
   )
   >=x11-libs/pixman-0.9.6
   >=x11-proto/glproto-1.4.9"
DEPEND="${RDEPEND}"

src_unpack() {
   git_src_unpack
}

src_prepare() {
   AT_M4DIR="." eautoreconf
}

src_configure() {
   econf \
      $(use_enable nls) \
      $(use_enable glitz) \
      $(use_enable glitz glitz-tfp) \
      $(use_enable gnome schemas-install) \
      --enable-shave || die "econf failed"
}

src_compile() {
   emake || die "emake failed"
} 
https://forums.gentoo.org/viewtopic-t-7 ... mpmgr.html

When I try to use it I get

Code: Select all

No package 'libvala-0.14' found
Top
Post Reply

6 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic