Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 79391 - sather ebuild fixes
Summary: sather ebuild fixes
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo TreeCleaner Project
URL:
Whiteboard: REMOVED
Keywords: PMASKED
Depends on:
Blocks:
 
Reported: 2005-01-24 15:14 UTC by Tijs Van Buggenhout
Modified: 2006-10-29 09:48 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
ebuild fixes (sather-1.3.ebuild,2.47 KB, text/plain)
2005-01-24 15:17 UTC, Tijs Van Buggenhout
Details
patch for sather with regard to gcc3xx (sather-1.3_gentoo.patch.gz,2.43 KB, patch)
2005-01-24 15:19 UTC, Tijs Van Buggenhout
Details | Diff
patch plain text (sather-1.3_gentoo.patch,11.37 KB, patch)
2005-02-22 00:44 UTC, Tijs Van Buggenhout
Details | Diff
an ebuild for last version (sather-1.2.2.ebuild,2.42 KB, text/plain)
2005-07-15 08:22 UTC, George Shapovalov (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tijs Van Buggenhout 2005-01-24 15:14:33 UTC
After successfull emerging sather-1.3.ebuild (I had to extend the patch, which I will include with the bugreport) I couldn't compile sather programs (sacomp), with the error report: "cannot open configuration file /usr/sather/system/CONFIG for reading"

Reproducible: Always
Steps to Reproduce:
1. emerge
2. write the helloworld proggie
3. sacomp -main HELLO_WORLD -o hw hw.sa

Actual Results:  
sacomp stopped compilation 

Expected Results:  
sacomp shoud've compiled the source file 

Here is a diff for patching the ebuild file. The error was due to an incorrect 
path. 
 
diff -ru sather-1.3.ebuild.orig sather-1.3.ebuild 
--- sather-1.3.ebuild.orig      2005-01-24 23:57:29.837003984 +0100 
+++ sather-1.3.ebuild   2005-01-24 23:58:21.050218392 +0100 
@@ -61,8 +61,8 @@ 
        rm -rf ${D}/usr/${PN}/sacomp-boot 
        rm -rf ${D}/usr/${PN}/system 
        dodir /usr/${PN}/system 
-       cp ${WORKDIR}/${PN}-1.3/system/CONFIG ${D}/usr/${PN}/system 
-       cp ${WORKDIR}/${PN}-1.3/system/FORBID ${D}/usr/${PN}/system 
+       cp ${WORKDIR}/${MY_P}/system/CONFIG ${D}/usr/${PN}/system 
+       cp ${WORKDIR}/${MY_P}/system/FORBID ${D}/usr/${PN}/system 
 
        cd ${WORKDIR} 
        dodoc doc/${PN}-specification-000328.ps.gz 
doc/${PN}-tutorial-000328.ps.gz doc/satish-thatte.ps.gz doc/Descript.ps.gz
Comment 1 Tijs Van Buggenhout 2005-01-24 15:17:54 UTC
Created attachment 49419 [details]
ebuild fixes

This ebuild fixes my bug :p It should probably be renamed sather-1.3-r1.ebuild
Comment 2 Tijs Van Buggenhout 2005-01-24 15:19:06 UTC
Created attachment 49420 [details, diff]
patch for sather with regard to gcc3xx

This patch is required in order to be able to compile the sather sources with
gcc3xx
Comment 3 Tijs Van Buggenhout 2005-01-24 15:23:30 UTC
So I included the patch to make the sources compile with gcc3xx compilers. The problem was due to the misuse of macro's. Since gcc3xx the rules are more strict with regard to calling functions. Though, it is easily fixed.

This should get the ebuild unmasked for x86 keyword.

grtz
Tijs
Comment 4 Mr. Bones. (RETIRED) gentoo-dev 2005-02-17 16:48:04 UTC
the patch appears to be binary.  Reattach as text/plain please.
Comment 5 Martin Holzer (RETIRED) gentoo-dev 2005-02-20 23:54:05 UTC
the patch is .gz file
Comment 6 Tijs Van Buggenhout 2005-02-22 00:44:55 UTC
Created attachment 51863 [details, diff]
patch plain text
Comment 7 Tijs Van Buggenhout 2005-02-22 00:51:14 UTC
This ebuild/patch make the sources compile again with gcc3xx. Though, I've experienced some segfaults while using sather. I don't know the cause yet, I don't have the time right now. But it appears to be while using strings in classes. The bugfix could be causing these segfaults...

grtz
Comment 8 George Shapovalov (RETIRED) gentoo-dev 2005-07-15 08:22:23 UTC
Created attachment 63475 [details]
an ebuild for last version

Attaching an ebuild for the latest "stable" release, dated 2005-06. According
to website the 1.3 branch is for betas (apparently they used stale Linux kernel
convention) and is antiquated at this moment. Last 1.3_beta release dates 2000!
Therefore I would suggest that all development on this package concentrates
around the latest releases *by date*, which are stable releases at this point.

I tried to adjust the build process to match the new code (there is no
configure anymore, just a plain Makefile. Plus I had to strip some env vars
which no longer corresponded to reality). Also I adjusted src_install to use
SATHER_DEST var, for ease of location changes and pointed that over to
/usr/lib/${PN} to comply at least somewhat with FHS. Also, the ${My_P} was no
longer necessary. See also next comment.
Comment 9 George Shapovalov (RETIRED) gentoo-dev 2005-07-15 08:34:25 UTC
Then I get to testing this thing and realised that this package bootstraps   
itself and only has x86 compiler included for bootstrapping. Since I do not   
have a working x86 chroot at the moment (only amd64) I will release this bug to   
bug-wranglers, in the hope that somebody might pick it up.    
   
bug-wranglers: if assignment of this bug is problematic (I would have suggested   
lang-misc herd, but its not really functional yet - I don't think there is   
anybody on it except me, despite my calls :( ), I'd suggest closing it with   
LATER. You may even reassign it to me upon such closure, or just bounce back   
and I'll close it with LATER myself. 
   
Tijs Van: Looks like sather is under large revamp right now, so I wouldn't  
expect its developers to produce binaries for many arches as of yet. However if  
you have an idea on how this can be compiled under amd64 please feel free to  
reopen the bug on me. That, or try bugging me a month or two later (Hopefully  
but then I'll get an external HDD and will have x86 chroot running). I am  
settling in a new place and becoming more active again, but I have quite a bit  
of stuff to take care off yet, and this package is not very high priority. Of  
course any fixing/testing on your side is appreciated ;).  
  
George  
Comment 10 Jakub Moc (RETIRED) gentoo-dev 2006-06-28 15:20:07 UTC
@george - is upstream still alive? Also, this is some mysterious version in portage, I couldn't find 1.3 anywhere or their site??? Probably should be removed from portage otherwise, as it doesn't compile w/ any usable gcc version as it is.
Comment 11 Alec Warner (RETIRED) archtester gentoo-dev Security 2006-08-03 16:12:21 UTC
old
Comment 12 Christian Heim (RETIRED) gentoo-dev 2006-09-27 09:35:18 UTC
Punted as of now!