-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
117 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
Revision history for Perl extension Hash::v10. | ||
|
||
0.01 Wed Feb 4 15:39:00 2015 | ||
0.02 Wed Feb 4 15:39:00 2015 | ||
- original version; created by h2xs 1.23 with options | ||
-n Hash::v10 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
TARGET ?= perl-5.10.1 | ||
export PERLBREW_ROOT = $(CURDIR)/root | ||
export PERLBREW_HOME = $(CURDIR)/home | ||
export PERLBREW_CONFIGURE_FLAGS = -de -A ccflags=-fPIC | ||
|
||
target : $(TARGET) | ||
|
||
$(PERLBREW_ROOT) : | ||
perlbrew init | ||
|
||
$(PERLBREW_ROOT)/perls/$(TARGET) : $(PERLBREW_ROOT) | ||
perlbrew --notest install $(TARGET) | ||
|
||
$(TARGET) : $(PERLBREW_ROOT)/perls/$(TARGET) | ||
echo '#!/bin/bash' > $@ | ||
echo 'export PERLBREW_HOME=$(CURDIR)/home' >> $@ | ||
echo 'export PERLBREW_ROOT=$(CURDIR)/root' >> $@ | ||
echo 'source $(PERLBREW_ROOT)/etc/bashrc' >> $@ | ||
echo 'exec perlbrew --quiet exec --with $(TARGET) perl "$$@"' >> $@ | ||
chmod +x $@ | ||
|
||
clean : | ||
rm -rf perl-* $(PERLBREW_ROOT) $(PERLBREW_HOME) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
libhash-v10-perl (0.02) trusty; urgency=low | ||
|
||
* Initial Release. | ||
|
||
-- Robert Stone <[email protected]> Tue, 10 Feb 2015 16:26:01 -0800 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
Source: libhash-v10-perl | ||
Section: perl | ||
Priority: optional | ||
Maintainer: Robert Stone <[email protected]> | ||
Build-Depends: debhelper (>= 9.20120312), | ||
perl | ||
Standards-Version: 3.9.5 | ||
Homepage: https://metacpan.org/release/Hash-v10 | ||
|
||
Package: libhash-v10-perl | ||
Architecture: any | ||
Depends: ${misc:Depends}, ${perl:Depends}, ${shlibs:Depends} | ||
Description: Perl extension for perl v5.10 compatible hashes | ||
This provides a perl v5.10 compatible hash. It is intended as a last resort | ||
for porting stubborn code across the "Hash randomization" feature in perl | ||
v5.18 and above. It achieves this by embedding a perl v5.10 interpeters HV | ||
implementation, and allowing you to tie() specific hashes back to having | ||
earlier hash semantics. | ||
. | ||
The source code for this project may also serve as a starting point for other | ||
reverse compatibility solutions via interpreter embedding. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ | ||
Source: https://metacpan.org/release/Hash-v10 | ||
Upstream-Contact: Robert Stone, <[email protected]> | ||
Upstream-Name: Hash-v10 | ||
|
||
Files: * | ||
Copyright: Robert Stone, <[email protected]> | ||
License: Artistic or GPL-1+ | ||
|
||
Files: debian/* | ||
Copyright: 2015, Robert Stone <[email protected]> | ||
License: Artistic or GPL-1+ | ||
|
||
License: Artistic | ||
This program is free software; you can redistribute it and/or modify | ||
it under the terms of the Artistic License, which comes with Perl. | ||
. | ||
On Debian systems, the complete text of the Artistic License can be | ||
found in `/usr/share/common-licenses/Artistic'. | ||
|
||
License: GPL-1+ | ||
This program is free software; you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation; either version 1, or (at your option) | ||
any later version. | ||
. | ||
On Debian systems, the complete text of version 1 of the GNU General | ||
Public License can be found in `/usr/share/common-licenses/GPL-1'. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/usr/bin/make -f | ||
|
||
%: | ||
dh $@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
3.0 (native) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,21 @@ | ||
PERLVER = perl-5.10.1 | ||
export PERLBREW_ROOT = $(CURDIR)/root | ||
|
||
target: brew libhv.so | ||
brew: $(PERLBREW_ROOT)/perls/$(PERLVER) | ||
|
||
#### Rules to bootstrap perlbrew | ||
PERL = env PERLBREW_ROOT=$(PERLBREW_ROOT) \ | ||
perlbrew --quiet exec --with $(PERLVER) perl | ||
|
||
$(PERLBREW_ROOT): export PERLBREW_HOME = $(CURDIR)/home | ||
$(PERLBREW_ROOT): | ||
perlbrew init | ||
|
||
$(PERLBREW_ROOT)/perls/$(PERLVER): export PERLBREW_CONFIGURE_FLAGS = -de -A ccflags=-fPIC | ||
$(PERLBREW_ROOT)/perls/$(PERLVER): $(PERLBREW_ROOT) | ||
perlbrew --notest install $(PERLVER) | ||
|
||
#### Rules to build the envelope .so around around libperl.a | ||
|
||
PERL ?= $(CURDIR)/../brew/perl-5.10.1 | ||
ARCHLIB = $(shell $(PERL) -MConfig -e 'print $$Config{archlib}') | ||
LIBS = $(shell $(PERL) -MConfig -e 'print $$Config{libs}') | ||
CFLAGS = -fPIC -Wall -O2 -I$(ARCHLIB)/CORE | ||
LDFLAGS = $(LIBS) | ||
LIBPERL = $(ARCHLIB)/CORE/libperl.a | ||
|
||
$(LIBPERL): $(PERLBREW_ROOT)/perls/$(PERLVER) | ||
|
||
# using HePV() emits a strict-aliasing warning | ||
hv.o: CFLAGS += -Wno-strict-aliasing | ||
|
||
libhv.so :: hv.version | ||
libhv.so :: hv.map | ||
libhv.so :: hv.o $(LIBPERL) | ||
cc -shared -o $@ -Wl,--version-script=hv.version $^ $(LDFLAGS) | ||
|
||
libhv.o :: $(LIBPERL) | ||
libhv.o :: hv.o | ||
$(LD) --relocatable -o $@ $^ --exclude-libs ALL -L$(ARCHLIB)/CORE -lperl | ||
|
||
try: try.o libhv.o | ||
cc -o try try.o libhv.o $(LDFLAGS) | ||
#cc -o $@ $< -L. -lhv | ||
cc -shared -o $@ -Wl,--version-script=hv.map $^ $(LDFLAGS) | ||
|
||
clean: | ||
clean : | ||
-rm try *.o *.so *.a | ||
|
||
distclean: clean | ||
-rm -r $(PERLBREW_ROOT) | ||
distclean : clean | ||
-rm -rf $(PERLBREW_ROOT) | ||
|
||
.PHONY: target clean distclean brew |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
LIBHV_0.02 { | ||
global: | ||
hash_new; | ||
hash_free; | ||
hash_fetch; | ||
hash_store; | ||
hash_exists; | ||
hash_delete; | ||
hash_clear; | ||
hash_scalar; | ||
hash_firstkey; | ||
hash_nextkey; | ||
local: | ||
*; | ||
}; |
This file was deleted.
Oops, something went wrong.