Howto handle fork of an existing package
Hello
I have made a package of Wiring Pi for Lemaker boards Banana Pi and Banana Pro. Since this is a fork from an older version, the site, teh versioning, the patches etc are all different. I would like to ask, whoat would be the best way to merge this package properly. Either
1. Make it a completely new package, like wiringpi-lemaker and make it depend on !BR2_PACKAGE_WIRINGPI and vice versa. Easiest way.
2. Turn wiringpi into a subtree, with a radio button for board
selection: Raspberry Pi, Banana Pi, Banana Pro and enable teh proper package. Raspberry Pi being the default option. Slightly intrusive way.
3. Have one wiringpi to rule them all. Make the board selection as a mere set of parameters. Make a bit more complicated wirinpi.mk that selects correct site, version, patch directory etc depending on a bunch of defined flags. Possibly unnecessarily complicated.
Currently I made and tested it as a separate package.
Atilla
Hello,
Quoted 8 lines · Atilla Filiz
I have made a package of Wiring Pi for Lemaker boards Banana Pi and Banana Pro. Since this is a fork from an older version, the site, teh versioning, the patches etc are all different. I would like to ask, whoat would be the best way to merge this package properly. Either
1. Make it a completely new package, like wiringpi-lemaker and make it depend on !BR2_PACKAGE_WIRINGPI and vice versa. Easiest way.
Quoted 8 lines
2. Turn wiringpi into a subtree, with a radio button for board
selection: Raspberry Pi, Banana Pi, Banana Pro and enable teh proper package. Raspberry Pi being the default option. Slightly intrusive way.3. Have one wiringpi to rule them all. Make the board selection as a mere set of parameters. Make a bit more complicated wirinpi.mk that selects correct site, version, patch directory etc depending on a bunch of defined flags. Possibly unnecessarily complicated.
4. Contribute to the official wiringpi project instead of doing a fork, so that a single project supports multiple platforms.
I think I have a preference for option (4). If not possible, option (3) will be acceptable, but not as nice :-)
Best regards,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com
Quoted 16 lines · Thomas Petazzoni
Hello,
Quoted 12 lines · Atilla Filiz
I have made a package of Wiring Pi for Lemaker boards Banana Pi and Banana Pro. Since this is a fork from an older version, the site, teh versioning, the patches etc are all different. I would like to ask, whoat would be the best way to merge this package properly. Either
1. Make it a completely new package, like wiringpi-lemaker and make it depend on !BR2_PACKAGE_WIRINGPI and vice versa. Easiest way.
2. Turn wiringpi into a subtree, with a radio button for board
selection: Raspberry Pi, Banana Pi, Banana Pro and enable teh proper package. Raspberry Pi being the default option. Slightly intrusive way.
Quoted 7 lines
Quoted 4 lines
3. Have one wiringpi to rule them all. Make the board selection as a mere set of parameters. Make a bit more complicated wirinpi.mk that selects correct site, version, patch directory etc depending on a bunch of defined flags. Possibly unnecessarily complicated.
4. Contribute to the official wiringpi project instead of doing a fork, so that a single project supports multiple platforms.
Tell that to the LeMaker people, not to Atilla. And while you're at it, tell
the RaspberryPi people to not fork the kernel interfaces so that there is no need to create a library that has to be forked for RaspberryPi-derivatives...
Quoted 2 lines
I think I have a preference for option (4). If not possible, option (3) will be acceptable, but not as nice :-)
Essentially there is no real relationship between the proprietary GPIO
interface for RPi and the *different* proprietary GPIO interface for BPi, so I wouldn't mind solution (1). It's a different upstream with a potentially different API...
By the way, upstream says:
"This is a modified WiringPi for Banana Pro/Pi. We call it WiringBP." So naturally, the package should be called wiringbp.
Regards,
Arnout
Signature · 6 lines
Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286500 Essensium/Mind http://www.mind.be G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
Quoted 8 lines · Arnout Vandecappelle
Quoted 3 lines · Thomas Petazzoni
4. Contribute to the official wiringpi project instead of doing a fork, so that a single project supports multiple platforms.
Tell that to the LeMaker people, not to Atilla. And while you're at it, tell
the RaspberryPi people to not fork the kernel interfaces so that there is no need to create a library that has to be forked for RaspberryPi-derivatives...
It is not only up to Lemaker, as WiringPi website says although forks are encouraged, only Raspberry Pi is officially supported. They do not intend to support anything else.
Quoted 10 lines
Quoted 2 lines
I think I have a preference for option (4). If not possible, option (3) will be acceptable, but not as nice :-)
Essentially there is no real relationship between the proprietary GPIO
interface for RPi and the *different* proprietary GPIO interface for BPi, so I wouldn't mind solution (1). It's a different upstream with a potentially different API...By the way, upstream says:
"This is a modified WiringPi for Banana Pro/Pi. We call it WiringBP." So naturally, the package should be called wiringbp.
Good point. I will test and submit a proper patch as wiringbp. Thank you both.
Regards
Atilla