Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Ebuild and Use Flags
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
PostChache
n00b
n00b


Joined: 30 Nov 2009
Posts: 42

PostPosted: Mon May 28, 2012 7:41 pm    Post subject: Ebuild and Use Flags Reply with quote

/etc/make.conf
Code:

# 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.?
Back to top
View user's profile Send private message
popsUlfr
Tux's lil' helper
Tux's lil' helper


Joined: 27 Feb 2011
Posts: 80

PostPosted: Mon May 28, 2012 7:58 pm    Post subject: Re: Ebuild and Use Flags Reply with quote

PostChache wrote:
Code:

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 :)
Back to top
View user's profile Send private message
Hu
Watchman
Watchman


Joined: 06 Mar 2007
Posts: 7610

PostPosted: Mon May 28, 2012 10:00 pm    Post subject: Re: Ebuild and Use Flags Reply with quote

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.
Back to top
View user's profile Send private message
PostChache
n00b
n00b


Joined: 30 Nov 2009
Posts: 42

PostPosted: Tue May 29, 2012 5:36 pm    Post subject: Reply with quote

Code:

# 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:

# 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:

# 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.
Back to top
View user's profile Send private message
popsUlfr
Tux's lil' helper
Tux's lil' helper


Joined: 27 Feb 2011
Posts: 80

PostPosted: Tue May 29, 2012 6:36 pm    Post subject: Reply with quote

PostChache wrote:
Code:

# 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:
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:
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? :)
Back to top
View user's profile Send private message
PostChache
n00b
n00b


Joined: 30 Nov 2009
Posts: 42

PostPosted: Tue May 29, 2012 6:50 pm    Post subject: Reply with quote

Thanks that solved that!

Now I'm getting this error
Code:

 # 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:


# 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"
}


http://forums.gentoo.org/viewtopic-t-756086-highlight-cairocompmgr.html

When I try to use it I get
Code:
No package 'libvala-0.14' found
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum