Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 96711 - dev-lang/freebasic - Multi-platform BASIC compiler, syntax compatible with QuickBASIC
Summary: dev-lang/freebasic - Multi-platform BASIC compiler, syntax compatible with Qu...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Default Assignee for New Packages
URL: http://www.freebasic.net/
Whiteboard: sunrise suggested
Keywords: EBUILD, PullRequest
Depends on:
Blocks:
 
Reported: 2005-06-21 09:12 UTC by Sam
Modified: 2019-04-29 14:11 UTC (History)
7 users (show)

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


Attachments
ebuild for freeBASIC (freebasic-0.13b.ebuild,655 bytes, text/plain)
2005-06-21 09:13 UTC, Sam
Details
FreeBasic-0.14b (freebasic-0.14b.ebuild,974 bytes, text/plain)
2005-11-11 11:33 UTC, Ossi Rosten
Details
libfb-0.15b.ebuild (libfb-0.15b.ebuild,786 bytes, text/plain)
2006-04-24 13:41 UTC, Alexandru Toma
Details
fbc-0.15b.ebuild (fbc-0.15b.ebuild,1.90 KB, text/plain)
2006-04-24 13:50 UTC, Alexandru Toma
Details
fbc-0.15b-gentoo-paths.patch (fbc-0.15b-gentoo-paths.patch,1.58 KB, patch)
2006-04-24 13:51 UTC, Alexandru Toma
Details | Diff
fbc-0.15b-makefile.patch (fbc-0.15b-makefile.patch,524 bytes, patch)
2006-04-24 13:51 UTC, Alexandru Toma
Details | Diff
Need to make fbc without working fbc (fbc-static-bin-0.90.1-r6.ebuild,1.09 KB, text/plain)
2014-10-12 13:14 UTC, Cmapuk Xomma6bl4
Details
fbc 0.90.1 (fbc-0.90.1-r7.ebuild,2.12 KB, text/plain)
2014-10-12 13:15 UTC, Cmapuk Xomma6bl4
Details
fbc-1.00.0.ebuild (fbc-1.00.0.ebuild,2.18 KB, text/plain)
2014-10-12 13:16 UTC, Cmapuk Xomma6bl4
Details
fbc-1.05.0.ebuild (fbc-1.05.0.ebuild,2.50 KB, text/plain)
2017-09-26 03:53 UTC, Agustin Ferrari
Details
bootstrap-dist-fixes.patch (bootstrap-dist-fixes.patch,2.37 KB, patch)
2017-09-26 03:56 UTC, Agustin Ferrari
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sam 2005-06-21 09:12:11 UTC
Hello,
FreeBASIC is a Open Source BASIC variant with a syntax quite close to that of
Microsoft's QBASIC.  It has it's own QB-like graphics library, but it can also
utilize libraries such as SDL, OpenGL, and GTK+.
I'm suggesting dev-lang/freebasic.

Attached is an ebuild script.

-Sam

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Sam 2005-06-21 09:13:13 UTC
Created attachment 61649 [details]
ebuild for freeBASIC
Comment 2 Brian Harring (RETIRED) gentoo-dev 2005-10-04 09:07:40 UTC
Source based distro... should be using the upstream source, and compiling it. :)
Comment 3 Ossi Rosten 2005-11-11 11:33:12 UTC
Created attachment 72687 [details]
FreeBasic-0.14b

Updated (working) ebuild for FreeBasic.
Comment 4 Ossi Rosten 2005-11-11 11:35:29 UTC
Last one is binary too:( It's also mine first ebuild. 
Comment 5 Alexandru Toma 2006-04-24 13:41:18 UTC
Created attachment 85376 [details]
libfb-0.15b.ebuild

libfb ebuild... needed by fbc.
Comment 6 Alexandru Toma 2006-04-24 13:50:37 UTC
Created attachment 85378 [details]
fbc-0.15b.ebuild

fbc is written in BASIC, so we also need the binary distribution for the first compilation.

fbc has the paths of some of the libaries it links abainst (crt1.o, crtbegin.o, crtend.o, crti.o, crtn.o) hard-coded in the source code, so when we first compile it with binary distribution it links against the libraries found in it. In order to get it to link against the system libraries, we compile it a second time with the newly produced binary. Please note that I don't know what those *.o libraries are, or if it's important or not... this just seemed like the most sensible solution to me.

I also introduced FBCFLAGS in this ebuild, which I intended to be something similar to CFLAGS and CXXFLAGS but for FreeBASIC. fbc already has some default flags set up in the makefile (-arch 486) which should work for most users. If they want more optimisations they can just FBCFLAGS="-arch 686" emerge fbc for example.
Comment 7 Alexandru Toma 2006-04-24 13:51:05 UTC
Created attachment 85379 [details, diff]
fbc-0.15b-gentoo-paths.patch
Comment 8 Alexandru Toma 2006-04-24 13:51:19 UTC
Created attachment 85380 [details, diff]
fbc-0.15b-makefile.patch
Comment 9 Keith Gable 2006-12-05 16:59:26 UTC
I'm not a Gentoo developer or anything, but I'm willing to maintain this package, and I'm currently doing so in an overlay.

That said, fbc should be put into dev-lang/fbc rather than dev-lang/FreeBASIC and libfb should be dev-libs/libfb instead of sys-libs/libfb

Overlay is at http://svn.ignition-project.com/hamsterrific/trunk/ if anyone cares.
Comment 10 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-02-16 19:51:52 UTC
(this is an automated message based on filtering criteria that matched this bug)
'EBUILD' is in the KEYWORDS which should mean that there is a ebuild attached 
to this bug.
This bug is assigned to maintainer-wanted which means that it is not in the 
main tree.

Hello, The Gentoo Team would like to firstly thank you for your ebuild 
submission. We also apologize for not being able to accommodate you in a timely
manner. There are simply too many new packages.

Allow me to use this opportunity to introduce you to Gentoo Sunrise. The 
sunrise overlay[1] is a overlay for Gentoo which we allow trusted users to 
commit to and all users can have ebuilds reviewed by Gentoo devs for entry 
into the overlay. So, the sunrise team is suggesting that you look into this 
and submit your ebuild to the overlay where even *you* can commit to. =)

Because this is a mass message, we are also asking you to be patient with us. 
We anticipate a large number of requests in a short time. 

Thanks,
On behalf of the Gentoo Sunrise Team,
Jeremy.

[1]: http://www.gentoo.org/proj/en/sunrise/
[2]: http://overlays.gentoo.org/proj/sunrise/wiki/SunriseFaq
Comment 11 白川間瀬流 2013-06-14 06:23:42 UTC
Gentoo really needs something like Archlinux's AUR.

Archlinux have this package since 2007 in AUR and its still up to date and working.

This Bug was reportet 2005 and Gentoo still does not have this package.

Just run into it today as one of the employee here in the company needed it.
Comment 12 Sergey Popov gentoo-dev 2013-06-14 06:36:40 UTC
(In reply to Vamp898 from comment #11)
> Gentoo really needs something like Archlinux's AUR.
> 
> Archlinux have this package since 2007 in AUR and its still up to date and
> working.
> 
> This Bug was reportet 2005 and Gentoo still does not have this package.
> 
> Just run into it today as one of the employee here in the company needed it.

We have Sunrise(http://overlays.gentoo.org/proj/sunrise) and Proxy maintainers(http://www.gentoo.org/proj/en/qa/proxy-maintainers/).
Comment 13 Cmapuk Xomma6bl4 2014-10-12 13:14:27 UTC
Created attachment 386510 [details]
Need to make fbc without working fbc
Comment 14 Cmapuk Xomma6bl4 2014-10-12 13:15:33 UTC
Created attachment 386512 [details]
fbc 0.90.1
Comment 15 Cmapuk Xomma6bl4 2014-10-12 13:16:34 UTC
Created attachment 386514 [details]
fbc-1.00.0.ebuild
Comment 16 Agustin Ferrari 2017-09-26 03:53:28 UTC
Created attachment 496422 [details]
fbc-1.05.0.ebuild

Update to the latest version based on Cmapuk ebuild and found the way to compile the program without having it previously installed using the precompiled binary and a couple of commands from the Makefile.
I've also noted that at the end of the compilation, emerge shows me the following warning:
 * QA Notice: The following files contain writable and executable sections
 *  Files with such sections will not work properly (or at all!) on some
 *  architectures/operating systems.  A bug should be filed at
 *  https://bugs.gentoo.org/ to make sure the issue is fixed.
 *  For more information, see:
 * 
 *    https://wiki.gentoo.org/wiki/Hardened/GNU_stack_quickstart
 * 
 *  Please include the following list of files in your report:
 *  Note: Bugs should be filed for the respective maintainers
 *  of the package in question and not hardened@g.o.
 * RWX --- --- usr/bin/fbc
 * !WX --- --- usr/lib/freebasic/linux-x86/libfb.a:cpudetect.o
 * !WX --- --- usr/lib/freebasic/linux-x86/libfbmt.a:cpudetect.o
 * !WX --- --- usr/lib/freebasic/linux-x86/libfbgfx.a:gfx_blitter_mmx.o
 * !WX --- --- usr/lib/freebasic/linux-x86/libfbgfx.a:gfx_mmx.o
 * !WX --- --- usr/lib/freebasic/linux-x86/libfbgfx.a:gfx_put_add_mmx.o
 * !WX --- --- usr/lib/freebasic/linux-x86/libfbgfx.a:gfx_put_alpha_mmx.o
 * !WX --- --- usr/lib/freebasic/linux-x86/libfbgfx.a:gfx_put_and_mmx.o
 * !WX --- --- usr/lib/freebasic/linux-x86/libfbgfx.a:gfx_put_blend_mmx.o
 * !WX --- --- usr/lib/freebasic/linux-x86/libfbgfx.a:gfx_put_or_mmx.o
 * !WX --- --- usr/lib/freebasic/linux-x86/libfbgfx.a:gfx_put_preset_mmx.o
 * !WX --- --- usr/lib/freebasic/linux-x86/libfbgfx.a:gfx_put_pset_mmx.o
 * !WX --- --- usr/lib/freebasic/linux-x86/libfbgfx.a:gfx_put_trans_mmx.o
 * !WX --- --- usr/lib/freebasic/linux-x86/libfbgfx.a:gfx_put_xor_mmx.o
 * !WX --- --- usr/lib/freebasic/linux-x86/libfbgfxmt.a:gfx_blitter_mmx.o
 * !WX --- --- usr/lib/freebasic/linux-x86/libfbgfxmt.a:gfx_mmx.o
 * !WX --- --- usr/lib/freebasic/linux-x86/libfbgfxmt.a:gfx_put_add_mmx.o
 * !WX --- --- usr/lib/freebasic/linux-x86/libfbgfxmt.a:gfx_put_alpha_mmx.o
 * !WX --- --- usr/lib/freebasic/linux-x86/libfbgfxmt.a:gfx_put_and_mmx.o
 * !WX --- --- usr/lib/freebasic/linux-x86/libfbgfxmt.a:gfx_put_blend_mmx.o
 * !WX --- --- usr/lib/freebasic/linux-x86/libfbgfxmt.a:gfx_put_or_mmx.o
 * !WX --- --- usr/lib/freebasic/linux-x86/libfbgfxmt.a:gfx_put_preset_mmx.o
 * !WX --- --- usr/lib/freebasic/linux-x86/libfbgfxmt.a:gfx_put_pset_mmx.o
 * !WX --- --- usr/lib/freebasic/linux-x86/libfbgfxmt.a:gfx_put_trans_mmx.o
 * !WX --- --- usr/lib/freebasic/linux-x86/libfbgfxmt.a:gfx_put_xor_mmx.o
Anyway I have compiled some example programs with fbc installed and so far I have had no problems.
Finally, I think it's important to clarify that my system is 32 bits, so it would be necessary to check that the ebuild works correctly in a 64 bits installation.
Comment 17 Agustin Ferrari 2017-09-26 03:56:19 UTC
Created attachment 496424 [details, diff]
bootstrap-dist-fixes.patch
Comment 18 Larry the Git Cow gentoo-dev 2019-04-29 14:11:53 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=e1b76eb6fa1d1539614e99ff29ce1dc2d6c9cf8c

commit e1b76eb6fa1d1539614e99ff29ce1dc2d6c9cf8c
Author:     William Breathitt Gray <vilhelm.gray@gmail.com>
AuthorDate: 2019-04-04 05:36:44 +0000
Commit:     William Breathitt Gray <vilhelm.gray@gmail.com>
CommitDate: 2019-04-28 06:57:00 +0000

    dev-lang/fbc: New package
    
    Closes: https://bugs.gentoo.org/96711
    Signed-off-by: William Breathitt Gray <vilhelm.gray@gmail.com>

 dev-lang/fbc/Manifest                              |    2 +
 dev-lang/fbc/fbc-1.06.0.ebuild                     |   93 +
 ...efile-Fix-bootstrap-recipe-race-condition.patch |   37 +
 ...kefile-Implement-bootstrap-minimal-target.patch |   56 +
 ...n-all-options-from-all-Wa-Wc-and-Wl-flags.patch | 1514 +++++
 ...n-all-options-from-all-Wa-Wc-and-Wl-flags.patch | 7124 ++++++++++++++++++++
 ...n-all-options-from-all-Wa-Wc-and-Wl-flags.patch |   35 +
 dev-lang/fbc/metadata.xml                          |   23 +
 8 files changed, 8884 insertions(+)