Opened 6 months ago

Closed 3 months ago

#10164 closed bug (fixed)

Old PKG files can't be installed anymore

Reported by: waddlesplash Owned by: sil2100
Priority: blocker Milestone: R1/beta1
Component: Applications/PackageInstaller Version: R1/Development
Keywords: Cc: gordonjcp@…, alansearchwell@…
Blocked By: Blocking:
Has a Patch: yes Platform: All

Description

I'm on hrev46250. When you try to install an old .PKG file (any PKG file), no matter where you specify to install it, you get an error.

Example PKG file: http://darkwyrm.beemulated.net/downloads/Paladin.1.3.pkg

Attachments (2)

PackageInstaller.patch (1.5 KB) - added by puckipedia 3 months ago.
PackageInstaller.2.patch (1.7 KB) - added by puckipedia 3 months ago.
New version of the patch

Download all attachments as: .zip

Change History (20)

comment:1 Changed 6 months ago by anevilyak

  • Priority changed from high to normal

comment:2 Changed 6 months ago by anevilyak

Details as to what error you're actually seeing would be helpful. "you get an error." doesn't really yield any useful information for starting to determine where things might be going wrong.

comment:3 Changed 6 months ago by diver

  • Component changed from - General to Applications/PackageInstaller
  • Owner changed from nobody to sil2100

comment:4 Changed 6 months ago by waddlesplash

Error is: "The requested package failed to install on your system. This might be a problem with the target package file. Please consult this issue with the package distributor."

Some packages will install some files, but then fail halfway through installation. Perhaps this has something to do with the removal of /boot/common?

comment:5 Changed 6 months ago by bbjimmy

This is more likely from removing /boot/apps and or the missing ~/config/be.

comment:6 Changed 6 months ago by axeld

It's just that the PackageInstaller hasn't been updated to the PM yet -- ie. it will try to install applications to locations that it must not/cannot do anymore. It needs to replace the find directory paths with non packaged ones.

I would prefer to make this ticket a release blocker.

comment:7 Changed 6 months ago by X512

Is is possible just to convert SoftwareValet Package to Haiku Package, or mount it directly without convertation? In such case "non-packaged" folders will be not required.

Last edited 6 months ago by X512 (previous) (diff)

comment:8 Changed 6 months ago by sil2100

Hello everyone!
Thanks for filling in this bug. It's been a while since I last checked out the Haiku source - I will have to familiarize myself with the Haiku PM and see how I could help out to make it work again. Just I guess it might take a bit longer than usually, since there's probably some stuff that I need to get up-to-date knowledge-wise, while I can only spare some limited after-work time.

comment:9 Changed 6 months ago by kallisti5

It may be kind of cool to have PackageInstaller try and convert the old package installers to hpkg's. They wouldn't need any dependency tracking or anything, just wrapped up so packagefs could mount them.

comment:10 Changed 6 months ago by waddlesplash

  • Priority changed from normal to blocker

Making a release blocker as per axeld's request.

comment:11 Changed 6 months ago by diver

  • Milestone changed from R1 to R1/beta1
  • Priority changed from blocker to normal

comment:12 Changed 5 months ago by axeld

  • Priority changed from normal to blocker

comment:13 Changed 3 months ago by gordonjcp

  • Cc gordonjcp@… added

Changed 3 months ago by puckipedia

comment:14 Changed 3 months ago by puckipedia

  • Has a Patch set

comment:15 Changed 3 months ago by puckipedia

Don't yet apply, I found some issue

Changed 3 months ago by puckipedia

New version of the patch

comment:16 Changed 3 months ago by puckipedia

Okay, fixed the issue (it now replaces /boot/system with B_SYSTEM_NONPACKAGED_DIRECTORY, and /boot/home/config with B_USER_NONPACKAGED_DIRECTORY)

comment:17 Changed 3 months ago by 6foot3

  • Cc alansearchwell@… added

comment:18 Changed 3 months ago by pulkomandy

  • Resolution set to fixed
  • Status changed from new to closed

Patch applied in hrev46836.

Note: See TracTickets for help on using tickets.