You are not logged in.

#1 2015-07-08 13:49:58

Aerion
Member
From: London
Registered: 2014-11-18
Posts: 22

[SOLVED] Error importing a packag into AUR4

While importing my packages into AUR4 using the aur2aur4 helper script I ran into an issue with one of the packages. Having absolutely zero experience with Git, I don't have a clue as to how to fix this.

Here is the output:

Counting objects: 6, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (6/6), done.
Writing objects: 100% (6/6), 3.05 KiB | 0 bytes/s, done.
Total 6 (delta 0), reused 0 (delta 0)
remote: Traceback (most recent call last):
remote:   File "/srv/http/vhosts/aur-dev.archlinux.org/public/git-interface/aurinfo.py", line 127, in 
ParseAurinfoFromIterable
remote:     key, value = map(str.strip, line.split('=', 1))
remote: ValueError: need more than 1 value to unpack
remote: 
remote: During handling of the above exception, another exception occurred:
remote: 
remote: Traceback (most recent call last):
remote:   File "hooks/update", line 238, in <module>
remote:     srcinfo = aurinfo.ParseAurinfoFromIterable(srcinfo_raw, ecatcher)
remote:   File "/srv/http/vhosts/aur-dev.archlinux.org/public/git-interface/aurinfo.py", line 130, in 
ParseAurinfoFromIterable
remote:     current_package['pkgname']))
remote: TypeError: 'NoneType' object is not subscriptable
remote: error: hook declined to update refs/heads/master
To ssh://aur@aur4.archlinux.org/brother-hl2030.git
 ! [remote rejected] master -> master (hook declined)
error: failed to push some refs to 'ssh://aur@aur4.archlinux.org/brother-hl2030.git'

While I no longer have this printer, I would like to keep this package available in the AUR. for the benefit of others who may still have this printer.

As the errors suggest it is a server-side problem I have not include any information regarding my particular configuration, however please let me know if further details are required. Please note that all other packages migrated without any trouble,

Thanks!
Emile

Last edited by Aerion (2015-07-14 14:10:41)


Previously registered as MrE.

Offline

#2 2015-07-08 14:02:33

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,701

Re: [SOLVED] Error importing a packag into AUR4

Moving to AUR issues


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#3 2015-07-08 14:07:29

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: [SOLVED] Error importing a packag into AUR4

It may very well be a server side issue, but we'd still need to see the .SRCINFO and possibly the PKGBUILD.

You'd also probably do better on the mailing list or even the bug tracker, as the right people are more likely to see it there.

Offline

#4 2015-07-08 14:12:31

Aerion
Member
From: London
Registered: 2014-11-18
Posts: 22

Re: [SOLVED] Error importing a packag into AUR4

ewaller wrote:

Moving to AUR issues

I thought that's where I posted it?


Previously registered as MrE.

Offline

#5 2015-07-08 14:18:56

Aerion
Member
From: London
Registered: 2014-11-18
Posts: 22

Re: [SOLVED] Error importing a packag into AUR4

Scimmia wrote:

It may very well be a server side issue, but we'd still need to see the .SRCINFO and possibly the PKGBUILD.

Of course, here you go:

.SRCINFO

:: PKGBUILD could not detect your architecture. Some dependencies may be missing
pkgbase = brother-hl2030
        pkgdesc = Brother HL-2030 CUPS driver
        pkgver = 2.0.1
        pkgrel = 6
        url = http://www.brother.com
        install = brother-hl2030.install
        arch = i686
        arch = x86_64
        license = custom:Brother Industries
        depends = a2ps
        source = brother-hl2030.patch
        source = http://pub.brother.com/pub/com/bsc/linux/dlf/cupswrapperHL2030-2.0.1-1.i386.rpm
        source = http://pub.brother.com/pub/com/bsc/linux/dlf/brhl2030lpr-2.0.1-1.i386.rpm
        md5sums = e81a2b369368fb8fa56a08c3341097b2
        md5sums = 29e4d9dfd44ee8fc1629b9cfdadfb896
        md5sums = 29d20e3925e29779260dbbcd0d1fc29e

pkgname = brother-hl2030

PKGBUILD

# Maintainer: Aerion (emile [at] aerion [dot] co [dot] uk
# Contributor: Jaroslaw Rosiek <jaroslaw.rosiek@interia.pl>

pkgname="brother-hl2030"
pkgver="2.0.1"
pkgrel="6"
pkgdesc="Brother HL-2030 CUPS driver"
url="http://www.brother.com"
license=('custom:Brother Industries')
install="brother-hl2030.install"
arch=('i686' 'x86_64')
depends=('a2ps')
md5sums=('e81a2b369368fb8fa56a08c3341097b2'
         '29e4d9dfd44ee8fc1629b9cfdadfb896'
         '29d20e3925e29779260dbbcd0d1fc29e')

if [[ -z "$CARCH" ]]; then
  echo ":: PKGBUILD could not detect your architecture. Some dependencies may be missing"
else
  if [[ "$CARCH" == "x86_64" ]]; then
    depends=("${depends[@]}" 'lib32-glibc')
  fi
fi

source=(
  brother-hl2030.patch \
  http://pub.brother.com/pub/com/bsc/linux/dlf/cupswrapperHL2030-2.0.1-1.i386.rpm
  http://pub.brother.com/pub/com/bsc/linux/dlf/brhl2030lpr-2.0.1-1.i386.rpm
)

prepare() {
  cd "$srcdir/usr/" || return 1
  patch -p1 < ../brother-hl2030.patch

  cd "$srcdir" || return 1
  "$srcdir/usr/local/Brother/cupswrapper/cupswrapperHL2030-2.0.1"
}

package() {
  mkdir -p "$pkgdir/usr/share"
  cp -R "$srcdir/usr/bin" "$pkgdir/usr"
  cp -R "$srcdir/usr/lib" "$pkgdir/usr"
  cp -R "$srcdir/usr/local/Brother" "$pkgdir/usr/share/brother"

  rm "$pkgdir/usr/share/brother/cupswrapper/cupswrapperHL2030-2.0.1"
  rm "$pkgdir/usr/share/brother/inf/setupPrintcap"

  install -m 644 -D ppd_file "$pkgdir/usr/share/cups/model/HL2030.ppd"
  install -m 755 -D wrapper "$pkgdir/usr/lib/cups/filter/brlpdwrapperHL2030"

You'd also probably do better on the mailing list or even the bug tracker, as the right people are more likely to see it there.

Thank for the suggestion. I have to leave for work now, so I'll do that later this week, unless a solution comes up here in the meantime.


Previously registered as MrE.

Offline

#6 2015-07-08 14:26:19

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,701

Re: [SOLVED] Error importing a packag into AUR4

Aerion wrote:

I thought that's where I posted it?

It had been in "Creating and Modifying Packages"


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#7 2015-07-08 14:27:03

Aerion
Member
From: London
Registered: 2014-11-18
Posts: 22

Re: [SOLVED] Error importing a packag into AUR4

My apologies, must have been cross-eyed!


Previously registered as MrE.

Offline

#8 2015-07-08 14:27:49

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: [SOLVED] Error importing a packag into AUR4

If you get rid of that first line in .SRCINFO, does it work? That if/else block in the PKGBUILD should really be replaced by a simple depends_x86_64=() entry.

Offline

#9 2015-07-08 14:30:34

Aerion
Member
From: London
Registered: 2014-11-18
Posts: 22

Re: [SOLVED] Error importing a packag into AUR4

I shall try that later in the week. I'll also update the PKGBUILD as suggested; as I no longer have this printer I haven't touched the PKGBUILD in ages.

Thanks


Previously registered as MrE.

Offline

#10 2015-07-10 15:46:18

Aerion
Member
From: London
Registered: 2014-11-18
Posts: 22

Re: [SOLVED] Error importing a packag into AUR4

Right, I have updated the PKGBUILD and .SRCINFO files but my inexperience with Git is letting me down here.

I have tried to follow the (very poor) instructions in the Wiki for submitting packages to the AUR4 but I'm getting an access rights error:

$ git clone ssh://aur@aur4.archlinux.org/brother-hl2030.git
Cloning into 'brother-hl2030'...
Host key fingerprint is SHA256:L71Q91yHwmHPYYkJMDgj0xmUuw16qFOhJbBr1mzsiOI
Enter passphrase for key '/home/aerion/.ssh/aur_rsa': 
warning: You appear to have cloned an empty repository.
Checking connectivity... done.
$ mksrcinfo
$ git add PKGBUILD .SRCINFO
$ git commit -m "Initial import"
[master 3de1855] Initial import
 2 files changed, 157 insertions(+)
 create mode 100644 brother-hl2030/brother-hl2030.install
 create mode 100644 brother-hl2030/brother-hl2030.patch
[aerion@thor brother-hl2030]$ git push origin master
fatal: 'origin' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

Any guidance would be very welcome!


Previously registered as MrE.

Offline

#11 2015-07-10 16:07:41

progandy
Member
Registered: 2012-05-17
Posts: 5,321

Re: [SOLVED] Error importing a packag into AUR4

What is the output of "git remote -v"?
The wiki descriptions worked for me, did you use the right directories? Before you start you have no git repository, only your PKGBUILD.

#// not in git here
$ git clone [...]/foo.git
$ cd foo
#// now in git
$ mv [...]/PKGBUILD .
$ mksrcinfo 
...

| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#12 2015-07-10 16:09:46

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,701

Re: [SOLVED] Error importing a packag into AUR4

Have you pushed your PGP Key Fingerprint?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#13 2015-07-10 16:56:16

Aerion
Member
From: London
Registered: 2014-11-18
Posts: 22

Re: [SOLVED] Error importing a packag into AUR4

I can't see any instructions regarding which directories to use in the wiki's AUR4 section, so I'm afraid I've got no clue as to what the right directories would be.

I've got a git folder in my home folder, inside which I've got an aur folder containing my various AUR packages, each in their own subfolder.

$ pwd
/home/aerion/git/aur
$ ls -la
drwxr-xr-x 3 aerion aerion 4096 Jul 10 16:26 brother-hl2030
drwxr-xr-x 2 aerion aerion 4096 Jul  8 13:35 carps-cups
-rw------- 1 aerion aerion   49 Jul 10 15:21 .directory
drwxr-xr-x 2 aerion aerion 4096 Jul  8 13:35 emusicremote
drwxr-xr-x 8 aerion aerion 4096 Jul 10 16:29 .git
drwxr-xr-x 2 aerion aerion 4096 Jul  8 13:35 gtksetpwc
drwxr-xr-x 2 aerion aerion 4096 Jul  8 13:35 kdeplasma-applets-keyleds
drwxr-xr-x 2 aerion aerion 4096 Jul  8 13:35 kdeplasma-applets-keyleds-svn
drwxr-xr-x 2 aerion aerion 4096 Jul  8 13:35 klassik-plasma-theme
drwxr-xr-x 2 aerion aerion 4096 Jul  8 13:35 otf-mathilde
drwxr-xr-x 2 aerion aerion 4096 Jul  8 13:35 rephrase
drwxr-xr-x 2 aerion aerion 4096 Jul  8 13:35 setpwc
drwxr-xr-x 2 aerion aerion 4096 Jul  8 13:35 smbldap-tools
drwxr-xr-x 2 aerion aerion 4096 Jul  8 13:35 yakuake-skin-steampunk

I have now deleted the brother-hl2030 and recreated it following your advice and now I do get a bit further:

$ pwd
/home/aerion/git/aur/brother-hl2030
$ mksrcinfo 
$ git add PKGBUILD .SRCINFO
$ git commit -m "Initial import"
[master (root-commit) ca8b9a8] Initial import
 2 files changed, 61 insertions(+)
 create mode 100644 .SRCINFO
 create mode 100644 PKGBUILD
$ git push origin master
Host key fingerprint is SHA256:L71Q91yHwmHPYYkJMDgj0xmUuw16qFOhJbBr1mzsiOI
Enter passphrase for key '/home/aerion/.ssh/aur_rsa': 
Counting objects: 4, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (4/4), done.
Writing objects: 100% (4/4), 1.16 KiB | 0 bytes/s, done.
Total 4 (delta 0), reused 0 (delta 0)
remote: error: The following error occurred when parsing commit
remote: error: ca8b9a8dc59796d08feb494b1c5ae7b97b751953:
remote: error: missing install file: brother-hl2030.install
remote: error: hook declined to update refs/heads/master
To ssh://aur@aur4.archlinux.org/brother-hl2030.git
 ! [remote rejected] master -> master (hook declined)
error: failed to push some refs to 'ssh://aur@aur4.archlinux.org/brother-hl2030.git'

however

$ pwd
/home/aerion/git/aur/brother-hl2030
$ ls -la
total 40
-rw-r--r-- 1 aerion aerion  810 Jan  1  1970 brother-hl2030.install
-rw-r--r-- 1 aerion aerion 3999 Jan  1  1970 brother-hl2030.patch
drwxr-xr-x 8 aerion aerion 4096 Jul 10 17:38 .git
-rw-r--r-- 1 aerion aerion 1310 Jul 10 16:03 PKGBUILD
-rw-r--r-- 1 aerion aerion  595 Jul 10 17:37 .SRCINFO

shows that that the 'missing' file is there.

For completeness, here are the updated PKGBUILD and .SRCINFO files:

# Maintainer: Aerion (emile [at] aerion [dot] co [dot] uk
# Contributor: Jaroslaw Rosiek <jaroslaw.rosiek@interia.pl>

pkgname="brother-hl2030"
pkgver="2.0.1"
pkgrel="6"
pkgdesc="Brother HL-2030 CUPS driver"
url="http://www.brother.com"
license=('GPL')
install="brother-hl2030.install"
arch=('i686' 'x86_64')
depends_x86_64=('lib32-glibc') 
md5sums=('e81a2b369368fb8fa56a08c3341097b2'
         '29e4d9dfd44ee8fc1629b9cfdadfb896'
         '29d20e3925e29779260dbbcd0d1fc29e')

source=(
  brother-hl2030.patch \
  http://download.brother.com/welcome/dlf005837/cupswrapperHL2030-2.0.1-1.i386.rpm
  http://download.brother.com/welcome/dlf005835/brhl2030lpr-2.0.1-1.i386.rpm
)

prepare() {
  cd "$srcdir/usr/" || return 1
  patch -p1 < ../brother-hl2030.patch

  cd "$srcdir" || return 1
  "$srcdir/usr/local/Brother/cupswrapper/cupswrapperHL2030-2.0.1"
}

package() {
  mkdir -p "$pkgdir/usr/share"
  cp -R "$srcdir/usr/bin" "$pkgdir/usr"
  cp -R "$srcdir/usr/lib" "$pkgdir/usr"
  cp -R "$srcdir/usr/local/Brother" "$pkgdir/usr/share/brother"

  rm "$pkgdir/usr/share/brother/cupswrapper/cupswrapperHL2030-2.0.1"
  rm "$pkgdir/usr/share/brother/inf/setupPrintcap"

  install -m 644 -D ppd_file "$pkgdir/usr/share/cups/model/HL2030.ppd"
  install -m 755 -D wrapper "$pkgdir/usr/lib/cups/filter/brlpdwrapperHL2030"
pkgbase = brother-hl2030
        pkgdesc = Brother HL-2030 CUPS driver
        pkgver = 2.0.1
        pkgrel = 6
        url = http://www.brother.com
        install = brother-hl2030.install
        arch = i686
        arch = x86_64
        license = GPL
        source = brother-hl2030.patch
        source = http://download.brother.com/welcome/dlf005837/cupswrapperHL2030-2.0.1-1.i386.rpm
        source = http://download.brother.com/welcome/dlf005835/brhl2030lpr-2.0.1-1.i386.rpm
        md5sums = e81a2b369368fb8fa56a08c3341097b2
        md5sums = 29e4d9dfd44ee8fc1629b9cfdadfb896
        md5sums = 29d20e3925e29779260dbbcd0d1fc29e
        depends_x86_64 = lib32-glibc

pkgname = brother-hl2030

I really appreciate the help as contributing to the AUR has become a lot harder with the move to Git; uploading to AUR3 couldn't be simpler but this adds a steep learning curve for those unfamiliar with Git.


Previously registered as MrE.

Offline

#14 2015-07-10 16:57:13

Aerion
Member
From: London
Registered: 2014-11-18
Posts: 22

Re: [SOLVED] Error importing a packag into AUR4

ewaller wrote:

Have you pushed your PGP Key Fingerprint?

No, only my SSH public key. Is a PGP Key necessary too?


Previously registered as MrE.

Offline

#15 2015-07-10 17:06:20

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,701

Re: [SOLVED] Error importing a packag into AUR4

Aerion wrote:

Is a PGP Key necessary too?

I thought so, but in looking over the documentation, I am not sure now.

remote: error: missing install file: brother-hl2030.install

You need to add that file to the git repository as well.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#16 2015-07-10 17:21:03

Aerion
Member
From: London
Registered: 2014-11-18
Posts: 22

Re: [SOLVED] Error importing a packag into AUR4

remote: error: missing install file: brother-hl2030.install

You need to add that file to the git repository as well.

Gotya :-)

$ git add brother-hl2030.install 
$ git commit -m "Initial import"
[master 0a27e0c] Initial import
 1 file changed, 34 insertions(+)
 create mode 100644 brother-hl2030.install

Attempting to commit again of course resulted in a similar error for brother-hl2030.patch, so I added that too:

$ git add brother-hl2030.patch 
$ git commit -m "Initial import"
[master 4335ca1] Initial import
 1 file changed, 123 insertions(+)
 create mode 100644 brother-hl2030.patch

However upon commit it still complains about a missing brother-hl2030.patch:

$ git push origin master        
Host key fingerprint is SHA256:L71Q91yHwmHPYYkJMDgj0xmUuw16qFOhJbBr1mzsiOI
Enter passphrase for key '/home/aerion/.ssh/aur_rsa': 
Counting objects: 10, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (10/10), done.
Writing objects: 100% (10/10), 3.21 KiB | 0 bytes/s, done.
Total 10 (delta 2), reused 0 (delta 0)
remote: error: The following error occurred when parsing commit
remote: error: 0a27e0cec571f754c66852e0d61ca111d66dbcd2:
remote: error: missing source file: brother-hl2030.patch
remote: error: hook declined to update refs/heads/master
To ssh://aur@aur4.archlinux.org/brother-hl2030.git
 ! [remote rejected] master -> master (hook declined)
error: failed to push some refs to 'ssh://aur@aur4.archlinux.org/brother-hl2030.git'

git remote -v (which previously returned nothing) now shows:

origin  ssh://aur@aur4.archlinux.org/brother-hl2030.git (fetch)
origin  ssh://aur@aur4.archlinux.org/brother-hl2030.git (push)

Previously registered as MrE.

Offline

#17 2015-07-10 17:35:25

progandy
Member
Registered: 2012-05-17
Posts: 5,321

Re: [SOLVED] Error importing a packag into AUR4

Each commit must contain all local files referenced in the .SRCINFO of the commit (the output of mksrcinfo)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#18 2015-07-10 17:37:27

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,701

Re: [SOLVED] Error importing a packag into AUR4

ewaller@turing ~/devel/build 1009 %git clone ssh://aur@aur4.archlinux.org/brothe
r-hl2030.git
Cloning into 'brother-hl2030'...
Enter passphrase for key '/home/ewaller/.ssh/id_rsa': 
Enter passphrase for key '/home/ewaller/.ssh/id_rsa': 
warning: You appear to have cloned an empty repository.
Checking connectivity... done.
ewaller@turing ~/devel/build 1010 %

It does not appear to have anything yet.
I am guessing here, perhaps you need to rerun mksrcinfo? hmm  I am a complete and utter hack with BKGBUILDs and have almost no experience with AUR4. 
I am thinking we can learn together.

Edit:  How about that smile progandy posted at the same time I was.

Last edited by ewaller (2015-07-10 17:38:28)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#19 2015-07-12 03:37:51

severach
Member
Registered: 2015-05-23
Posts: 198

Re: [SOLVED] Error importing a packag into AUR4

To translate progandy, adding a file after a commit does not fix the first commit. The first commit goes, doesn't have the file, then fails, and the second commit never happens. There is a git command to undo the commit but I just rm -rf .git and clone again.

You must add all the files.

git add PKGBUILD .SRCINFO brother-hl2030.install brother-hl2030.patch
git status

'status' shows the lists of added and missed files. Scan the missed files in red for files you forgot to add.

Your main problem is that the package is orphaned. Go adopt and try again.

Scimmia wrote:

If you get rid of that first line in .SRCINFO, does it work? That if/else block in the PKGBUILD should really be replaced by a simple depends_x86_64=() entry.

The only problem bum code can cause is that mksrcinfo will generate a zero length .SRCINFO. AUR4 doesn't care what the PKGBUILD contains.

Allan needs to fix the md5sums_arch 45048 problem before I touch any of those _arch variables. I only use sha256sums.

Aerion wrote:

I really appreciate the help as contributing to the AUR has become a lot harder with the move to Git; uploading to AUR3 couldn't be simpler but this adds a steep learning curve for those unfamiliar with Git.

The good news is that package quality should go way up due to the difficulty of submitting. I did all my packages at the last minute because what I saw looked nothing like what was outlined in the AUR4 migration guide. I still can't believe anyone would approve discarding the PKGBUILD history or the packages without active maintainers. People are going to stop by to find that we've been bombed back into 2008.

As an example, ksh would be on the chopping block had I not been roped into it as a dependency on another package.

Maybe it's just a bad implementation. Most git remote errors make no sense. You must guess at the problem and try again.

Offline

#20 2015-07-12 04:40:01

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: [SOLVED] Error importing a packag into AUR4

severach wrote:
Scimmia wrote:

If you get rid of that first line in .SRCINFO, does it work? That if/else block in the PKGBUILD should really be replaced by a simple depends_x86_64=() entry.

The only problem bum code can cause is that mksrcinfo will generate a zero length .SRCINFO. AUR4 doesn't care what the PKGBUILD contains.

Did you read the PKGBUILD and the generated .SRCINFO before posting?

severach wrote:

Allan needs to fix the md5sums_arch 45048 problem before I touch any of those _arch variables. I only use sha256sums.

You seem to be the only one seeing this. Maybe because your example PKGBUILD actually has md5 checksums even though the variable is labeled differently? I don't know, but it works perfectly in my PKGBUILDs and your bug report has 0 votes, so it's not a widespread problem.

severach wrote:

I still can't believe anyone would approve discarding the PKGBUILD history or the packages without active maintainers. People are going to stop by to find that we've been bombed back into 2008.

The vast majority of those packages are useless and/or hopelessly broken anyway.

Last edited by Scimmia (2015-07-12 04:59:24)

Offline

#21 2015-07-12 04:53:32

progandy
Member
Registered: 2012-05-17
Posts: 5,321

Re: [SOLVED] Error importing a packag into AUR4

Scimmia wrote:
severach wrote:

Allan needs to fix the md5sums_arch 45048 problem before I touch any of those _arch variables. I only use sha256sums.

You seem to be the only one seeing this. Maybe because your example PKGBUILD actually has md5 checksums even though the variable is labeled differently? I don't know, but it works perfectly in my PKGBUILDs and your bug report has 0 votes, so it's not a widespread problem.

Most packages have at least one architecture-independent file. makepkg takes its clue to the required algorithm from the independent source checksums.
Edit: By the way, basis-pro5 is really ugly, at least the arch array has to be set statically and remain unchanged.

Last edited by progandy (2015-07-12 04:58:07)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#22 2015-07-12 04:57:23

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: [SOLVED] Error importing a packag into AUR4

progandy wrote:
Scimmia wrote:
severach wrote:

Allan needs to fix the md5sums_arch 45048 problem before I touch any of those _arch variables. I only use sha256sums.

You seem to be the only one seeing this. Maybe because your example PKGBUILD actually has md5 checksums even though the variable is labeled differently? I don't know, but it works perfectly in my PKGBUILDs and your bug report has 0 votes, so it's not a widespread problem.

Most packages have at least one architecture-independent file. makepkg takes its clue to the required algorithm from the independent source checksums.

Ah! Yes, that makes sense.

Offline

#23 2015-07-14 11:35:47

severach
Member
Registered: 2015-05-23
Posts: 198

Re: [SOLVED] Error importing a packag into AUR4

I read as much as necessary to figure out the next problem.

progandy wrote:

Most packages have at least one architecture-independent file. makepkg takes its clue to the required algorithm from the independent source checksums.

_arch variable addons are described with the human equivalent of brace expansion so it's not the least bit obvious that the depends and source arrays with _arch are additive. I read that part of the PKGBUILD instructions again just to make sure. My bumbling will fix a makepkg bug and an ArchWiki bug.

Edit: By the way, basis-pro5 is really ugly, at least the arch array has to be set statically and remain unchanged.

That builds 3 packages, any, i686, and x86_64. They can all be installed over each other without bring down a production server. It's too much for standard PKGBUILD techniques but that's OK because the Arch PKGBUILD adapts to whatever I need. PKGBUILD is better than 'sudo make install' without being any worse. Additive arrays should make that package a bit simpler.

None of the AUR packages need to work to be valuable.

It's much easier to correct an existing PKGBUILD than to come up with everything from scratch. Fortunately ksh has a decent Gentoo ebuild but many I'd have given up on without a boost from a half working PKGBUILD. Presence on the AUR shows that someone at least tried and probably had it working at one time.

Google is largely useless for finding Linux packages for purpose foo. I search the AUR because I know it's all Linux then I go review the website for function. When I find something I'll subject search Google again now that I know the name and I still can't find it. Other distros are too disorganized to provide the same service. Many Linux softwares will go dark when they disappear from the AUR. (Insert Obi Wan Kenobi quote here.)

Of course the AUR search is too strict because a smart search is hard. I make Google search the AUR.

Offline

#24 2015-07-14 11:53:22

Awebb
Member
Registered: 2010-05-06
Posts: 6,688

Re: [SOLVED] Error importing a packag into AUR4

ewaller wrote:
Aerion wrote:

Is a PGP Key necessary too?

I thought so, but in looking over the documentation, I am not sure now.

You need a PGP key for signing packages during the build process. Packages are not build in the AUR but on the user's machine. You need an SSH public key to connect via ssh without password, which is required in this case to tunnel git. Entering the SSH key in the web interface is equivalent to manually editing the respective file in ~/.ssh/ on a remote server or using ssh-copy-id.

Offline

#25 2015-07-14 12:52:22

progandy
Member
Registered: 2012-05-17
Posts: 5,321

Re: [SOLVED] Error importing a packag into AUR4

severach wrote:

That builds 3 packages, any, i686, and x86_64. They can all be installed over each other without bring down a production server. It's too much for standard PKGBUILD techniques but that's OK because the Arch PKGBUILD adapts to whatever I need. PKGBUILD is better than 'sudo make install' without being any worse. Additive arrays should make that package a bit simpler.

The arch variable describes which architectures are possible to build, not what will actually be built. I think you should only need a special case for the lib32 build.

None of the AUR packages need to work to be valuable.

It's much easier to correct an existing PKGBUILD than to come up with everything from scratch. Fortunately ksh has a decent Gentoo ebuild but many I'd have given up on without a boost from a half working PKGBUILD. Presence on the AUR shows that someone at least tried and probably had it working at one time.

If we keep the a searchable archive for the old PKGBUILDs somewhere and add a link in the new AUR, might that help you?

Of course the AUR search is too strict because a smart search is hard. I make Google search the AUR.

The AUR4 search is better and allows for multiple keywords.


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

Board footer

Powered by FluxBB