Bug 1428551
Summary: | Review Request: golang-github-kardianos-osext - Extensions (Executable and ExecutableFolder) for go's os | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Fabio Valentini <decathorpe> |
Component: | Package Review | Assignee: | Jan Chaloupka <jchaloup> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | rawhide | CC: | esm, jchaloup, package-review |
Target Milestone: | --- | Flags: | jchaloup:
fedora-review?
|
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2017-03-04 14:06:02 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 1426972, 1427634 |
Description
Fabio Valentini
2017-03-02 19:41:00 UTC
The package already exists: https://koji.fedoraproject.org/koji/packageinfo?packageID=17130 I didn't see that - but upstream has not only changed code hosting provider, but also changed the package's import path - and syncthing depends on the new import name. According to the contents of the bitbucket repository, upstream has moved from there to github in Feb 2015. Since then, development happened on github only. In this case I just add additional package into golang-bitbucket-kardianos-osext so it provides both the old one and the new one. The package name does not matter, only virtual provides that are available. In any case, you can always change subpackage name into golang-github-bitbucket-osext-devel. Have just given you commit permissions for the package. You can extend it. E.g. take a look at [1] how it is done. [1] http://pkgs.fedoraproject.org/cgit/rpms/golang-googlecode-net.git/tree/golang-googlecode-net.spec This doesn't seem to work, because if installing code to both import prefixes, I get the following error: + go test -compiler gc -ldflags '' bitbucket.org/kardianos/osext can't load package: package bitbucket.org/kardianos/osext: code in directory /builddir/build/BUILDROOT/golang-bitbucket-kardianos-osext-0-0.15.git9b883c5.fc25.x86_64/usr/share/gocode/src/bitbucket.org/kardianos/osext expects import "github.com/kardianos/osext" If I disable tests for the old import prefix, the package builds fine (and the built packages look good). But I suspect this doesn't only affect tests that use the old import prefix, but compilation of dependent packages (that expect the old import prefix), too ... You can see the adapted .spec file at https://decathorpe.fedorapeople.org/packages/golang-bitbucket-kardianos-osext.spec You need to preserve the old bitbucket tarball as well [1] [1] http://pkgs.fedoraproject.org/cgit/rpms/golang-gopkg-yaml.git/tree/golang-gopkg-yaml.spec#n57 Honestly, if *really everything* has to be duplicated, wouldn't 2 separate packages be simpler? Anyway, I managed to fix the .spec file so it uses both sources. Spec URL: https://decathorpe.fedorapeople.org/packages/golang-bitbucket-kardianos-osext.spec SRPM URL: https://decathorpe.fedorapeople.org/packages/golang-bitbucket-kardianos-osext-0-0.15.git9b883c5.fc27.src.rpm If the .spec looks alright to you, I'll push the changes to fedora. Not necessarily. It can happen the bitbucket gets retired over time. It is simplier to just change content of a package than create a new one and retire the old one. Plus, you have the entire history of the project in one place. I used rpmdiff to compare the old *bitbucket*-devel package with the one after I added my changes, and since there are no obvious mistakes, I'm pushing the update to rawhide, f26, f25 and f24. If you want to push the new version to el6 and epel7 branches too, feel free to do that, but I have no experience with EPEL packaging, so I didn't want to touch those branch and break something by ignorance. *** Bug 1297545 has been marked as a duplicate of this bug. *** |