Skip to content

Commit

Permalink
add xml2 ( --with-xml )
Browse files Browse the repository at this point in the history
  • Loading branch information
pmp-p committed Aug 22, 2024
1 parent 85b784b commit 6cdf3bc
Show file tree
Hide file tree
Showing 3 changed files with 294 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cibuild/linkweb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ pushd src/backend
../../src/timezone/strftime.o \
../../pg_initdb.o"

PG_L="../../src/common/libpgcommon_srv.a ../../src/port/libpgport_srv.a ../.././src/interfaces/libpq/libpq.a"
PG_L="../../src/common/libpgcommon_srv.a ../../src/port/libpgport_srv.a ../.././src/interfaces/libpq/libpq.a -L$PREFIX/lib -lxml2"

if $DEBUG
then
Expand Down
10 changes: 6 additions & 4 deletions cibuild/pgbuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,17 @@ CC_PGLITE=$CC_PGLITE
fi
fi


# TODO: fix sdk to support --with-uuid=ossp
# TODO: --with-libxml xml2 >= 2.6.23
# TODO: --with-libxslt add to sdk
# --disable-atomics https://github.com/WebAssembly/threads/pull/147 "Allow atomic operations on unshared memories"

CNF="${PGSRC}/configure --prefix=${PGROOT} \
XML2_CONFIG=$PREFIX/bin/xml2-config \
--cache-file=${PGROOT}/config.cache.emsdk \
--disable-spinlocks --disable-atomics \
--disable-spinlocks \
--without-zlib --disable-largefile --without-llvm \
--without-pam --disable-largefile --without-zlib --with-openssl=no \
--without-readline --without-icu --with-uuid=ossp \
--without-readline --without-icu --with-libxml --with-uuid=ossp \
${PGDEBUG}"

echo " ==== building wasm MVP:$MVP Debug=${PGDEBUG} with opts : $@ == "
Expand Down
287 changes: 287 additions & 0 deletions patches/exports/pglite
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,8 @@ _TupleDescGetAttInMetadata
_TupleDescInitEntry
_TupleDescInitEntryCollation
_TypenameGetTypid
_UTF8ToHtml
_UTF8Toisolat1
_UnlockPage
_UnlockRelationForExtension
_UnlockReleaseBuffer
Expand Down Expand Up @@ -925,6 +927,8 @@ ___threwValue
___trunctfdf2
___wasm_setjmp
___wasm_setjmp_test
___xmlOutputBufferCreateFilename
___xmlParserInputBufferCreateFilename
__exit
_abort
_access
Expand Down Expand Up @@ -1189,6 +1193,7 @@ _isatty
_isdigit_l
_isgraph
_islower
_isolat1ToUTF8
_isspace
_iswalpha_l
_iswblank_l
Expand Down Expand Up @@ -1634,3 +1639,285 @@ _wmemchr
_wmemcmp
_work_mem
_write
_xmlBufferAllocScheme
_xmlDefaultBufferSize
_xmlDefaultSAXHandler
_xmlDefaultSAXLocator
_xmlDeregisterNodeDefaultValue
_xmlDoValidityCheckingDefaultValue
_xmlFileClose
_xmlFileMatch
_xmlFileOpen
_xmlFileRead
_xmlFree
_xmlGenericError
_xmlGenericErrorContext
_xmlGetWarningsDefaultValue
_xmlHashDefaultDeallocator
_xmlIndentTreeOutput
_xmlIsBaseCharGroup
_xmlIsCombiningGroup
_xmlIsDigitGroup
_xmlIsExtenderGroup
_xmlIsPubidChar_tab
_xmlKeepBlanksDefaultValue
_xmlLastError
_xmlLineNumbersDefaultValue
_xmlLoadExtDtdDefaultValue
_xmlMalloc
_xmlMallocAtomic
_xmlMemStrdup
_xmlOutputBufferCreateFilenameValue
_xmlParserDebugEntities
_xmlParserError
_xmlParserInputBufferCreateFilenameValue
_xmlParserMaxDepth
_xmlParserValidityError
_xmlParserValidityWarning
_xmlParserWarning
_xmlPedanticParserDefaultValue
_xmlRealloc
_xmlRegisterNodeDefaultValue
_xmlSAX2AttributeDecl
_xmlSAX2CDataBlock
_xmlSAX2Characters
_xmlSAX2Comment
_xmlSAX2ElementDecl
_xmlSAX2EndDocument
_xmlSAX2EndElement
_xmlSAX2EndElementNs
_xmlSAX2EntityDecl
_xmlSAX2ExternalSubset
_xmlSAX2GetColumnNumber
_xmlSAX2GetEntity
_xmlSAX2GetLineNumber
_xmlSAX2GetParameterEntity
_xmlSAX2GetPublicId
_xmlSAX2GetSystemId
_xmlSAX2HasExternalSubset
_xmlSAX2HasInternalSubset
_xmlSAX2IgnorableWhitespace
_xmlSAX2InternalSubset
_xmlSAX2IsStandalone
_xmlSAX2NotationDecl
_xmlSAX2ProcessingInstruction
_xmlSAX2Reference
_xmlSAX2ResolveEntity
_xmlSAX2SetDocumentLocator
_xmlSAX2StartDocument
_xmlSAX2StartElement
_xmlSAX2StartElementNs
_xmlSAX2UnparsedEntityDecl
_xmlSaveNoEmptyTags
_xmlStringComment
_xmlStringText
_xmlStringTextNoenc
_xmlStructuredError
_xmlStructuredErrorContext
_xmlSubstituteEntitiesDefaultValue
_xmlTreeIndentString
_xmlUCSIsAegeanNumbers
_xmlUCSIsAlphabeticPresentationForms
_xmlUCSIsArabic
_xmlUCSIsArabicPresentationFormsA
_xmlUCSIsArabicPresentationFormsB
_xmlUCSIsArmenian
_xmlUCSIsArrows
_xmlUCSIsBasicLatin
_xmlUCSIsBengali
_xmlUCSIsBlockElements
_xmlUCSIsBopomofo
_xmlUCSIsBopomofoExtended
_xmlUCSIsBoxDrawing
_xmlUCSIsBraillePatterns
_xmlUCSIsBuhid
_xmlUCSIsByzantineMusicalSymbols
_xmlUCSIsCJKCompatibility
_xmlUCSIsCJKCompatibilityForms
_xmlUCSIsCJKCompatibilityIdeographs
_xmlUCSIsCJKCompatibilityIdeographsSupplement
_xmlUCSIsCJKRadicalsSupplement
_xmlUCSIsCJKSymbolsandPunctuation
_xmlUCSIsCJKUnifiedIdeographs
_xmlUCSIsCJKUnifiedIdeographsExtensionA
_xmlUCSIsCJKUnifiedIdeographsExtensionB
_xmlUCSIsCatC
_xmlUCSIsCatCc
_xmlUCSIsCatCf
_xmlUCSIsCatCo
_xmlUCSIsCatCs
_xmlUCSIsCatL
_xmlUCSIsCatLl
_xmlUCSIsCatLm
_xmlUCSIsCatLo
_xmlUCSIsCatLt
_xmlUCSIsCatLu
_xmlUCSIsCatM
_xmlUCSIsCatMc
_xmlUCSIsCatMe
_xmlUCSIsCatMn
_xmlUCSIsCatN
_xmlUCSIsCatNd
_xmlUCSIsCatNl
_xmlUCSIsCatNo
_xmlUCSIsCatP
_xmlUCSIsCatPc
_xmlUCSIsCatPd
_xmlUCSIsCatPe
_xmlUCSIsCatPf
_xmlUCSIsCatPi
_xmlUCSIsCatPo
_xmlUCSIsCatPs
_xmlUCSIsCatS
_xmlUCSIsCatSc
_xmlUCSIsCatSk
_xmlUCSIsCatSm
_xmlUCSIsCatSo
_xmlUCSIsCatZ
_xmlUCSIsCatZl
_xmlUCSIsCatZp
_xmlUCSIsCatZs
_xmlUCSIsCherokee
_xmlUCSIsCombiningDiacriticalMarks
_xmlUCSIsCombiningDiacriticalMarksforSymbols
_xmlUCSIsCombiningHalfMarks
_xmlUCSIsCombiningMarksforSymbols
_xmlUCSIsControlPictures
_xmlUCSIsCurrencySymbols
_xmlUCSIsCypriotSyllabary
_xmlUCSIsCyrillic
_xmlUCSIsCyrillicSupplement
_xmlUCSIsDeseret
_xmlUCSIsDevanagari
_xmlUCSIsDingbats
_xmlUCSIsEnclosedAlphanumerics
_xmlUCSIsEnclosedCJKLettersandMonths
_xmlUCSIsEthiopic
_xmlUCSIsGeneralPunctuation
_xmlUCSIsGeometricShapes
_xmlUCSIsGeorgian
_xmlUCSIsGothic
_xmlUCSIsGreek
_xmlUCSIsGreekExtended
_xmlUCSIsGreekandCoptic
_xmlUCSIsGujarati
_xmlUCSIsGurmukhi
_xmlUCSIsHalfwidthandFullwidthForms
_xmlUCSIsHangulCompatibilityJamo
_xmlUCSIsHangulJamo
_xmlUCSIsHangulSyllables
_xmlUCSIsHanunoo
_xmlUCSIsHebrew
_xmlUCSIsHighPrivateUseSurrogates
_xmlUCSIsHighSurrogates
_xmlUCSIsHiragana
_xmlUCSIsIPAExtensions
_xmlUCSIsIdeographicDescriptionCharacters
_xmlUCSIsKanbun
_xmlUCSIsKangxiRadicals
_xmlUCSIsKannada
_xmlUCSIsKatakana
_xmlUCSIsKatakanaPhoneticExtensions
_xmlUCSIsKhmer
_xmlUCSIsKhmerSymbols
_xmlUCSIsLao
_xmlUCSIsLatin1Supplement
_xmlUCSIsLatinExtendedA
_xmlUCSIsLatinExtendedAdditional
_xmlUCSIsLatinExtendedB
_xmlUCSIsLetterlikeSymbols
_xmlUCSIsLimbu
_xmlUCSIsLinearBIdeograms
_xmlUCSIsLinearBSyllabary
_xmlUCSIsLowSurrogates
_xmlUCSIsMalayalam
_xmlUCSIsMathematicalAlphanumericSymbols
_xmlUCSIsMathematicalOperators
_xmlUCSIsMiscellaneousMathematicalSymbolsA
_xmlUCSIsMiscellaneousMathematicalSymbolsB
_xmlUCSIsMiscellaneousSymbols
_xmlUCSIsMiscellaneousSymbolsandArrows
_xmlUCSIsMiscellaneousTechnical
_xmlUCSIsMongolian
_xmlUCSIsMusicalSymbols
_xmlUCSIsMyanmar
_xmlUCSIsNumberForms
_xmlUCSIsOgham
_xmlUCSIsOldItalic
_xmlUCSIsOpticalCharacterRecognition
_xmlUCSIsOriya
_xmlUCSIsOsmanya
_xmlUCSIsPhoneticExtensions
_xmlUCSIsPrivateUse
_xmlUCSIsPrivateUseArea
_xmlUCSIsRunic
_xmlUCSIsShavian
_xmlUCSIsSinhala
_xmlUCSIsSmallFormVariants
_xmlUCSIsSpacingModifierLetters
_xmlUCSIsSpecials
_xmlUCSIsSuperscriptsandSubscripts
_xmlUCSIsSupplementalArrowsA
_xmlUCSIsSupplementalArrowsB
_xmlUCSIsSupplementalMathematicalOperators
_xmlUCSIsSupplementaryPrivateUseAreaA
_xmlUCSIsSupplementaryPrivateUseAreaB
_xmlUCSIsSyriac
_xmlUCSIsTagalog
_xmlUCSIsTagbanwa
_xmlUCSIsTags
_xmlUCSIsTaiLe
_xmlUCSIsTaiXuanJingSymbols
_xmlUCSIsTamil
_xmlUCSIsTelugu
_xmlUCSIsThaana
_xmlUCSIsThai
_xmlUCSIsTibetan
_xmlUCSIsUgaritic
_xmlUCSIsUnifiedCanadianAboriginalSyllabics
_xmlUCSIsVariationSelectors
_xmlUCSIsVariationSelectorsSupplement
_xmlUCSIsYiRadicals
_xmlUCSIsYiSyllables
_xmlUCSIsYijingHexagramSymbols
_xmlXPathBooleanFunction
_xmlXPathCeilingFunction
_xmlXPathConcatFunction
_xmlXPathContainsFunction
_xmlXPathCountFunction
_xmlXPathFalseFunction
_xmlXPathFloorFunction
_xmlXPathIdFunction
_xmlXPathLangFunction
_xmlXPathLastFunction
_xmlXPathLocalNameFunction
_xmlXPathNAN
_xmlXPathNINF
_xmlXPathNamespaceURIFunction
_xmlXPathNextAncestor
_xmlXPathNextAncestorOrSelf
_xmlXPathNextAttribute
_xmlXPathNextChild
_xmlXPathNextDescendant
_xmlXPathNextDescendantOrSelf
_xmlXPathNextFollowing
_xmlXPathNextFollowingSibling
_xmlXPathNextNamespace
_xmlXPathNextParent
_xmlXPathNextPrecedingSibling
_xmlXPathNextSelf
_xmlXPathNormalizeFunction
_xmlXPathNotFunction
_xmlXPathNumberFunction
_xmlXPathPINF
_xmlXPathPositionFunction
_xmlXPathRoundFunction
_xmlXPathStartsWithFunction
_xmlXPathStringFunction
_xmlXPathStringLengthFunction
_xmlXPathSubstringAfterFunction
_xmlXPathSubstringBeforeFunction
_xmlXPathSubstringFunction
_xmlXPathSumFunction
_xmlXPathTranslateFunction
_xmlXPathTrueFunction

0 comments on commit 6cdf3bc

Please sign in to comment.