-
Notifications
You must be signed in to change notification settings - Fork 1.8k
[ntp]: Build 4.2.6 locally. #2528
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from 1 commit
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
cf08eb9
[ntp]: Build 4.2.6 locally.
bffcaba
Merge remote-tracking branch 'origin' into ntp_4_2_6_local
3de0881
[sonic-slave-stretch/Dockerfile]: Added stretch related changes.
ad24350
[slave.mk]: Add NTP build with base installers.
4652f93
[sonic-slave-stretch/Dockerfile]: Resolve build issues from build 369.
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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,13 @@ | ||
| # ntp_4.2.6.p5+dfsg-7+deb8u2.deb | ||
|
|
||
| NTP_VERSION_MAJOR = 4.2.6 | ||
| NTP_VERSION_SUFFIX = .p5+dfsg | ||
| NTP_VERSION_SUFFIX_NUM = 7+deb8u2 | ||
| NTP_VERSION_FULL = $(NTP_VERSION_MAJOR)$(NTP_VERSION_SUFFIX)-$(NTP_VERSION_SUFFIX_NUM) | ||
| NTP_VERSION = $(NTP_VERSION_MAJOR)$(NTP_VERSION_SUFFIX) | ||
|
|
||
| export NTP_VERSION NTP_VERSION_FULL | ||
|
|
||
| NTP = ntp_$(NTP_VERSION_FULL)_amd64.deb | ||
| $(NTP)_SRC_PATH = $(SRC_PATH)/ntp | ||
| SONIC_MAKE_DEBS += $(NTP) | ||
This file contains hidden or 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 hidden or 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 hidden or 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 @@ | ||
| SHELL = /bin/bash | ||
| .ONESHELL: | ||
| .SHELLFLAGS += -e | ||
|
|
||
| MAIN_TARGET = ntp_$(NTP_VERSION_FULL)_amd64.deb | ||
|
|
||
| NTP_URL = http://cdn-fastly.deb.debian.org/debian/pool/main/n/ntp | ||
|
|
||
| DSC_FILE = ntp_$(NTP_VERSION_FULL).dsc | ||
| DSC_FILE_URL = $(NTP_URL)/$(DSC_FILE) | ||
|
|
||
| $(addprefix $(DEST)/, $(MAIN_TARGET)): $(DEST)/% : | ||
| rm -rf ntp-$(NTP_VERSION) | ||
| dget -u $(DSC_FILE_URL) | ||
|
|
||
| pushd ntp-$(NTP_VERSION) | ||
|
|
||
| git init | ||
| git add -f * | ||
| git commit -m "original source files" | ||
|
|
||
| stg init | ||
| stg import -s ../patch/series | ||
|
|
||
| dpkg-buildpackage -us -uc -b -j$(SONIC_CONFIG_MAKE_JOBS) | ||
| popd | ||
|
|
||
| mv $* $(DEST)/ |
31 changes: 31 additions & 0 deletions
31
src/ntp/patch/0001-donot-disable-reader-kernel-enobufs.patch
This file contains hidden or 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,31 @@ | ||
| commit 1534de6d3ef2d188d1e2697f7180786ee5a8a9dc | ||
| Author: Praveen Chaudhary <[email protected]> | ||
| Date: Sat Feb 2 20:12:53 2019 -0800 | ||
|
|
||
| [ntp_io.c]: Do not disable reader for error ENOBUFS. | ||
|
|
||
| Signed-off-by: Praveen Chaudhary<[email protected]> | ||
|
|
||
| diff --git a/ntpd/ntp_io.c b/ntpd/ntp_io.c | ||
| index f2a2404..fe5c94d 100644 | ||
| --- a/ntpd/ntp_io.c | ||
| +++ b/ntpd/ntp_io.c | ||
| @@ -4430,10 +4430,14 @@ process_routing_msgs(struct asyncio_reader *reader) | ||
| cnt = read(reader->fd, buffer, sizeof(buffer)); | ||
|
|
||
| if (cnt < 0) { | ||
| - msyslog(LOG_ERR, | ||
| - "i/o error on routing socket %m - disabling"); | ||
| - remove_asyncio_reader(reader); | ||
| - delete_asyncio_reader(reader); | ||
| + if (errno == ENOBUFS) { | ||
| + msyslog(LOG_ERR, "routing socket reports: %m"); | ||
| + } else { | ||
| + msyslog(LOG_ERR, | ||
| + "i/o error on routing socket %m - disabling"); | ||
| + remove_asyncio_reader(reader); | ||
| + delete_asyncio_reader(reader); | ||
| + } | ||
| return; | ||
| } | ||
|
|
This file contains hidden or 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 @@ | ||
| 0001-donot-disable-reader-kernel-enobufs.patch |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.