[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: make build-rpms generates rpms with version 0.0.1



We're working on getting a change into Tito that will allow the proper
version to be passed in and override the spec file.  Once that's done
we'll update the scripts to set the version.

> On Dec 28, 2016, at 8:46 AM, Zamir SUN <sztsian gmail com> wrote:
>
> I've not read the code. But from a RPM perspective, if you want to change the version, changing the SPEC file is the only way.
>
> Not sure if there are magics in the origin/hack directory.
>
> Just my cents.
>
>> On 12/28/2016 09:29 PM, Cameron Braid wrote:
>> I wish to build rpms for the release-1.4 branch
>>
>> I have checked out the branch and ran "make build-rpms" and I get the
>> following (abridged) output :
>>
>> BUILD_TESTS= OS_ONLY_BUILD_PLATFORMS='linux/amd64' hack/build-rpm-release.sh
>> [INFO] Building Origin release RPMs with tito...
>> Building package [v0.0.1]
>> Wrote: /tmp/openshift/build-rpm-release/tito/origin-git-15116.64e5417.tar.gz
>> OS_GIT_COMMIT::407c344
>> OS_GIT_VERSION::v1.4.0-rc1+407c344-61
>> OS_GIT_MAJOR::1
>> OS_GIT_MINOR::4+
>> ...
>> ++ Placing binaries
>> ++ Creating
>> openshift-origin-client-tools-v1.4.0-rc1+407c344-61-linux-64bit.tar.gz
>> ...
>> Wrote:
>> /tmp/openshift/build-rpm-release/tito/origin-0.0.1-0.git.15116.64e5417.el7.centos.src.rpm
>> Wrote:
>> /tmp/openshift/build-rpm-release/tito/x86_64/origin-0.0.1-0.git.15116.64e5417.el7.centos.x86_64.rpm
>> Wrote:
>> /tmp/openshift/build-rpm-release/tito/x86_64/origin-master-0.0.1-0.git.15116.64e5417.el7.centos.x86_64.rpm
>> Wrote:
>> /tmp/openshift/build-rpm-release/tito/x86_64/origin-node-0.0.1-0.git.15116.64e5417.el7.centos.x86_64.rpm
>> Wrote:
>> /tmp/openshift/build-rpm-release/tito/x86_64/tuned-profiles-origin-node-0.0.1-0.git.15116.64e5417.el7.centos.x86_64.rpm
>> Wrote:
>> /tmp/openshift/build-rpm-release/tito/x86_64/origin-clients-0.0.1-0.git.15116.64e5417.el7.centos.x86_64.rpm
>> Wrote:
>> /tmp/openshift/build-rpm-release/tito/x86_64/origin-dockerregistry-0.0.1-0.git.15116.64e5417.el7.centos.x86_64.rpm
>> Wrote:
>> /tmp/openshift/build-rpm-release/tito/x86_64/origin-pod-0.0.1-0.git.15116.64e5417.el7.centos.x86_64.rpm
>> Wrote:
>> /tmp/openshift/build-rpm-release/tito/x86_64/origin-sdn-ovs-0.0.1-0.git.15116.64e5417.el7.centos.x86_64.rpm
>> Wrote:
>> /tmp/openshift/build-rpm-release/tito/noarch/origin-excluder-0.0.1-0.git.15116.64e5417.el7.centos.noarch.rpm
>> Wrote:
>> /tmp/openshift/build-rpm-release/tito/noarch/origin-docker-excluder-0.0.1-0.git.15116.64e5417.el7.centos.noarch.rpm
>>
>> As you can see the release build is working, generating the tgz with the
>> correct version, however the rpms use the 0.0.1
>>
>> # rpm -qip
>> /tmp/openshift/build-rpm-release/tito/x86_64/origin-0.0.1-0.git.15116.64e5417.el7.centos.x86_64.rpm
>> Name        : origin
>> Version     : 0.0.1
>> Release     : 0.git.15116.64e5417.el7.centos
>>
>> The only way I can force the version is to edit the origin.spec file,
>> change the Version line, commit, then run make build-rpms
>>
>> Am I following the correct procedure ?
>>
>> Cheers
>>
>> Cameron
>>
>>
>> _______________________________________________
>> users mailing list
>> users lists openshift redhat com
>> http://lists.openshift.redhat.com/openshiftmm/listinfo/users
>>
>
> --
> Zamir SUN
> Fedora user
> GPG : 1D86 6D4A 49CE 4BBD 72CF FCF5 D856 6E11 F2A0 525E
>
> _______________________________________________
> users mailing list
> users lists openshift redhat com
> http://lists.openshift.redhat.com/openshiftmm/listinfo/users


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]