[opensuse-buildservice] [Suggestion] Use pacman-git for Arch:Core with `SKIP` md5sum feature.
Hi, All, Here's the situation: 1. OBS has a build environment with no network connection, so PKGBUILDs have _git_ or _url_ can't be built, you have to convert them to a _service file. Then add the downloaded tar.bz2 file as source in PKGBUILD 2. Then you need the md5sum or similar for the downloaded tar.bz2. But unluckily, we can never have the md5sum. Here're the tests I did: 1. Download the tar.bz2 as a rawsource (I don't know why OBS doesn't make the name right), check the sum. the sum is wrong. failed. 2. Rename the rawsource and check, failed. 3. Add `mode="localonly"` in _service, get a tar.bz2, check, failed. So literally we have no way to know a dynamic md5sum. Then we call a feature: Add a `SKIP` as md5sum to skip the integrity check, which is implemented in pacman git. Then we can have packages using git painlessly. PS: Of course we can implement a `show md5` feature, but that'll reinventing the wheel. PS1: Of course you can git locally...but that's a different use case. PS2: I've made such packages: asciidoc and pacman in home:MargueriteSu:archlinux, you can copy it to Arch:Core or your project to replace Arch default one, to use git. Adrian, what do you think? is it possible? Greetings, Marguerite -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On Fri, Feb 8, 2013 at 8:16 AM, Marguerite Su <i@marguerite.su> wrote:
So literally we have no way to know a dynamic md5sum.
FYI... If you look at the verify_file script (I have obs-service-verify_file-0.1-13.1.noarch installed) you'll see that the --verifier parameter is ignored. It always uses the default of sha256sum. -Archie -- Archie L. Cobbs -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On Freitag, 8. Februar 2013, 22:16:20 wrote Marguerite Su:
Hi, All,
Here's the situation:
1. OBS has a build environment with no network connection, so PKGBUILDs have _git_ or _url_ can't be built, you have to convert them to a _service file. Then add the downloaded tar.bz2 file as source in PKGBUILD
2. Then you need the md5sum or similar for the downloaded tar.bz2.
But unluckily, we can never have the md5sum. Here're the tests I did:
1. Download the tar.bz2 as a rawsource (I don't know why OBS doesn't make the name right), check the sum. the sum is wrong. failed.
wrong compared to what? To the one in PKGBUILD file? Maybe download_files need to update that special file also ...
2. Rename the rawsource and check, failed.
3. Add `mode="localonly"` in _service, get a tar.bz2, check, failed.
So literally we have no way to know a dynamic md5sum.
Then we call a feature: Add a `SKIP` as md5sum to skip the integrity check, which is implemented in pacman git. Then we can have packages using git painlessly.
PS: Of course we can implement a `show md5` feature, but that'll reinventing the wheel.
PS1: Of course you can git locally...but that's a different use case.
PS2: I've made such packages: asciidoc and pacman in home:MargueriteSu:archlinux, you can copy it to Arch:Core or your project to replace Arch default one, to use git.
Adrian, what do you think? is it possible?
Greetings,
Marguerite
-- Adrian Schroeter SUSE Linux Products GmbH email: adrian@suse.de -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On Fri, Feb 8, 2013 at 10:39 PM, Adrian Schröter <adrian@suse.de> wrote:
wrong compared to what? To the one in PKGBUILD file? Maybe download_files need to update that special file also ...
Hi, Adrian Here's what I did: 1. make a _service file to git clone a tar, recompress to bz2 and set_version 2. download the output tar.bz2 which will give me a rawsource offline. 3. check the md5sum of the rawsource file and input it into PKGBUILD 4. it triggers a redownload and rebuild, but the md5sum is wrong compared to the newly downloaded clone. Another way: 1. set `mode=localonly`, run locally, check the md5sum of the local downloaded clone. 2. enter into the PKGBUILD 3. update, but the md5sum is wrong compared to the downloaded clone on OBS server. SO: I have no way to know the md5sum of the clone on OBS server. Even if I know it, I can set it into the md5sum() of PKGBUILD at the same time. Next time it changes again. Then I think we should SKIP the md5sum of the git cloned source for PKGBUILD. Greetings Marguerite -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
participants (3)
-
Adrian Schröter
-
Archie Cobbs
-
Marguerite Su