Forums

Skip to content

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

Using ebuild patch with an ebuild for brlcad in overlay

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
17 posts • Page 1 of 1
Author
Message
jevidl
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 111
Joined: Thu Jul 22, 2004 5:45 am
Location: Ann Arbor, MI

Using ebuild patch with an ebuild for brlcad in overlay

  • Quote

Post by jevidl » Sun Oct 09, 2005 12:26 am

I would like to try brlcad, but currently the only ebuilds are in bugs.gentoo.org.

I checked out how to use an ebuild in overlay, but I am having a terrible time getting the patch to be picked up. I can't figure out where the doggone thing needs to go. Whenever I run

Code: Select all

 ebuild /usr/local/portage-bugs/sci-misc/brlcad/brlcad-7.4.2.ebuild unpack
I get the following error:

Code: Select all

>>> Unpacking brlcad-7.4.2.tar.bz2 to /var/tmp/portage/brlcad-7.4.2/work

 * Cannot find $EPATCH_SOURCE!  Value for $EPATCH_SOURCE is:
 *
 *   /usr/local/portage-bugs/sci-misc/brlcad/files/brlcad-7.4.2-gentoo.diff
 *   ( brlcad-7.4.2-gentoo.diff )


!!! ERROR: sci-misc/brlcad-7.4.2 failed.
!!! Function epatch, Line 219, Exitcode 0
!!! Cannot find $EPATCH_SOURCE!
!!! If you need support, post the topmost build error, NOT this status message.
As far as I can tell, this is the relevant part of the ebuild:

Code: Select all

src_unpack() {
    unpack ${A}
    cd ${S}
    epatch ${FILESDIR}/${PF}-gentoo.diff
    # We must rebuild ./configure, becouse the patch modifies configure.ac.
    rm configure
    autoconf
    cd ${S}

}
Any help on getting past this would be appreciated.
Top
PaulBredbury
Watchman
Watchman
User avatar
Posts: 7310
Joined: Thu Jul 14, 2005 3:47 pm

Re: Using ebuild patch with an ebuild for brlcad in overlay

  • Quote

Post by PaulBredbury » Sun Oct 09, 2005 1:10 am

jevidl wrote:epatch ${FILESDIR}/${PF}-gentoo.diff
It sounds like you haven't put that file (i.e. "brlcad-7.4.2-gentoo.diff") in the "files" subdirectory of the ebuild.
Top
jevidl
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 111
Joined: Thu Jul 22, 2004 5:45 am
Location: Ann Arbor, MI

  • Quote

Post by jevidl » Sun Oct 09, 2005 1:33 am

I had tried that, but when I do I get the following:

Code: Select all

ebuild /usr/local/portage-bugs/sci-misc/brlcad/brlcad-7.4.2.ebuild unpack
!!! Security Violation: A file exists that is not in the manifest.
!!! File: files/brlcad-7.4.2-gentoo.diff
I did find out that if I ran ebuild ... digest again, it would work.

If there's anything on using patches, other than "use the same layout as normal portage" I didn't see it in the 3rd party guide. I guess I wasn't familiar enough with portage to know that's how it is.

Thanks for the help.
Top
PaulBredbury
Watchman
Watchman
User avatar
Posts: 7310
Joined: Thu Jul 14, 2005 3:47 pm

  • Quote

Post by PaulBredbury » Sun Oct 09, 2005 2:13 am

jevidl wrote:If there's anything on using patches, other than "use the same layout as normal portage" I didn't see it in the 3rd party guide. I guess I wasn't familiar enough with portage to know that's how it is.
It's a simplistic guide only. The really juicy info about ebuilds is in the links at the bottom of the guide. Read those, and look at some of the 10,000 examples in /usr/portage, and you'll be able to create brand-new ebuilds to submit to bugzilla.
Top
ChrisWhite
Retired Dev
Retired Dev
User avatar
Posts: 399
Joined: Thu Jul 08, 2004 7:19 pm
Location: Stockton, CA
Contact:
Contact ChrisWhite
Website

  • Quote

Post by ChrisWhite » Sun Oct 09, 2005 4:41 am

ebuild /usr/local/portage-bugs/sci-misc/brlcad/brlcad-7.4.2.ebuild unpack
!!! Security Violation: A file exists that is not in the manifest.
!!! File: files/brlcad-7.4.2-gentoo.diff
that's because you need to add it to the manifest. Do:

Code: Select all

ebuild /usr/local/portage-bugs/sci-misc/brlcad/brlcad-7.4.2.ebuild digest
and you won't see that anymore. Then it should be ok.
Top
blossa
Apprentice
Apprentice
Posts: 169
Joined: Thu Jan 13, 2005 11:05 pm

  • Quote

Post by blossa » Sun Nov 27, 2005 12:24 am

Anyone managed to make 2.7.4 to work? I have tried a bit but as a total n00b I can't get the diff-file right... :oops:

Code: Select all

checking whether to build Tcl... no
checking for Tk library functionality... yes
checking whether to build Tk... no
checking for incrTcl library functionality... no
configure: }}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}
configure: Try adding --enable-itcl-build
configure: error: *** incrTcl was disabled, yet no usable libitcl system library was found ***
Top
joey_knisch
n00b
n00b
Posts: 58
Joined: Thu Apr 08, 2004 1:23 am

  • Quote

Post by joey_knisch » Sat Dec 17, 2005 3:12 pm

Use the version of BRL-CAD I posted in Sep. http://bugs.gentoo.org/show_bug.cgi?id=77197#c44
It's actually version v7.6.2 not v1.6.2 like I marked it :oops:

But don't follow those directions. Use these.

I will be assuming a few things like portage overlay directory location so change them if you need. I can't guarentee this will work for you but it works for me with gcc-3.4.4 on x86. The related use flags I run are -debug +java -optimize -pic -proengineer.
download version 7.6.2 from bugzilla (link above).
mkdir /usr/local/portage/sci-misc
tar -xzvf brlcad-1.6.2.tar.gz -C /usr/local/portage/sci-misc/
echo 'TCL_LIBRARY="/usr/lib/tcl8.4"' > /etc/env.d/50tcl
env-update; source /etc/profile
emerge --onlydeps -av brlcad
ln -s /usr/lib/itcl3.3/libitcl3.3.so /usr/lib/libitcl3.3.so
ln -s /usr/lib/libitcl3.3.so /usr/lib/libitcl.so
ln -s /usr/lib/itk3.3/libitk3.3.so /usr/lib/libitk3.3.so
ln -s /usr/lib/libitk3.3.so /usr/lib/libitk.so
emerge brlcad
Good luck.
Top
rickj
Guru
Guru
User avatar
Posts: 432
Joined: Thu Feb 06, 2003 8:30 pm
Location: Calgary, Alberta, Canada
Contact:
Contact rickj
Website

  • Quote

Post by rickj » Thu Jan 19, 2006 8:54 pm

Yay joey_knisch, works for me using gcc-3.4.4.

Just a minor point, but those of us who don't always live on the bleeding edge need;

Code: Select all

ACCEPT_KEYWORDS='~x86' emerge --onlydeps -av brlcad
.
.
.
ACCEPT_KEYWORDS='~x86' emerge brlcad 
The time has come to get this out of limbo and into portage. Is it possible to automate the directions above into the ebuild?
Top
joey_knisch
n00b
n00b
Posts: 58
Joined: Thu Apr 08, 2004 1:23 am

  • Quote

Post by joey_knisch » Mon Jan 23, 2006 9:25 pm

rickj wrote:Yay joey_knisch, works for me using gcc-3.4.4.

Just a minor point, but those of us who don't always live on the bleeding edge need;

Code: Select all

ACCEPT_KEYWORDS='~x86' emerge --onlydeps -av brlcad
.
.
.
ACCEPT_KEYWORDS='~x86' emerge brlcad 
Don't do that. Add it to the /etc/portage/package.keywords. The ACCEPT_KEYWORDS way of doing it messes things up. It probably wouldn't do squat in this case since you most likely won't use those deps for anything else but I wouldn't mess with this method it will bork up your system.
rickj wrote:The time has come to get this out of limbo and into portage. Is it possible to automate the directions above into the ebuild?
I don't know if the gentoo standards and means commission likes it when you create a ton of symlinked files in the /usr/lib dir. However I wasn't about to mess around any more with my diff file ( not that good at this stuff). Anyway, some of these problems should go away in the next versions of brl-cad. They are moving some of the deps out of the brl-cad source.
Top
joey_knisch
n00b
n00b
Posts: 58
Joined: Thu Apr 08, 2004 1:23 am

  • Quote

Post by joey_knisch » Mon Jan 23, 2006 9:26 pm

blossa wrote:Anyone managed to make 2.7.4 to work? I have tried a bit but as a total n00b I can't get the diff-file right... :oops:

Code: Select all

checking whether to build Tcl... no
checking for Tk library functionality... yes
checking whether to build Tk... no
checking for incrTcl library functionality... no
configure: }}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}
configure: Try adding --enable-itcl-build
configure: error: *** incrTcl was disabled, yet no usable libitcl system library was found ***
I ran into that kind of crap when I made my ebuild for 7.6.2. I know this can be fixed with diffs as you said but I ended up making some symlinks to fix it. You can probably modify my stuff to make this work if nobody has posted anything more recent in bugs.
Top
artificio
Apprentice
Apprentice
Posts: 183
Joined: Wed Sep 15, 2004 9:46 pm

  • Quote

Post by artificio » Tue Mar 07, 2006 6:48 am

Sorry to ressurect dead threads, but I've tried emerging 7.6.6 and I get

Code: Select all

 * Applying brlcad-7.6.6-gentoo.diff ...                                  [ ok ]

!!! ERROR: sci-misc/brlcad-7.6.6 failed.
!!! Function econf, Line 498, Exitcode 1
!!! no configure script found
!!! If you need support, post the topmost build error, NOT this status message.
So then I tried 7.4.2 and got

Code: Select all

checking for Tk library functionality... yes
checking whether to build Tk... no
checking for incrTcl library functionality... no
configure: }}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}
configure: Try adding --enable-itcl-build
configure: error: *** incrTcl was disabled, yet no usable libitcl system library was found ***
Edit-NVM 7.2.4 works? :D
Top
lucapost
Veteran
Veteran
User avatar
Posts: 1420
Joined: Thu Nov 24, 2005 4:33 pm
Location: <ud|me|ts> - Italy
Contact:
Contact lucapost
Website

  • Quote

Post by lucapost » Mon Jun 25, 2007 4:25 pm

On http://bugs.gentoo.org/show_bug.cgi?id=77197#c44 I can oly download brlcad.7z, where I can find brlcad-7.10.0.ebuild?

Luca.
LP
Top
Genone
Retired Dev
Retired Dev
User avatar
Posts: 9656
Joined: Fri Mar 14, 2003 6:02 pm
Location: beyond the rim

  • Quote

Post by Genone » Mon Jun 25, 2007 4:37 pm

lucapost wrote:On http://bugs.gentoo.org/show_bug.cgi?id=77197#c44 I can oly download brlcad.7z, where I can find brlcad-7.10.0.ebuild?

Luca.
.7z is an archive format created by 7zip, so you can find the ebuild inside that file
Top
lucapost
Veteran
Veteran
User avatar
Posts: 1420
Joined: Thu Nov 24, 2005 4:33 pm
Location: <ud|me|ts> - Italy
Contact:
Contact lucapost
Website

  • Quote

Post by lucapost » Mon Jun 25, 2007 5:13 pm

:roll: That's ok :roll:
LP
Top
lucapost
Veteran
Veteran
User avatar
Posts: 1420
Joined: Thu Nov 24, 2005 4:33 pm
Location: <ud|me|ts> - Italy
Contact:
Contact lucapost
Website

  • Quote

Post by lucapost » Tue Jun 26, 2007 7:39 am

But I have a little problem, brlcad not compile!
The p7zip file include emerge --info and build.log :cry:

help me!
LP
Top
lucapost
Veteran
Veteran
User avatar
Posts: 1420
Joined: Thu Nov 24, 2005 4:33 pm
Location: <ud|me|ts> - Italy
Contact:
Contact lucapost
Website

  • Quote

Post by lucapost » Thu Jun 28, 2007 8:31 am

up!
LP
Top
lucapost
Veteran
Veteran
User avatar
Posts: 1420
Joined: Thu Nov 24, 2005 4:33 pm
Location: <ud|me|ts> - Italy
Contact:
Contact lucapost
Website

  • Quote

Post by lucapost » Mon Jul 02, 2007 7:12 am

up again!
LP
Top
Post Reply

17 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