Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More explicit globbing taking version and relase into account to avoid f... #78

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

mloskot
Copy link

@mloskot mloskot commented Sep 19, 2012

...requent warning/error: duplicate target of xyz.
Based on patch posted to https://bbs.archlinux.org/viewtopic.php?pid=907691#p907691

This helps to avoid errors like:

error: 'i3-git-20120919-1-x86_64.pkg.tar.xz': duplicate target

@marcvangend
Copy link

Unfortunately this patch doesn't apply anymore, but the problem still occurs:

$ packer -Syu --noconfirm
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
:: Starting full system upgrade...
 there is nothing to do
:: Synchronizing aur database...
 aur                                        72  72 [###############################]100%
:: Starting full aur upgrade...

Aur Targets    (1): hipchat

Proceed with installation? [Y/n] 
==> Making package: hipchat 2.2.1270-2 (Mon Dec  1 09:10:11 CET 2014)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading hipchat-2.2.1270-x86_64.pkg.tar.xz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                             Dload  Upload   Total   Spent    Left  Speed
100 43.2M  100 43.2M    0     0  1793k      0  0:00:24  0:00:24 --:--:-- 1827k
==> Validating source files with sha1sums...
    hipchat-2.2.1270-x86_64.pkg.tar.xz ... Passed
==> Extracting sources...
  -> Extracting hipchat-2.2.1270-x86_64.pkg.tar.xz with bsdtar
==> Removing existing pkg/ directory...
==> Entering fakeroot environment...
==> Starting package()...
==> Tidying install...
  -> Purging unwanted files...
  -> Removing libtool files...
  -> Removing static library files...
  -> Compressing man and info pages...
  -> Stripping unneeded symbols from binaries and libraries...
==> Creating package "hipchat"...
  -> Generating .PKGINFO file...
  -> Adding install file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: hipchat 2.2.1270-2 (Mon Dec  1 09:11:48 CET 2014)
loading packages...
error: 'hipchat-2.2.1270-x86_64.pkg.tar.xz': duplicate target

I had a look to see if I could re-roll the patch, but I didn't understand the code well enough. What can we do to get this fixed?

@azat
Copy link

azat commented Mar 30, 2024

New version of the patch - azat-archive@dbcace7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants