Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 604300

Summary: dev-lang/microperl - Larry Wall's Practical Extraction and Report Language by Makefile.micro
Product: Gentoo Linux Reporter: sr20det <12f8219>
Component: New packagesAssignee: Default Assignee for New Packages <maintainer-wanted>
Status: RESOLVED CANTFIX    
Severity: normal CC: 12f8219, jstein, kentnl, perl, sam
Priority: Normal Keywords: EBUILD
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: microperl-5.20.2.ebuild
minor header fix patch
Makefile.patch

Description sr20det 2017-01-01 10:33:12 UTC
microperl is supposed to be a really minimal perl, even more
minimal than miniperl.  No Configure is needed to build microperl,
on the other hand this means that interfaces between Perl and your
operating system are left very -- minimal.
it's good for people learning the internals of Perl because it strips away everything but the essentials

Reproducible: Always

Actual Results:  
succesfully tested on x86_64-gentoo-linux-musl-gcc-6.3.0



http://www.foo.be/docs/tpj/issues/vol5_3/tpj0503-0003.html
Comment 1 sr20det 2017-01-01 10:34:34 UTC
Created attachment 458232 [details]
microperl-5.20.2.ebuild
Comment 2 sr20det 2017-01-01 10:36:28 UTC
Created attachment 458234 [details, diff]
minor header fix patch
Comment 3 sr20det 2017-01-01 10:37:06 UTC
Created attachment 458236 [details, diff]
Makefile.patch
Comment 4 sr20det 2017-01-01 19:23:53 UTC
Comment on attachment 458236 [details, diff]
Makefile.patch

>diff -ru o/Makefile.micro perl-5.20.2/Makefile.micro
>--- o/Makefile.micro	2017-01-01 01:23:55.227510314 +0200
>+++ perl-5.20.2/Makefile.micro	2017-01-01 01:25:40.908336473 +0200
>@@ -1,10 +1,10 @@
>-LD = $(CC)
>+LD ?= $(CC)
> CCFLAGS = -c
> DEFINES = -DPERL_CORE -DPERL_MICRO -DSTANDARD_C -DPERL_USE_SAFE_PUTENV \
> 	  -DNO_MATHOMS
>-OPTIMIZE = 
>-CFLAGS = $(DEFINES) $(OPTIMIZE)
>-LDFLAGS = 
>+OPTIMIZE = 
>+CFLAGS += $(DEFINES) $(OPTIMIZE)
>+LDFLAGS += 
> LIBS = -lm
> _O = .o
> ENV = env
>@@ -22,7 +22,8 @@
> 	uregcomp$(_O) uregexec$(_O) urun$(_O) \
> 	uscope$(_O) usv$(_O) utaint$(_O) utoke$(_O) \
> 	unumeric$(_O) ulocale$(_O) umathoms$(_O) \
>-	uuniversal$(_O) uutf8$(_O) uutil$(_O) uperlapi$(_O) ukeywords$(_O)
>+	uuniversal$(_O) uutf8$(_O) uutil$(_O) uperlapi$(_O) ukeywords$(_O) \
>+	caretx$(_O)
> 
> microperl:	$(O)
> 	$(LD) -o $@ $(O) $(LDFLAGS) $(LIBS)
>@@ -64,6 +65,9 @@
> 
> # The microperl objects.
> 
>+caretx$(_O):	$(HE) caretx.c
>+	$(CC) $(CCFLAGS) -o $@ $(CFLAGS) caretx.c
>+
> uav$(_O):	$(HE) av.c
> 	$(CC) $(CCFLAGS) -o $@ $(CFLAGS) av.c
>
Comment 5 Jonas Stein gentoo-dev 2017-01-01 20:23:44 UTC
Thank you for your contribution. 
Are you interested in proxy maintaining this package?

I suggest to write 
SRC_URI="
	mirror://cpan/src/5.0/${MY_P}.tar.bz2
"
in one line.



HOMEPAGE="http://www.perl.org/"
HOMEPAGE should contain a URL about the installed software. Perl is a bit too broad.


eerror "${CHOST} is not yet supported..		But you can fix this!"

This line should be removed before the ebuild gets in the tree.
Comment 6 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2017-01-28 23:52:25 UTC
Out of curiosity, would any of the patches we apply to dev-lang/perl be useful here?

- Patches: https://github.com/gentoo-perl/perl-patchset
- Derived Sources: https://github.com/gentoo-perl/perl5

Though you seem more equipped to understand how microperl works so are probably better of taking maintenance through proxy.
Comment 7 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2017-01-28 23:57:07 UTC
BTW, for a DESCRIPTION, I'd shy away from what you have, and opt instead for something more like: "An ultra minimalist subset of Perl as a standalone language" or similar.

As it is, "Larry Wall's Practical Extraction and Report Language" doesn't really say much useful, and its a backronym, and I feel like everyone who reads it learns something wrong which I have to then later unteach them of.
Comment 8 Andreas K. Hüttel archtester gentoo-dev 2021-04-24 11:32:01 UTC
Please consider maintaining this in GURU yourself.