perl-cpanplus-dist-arch
perl-cpanplus-dist-arch copied to clipboard
How to use cpan2aur?
❯ cpan2aur -d Text::Layout
==> Creating a new package directory for Text::Layout...
-> Looking up module for Text::Layout on CPAN...
Running [/usr/bin/perl -MCPANPLUS::Internals::Utils::Autoflush /home/janek/.cpanplus/5.34.0/build/LX8hqQhqCJ/Text-Layout-0.028/Makefile.PL]...
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for Text::Layout
Writing MYMETA.yml and MYMETA.json
-> Creating new PKGBUILD.tt template file...
==> Created perl-text-layout source package directory.
❯ cpan2aur --check perl-text-layout
==> Checking if perl-text-layout is up to date...
==> ERROR: perl-text-layout does not contain a PKGBUILD or source package
file.
❯ cpan2aur --upload perl-text-layout
-u[pload] feature not implemented due to AUR 4.0 changes
I do not want "Automatic packaging" when installing from CPAN (which I don't do), I merely maintain a few perl packages on the AUR which I want to keep updated automatically. I am a little confused how to proceed here.
Hello!
Try running without the -d flag and just provide the name of the module as argument. This should build a source package file.
The -d flag is only for advanced use when you need to tweak the PKGBUILD. The check flag checks if a source package is outdated. The upload flag doesn’t work anymore.
Please refer to the doc: https://metacpan.org/dist/CPANPLUS-Dist-Arch/view/script/cpan2aurhttps://metacpan.org/dist/CPANPLUS-Dist-Arch
I hope that helps.
-juster
On Wed, Mar 9, 2022 at 6:47 PM, Janek @.***> wrote:
❯ cpan2aur -d Text::Layout
Creating a new package directory
for
Text::Layout...
Looking up module
for
Text::Layout on CPAN... Running [/usr/bin/perl -MCPANPLUS::Internals::Utils::Autoflush /home/janek/.cpanplus/5.34.0/build/LX8hqQhqCJ/Text-Layout-0.028/Makefile.PL]... Checking
if
your kit is complete... Looks good Generating a Unix-style Makefile Writing Makefile
for
Text::Layout Writing MYMETA.yml and MYMETA.json
Creating new PKGBUILD.tt template file...
Created perl-text-layout
source
package directory. ❯ cpan2aur --check perl-text-layout
Checking
if
perl-text-layout is up to date...
ERROR: perl-text-layout does not contain a PKGBUILD or
source
package file. ❯ cpan2aur --upload perl-text-layout -u[pload] feature not implemented due to AUR 4.0 changes
I do not want "Automatic packaging" when installing from CPAN (which I don't do), I merely maintain a few perl packages on the AUR which I want to keep updated automatically. I am a little confused how to proceed here.
— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you are subscribed to this thread.Message ID: @.***>
It seems the check flag is utterly useless now, though:
❯ cpan2aur -d Text::Layout
==> Creating a new package directory for Text::Layout...
-> Looking up module for Text::Layout on CPAN...
Running [/usr/bin/perl -MCPANPLUS::Internals::Utils::Autoflush /home/janek/.cpanplus/5.34.0/build/F0maXqvAik/Text-Layout-0.028/Makefile.PL]...
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for Text::Layout
Writing MYMETA.yml and MYMETA.json
-> Creating new PKGBUILD.tt template file...
==> Created perl-text-layout source package directory.
❯ cd perl-text-layout
PKGBUILD.tt
❯ cpan2aur Text::Layout
==> Creating new source package for Text::Layout...
-> Looking up module for Text::Layout on CPAN...
Running [/usr/bin/perl -MCPANPLUS::Internals::Utils::Autoflush /home/janek/.cpanplus/5.34.0/build/8R3IKMqIsX/Text-Layout-0.028/Makefile.PL]...
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for Text::Layout
Writing MYMETA.yml and MYMETA.json
==> Making package: perl-text-layout 0.028-1 (Thu 10 Mar 2022 01:31:40)
==> Retrieving sources...
-> Found Text-Layout-0.028.tar.gz
==> Validating source files with md5sums...
Text-Layout-0.028.tar.gz ... Passed
==> Validating source files with sha512sums...
Text-Layout-0.028.tar.gz ... Passed
==> Entering fakeroot environment...
==> Creating source package...
-> Adding PKGBUILD...
-> Generating .SRCINFO file...
-> Compressing source package...
==> Leaving fakeroot environment.
==> Source package created: perl-text-layout (Thu 10 Mar 2022 01:31:41)
❯ cpan2aur --check perl-text-layout-0.028-1.src.tar.gz
==> Checking if perl-text-layout-0.028-1.src.tar.gz is up to date...
==> ERROR: perl-text-layout-0.028-1.src.tar.gz's PKGBUILD does not seem to
be made by cpan2aur. We are unable to extract the CPAN
distribution name from it.
❯ cpan2aur --check .
==> Checking if . is up to date...
==> ERROR: . does not contain a PKGBUILD or source package file.
❯ ls -l
total 8,0K
-rw-r--r-- 1 janek janek 1,6K Mar 10 01:31 PKGBUILD.tt
-rw-r--r-- 1 janek janek 1,1K Mar 10 01:31 perl-text-layout-0.028-1.src.tar.gz
The only thing I can do is build the source package, compare the version number and adjust my PKGBUILD accordingly, because I found no flag to create the actual PKGBUILD from the .tt template.
That’s entirely possible considering that I stopped maintaining this module seven years ago. Frankly I’m amazed it still works as well as it does.
On Wed, Mar 9, 2022 at 7:34 PM, Janek @.***> wrote:
It seems the check flag is utterly useless now, though:
❯ cpan2aur -d Text::Layout
Creating a new package directory
for
Text::Layout...
Looking up module
for
Text::Layout on CPAN... Running [/usr/bin/perl -MCPANPLUS::Internals::Utils::Autoflush /home/janek/.cpanplus/5.34.0/build/F0maXqvAik/Text-Layout-0.028/Makefile.PL]... Checking
if
your kit is complete... Looks good Generating a Unix-style Makefile Writing Makefile
for
Text::Layout Writing MYMETA.yml and MYMETA.json
Creating new PKGBUILD.tt template file...
Created perl-text-layout
source
package directory. ❯
cd
perl-text-layout PKGBUILD.tt ❯ cpan2aur Text::Layout
Creating new
source
package
for
Text::Layout...
Looking up module
for
Text::Layout on CPAN... Running [/usr/bin/perl -MCPANPLUS::Internals::Utils::Autoflush /home/janek/.cpanplus/5.34.0/build/8R3IKMqIsX/Text-Layout-0.028/Makefile.PL]... Checking
if
your kit is complete... Looks good Generating a Unix-style Makefile Writing Makefile
for
Text::Layout Writing MYMETA.yml and MYMETA.json
Making package: perl-text-layout 0.028-1 (Thu 10 Mar 2022 01:31:40)
Retrieving sources...
Found Text-Layout-0.028.tar.gz
Validating
source
files with md5sums... Text-Layout-0.028.tar.gz ... Passed
Validating
source
files with sha512sums... Text-Layout-0.028.tar.gz ... Passed
Entering fakeroot environment...
Creating
source
package...
Adding PKGBUILD...
Generating .SRCINFO file...
Compressing
source
package...
Leaving fakeroot environment.
Source package created: perl-text-layout (Thu 10 Mar 2022 01:31:41) ❯ cpan2aur --check perl-text-layout-0.028-1.src.tar.gz
Checking
if
perl-text-layout-0.028-1.src.tar.gz is up to date...
ERROR: perl-text-layout-0.028-1.src.tar.gz
'
s PKGBUILD does not seem to
be made by cpan2aur. We are unable to extract the CPAN
distribution name from it.
❯ cpan2aur --check .
==> Checking if . is up to date...
==> ERROR: . does not contain a PKGBUILD or source package file.
❯ ls -l
total 8,0K
-rw-r--r-- 1 janek janek 1,6K Mar 10 01:31 PKGBUILD.tt
-rw-r--r-- 1 janek janek 1,1K Mar 10 01:31 perl-text-layout-0.028-1.src.tar.gz
The only thing I can do is build the source package, compare the version number and adjust my PKGBUILD accordingly, because I found no flag to create the actual PKGBUILD from the .tt template.
— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you commented.Message ID: @.***>