[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [sumo-dev] Strange version handling in SUMO 1.1.0 under ubuntu - patch for install
|
- From: Michael Behrisch <oss@xxxxxxxxxxx>
- Date: Sat, 29 Dec 2018 17:51:52 +0100
- Autocrypt: addr=oss@xxxxxxxxxxx; prefer-encrypt=mutual; keydata= mQGiBFLSvucRBACGsasS4GeIWs1CFNTOYmp3ScQ2ZTJLJWQxhPliwtHTzLsErYu9Y7e8qDov iHFviYyaNuceUNoACm1e4MT4eu0DmM2Wk3y/jjD6hfm7L0EZNPxQhj+CJf2oZAm2ezCe7/si xZ2d7TCO8yWavOGbF0EVi/ZDIJqVgupu6WBpv/NCewCg65HQiS1wm+1w1MdFYxKCmXzbv08D /iWXX3tzabbCrLlUum8hBgBpJEHRtlic2uaGsKm8Fize4tfLZkTBbTYLYXfcx2Oq9+lINPTW h9jnbCjAjErRWLTjNTQjel0JnDryCnqabub/R3wScR/EHRDBeS9L6YRj0xdVd2qIaArtSYRR auKPNc4M2qZNEFSM37cXC7avhpdeA/99oJf4qyVly4RxHmekAmj9UJjRx17x9xX8t9uzUuSt AeTh+kQ3o5jK7veU6/F/+pPyi96EOzym9BJA8pgXC8hLWNjOajI10filkdQ26QsfHOpUdPSZ 4Duyw9Ayj8loagEnnAONmU/xE0QlyVBANIut0W+SNqPScYXfnBbVOaG3HbQiTWljaGFlbCBC ZWhyaXNjaCA8b3NzQGJlaHJpc2NoLmRlPohjBBMRAgAjBQJS0sHSAhsjBwsJCAcDAgEGFQgC CQoLBBYCAwECHgECF4AACgkQPBD+ltFwpimlmQCdGgnYuHxoye4vFntyHRcE0Ij0318AoN3s szGyKcKdUmPpgXLhFcNfRGe4uQENBFLSvucQBACRAt3OW7eL8N3OJp2bZz/rRldtxjcViEcd +wpQcL9Ag0b6W7e4cbSc9oSU9MAdOvxR0UxualeRGz37W/VEC8cFZb3kFtRdl66gGygKb7gl 2S27495XEYqE7BBF1HfQDjL9sh5GfuIzORkqhCHSUTdkRuzRPxNQcEYFSrASEi9jQwADBQP9 FeuTC1SJHrX9tP3p4xrEa07XkCq+UzwNhDdezoQfT1CUbOv+LT66yLTXAaiHXelgaPMQO1Oo 76U2z0C1LudkAcDdwJbMuZ0RfDoRjsgfhfvM6kqiP4m0s2NR3Y3O+HKXjwtPbXuDwaYIAIvp aj8b59n7fQyfL6BZsO0QZc0i/t+ISQQYEQIACQUCUtK+5wIbDAAKCRA8EP6W0XCmKY1lAKCc 3miJueOXuvZJWV7qGBQxxyR83gCgxhGPL9OrP22rxNJSo1w5OOUxHsM=
- Delivered-to: sumo-dev@xxxxxxxxxxx
- List-archive: <https://www.eclipse.org/mailman/private/sumo-dev>
- List-help: <mailto:sumo-dev-request@eclipse.org?subject=help>
- List-subscribe: <https://www.eclipse.org/mailman/listinfo/sumo-dev>, <mailto:sumo-dev-request@eclipse.org?subject=subscribe>
- List-unsubscribe: <https://www.eclipse.org/mailman/options/sumo-dev>, <mailto:sumo-dev-request@eclipse.org?subject=unsubscribe>
- Openpgp: preference=signencrypt
- User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.0
Hello Harald,
thanks for the patch but this won't work in general since config.h might
be in arbitrary places. I reopened the ticket and we will come up with a
solution.
Best regards,
Michael
Am 20.12.18 um 11:56 schrieb Harald Schaefer:
> Dear developers,
>
> attached is a patch, which works for me under ubuntu and cmake.
> The basic idea:
> version.py gets a neutral function getRevision, which is called by the
> library installers.
> This new function tries to call gitDescribe. If this fails, it calls
> parseConfigFile to figure out the version from config.h.
>
> Regards, Harald
>
> Am 18.12.18 um 20:35 schrieb Jakob Erdmann:
>> Dear Harald,
>> thank you for reporting this (now tracked at
>> https://github.com/eclipse/sumo/issues/4946).
>> Your proposal reflects how things ought to be but we broke it during
>> our ongoing migration from autotools to cmake.
>> best regards,
>> Jakob
>>
>>
>> Am Di., 18. Dez. 2018 um 20:09 Uhr schrieb Harald Schaefer
>> <haraldschaefer@xxxxxxxxxxx <mailto:haraldschaefer@xxxxxxxxxxx>>:
>>
>> Dear developers,
>>
>> it is not possible to install the latest release 1.1.0 build from
>> the sumo-all tar ball without errors.
>>
>> The install process has three errors like this
>>
>> - Up-to-date: /usr/local/share/sumo/tools/xml/xsd.py
>> fatal: Kein Git-Repository (oder irgendein Elternverzeichnis
>> bis zum Einhängepunkt /)
>> Stoppe bei Dateisystemgrenze (GIT_DISCOVERY_ACROSS_FILESYSTEM
>> nicht gesetzt).
>> Traceback (most recent call last):
>> File
>> "/dosd/src/opensource/Sumo/sumo-1.1.0/tools/build/setup-sumolib.py",
>> line 21, in <module>
>> SUMO_VERSION = version.gitDescribe()[1:-11].replace("_",
>> ".").replace("+", ".")
>> File
>> "/dosd/src/opensource/Sumo/sumo-1.1.0/tools/build/version.py",
>> line 41, in gitDescribe
>> d = subprocess.check_output(command,
>> universal_newlines=True).strip()
>> File "/usr/lib/python2.7/subprocess.py", line 223, in
>> check_output
>> raise CalledProcessError(retcode, cmd, output=output)
>> subprocess.CalledProcessError: Command '['git', 'describe',
>> '--long', '--always', 'HEAD']' returned non-zero exit status 128
>>
>> It seems that the install routines calls version.py, which in turn
>> calls some git routines, which failed.
>>
>> My understanding is:
>>
>> If you create a tar-file for a release x.y.z, i would assume that
>>
>> the version string x.y.z is hardcoded in one or more files or
>>
>> the files to compute the version number are included in this tar ball.
>>
>> You should be able to compile and install from a tar-src file
>> without git or svn or whatever is currently the version management
>> system used.
>>
>> The generated sumo executable has no version
>>
>> harald@nyc> ../../bin/sumo --version
>> Eclipse SUMO Version UNKNOWN
>> Build features: Linux-4.18.0-12-generic x86_64 GNU 8.2.0
>> Release Proj GUI GDAL OSG GL2PS SWIG
>> Copyright (C) 2001-2018 German Aerospace Center (DLR) and
>> others; http://sumo.dlr.de
>>
>> If I build sumo (version 1.0.1) the same way, it has a version string:
>>
>> harald@nyc> ../../bin/sumo --version
>> Eclipse SUMO Version 1.0.1
>> Build features: Linux-4.18.0-12-generic Proj GUI GDAL OSG
>> GL2PS SWIG
>> Copyright (C) 2001-2018 German Aerospace Center (DLR) and
>> others; http://sumo.dlr.de
>>
>> My proposal is:
>>
>> When creating a tar file from git, you should copy a file
>> containing the official version for this file (e.g. 1.1.0 or
>> 1.1.0+xxxxxxxxx).
>>
>> The script version.py reads this file, if it exists, and sets the
>> correct version.
>>
>> Best regards
>>
>> Harald
>>
>>
>>
>> _______________________________________________
>> sumo-dev mailing list
>> sumo-dev@xxxxxxxxxxx <mailto:sumo-dev@xxxxxxxxxxx>
>> To change your delivery options, retrieve your password, or
>> unsubscribe from this list, visit
>> https://www.eclipse.org/mailman/listinfo/sumo-dev
>>
>>
>> _______________________________________________
>> sumo-dev mailing list
>> sumo-dev@xxxxxxxxxxx
>> To change your delivery options, retrieve your password, or unsubscribe from this list, visit
>> https://www.eclipse.org/mailman/listinfo/sumo-dev
>
>
>
> _______________________________________________
> sumo-dev mailing list
> sumo-dev@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-dev
>
Attachment:
signature.asc
Description: OpenPGP digital signature