Skip to content

Commit

Permalink
Merge pull request #3 from westbywest/release-0.6.5.4
Browse files Browse the repository at this point in the history
Release 0.6.5.4
  • Loading branch information
danstaples committed May 17, 2013
2 parents 2231b7d + 829d06d commit dcaa8ba
Show file tree
Hide file tree
Showing 11 changed files with 149 additions and 64 deletions.
33 changes: 0 additions & 33 deletions .hgignore

This file was deleted.

35 changes: 35 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,38 @@
0.6.5.4 -------------------------------------------------------------------

Ferry Huberts (11):
Remove mercurial ignore file; we use git
build: ignore builddata.c when hashing sources
release: fix the list of generated files
release: update some comments
release: refactor the checkVersionIncrementing function
release: do not update the version on master when it's already higher
release: only report that master changed when it was actually changed
release: checkVersionIncrementing: optionally allow equal versions
release: also check against the Makefile version when branching
txtinfo: prevent buffer overflow
pud: nmealib: _nmea_parse_time not parsing hsec when given "hhmmss" format

Henning Rogge (2):
Update version after release of v0.6.5.3
Release v0.6.5.4

0.6.5.3 -------------------------------------------------------------------

Ferry Huberts (5):
pud: detect the java include directory
pud: better detection of java jdk
gateway: work around kernel IPIP module initialisation bug
main: use /dev/urandom by default
pud: set local loopback for multicast tx

Henning Rogge (2):
Update version after release of v0.6.5.2
Release v0.6.5.3

Ronald in 't Velt (1):
Fix setsockopt for setting Traffic Class in IPv6

0.6.5.2 -------------------------------------------------------------------

Henning Rogge (2):
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
# Please also write a new version to:
# gui/win32/Main/Frontend.rc (line 71, around "CAPTION [...]")
# gui/win32/Inst/installer.nsi (line 57, around "MessageBox MB_YESNO [...]")
VERS = pre-0.6.5.3
VERS = 0.6.5.4

TOPDIR = .
INSTALLOVERWRITE ?=
Expand Down
2 changes: 1 addition & 1 deletion gui/win32/Inst/installer.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ UninstPage uninstConfirm
UninstPage instfiles

Function .onInit
MessageBox MB_YESNO "This will install olsr.org pre-0.6.5.3 on your computer. Continue?" IDYES NoAbort
MessageBox MB_YESNO "This will install olsr.org 0.6.5.4 on your computer. Continue?" IDYES NoAbort
Abort
NoAbort:
FunctionEnd
Expand Down
2 changes: 1 addition & 1 deletion gui/win32/Main/Frontend.rc
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ IDD_FRONTEND_DIALOG DIALOGEX 0, 0, 399, 289
STYLE DS_MODALFRAME | WS_MINIMIZEBOX | WS_POPUP | WS_VISIBLE | WS_CAPTION |
WS_SYSMENU
EXSTYLE WS_EX_APPWINDOW
CAPTION "olsr.org Switch pre-0.6.5.3"
CAPTION "olsr.org Switch 0.6.5.4"
FONT 8, "MS Sans Serif", 0, 0, 0x1
BEGIN
CONTROL "Tab1",IDC_TAB1,"SysTabControl32",0x0,7,7,383,256
Expand Down
1 change: 1 addition & 0 deletions lib/pud/nmealib/src/parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ static bool _nmea_parse_time(const char *s, const int len, nmeaTIME *t) {
assert(t);

if (len == (sizeof("hhmmss") - 1)) {
t->hsec = 0;
return (3 == nmea_scanf(s, len, "%2d%2d%2d", &t->hour, &t->min, &t->sec));
}

Expand Down
2 changes: 1 addition & 1 deletion lib/pud/src/networkInterfaces.c
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ static int createTxSocket(TRxTxNetworkInterface * networkInterface, union olsr_s

int txSocket = -1;

int mcLoopValue = 0;
int mcLoopValue = 1;
int txTtl = getTxTtl();

assert(networkInterface != NULL);
Expand Down
9 changes: 8 additions & 1 deletion lib/txtinfo/src/olsrd_txtinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <assert.h>

#include "ipcalc.h"
#include "olsr.h"
Expand Down Expand Up @@ -137,7 +138,7 @@ static char *outbuffer[MAX_CLIENTS];
static size_t outbuffer_size[MAX_CLIENTS];
static size_t outbuffer_written[MAX_CLIENTS];
static int outbuffer_socket[MAX_CLIENTS];
static int outbuffer_count;
static int outbuffer_count = 0;

static struct timer_entry *writetimer_entry;

Expand Down Expand Up @@ -254,6 +255,10 @@ ipc_action(int fd, void *data __attribute__ ((unused)), unsigned int flags __att

socklen_t addrlen = sizeof(pin);

if (outbuffer_count >= MAX_CLIENTS) {
return;
}

if ((ipc_connection = accept(fd, &pin.in, &addrlen)) == -1) {
#ifndef NODEBUG
olsr_printf(1, "(TXTINFO) accept()=%s\n", strerror(errno));
Expand Down Expand Up @@ -738,6 +743,8 @@ send_info(unsigned int send_what, int the_socket)
/* version */
if ((send_what & SIW_VERSION) == SIW_VERSION) ipc_print_version(&abuf);

assert(outbuffer_count < MAX_CLIENTS);

outbuffer[outbuffer_count] = olsr_malloc(abuf.len, "txt output buffer");
outbuffer_size[outbuffer_count] = abuf.len;
outbuffer_written[outbuffer_count] = 0;
Expand Down
2 changes: 1 addition & 1 deletion make/hash_source.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ os=$(uname)
if [ "xDarwin" = "x$os" ] ; then
md5cmd=md5
fi
cat `find . -name *.[ch]`| $md5cmd
cat `find . -name *.[ch] | grep -E '[/\\]?builddata.c$'`| $md5cmd
111 changes: 89 additions & 22 deletions release/release.bash
Original file line number Diff line number Diff line change
Expand Up @@ -270,10 +270,15 @@ function adjustBranchName() {
#
# 1=last version
# 2=new version
# 3= 0 to disallow equal versions as ok
# return (in checkVersionIncrementingResult) = 0 when new version > last version,
# 1 otherwise
declare -i checkVersionIncrementingResult=0
function checkVersionIncrementing() {
checkVersionIncrementingResult=0
local lastVersion="$(stringTrim "${1}")"
local newVersion="$(stringTrim "${2}")"
local errorstr="* The new version ${newVersion} is not greater than the previous version ${lastVersion}"
local -i allowEqualVersions=${3}

local -a lastVersionDigits=( ${lastVersion//\./ } )
local -a newVersionDigits=( ${newVersion//\./ } )
Expand All @@ -290,51 +295,54 @@ function checkVersionIncrementing() {

# major
if [[ ${newVersionDigits[0]} -lt ${lastVersionDigits[0]} ]]; then
echo "${errorstr}"
exit 1
checkVersionIncrementingResult=1
return
fi
if [[ ${newVersionDigits[0]} -gt ${lastVersionDigits[0]} ]]; then
return
fi

# minor
if [[ ${newVersionDigits[1]} -lt ${lastVersionDigits[1]} ]]; then
echo "${errorstr}"
exit 1
checkVersionIncrementingResult=1
return
fi
if [[ ${newVersionDigits[1]} -gt ${lastVersionDigits[1]} ]]; then
return
fi

# micro
if [[ ${newVersionDigits[2]} -lt ${lastVersionDigits[2]} ]]; then
echo "${errorstr}"
exit 1
checkVersionIncrementingResult=1
return
fi
if [[ ${newVersionDigits[2]} -gt ${lastVersionDigits[2]} ]]; then
return
fi

# patch level
if [[ ${newVersionDigits[3]} -lt ${lastVersionDigits[3]} ]]; then
echo "${errorstr}"
exit 1
checkVersionIncrementingResult=1
return
fi
if [[ ${newVersionDigits[3]} -gt ${lastVersionDigits[3]} ]]; then
return
fi

# everything is equal
echo "${errorstr}"
exit 1
if [[ ${allowEqualVersions} -eq 0 ]]; then
checkVersionIncrementingResult=1
fi
return
}


#
# Commit the current changes, allow an empty commit, or amend (when the commit
# message is the same as that of the last commit)
#
# 1=commit message
# 1=non-zero to allow an empty commit
# 2=commit message
function commitChanges() {
local -i allowEmpty=${1}
local msg="$(stringTrim "${2}")"
Expand All @@ -354,6 +362,16 @@ function commitChanges() {
}


#
# Get the version from the Makefile
#
function getVersionFromMakefile() {
local src="Makefile"
local regex="([[:space:]]*VERS[[:space:]]*=[[:space:]]*)${versionRegexSources}[[:space:]]*"
grep -E "^${regex}\$" "${src}" | sed -r "s/^${regex}\$/\3/"
}


#
# Update the version in all relevant files
#
Expand Down Expand Up @@ -432,6 +450,7 @@ declare baseDir="$(dirname "${scriptDir}")"

cd "${baseDir}"

declare -i masterWasUpdated=0

#
# Check the number of arguments
Expand Down Expand Up @@ -556,11 +575,29 @@ declare relBranchVersionDigitsNextPatchLevel="$(getNextVersionDigitsPatchLevel "
#
# Check that the version is incrementing
#
checkVersionIncrementing "${prevTagVersionDigits}" "${relBranchVersionDigits}"
checkVersionIncrementing "${prevTagVersionDigits}" "${relBranchVersionDigits}" 0
if [[ ${checkVersionIncrementingResult} -ne 0 ]]; then
echo "* The new version ${relBranchVersionDigits} is not greater than the previous version ${prevTagVersionDigits}"
exit 1
fi


#
# When branching, check that the version is incrementing (allow equal versions),
# w.r.t. the version in the Makefile
#
if [[ "${mode}" == "${MODE_BRANCH}" ]]; then
declare currentMasterVersion="$(getVersionFromMakefile)"
checkVersionIncrementing "${currentMasterVersion}" "${relBranchVersionDigits}" 1
if [[ ${checkVersionIncrementingResult} -ne 0 ]]; then
echo "* The new version ${relBranchVersionDigits} is not greater than the current version ${currentMasterVersion}"
exit 1
fi
fi


#
# Confirm the release
# Confirm the branch/release
#
cat >&1 << EOF
Expand Down Expand Up @@ -593,6 +630,7 @@ if [[ "${mode}" == "${MODE_BRANCH}" ]]; then
echo "Updating the version to pre-${relBranchVersionDigits}..."
updateVersions "pre-${relBranchVersionDigits}"
commitChanges 1 "${MODE_TXT} ${relTagVersion}"
masterWasUpdated=1

# create release branch
echo "Creating the release branch ${relBranch}..."
Expand Down Expand Up @@ -659,8 +697,19 @@ EOF
git checkout -q master
git clean -fdq
git reset -q --hard
updateVersions "pre-${relBranchVersionDigitsNextMicro}"
commitChanges 0 "Update version after ${MODE_TXT_LOWER} of ${relTagVersion}"

declare oldMasterVersion="$(getVersionFromMakefile)"
declare newMasterVersion="${relBranchVersionDigitsNextMicro}"
checkVersionIncrementing "${oldMasterVersion}" "${newMasterVersion}" 0
if [[ ${checkVersionIncrementingResult} -ne 0 ]]; then
echo "* Skipped updating the version on the master branch:"
echo " The new version ${newMasterVersion} is not greater than the previous version ${oldMasterVersion}"
else
updateVersions "pre-${relBranchVersionDigitsNextMicro}"
commitChanges 0 "Update version after ${MODE_TXT_LOWER} of ${relTagVersion}"
masterWasUpdated=1
fi

git checkout -q "${relBranch}"
git clean -fdq
git reset -q --hard
Expand Down Expand Up @@ -696,7 +745,9 @@ echo ""
echo "==================="
echo "= Git Updates ="
echo "==================="
echo "Branch : master"
if [[ ${masterWasUpdated} -ne 0 ]]; then
echo "Branch : master"
fi
echo "Branch : ${relBranch}"
if [[ "${mode}" == "${MODE_RELEASE}" ]]; then
echo "Tag : ${relTagVersion}"
Expand All @@ -709,7 +760,7 @@ if [[ "${mode}" == "${MODE_RELEASE}" ]]; then
echo "==================="
cat >&1 << EOF
${tarGzFile}
${tarGzFile}
${tarBz2File}
${md5File}
${sha256File}"
EOF
Expand All @@ -723,18 +774,34 @@ echo "= Manual Actions ="
echo "==================="
if [[ "${mode}" == "${MODE_RELEASE}" ]]; then
echo "1. Check that everything is in order. For example, run:"
echo " gitk master ${relBranch} ${relTagVersion}"
if [[ ${masterWasUpdated} -ne 0 ]]; then
echo " gitk master ${relBranch} ${relTagVersion}"
else
echo " gitk ${relBranch} ${relTagVersion}"
fi
echo "2. Push. For example, run:"
echo " git push origin master ${relBranch} ${relTagVersion}"
if [[ ${masterWasUpdated} -ne 0 ]]; then
echo " git push origin master ${relBranch} ${relTagVersion}"
else
echo " git push origin ${relBranch} ${relTagVersion}"
fi
echo "3. Upload the generated files to"
echo " http://www.olsr.org/releases/${relBranchVersionDigits}"
echo "4. Add a release article on olsr.org."
echo ""
else
echo "1. Check that everything is in order. For example, run:"
echo " gitk master ${relBranch}"
if [[ ${masterWasUpdated} -ne 0 ]]; then
echo " gitk master ${relBranch}"
else
echo " gitk ${relBranch}"
fi
echo "2. Push. For example, run:"
echo " git push origin master ${relBranch}"
if [[ ${masterWasUpdated} -ne 0 ]]; then
echo " git push origin master ${relBranch}"
else
echo " git push origin ${relBranch}"
fi
echo "3. Send a 'release branch created' email to olsr-dev@lists.olsr.org."
echo ""
fi
Expand Down

0 comments on commit dcaa8ba

Please sign in to comment.