Re: [voidlinux/xbps] strange 'preserve' keyword behavior in MUSL (#233)

paoloschi at Sun, 05 Feb 2017 08:55:38 -0800
initially only my first 2 files in `/etc/grub.d` are executable ``` $ ll /etc/grub.d totale 60 -rwxr-xr-x 1 root root 8684 4 feb 08.04 00_header -rwxr-xr-x 1 root root 9469 4 feb 08.04 10_linux -rw-r--r-- 1 root root 10451 17 dic 22.24 20_linux_xen -rw-r--r-- 1 root root 11301 17 dic 22.24 30_os-prober -rw-r--r-- 1 root root 214 17 dic 22.24 40_custom -rw-r--r-- 1 root root 216 17 dic 22.24 41_custom -rw-r--r-- 1 root root 483 4 feb 08.04 README ``` in `/etc/xbps.d/xbps.conf'` I put ``` ## PRESERVING FILES preserve=/etc/default/grub preserve=/etc/grub.d/20_linux_xen preserve=/etc/grub.d/30_os-prober preserve=/etc/grub.d/40_custom preserve=/etc/grub.d/41_custom ``` or even ``` ## PRESERVING FILES preserve=/etc/default/grub preserve=/etc/grub.d/* ``` at this point I reinstall the _grub_ package: on GLIBC Void, files in `/etc/grub.d` remain preserved while on MUSL Void, files are replaced (so all scripts became executable again..) It follows Gist URL with the full debugging for the `xbps-install` command ``` $ sudo xbps-install -dfy grub 2>debug Name Action Version New version Download size grub reinstall 2.02~rc1_1 2.02~rc1_1 - Size required on disk: 29MB Free space on disk: 145GB [*] Downloading binary packages [*] Verifying package integrity grub-2.02~rc1_1: verifying RSA signature... [*] Running transaction tasks grub-2.02~rc1_1: unpacking ... Keeping modified configuration file `/etc/default/grub'. [*] Configuring unpacked packages grub-2.02~rc1_1: configuring ... grub-2.02~rc1_1: installed successfully. 0 downloaded, 1 installed, 0 updated, 1 configured, 0 removed. ``` https://gist.github.com/paoloschi/2024eda8d9f487e0466019dbb38d9239
Michael Gehring at Sun, 05 Feb 2017 09:15:32 -0800
`preserve` is a boolean so the paths shouldn't matter at all. Sounds like the grub package on your glibc system for some reason already has the preserve flag set. Can you check the pkgdb on the glibc system (/var/db/xbps/pkgdb-0.38.plist)? In general sounds like you want to use `conf_files` to achieve what you want?
Michael Gehring at Sun, 05 Feb 2017 09:18:12 -0800
Sorry, i misread the issue. Thought about the `preserve` in templates.
paoloschi at Sun, 05 Feb 2017 09:30:55 -0800
from __GLIBC__ `/var/db/xbps/pkgdb-0.38.plist` ``` [..] <key>grub</key> <dict> <key>architecture</key> <string>x86_64</string> <key>build-date</key> <string>2017-02-04 08:11 CET</string> <key>conf_files</key> <array> <string>/etc/default/grub</string> <string>/etc/grub.d/40_custom</string> </array> <key>filename-sha256</key> <string>966d14074c071a62c5cf3c546fa90bf5644d553255747cb62ec8daf1d349a7e= f</string> <key>filename-size</key> <integer>5876752</integer> <key>homepage</key> <string>http://www.gnu.org/software/grub/</string> <key>install-date</key> <string>2017-02-05 09:45 CET</string> <key>install-script</key> <data>IyEvYmluL3NoCiMKIyBHZW5lcmljIElOU1RBTEwvUkVNT1ZFIHNjcmlwdC4gQXJnd= W1lbnRzIHBhc3NlZCB0byB0aGlzIHNjcmlwdDoKIwojICQxID0gQUNUSU9OCVtwcmUvcG9zdF0K= IyAkMiA9IFBLR05BTUUKIyAkMyA9IFZFUlNJT04KIyAkNCA9IFVQREFURQlbeWVzL25vXQojICQ= 1ID0gQ09ORl9GSUxFIChwYXRoIHRvIHhicHMuY29uZikKIyAkNiA9IEFSQ0ggKHVuYW1lIC1tKQ= ojCiMgTm90ZSB0aGF0IHBhdGhzIG11c3QgYmUgcmVsYXRpdmUgdG8gQ1dELCB0byBhdm9pZCBjY= WxsaW5nCiMgaG9zdCBjb21tYW5kcyBpZiAvYmluL3NoIChkYXNoKSBpcyBub3QgaW5zdGFsbGVk= IGFuZCBpdCdzCiMgbm90IHBvc3NpYmxlIHRvIGNocm9vdCgzKS4KIwoKZXhwb3J0IFBBVEg9Ii9= iaW46L3NiaW46L3Vzci9iaW46L3Vzci9zYmluOi91c3IvbG9jYWwvYmluOi91c3IvbG9jYWwvc2= JpbiIKClRSSUdHRVJTRElSPSIuL3Vzci9saWJleGVjL3hicHMtdHJpZ2dlcnMiCkFDVElPTj0iJ= DEiClBLR05BTUU9IiQyIgpWRVJTSU9OPSIkMyIKVVBEQVRFPSIkNCIKQ09ORl9GSUxFPSIkNSIK= QVJDSD0iJDYiCgojCiMgVGhlIGZvbGxvd2luZyBjb2RlIHdpbGwgcnVuIHRoZSB0cmlnZ2Vycy4= KIwpleHBvcnQgaW5mb19maWxlcz0iL3Vzci9zaGFyZS9pbmZvL2dydWIuaW5mby5neiAvdXNyL3= NoYXJlL2luZm8vZ3J1Yi1kZXYuaW5mby5neiIKCmNhc2UgIiR7QUNUSU9OfSIgaW4KcHJlKQoJO= zsKcG9zdCkKCSR7VFJJR0dFUlNESVJ9L2luZm8tZmlsZXMgcnVuIHBvc3QtaW5zdGFsbCAke1BL= R05BTUV9ICR7VkVSU0lPTn0gJHtVUERBVEV9ICR7Q09ORl9GSUxFfQoJWyAkPyAtbmUgMCBdICY= mIGV4aXQgJD8KCTs7CmVzYWMKCgpleGl0IDAK</data> <key>installed_size</key> <integer>30271633</integer> <key>license</key> <string>GPL-3</string> <key>maintainer</key> <string>Juan RP &lt;xtraeme@voidlinux.eu&gt;</string> <key>metafile-sha256</key> <string>d86d35c59c17d140c9c5d08c36dcfdbe39c3388649ef5fb5b6d02d0ed47f70a= 5</string> <key>pkgver</key> <string>grub-2.02~rc1_1</string> <key>remove-script</key> <data>IyEvYmluL3NoCiMKIyBHZW5lcmljIElOU1RBTEwvUkVNT1ZFIHNjcmlwdC4gQXJnd= W1lbnRzIHBhc3NlZCB0byB0aGlzIHNjcmlwdDoKIwojICQxID0gQUNUSU9OCVtwcmUvcG9zdF0K= IyAkMiA9IFBLR05BTUUKIyAkMyA9IFZFUlNJT04KIyAkNCA9IFVQREFURQlbeWVzL25vXQojICQ= 1ID0gQ09ORl9GSUxFIChwYXRoIHRvIHhicHMuY29uZikKIyAkNiA9IEFSQ0ggKHVuYW1lIC1tKQ= ojCiMgTm90ZSB0aGF0IHBhdGhzIG11c3QgYmUgcmVsYXRpdmUgdG8gQ1dELCB0byBhdm9pZCBjY= WxsaW5nCiMgaG9zdCBjb21tYW5kcyBpZiAvYmluL3NoIChkYXNoKSBpcyBub3QgaW5zdGFsbGVk= IGFuZCBpdCdzCiMgbm90IHBvc3NpYmxlIHRvIGNocm9vdCgzKS4KIwoKZXhwb3J0IFBBVEg9Ii9= iaW46L3NiaW46L3Vzci9iaW46L3Vzci9zYmluOi91c3IvbG9jYWwvYmluOi91c3IvbG9jYWwvc2= JpbiIKClRSSUdHRVJTRElSPSIuL3Vzci9saWJleGVjL3hicHMtdHJpZ2dlcnMiCkFDVElPTj0iJ= DEiClBLR05BTUU9IiQyIgpWRVJTSU9OPSIkMyIKVVBEQVRFPSIkNCIKQ09ORl9GSUxFPSIkNSIK= QVJDSD0iJDYiCgojCiMgVGhlIGZvbGxvd2luZyBjb2RlIHdpbGwgcnVuIHRoZSB0cmlnZ2Vycy4= KIwpleHBvcnQgaW5mb19maWxlcz0iL3Vzci9zaGFyZS9pbmZvL2dydWIuaW5mby5neiAvdXNyL3= NoYXJlL2luZm8vZ3J1Yi1kZXYuaW5mby5neiIKCmNhc2UgIiR7QUNUSU9OfSIgaW4KcHJlKQoJJ= HtUUklHR0VSU0RJUn0vaW5mby1maWxlcyBydW4gcHJlLXJlbW92ZSAke1BLR05BTUV9ICR7VkVS= U0lPTn0gJHtVUERBVEV9ICR7Q09ORl9GSUxFfQoJWyAkPyAtbmUgMCBdICYmIGV4aXQgJD8KCTs= 7CnBvc3QpCgk7Owplc2FjCgoKZXhpdCAwCg=3D=3D</data> <key>repository</key> <string>https://repo.voidlinux.eu/current</string> <key>run_depends</key> <array> <string>os-prober&gt;=3D0</string> <string>liblzma&gt;=3D5.0.0_1</string> <string>device-mapper&gt;=3D2.02.110_1</string> <string>glibc&gt;=3D2.8_1</string> </array> <key>shlib-requires</key> <array> <string>liblzma.so.5</string> <string>libdevmapper.so.1.02</string> <string>libc.so.6</string> </array> <key>short_desc</key> <string>GRand Unified Bootloader 2</string> <key>state</key> <string>installed</string> </dict> [..] ``` from __MUSL__ `/var/db/xbps/pkgdb-0.38.plist` ``` [..] <key>grub</key> <dict> <key>architecture</key> <string>x86_64-musl</string> <key>build-date</key> <string>2017-02-04 07:15 GMT</string> <key>conf_files</key> <array> <string>/etc/default/grub</string> <string>/etc/grub.d/40_custom</string> </array> <key>filename-sha256</key> <string>8ec65cd3149e9b1320dae584fd4f6edbe7a8c8086362d802bda9a79b222ec5a= 0</string> <key>filename-size</key> <integer>5909240</integer> <key>homepage</key> <string>http://www.gnu.org/software/grub/</string> <key>install-date</key> <string>2017-02-05 17:14 CET</string> <key>install-script</key> <data>IyEvYmluL3NoCiMKIyBHZW5lcmljIElOU1RBTEwvUkVNT1ZFIHNjcmlwdC4gQXJnd= W1lbnRzIHBhc3NlZCB0byB0aGlzIHNjcmlwdDoKIwojICQxID0gQUNUSU9OCVtwcmUvcG9zdF0K= IyAkMiA9IFBLR05BTUUKIyAkMyA9IFZFUlNJT04KIyAkNCA9IFVQREFURQlbeWVzL25vXQojICQ= 1ID0gQ09ORl9GSUxFIChwYXRoIHRvIHhicHMuY29uZikKIyAkNiA9IEFSQ0ggKHVuYW1lIC1tKQ= ojCiMgTm90ZSB0aGF0IHBhdGhzIG11c3QgYmUgcmVsYXRpdmUgdG8gQ1dELCB0byBhdm9pZCBjY= WxsaW5nCiMgaG9zdCBjb21tYW5kcyBpZiAvYmluL3NoIChkYXNoKSBpcyBub3QgaW5zdGFsbGVk= IGFuZCBpdCdzCiMgbm90IHBvc3NpYmxlIHRvIGNocm9vdCgzKS4KIwoKZXhwb3J0IFBBVEg9Ii9= iaW46L3NiaW46L3Vzci9iaW46L3Vzci9zYmluOi91c3IvbG9jYWwvYmluOi91c3IvbG9jYWwvc2= JpbiIKClRSSUdHRVJTRElSPSIuL3Vzci9saWJleGVjL3hicHMtdHJpZ2dlcnMiCkFDVElPTj0iJ= DEiClBLR05BTUU9IiQyIgpWRVJTSU9OPSIkMyIKVVBEQVRFPSIkNCIKQ09ORl9GSUxFPSIkNSIK= QVJDSD0iJDYiCgojCiMgVGhlIGZvbGxvd2luZyBjb2RlIHdpbGwgcnVuIHRoZSB0cmlnZ2Vycy4= KIwpleHBvcnQgaW5mb19maWxlcz0iL3Vzci9zaGFyZS9pbmZvL2dydWIuaW5mby5neiAvdXNyL3= NoYXJlL2luZm8vZ3J1Yi1kZXYuaW5mby5neiIKCmNhc2UgIiR7QUNUSU9OfSIgaW4KcHJlKQoJO= zsKcG9zdCkKCSR7VFJJR0dFUlNESVJ9L2luZm8tZmlsZXMgcnVuIHBvc3QtaW5zdGFsbCAke1BL= R05BTUV9ICR7VkVSU0lPTn0gJHtVUERBVEV9ICR7Q09ORl9GSUxFfQoJWyAkPyAtbmUgMCBdICY= mIGV4aXQgJD8KCTs7CmVzYWMKCgpleGl0IDAK</data> <key>installed_size</key> <integer>30236412</integer> <key>license</key> <string>GPL-3</string> <key>maintainer</key> <string>Juan RP &lt;xtraeme@voidlinux.eu&gt;</string> <key>metafile-sha256</key> <string>7393162c38a5288ad14a10f6f1cc00ceb54237941c34dfbe0cff202215f9cd1= 6</string> <key>pkgver</key> <string>grub-2.02~rc1_1</string> <key>remove-script</key> <data>IyEvYmluL3NoCiMKIyBHZW5lcmljIElOU1RBTEwvUkVNT1ZFIHNjcmlwdC4gQXJnd= W1lbnRzIHBhc3NlZCB0byB0aGlzIHNjcmlwdDoKIwojICQxID0gQUNUSU9OCVtwcmUvcG9zdF0K= IyAkMiA9IFBLR05BTUUKIyAkMyA9IFZFUlNJT04KIyAkNCA9IFVQREFURQlbeWVzL25vXQojICQ= 1ID0gQ09ORl9GSUxFIChwYXRoIHRvIHhicHMuY29uZikKIyAkNiA9IEFSQ0ggKHVuYW1lIC1tKQ= ojCiMgTm90ZSB0aGF0IHBhdGhzIG11c3QgYmUgcmVsYXRpdmUgdG8gQ1dELCB0byBhdm9pZCBjY= WxsaW5nCiMgaG9zdCBjb21tYW5kcyBpZiAvYmluL3NoIChkYXNoKSBpcyBub3QgaW5zdGFsbGVk= IGFuZCBpdCdzCiMgbm90IHBvc3NpYmxlIHRvIGNocm9vdCgzKS4KIwoKZXhwb3J0IFBBVEg9Ii9= iaW46L3NiaW46L3Vzci9iaW46L3Vzci9zYmluOi91c3IvbG9jYWwvYmluOi91c3IvbG9jYWwvc2= JpbiIKClRSSUdHRVJTRElSPSIuL3Vzci9saWJleGVjL3hicHMtdHJpZ2dlcnMiCkFDVElPTj0iJ= DEiClBLR05BTUU9IiQyIgpWRVJTSU9OPSIkMyIKVVBEQVRFPSIkNCIKQ09ORl9GSUxFPSIkNSIK= QVJDSD0iJDYiCgojCiMgVGhlIGZvbGxvd2luZyBjb2RlIHdpbGwgcnVuIHRoZSB0cmlnZ2Vycy4= KIwpleHBvcnQgaW5mb19maWxlcz0iL3Vzci9zaGFyZS9pbmZvL2dydWIuaW5mby5neiAvdXNyL3= NoYXJlL2luZm8vZ3J1Yi1kZXYuaW5mby5neiIKCmNhc2UgIiR7QUNUSU9OfSIgaW4KcHJlKQoJJ= HtUUklHR0VSU0RJUn0vaW5mby1maWxlcyBydW4gcHJlLXJlbW92ZSAke1BLR05BTUV9ICR7VkVS= U0lPTn0gJHtVUERBVEV9ICR7Q09ORl9GSUxFfQoJWyAkPyAtbmUgMCBdICYmIGV4aXQgJD8KCTs= 7CnBvc3QpCgk7Owplc2FjCgoKZXhpdCAwCg=3D=3D</data> <key>repository</key> <string>https://repo.voidlinux.eu/current/musl</string> <key>run_depends</key> <array> <string>os-prober&gt;=3D0</string> <string>device-mapper&gt;=3D2.02.110_1</string> <string>musl&gt;=3D0.9.9_1</string> <string>liblzma&gt;=3D5.0.0_1</string> </array> <key>shlib-requires</key> <array> <string>libdevmapper.so.1.02</string> <string>libc.so</string> <string>liblzma.so.5</string> </array> <key>short_desc</key> <string>GRand Unified Bootloader 2</string> <key>state</key> <string>installed</string> </dict> [..] ``` --=20 You are receiving this because you commented. Reply to this email directly or view it on GitHub: https://github.com/voidlinux/xbps/issues/233#issuecomment-277534621=