Mailinglist Archive: opensuse-buildservice (366 mails)

< Previous Next >
Re: [opensuse-buildservice] Support for --changelog removed from osc build
  • From: Andrew Beekhof <abeekhof@xxxxxxx>
  • Date: Tue, 14 Aug 2007 12:51:18 +0200
  • Message-id: <5E25952D-7578-4790-B804-677DFE775DDD@xxxxxxx>

On Aug 14, 2007, at 10:19 AM, Dr. Peter Poeml wrote:

Hi Andrew,

On Mon, Aug 13, 2007 at 02:06:49PM +0200, Andrew Beekhof wrote:
I just noticed that support for --changelog was removed from "osc build"
This breaks local debian builds for people using {package}.changes
(since there will be no entry describing the release).

Hm, let me get this right. Since I don't know of such an option, I
suspect it was something which was ignored by osc, but passed through to

must have

build --help doesn't list it though.

What does it do exactly?

Can it please be added back?

Yes, I'll happy to add it to osc build if I know what it's for :)

it forces the execution of changelog2spec.
i believe this is the default on the BS but obviously not for local builds.

this is the (existing) code that i was trying to turn on from the command-line:
beekhof@vmhost ~ $ grep -n changelog `which build`
329:      *-changelog)
539:    rm -f $BUILD_ROOT/.build-changelog
544: echo "running changelog2spec --target $CFFORMAT --file $MYSRCDIR/$SPECFILE"
545: if ! $BUILD_DIR/changelog2spec --target $CFFORMAT --file "$MYSRCDIR/$SPECFILE" > $BUILD_ROOT/.build-changelog ; then
546:        rm -f $BUILD_ROOT/.build-changelog
695: test -n "$CHANGELOG" -a -f "$BUILD_ROOT/.build-changelog" && CHANGELOGARGS="--changelog $BUILD_ROOT/.build-changelog"

Once I added the following, it all worked:

beekhof@vmhost ~ $ grep -n changelog /usr/lib64/python2.5/site- packages/osc/
220:    if opts.changelog:
221:        buildargs.append('--changelog')


beekhof@vmhost ~ $ grep -n changelog /usr/lib64/python2.5/site- packages/osc/
1299: @cmdln.option('--changelog', '--no-changelog', action='store_true',

To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups