Project import
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..e015e38 --- /dev/null +++ b/Makefile
@@ -0,0 +1,132 @@ +# +# Copyright (c) 2010-2011 Nest, Inc. +# All rights reserved. +# +# This document is the property of Nest. It is considered +# confidential and proprietary information. +# +# This document may not be reproduced or transmitted in any form, +# in whole or in part, without the express written permission of +# Nest. +# +# Description: +# This file is the make file for libgpg-error, a small library +# with error codes and descriptions shared by most GnuPG-related +# software. +# + + +include pre.mak + +PackageName := libgpg-error + +PackageExtension := tar.bz2 +PackageSeparator := - + +PackagePatchArgs := -p1 + +PackageArchive := $(PackageName).$(PackageExtension) +PackageSourceDir := $(PackageName)$(PackageSeparator)$(PackageVersion) + +PackageBuildMakefile = $(call GenerateBuildPaths,Makefile) + +LicenseSourceFiles := COPYING COPYING.LIB +LicenseSourcePaths := $(addprefix $(PackageSourceDir)/,$(LicenseSourceFiles)) + +CleanPaths += $(PackageLicenseFile) + +SOURCEDIRS = $(PackageSourceDir) +$(PackageSourceDir)_RULE_TARGET = $(BuildDirectory)/configure + +all: $(PackageDefaultGoal) + +# Generate the package license contents. + +$(LicenseSourcePaths): $(BuildDirectory)/source + +$(PackageLicenseFile): $(LicenseSourcePaths) + $(Verbose)touch $@ + $(Verbose)for file in $(LicenseSourcePaths); do \ + echo "Concatenating \"$${file}\"..."; \ + cat $${file} >> $@; \ + done + +# Extract the source from the archive and apply patches, if any. + +$(PackageSourceDir): $(PackageArchive) $(PackagePatchPaths) + $(expand-and-patch-package) + +# Prepare the sources. + +$(BuildDirectory)/source: | $(PackageSourceDir) + $(Verbose)touch $@ + +# Patch the sources, if necessary. + +$(BuildDirectory)/patch: $(BuildDirectory)/source + $(Verbose)touch $@ + +# Generate the package build makefile. + +# Configure the source for building. + +$(BuildDirectory)/configure: $(BuildDirectory)/source | $(PackageSourceDir) $(BuildDirectory) $(ResultDirectory) + $(Verbose)cd $(BuildDirectory) && \ + $(CURDIR)/$(PackageSourceDir)/configure \ + CC="$(CC) $(CPPOPTFLAGS)" CXX="$(CXX) $(CPPOPTFLAGS)" AR=$(AR) NM=$(NM) RANLIB=$(RANLIB) STRIP=$(STRIP) \ + CPPFLAGS="$(call ToolGenerateIncludeArgument,$(LinuxIncludePath))" \ + INSTALL="$(INSTALL) $(INSTALLFLAGS)" \ + --build=$(HostTuple) \ + --host=$(TargetTuple) \ + --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var + $(Verbose)touch $@ + +# Build the source. +# +# We have to unset MAKEFLAGS since they confuse the package build otherwise. + +$(BuildDirectory)/build: $(BuildDirectory)/configure + $(Verbose)unset MAKEFLAGS && \ + $(MAKE) $(JOBSFLAG) -C $(BuildDirectory) \ + all + $(Verbose)touch $@ + +# Stage the build to a temporary installation area. +# +# We have to unset MAKEFLAGS since they confuse the package build otherwise. +# +# We explictly remove 'libfoo.la' because some packages that depend on +# these libraries use libtool. If libtool finds a 'libfoo.la' file for +# a library, it uses the value of 'libdir=<dir>' it finds. In our +# case, since '--prefix=/usr' this value is '/usr/lib'. It then +# resolves '-lfoo'. In a cross-compilation environment, this is likely +# to be neither the right architecture nor the right version to link +# against. In short, we lose. +# +# We could also handle this by removing DESTDIR and setting the prefix +# to $(ResultDirectory); however, that results in libtool hard-coding +# $(ResultDirectory) as the RPATH in the linked executables which is +# NOT what we want either. We lose again. +# +# By removing the '*.la' file, we win by ensuring neither a misdirected +# link nor an RPATH. + +$(BuildDirectory)/stage: $(BuildDirectory)/build | $(ResultDirectory) + $(Verbose)unset MAKEFLAGS && \ + $(MAKE) $(JOBSFLAG) -C $(BuildDirectory) \ + DESTDIR=$(ResultDirectory) \ + install + $(Verbose)$(RM) $(RMFLAGS) $(call GenerateResultPaths,,usr/lib/libgpg-error.la) + $(Verbose)touch $@ + +.PHONY: stage +stage: $(BuildDirectory)/stage + +clean: + $(Verbose)$(RM) $(RMFLAGS) -r $(PackageSourceDir) + $(Verbose)$(RM) $(RMFLAGS) -r $(BuildDirectory) + $(Verbose)$(RM) $(RMFLAGS) -r $(ResultDirectory) + +include post.mak
diff --git a/libgpg-error.patches/libgpg-error-50.description b/libgpg-error.patches/libgpg-error-50.description new file mode 100644 index 0000000..012fc5b --- /dev/null +++ b/libgpg-error.patches/libgpg-error-50.description
@@ -0,0 +1 @@ +Poky 2.0.1 Support
diff --git a/libgpg-error.patches/libgpg-error-50.patch b/libgpg-error.patches/libgpg-error-50.patch new file mode 100644 index 0000000..6c6b2e1 --- /dev/null +++ b/libgpg-error.patches/libgpg-error-50.patch
@@ -0,0 +1,24 @@ +diff -Naur a/src/Makefile.am b/src/Makefile.am +--- a/src/Makefile.am 2010-09-16 06:09:17.000000000 -0700 ++++ b/src/Makefile.am 2016-09-07 22:34:28.201388863 -0700 +@@ -138,7 +138,7 @@ + # It is correct to use $(CPP). We want the host's idea of the error codes. + mkerrcodes.h: Makefile mkerrcodes.awk $(gpg_extra_headers) + $(AWK) -f $(srcdir)/mkerrcodes1.awk $(srcdir)/errnos.in >_$@ +- $(CPP) $(extra_cppflags) _$@ | grep GPG_ERR_ | \ ++ $(CPP) $(extra_cppflags) -P _$@ | grep GPG_ERR_ | \ + $(AWK) -f $(srcdir)/mkerrcodes.awk >$@ + -rm _$@ + +diff -Naur a/src/Makefile.in b/src/Makefile.in +--- a/src/Makefile.in 2010-10-26 02:20:52.000000000 -0700 ++++ b/src/Makefile.in 2016-09-07 22:34:28.201388863 -0700 +@@ -848,7 +848,7 @@ + # It is correct to use $(CPP). We want the host's idea of the error codes. + mkerrcodes.h: Makefile mkerrcodes.awk $(gpg_extra_headers) + $(AWK) -f $(srcdir)/mkerrcodes1.awk $(srcdir)/errnos.in >_$@ +- $(CPP) $(extra_cppflags) _$@ | grep GPG_ERR_ | \ ++ $(CPP) $(extra_cppflags) -P _$@ | grep GPG_ERR_ | \ + $(AWK) -f $(srcdir)/mkerrcodes.awk >$@ + -rm _$@ +
diff --git a/libgpg-error.patches/libgpg-error-51.description b/libgpg-error.patches/libgpg-error-51.description new file mode 100644 index 0000000..bb44b6a --- /dev/null +++ b/libgpg-error.patches/libgpg-error-51.description
@@ -0,0 +1 @@ +Support Local Linux Headers
diff --git a/libgpg-error.patches/libgpg-error-51.patch b/libgpg-error.patches/libgpg-error-51.patch new file mode 100644 index 0000000..bfb2f40 --- /dev/null +++ b/libgpg-error.patches/libgpg-error-51.patch
@@ -0,0 +1,57 @@ +diff -Naur a/src/Makefile.am b/src/Makefile.am +--- a/src/Makefile.am 2016-09-13 21:25:19.622397189 -0700 ++++ b/src/Makefile.am 2016-09-13 21:28:01.216421787 -0700 +@@ -138,14 +138,14 @@ + # It is correct to use $(CPP). We want the host's idea of the error codes. + mkerrcodes.h: Makefile mkerrcodes.awk $(gpg_extra_headers) + $(AWK) -f $(srcdir)/mkerrcodes1.awk $(srcdir)/errnos.in >_$@ +- $(CPP) $(extra_cppflags) -P _$@ | grep GPG_ERR_ | \ ++ $(CPP) $(CPPFLAGS) $(extra_cppflags) -P _$@ | grep GPG_ERR_ | \ + $(AWK) -f $(srcdir)/mkerrcodes.awk >$@ + -rm _$@ + + if HAVE_W32CE_SYSTEM + # It is correct to use $(CPP). We want the host's idea of the error codes. + mkw32errmap.tab.h: Makefile mkw32errmap.c +- $(CPP) -DRESOLVE_MACROS $(srcdir)/mkw32errmap.c | \ ++ $(CPP) $(CPPFLAGS) -DRESOLVE_MACROS $(srcdir)/mkw32errmap.c | \ + grep '{&mkw32errmap_marker' >$@ + mkw32errmap.map.c: mkw32errmap + ./mkw32errmap --map > $@ +@@ -161,7 +161,7 @@ + # the data is really to be preprocessed. + gpg-error.def: Makefile gpg-error.def.in + cat $(srcdir)/gpg-error.def.in >_$@.h +- $(CPP) $(DEFAULT_INCLUDES) $(INCLUDES) $(extra_cppflags) _$@.h | \ ++ $(CPP) $(CPPFLAGS) $(DEFAULT_INCLUDES) $(INCLUDES) $(extra_cppflags) _$@.h | \ + grep -v '^#' >$@ + -rm _$@.h + +diff -Naur a/src/Makefile.in b/src/Makefile.in +--- a/src/Makefile.in 2016-09-13 21:25:19.622397189 -0700 ++++ b/src/Makefile.in 2016-09-13 21:28:01.216421787 -0700 +@@ -848,13 +848,13 @@ + # It is correct to use $(CPP). We want the host's idea of the error codes. + mkerrcodes.h: Makefile mkerrcodes.awk $(gpg_extra_headers) + $(AWK) -f $(srcdir)/mkerrcodes1.awk $(srcdir)/errnos.in >_$@ +- $(CPP) $(extra_cppflags) -P _$@ | grep GPG_ERR_ | \ ++ $(CPP) $(CPPFLAGS) $(extra_cppflags) -P _$@ | grep GPG_ERR_ | \ + $(AWK) -f $(srcdir)/mkerrcodes.awk >$@ + -rm _$@ + + # It is correct to use $(CPP). We want the host's idea of the error codes. + @HAVE_W32CE_SYSTEM_TRUE@mkw32errmap.tab.h: Makefile mkw32errmap.c +-@HAVE_W32CE_SYSTEM_TRUE@ $(CPP) -DRESOLVE_MACROS $(srcdir)/mkw32errmap.c | \ ++@HAVE_W32CE_SYSTEM_TRUE@ $(CPP) $(CPPFLAGS) -DRESOLVE_MACROS $(srcdir)/mkw32errmap.c | \ + @HAVE_W32CE_SYSTEM_TRUE@ grep '{&mkw32errmap_marker' >$@ + @HAVE_W32CE_SYSTEM_TRUE@mkw32errmap.map.c: mkw32errmap + @HAVE_W32CE_SYSTEM_TRUE@ ./mkw32errmap --map > $@ +@@ -868,7 +868,7 @@ + # the data is really to be preprocessed. + gpg-error.def: Makefile gpg-error.def.in + cat $(srcdir)/gpg-error.def.in >_$@.h +- $(CPP) $(DEFAULT_INCLUDES) $(INCLUDES) $(extra_cppflags) _$@.h | \ ++ $(CPP) $(CPPFLAGS) $(DEFAULT_INCLUDES) $(INCLUDES) $(extra_cppflags) _$@.h | \ + grep -v '^#' >$@ + -rm _$@.h +
diff --git a/libgpg-error.tar.bz2 b/libgpg-error.tar.bz2 new file mode 100644 index 0000000..d8aab4b --- /dev/null +++ b/libgpg-error.tar.bz2 Binary files differ
diff --git a/libgpg-error.url b/libgpg-error.url new file mode 100644 index 0000000..193e93e --- /dev/null +++ b/libgpg-error.url
@@ -0,0 +1 @@ +ftp://ftp.gnupg.org/gcrypt/libgpg-error/libgpg-error-1.10.tar.bz2
diff --git a/libgpg-error.version b/libgpg-error.version new file mode 100644 index 0000000..c044b1a --- /dev/null +++ b/libgpg-error.version
@@ -0,0 +1 @@ +1.10