You are not logged in.

#1 2021-10-28 22:35:12

xerus
Member
Registered: 2021-05-11
Posts: 5

Makepkg tidying removes wanted files from perl package

I have adopted the following package: https://aur.archlinux.org/packages/chordpro-git

Make creates and install all wanted files, as the log shows (note the files under `res/pod`):

Installing /home/janek/data/2-standards/dev/aur/chordpro-git/pkg/chordpro-git/usr/share/perl5/vendor_perl/App/Music/ChordPro/res/config/chordpro.json
Installing /home/janek/data/2-standards/dev/aur/chordpro-git/pkg/chordpro-git/usr/share/perl5/vendor_perl/App/Music/ChordPro/res/pod/Config.pod
Installing /home/janek/data/2-standards/dev/aur/chordpro-git/pkg/chordpro-git/usr/share/perl5/vendor_perl/App/Music/ChordPro/res/pod/ChordPro.pod
Installing /home/janek/data/2-standards/dev/aur/chordpro-git/pkg/chordpro-git/usr/share/perl5/vendor_perl/App/Music/ChordPro/res/pod/A2Crd.pod
Installing /home/janek/data/2-standards/dev/aur/chordpro-git/pkg/chordpro-git/usr/share/perl5/vendor_perl/App/Music/ChordPro/res/linux/chordpro.metainfo.xml
Installing /home/janek/data/2-standards/dev/aur/chordpro-git/pkg/chordpro-git/usr/share/perl5/vendor_perl/App/Music/ChordPro/res/linux/chordpro.desktop
Installing /home/janek/data/2-standards/dev/aur/chordpro-git/pkg/chordpro-git/usr/share/perl5/vendor_perl/App/Music/ChordPro/res/linux/chordpro.xml
Installing /home/janek/data/2-standards/dev/aur/chordpro-git/pkg/chordpro-git/usr/share/perl5/vendor_perl/App/Music/ChordPro/res/linux/setup_desktop.sh
Installing /home/janek/data/2-standards/dev/aur/chordpro-git/pkg/chordpro-git/usr/share/perl5/vendor_perl/App/Music/ChordPro/res/styles/print.css
Installing /home/janek/data/2-standards/dev/aur/chordpro-git/pkg/chordpro-git/usr/share/perl5/vendor_perl/App/Music/ChordPro/res/styles/default.css
Installing /home/janek/data/2-standards/dev/aur/chordpro-git/pkg/chordpro-git/usr/share/perl5/vendor_perl/App/Music/ChordPro/res/notes/common.json
Installing /home/janek/data/2-standards/dev/aur/chordpro-git/pkg/chordpro-git/usr/share/perl5/vendor_perl/App/Music/ChordPro/res/notes/roman.json
Installing /home/janek/data/2-standards/dev/aur/chordpro-git/pkg/chordpro-git/usr/share/perl5/vendor_perl/App/Music/ChordPro/res/notes/solfege.json
Installing /home/janek/data/2-standards/dev/aur/chordpro-git/pkg/chordpro-git/usr/share/perl5/vendor_perl/App/Music/ChordPro/res/notes/latin.json
Installing /home/janek/data/2-standards/dev/aur/chordpro-git/pkg/chordpro-git/usr/share/perl5/vendor_perl/App/Music/ChordPro/res/notes/german.json
Installing /home/janek/data/2-standards/dev/aur/chordpro-git/pkg/chordpro-git/usr/share/perl5/vendor_perl/App/Music/ChordPro/res/notes/scandinavian.json
Installing /home/janek/data/2-standards/dev/aur/chordpro-git/pkg/chordpro-git/usr/share/perl5/vendor_perl/App/Music/ChordPro/res/notes/nashville.json
Installing /home/janek/data/2-standards/dev/aur/chordpro-git/pkg/chordpro-git/usr/share/perl5/vendor_perl/App/Music/ChordPro/res/notes/dutch.json
Installing /home/janek/data/2-standards/dev/aur/chordpro-git/pkg/chordpro-git/usr/share/man/man1/chordpro.1p
Installing /home/janek/data/2-standards/dev/aur/chordpro-git/pkg/chordpro-git/usr/share/man/man1/wxchordpro.1p
Installing /home/janek/data/2-standards/dev/aur/chordpro-git/pkg/chordpro-git/usr/share/man/man3/App::Music::ChordPro::A2Crd.3pm
Installing /home/janek/data/2-standards/dev/aur/chordpro-git/pkg/chordpro-git/usr/share/man/man3/App::Music::ChordPro::res::pod::Config.3pm
Installing /home/janek/data/2-standards/dev/aur/chordpro-git/pkg/chordpro-git/usr/share/man/man3/App::Music::ChordPro::Config::Properties.3pm
Installing /home/janek/data/2-standards/dev/aur/chordpro-git/pkg/chordpro-git/usr/share/man/man3/App::Music::ChordPro::Wx.3pm
Installing /home/janek/data/2-standards/dev/aur/chordpro-git/pkg/chordpro-git/usr/share/man/man3/App::Music::ChordPro::res::pod::ChordPro.3pm
Installing /home/janek/data/2-standards/dev/aur/chordpro-git/pkg/chordpro-git/usr/share/man/man3/App::Music::ChordPro.3pm
Installing /home/janek/data/2-standards/dev/aur/chordpro-git/pkg/chordpro-git/usr/share/man/man3/App::Music::ChordPro::res::pod::A2Crd.3pm
Installing /home/janek/data/2-standards/dev/aur/chordpro-git/pkg/chordpro-git/usr/share/man/man3/App::Music::ChordPro::Config.3pm
Installing /home/janek/data/2-standards/dev/aur/chordpro-git/pkg/chordpro-git/usr/bin/vendor_perl/chordpro
Installing /home/janek/data/2-standards/dev/aur/chordpro-git/pkg/chordpro-git/usr/bin/vendor_perl/wxchordpro
Appending installation info to /home/janek/data/2-standards/dev/aur/chordpro-git/pkg/chordpro-git//usr/lib/perl5/5.34/core_perl/perllocal.pod
make[1]: Leaving directory '/home/janek/data/2-standards/dev/aur/chordpro-git/src/chordpro'
==> Tidying install...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Compressing man and info pages...
==> Checking for packaging issues...
==> Creating package "chordpro-git"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: chordpro-git 5.985.r0.gfe3027b-1 (2021-10-29T00:28:36 CEST)

But after the package has finished, the directory is empty:

    ❯ ls /home/janek/data/2-standards/dev/aur/chordpro-git/pkg/chordpro-git/usr/share/perl5/vendor_perl/App/Music/ChordPro/res/pod

I suspect this might by related to the "Tidying install" step, but I struggled to find documentation on that.

Related issue:
https://github.com/ChordPro/chordpro/issues/185

Last edited by xerus (2021-10-28 22:35:37)

Offline

#2 2021-10-28 23:41:03

loqs
Member
Registered: 2014-03-06
Posts: 14,282

Re: Makepkg tidying removes wanted files from perl package

Does inverting the purge option as below,  preserve the files?

git diff
diff --git a/PKGBUILD b/PKGBUILD
index f6f821d..3c1d4e2 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -10,7 +10,7 @@ license=('Artistic2.0')
 provides=("${_pkgname}")
 optdepends=()
 depends=(git perl-app-packager perl-string-interpolate-named perl-font-ttf perl-image-info perl-io-string perl-json-pp perl-pdf-api2 perl-file-loadlines perl-pod-parser perl-text-layout)
-options=('!emptydirs' purge)
+options=('!emptydirs' '!purge')
 source=("git+${url}.git")
 md5sums=(SKIP)
 

Offline

#3 2021-10-29 10:59:39

xerus
Member
Registered: 2021-05-11
Posts: 5

Re: Makepkg tidying removes wanted files from perl package

Thank you! But since `makepkg.conf` states `!purge` as default, I am confused why not stating it vs explicitly stating `!purge` makes a difference.

Offline

#4 2021-10-29 17:56:25

loqs
Member
Registered: 2014-03-06
Posts: 14,282

Re: Makepkg tidying removes wanted files from perl package

The default options array includes purge [1]:

OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !debug !lto)

[1] https://github.com/archlinux/svntogit-p … g.conf#L94

Offline

#5 2021-11-14 11:51:43

xerus
Member
Registered: 2021-05-11
Posts: 5

Re: Makepkg tidying removes wanted files from perl package

Thank you, I did not expect pkgconf to have different defaults, now it makes sense smile

Offline

Board footer

Powered by FluxBB