Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Architectures & Platforms Gentoo for Mac OS X (Portage for Mac OS X)
  • Search

Anyway to tell Portage that I have Apple's X11 installed?

Running Portage on Mac OS X and need help with a problem? Post here.
Locked
Advanced search
12 posts • Page 1 of 1
Author
Message
Evolution
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 88
Joined: Fri Mar 07, 2003 1:14 am
Location: NJ
Contact:
Contact Evolution
Website

Anyway to tell Portage that I have Apple's X11 installed?

  • Quote

Post by Evolution » Wed Sep 29, 2004 9:31 pm

I'm trying to install a package that requires X11, the only problem is I don't know how to tell portage that I have it installed. Any ideas?
///M
Top
beergutxl
n00b
n00b
Posts: 10
Joined: Sun Sep 05, 2004 1:52 pm
Location: Manchester, England

  • Quote

Post by beergutxl » Wed Sep 29, 2004 10:59 pm

According to the emerge man pages this is exactly what the inject option is for
Injecting a package inserts a 'stub' for that package so that Portage thinks that it is installed.
so
emerge inject [package its trying to install]
will prevent it from emergeing X11.
But as I'm not a mac user no idea if the OS X portage supports it. Hope I've been of some help.

Beergut
Last edited by beergutxl on Thu Sep 30, 2004 2:11 pm, edited 1 time in total.
Top
Evolution
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 88
Joined: Fri Mar 07, 2003 1:14 am
Location: NJ
Contact:
Contact Evolution
Website

  • Quote

Post by Evolution » Thu Sep 30, 2004 12:34 am

hmm I tried that but I kept gettin an error. I made a directory called "apple-xfree" in /usr/portage/x11-base . I then made a fake ebuild file called x11-1.0.ebuild and just put "installed" in the body of the text of the file. When I tried

Code: Select all

emerge inject x11-base/apple-xfree
I get an error that a specific cat-pkg must be used. I tried it also with x11-base/apple-xfree/x11-1.0 and apple-xfree/x11-1.0 . It DID work when I tried

Code: Select all

emerge inject apple-xfree/x11-1.0.
but I don't know why that one worked and the other didn't
///M
Top
beergutxl
n00b
n00b
Posts: 10
Joined: Sun Sep 05, 2004 1:52 pm
Location: Manchester, England

  • Quote

Post by beergutxl » Thu Sep 30, 2004 1:40 am

Don't know why the first didn't work but maybe is the filenames anyway...
maybe i didn't make myself clear type
emerge -p [the program you want to install]
then enter
emerge inject [the xserver the previous command is trying to install]
This should fool portage into thinking its already installed it.

Beergut
Top
JoseJX
Retired Dev
Retired Dev
Posts: 2774
Joined: Sun Apr 28, 2002 8:21 pm
Contact:
Contact JoseJX
Website

  • Quote

Post by JoseJX » Thu Sep 30, 2004 3:16 am

With the new version of portage (that MacOSX uses) the inject keyword is depreciated. If you have recently emerge sync'd you should already have xfree provided in your profile. You may need to upgrade your portage version as well.
Top
Evolution
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 88
Joined: Fri Mar 07, 2003 1:14 am
Location: NJ
Contact:
Contact Evolution
Website

  • Quote

Post by Evolution » Thu Sep 30, 2004 3:32 am

beergutxl, I know what you meant, the command simply didn't work. I'm emerge syncing right now, hopefully that will clear this up. Ill let you know how it goes.
///M
Top
phaidros
n00b
n00b
Posts: 26
Joined: Sun Jul 27, 2003 10:40 pm
Location: germany
Contact:
Contact phaidros
Website

  • Quote

Post by phaidros » Thu Sep 30, 2004 3:40 pm

In gentoo osx' portage "emerge --inject" is depreceated.
instead is there a file /etc/portage/profile/package.provided
there u can put in already install software.
e.g.

Code: Select all

echo "x11-base/xfree-4.3.0-r7" >> /etc/portage/packages.provided
my one (I've xcode 1.5 installed):

Code: Select all

cat /etc/portage/profile/packages.provided
app-shells/bash-2.05b-r2
dev-libs/libxml2-2.6.7
sys-devel/libperl-5.8.1 
dev-lang/perl-5.8.1
sys-devel/autoconf-2.59
sys-devel/m4-1.4
sys-apps/coreutils-0.0.0
sys-devel/automake-1.6.3
Top
DaVe&OpenMOsix
Apprentice
Apprentice
User avatar
Posts: 213
Joined: Tue Dec 30, 2003 10:42 pm
Contact:
Contact DaVe&OpenMOsix
Website

  • Quote

Post by DaVe&OpenMOsix » Sun Oct 10, 2004 9:49 pm

i do not have package.provided in /etc/portage.
i do not have /etc/portage!
i made

Code: Select all

mkdir /etc/portage
touch /etc/portage/packages.provided
echo "x11-base/xfree-4.3.0-r7" >> /etc/portage/packages.provided
-bash: /etc/portage/packages.provided: Permission denied
but i can't write on this file!
i tried also with nano/pico.
do you have some ideas about?
thanks, sorry for my english...
DaVe!
-- Siccome sono un informatico ho votato PCI convinto di aumentare gli slot di espansione della società --
-^v^v^v^v^v^v^v^v^v^-
DaVe the WaVe
http://dave.ccni.it
http://www.davethewave.it
-^v^v^v^v^v^v^v^v^v^-
Top
DaVe&OpenMOsix
Apprentice
Apprentice
User avatar
Posts: 213
Joined: Tue Dec 30, 2003 10:42 pm
Contact:
Contact DaVe&OpenMOsix
Website

  • Quote

Post by DaVe&OpenMOsix » Sun Oct 10, 2004 10:03 pm

ok, sorry, i cannot write due to permissions on file.
i edited the file inserting

Code: Select all

x11-base/xfree-4.3.0-r7
but

Code: Select all

emerge -pv aterm
Calculating dependencies \
emerge: there are no ebuilds to satisfy "x11-base/apple-xfree".
i have to insert also x11-base/apple-xfree?
i tried this, but it no works!
bye...
DaVe
-- Siccome sono un informatico ho votato PCI convinto di aumentare gli slot di espansione della società --
-^v^v^v^v^v^v^v^v^v^-
DaVe the WaVe
http://dave.ccni.it
http://www.davethewave.it
-^v^v^v^v^v^v^v^v^v^-
Top
danie
n00b
n00b
Posts: 5
Joined: Mon Oct 11, 2004 4:07 am
Location: los angeles
Contact:
Contact danie
Website

bootstrap-macos.sh

  • Quote

Post by danie » Mon Oct 11, 2004 4:20 am

Did you run: /usr/portage/scripts/bootstrap-macos.sh ? This script will inject an X package so that you can use apple's X11 user and developer packages. In order for X-dependent packages to compile you need the developer X11 package, which is an extra package in the Xcode package. If you want to run X-dependent applications then you probably need to install the X11 user package (http://www.apple.com/macosx/features/x11/download/), or use Fink.

If bootstrap-macos.sh does not work then you will want to: emerge --inject x11-base/apple-xfree-4.3
The versions of emerge that I have used on OS X have pretty much ignored the package.provided files, which is probably why bootstrap-macos.sh injects all of the files in /etc/make.profile/package.provided.
Top
DaVe&OpenMOsix
Apprentice
Apprentice
User avatar
Posts: 213
Joined: Tue Dec 30, 2003 10:42 pm
Contact:
Contact DaVe&OpenMOsix
Website

  • Quote

Post by DaVe&OpenMOsix » Tue Oct 12, 2004 10:05 am

thanks Danie!
i have already bootstrapped the system and i have already installed X11 (i use with fink a lot of software).

Code: Select all

emerge --inject x11-base/apple-xfree-4.3 
ok this command have injected the package, but aterm compile fails.
when i try to update portage, the python-fchksum fails.

Code: Select all

gcc -Wl,-F. -Wl,-F. -bundle -framework Python -fast -mcpu=7450 -pipe build/temp.darwin-7.5.0-Power_Macintosh-2.3/fchksum.o build/temp.darwin-7.5.0-Power_Macintosh-2.3/md5.o build/temp.darwin-7.5.0-Power_Macintosh-2.3/cksum.o build/temp.darwin-7.5.0-Power_Macintosh-2.3/sum.o -lz -o build/lib.darwin-7.5.0-Power_Macintosh-2.3/fchksum.so
ld: build/temp.darwin-7.5.0-Power_Macintosh-2.3/fchksum.o has local relocation entries in non-writable section (__TEXT,__text)
error: command 'gcc' failed with exit status 1
!!! ERROR: dev-python/python-fchksum-1.7.1 failed.
!!! Function src_compile, Line 20, Exitcode 1
any ideas?
bye DaVe
-- Siccome sono un informatico ho votato PCI convinto di aumentare gli slot di espansione della società --
-^v^v^v^v^v^v^v^v^v^-
DaVe the WaVe
http://dave.ccni.it
http://www.davethewave.it
-^v^v^v^v^v^v^v^v^v^-
Top
merlin
n00b
n00b
User avatar
Posts: 44
Joined: Tue Jan 07, 2003 3:42 am
Location: Oregon, USA
Contact:
Contact merlin
Website

  • Quote

Post by merlin » Thu Oct 21, 2004 7:00 am

DaVe&OpenMOsix wrote:[...]
when i try to update portage, the python-fchksum fails.
I've been getting the same python-fchksum error as you for some time now. (I've been waiting, hoping it would go away with an update.) I noticed today that it also comes up with jpeg-6b-r3.

Should these "relocation" errors be reported as bugs, or is there something we users need to do about them?

Thanks,
Ben
Top
Locked

12 posts • Page 1 of 1

Return to “Gentoo for Mac OS X (Portage for Mac OS X)”

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