Skip to content

Commit

Permalink
libyang3: patch needed to loosen datatype validation
Browse files Browse the repository at this point in the history
libyang1 would treat "true" and true as identical, same with "1234" and 1234.
We need to restore this behavior so we don't break users.

Sent upstream here:
CESNET/libyang#2344
  • Loading branch information
bradh352 committed Feb 9, 2025
1 parent 1c33160 commit 0cb185e
Show file tree
Hide file tree
Showing 3 changed files with 400 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/libyang3/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
*
!.gitignore
!Makefile
!patch
!patch/**
1 change: 1 addition & 0 deletions src/libyang3/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ $(addprefix $(DEST)/, $(MAIN_TARGET)): $(DEST)/% :
sed -i 's/dpkg-dev (>= 1.22.5)/dpkg-dev (>= 1.19.8)/' debian/control
# Enable large file support for 32-bit arch
echo 'add_definitions(-D_FILE_OFFSET_BITS=64)' >> CMakeLists.txt
patch -p1 < ../patch/01-loosen-json-datatypes.patch

ifeq ($(CROSS_BUILD_ENVIRON), y)
dpkg-buildpackage -rfakeroot -d -b -us -uc -a$(CONFIGURED_ARCH) -Pcross,nocheck -j$(SONIC_CONFIG_MAKE_JOBS)
Expand Down
Loading

0 comments on commit 0cb185e

Please sign in to comment.