A couple of things to help, I hope:
My openwrt/master
or the like would likely be origin/master
for you, until you git remote rename
it to openwrt
. The notation there is <remote name>/<branch name>
Here's how I found the latest commit that changed odhcpd
:
- Make sure I'm on the
master
branch (so I don't have to add openwrt/master
to all the commands)
- Give me the three latest commits related to package/network/services/odhcpd/Makefile
- What files did it change?
- Since not too many, what were the changes?
jeff@deb-devel:~/devel/openwrt$ git checkout master
Already on 'master'
Your branch is up-to-date with 'openwrt/master'.
jeff@deb-devel:~/devel/openwrt$ git log -3 --pretty=oneline -- package/network/services/odhcpd/Makefile
1ca69003fd odhcpd: update to latest git HEAD (FS#2160)
c8153722a2 odhcpd: update to latest git HEAD
0b4b1027c6 odhcpd: update to latest git HEAD (FS#2142)
jeff@deb-devel:~/devel/openwrt$ git diff --name-status 1ca69003fd^ 1ca69003fd
M package/network/services/odhcpd/Makefile
jeff@deb-devel:~/devel/openwrt$ git diff 1ca69003fd^ 1ca69003fd
diff --git a/package/network/services/odhcpd/Makefile b/package/network/services/odhcpd/Makefile
index 45e13a452b..be54a41e12 100644
--- a/package/network/services/odhcpd/Makefile
+++ b/package/network/services/odhcpd/Makefile
@@ -12,9 +12,9 @@ PKG_RELEASE:=3
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL=$(PROJECT_GIT)/project/odhcpd.git
-PKG_SOURCE_DATE:=2019-02-27
-PKG_SOURCE_VERSION:=16c5b6c9bcb71bb67a6ab15bb458bf9ab5a8fe7e
-PKG_MIRROR_HASH:=bb42751da2a9d8fa1576db97524711af3fbf3758598f0dc631c075f6413796fd
+PKG_SOURCE_DATE:=2019-03-21
+PKG_SOURCE_VERSION:=6d23385242c918b0e00f5e21ed41dd655905752b
+PKG_MIRROR_HASH:=56e8fe3a3ec02371834c2b3af2c5b9e4106750b12b879b8334a95a40cfc4c5f8
PKG_MAINTAINER:=Hans Dedecker <dedeckeh@gmail.com>
PKG_LICENSE:=GPL-2.0
Now that hash, 1ca69003fd
(I intentionally shorten them from default), may or may not apply "cleanly" as a cherry-pick to openwrt-18.06
. I see that there were other commits prior, which may have been intermediate steps. If it didn't apply cleanly, I could either, while with my own development branch checked out:
- Edit that file on my own branch, changing the three lines to the new (
+
) value, or
- "Slam in" the version from
master
with git checkout openwrt/master package/network/services/odhcpd/Makefile
, git add
it, and git commit
it to your own branch
That second one is a special case that says "get me that file from openwrt/master
, rather than, without a path, "switch me over to the openwrt/master
branch" Yes, it can be confusing that openwrt/master
is different than master
on your own machine.
Edit: "Slam in", as tempting as it might be, often breaks things. Note the subtle change near the end, when comparing with openwrt-18.06
. Will it break something? It would be a guess for me.
There's also the change in PKG_VERSION
that would need to be understood.
Anytime someone tells you "Oh, just backport it", now you have a brief taste of the issues.
jeff@deb-devel:~/devel/openwrt$ git diff openwrt/openwrt-18.06 package/network/services/odhcpd/Makefile
diff --git a/package/network/services/odhcpd/Makefile b/package/network/services/odhcpd/Makefile
index 34734c6e42..be54a41e12 100644
--- a/package/network/services/odhcpd/Makefile
+++ b/package/network/services/odhcpd/Makefile
@@ -9,18 +9,17 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=odhcpd
PKG_RELEASE:=3
-PKG_VERSION:=1.15
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL=$(PROJECT_GIT)/project/odhcpd.git
-PKG_SOURCE_DATE:=2019-01-16
-PKG_SOURCE_VERSION:=ae16950ce18b037a91b706edcee92ce173cf74b0
-PKG_MIRROR_HASH:=ba6e1d7c5e3c26ca4e5c1d09077845033395656690be3faec21ed77c9bfca895
+PKG_SOURCE_DATE:=2019-03-21
+PKG_SOURCE_VERSION:=6d23385242c918b0e00f5e21ed41dd655905752b
+PKG_MIRROR_HASH:=56e8fe3a3ec02371834c2b3af2c5b9e4106750b12b879b8334a95a40cfc4c5f8
PKG_MAINTAINER:=Hans Dedecker <dedeckeh@gmail.com>
PKG_LICENSE:=GPL-2.0
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
+PKG_BUILD_DIR=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
PKG_INSTALL:=1
PKG_CONFIG_DEPENDS:=CONFIG_PACKAGE_odhcpd_$(BUILD_VARIANT)_ext_cer_id